:root {
  --xcy-ink: #121210;
  --xcy-paper: #f4eee3;
  --xcy-paper-deep: #eee6d9;
  --xcy-cinnabar: #b5322b;
  --xcy-gold: #ae8a4d;
  --xcy-jade: #3f6b5d;
  --xcy-line: #d6c6ad;
}

body {
  background: var(--xcy-paper);
}

.site-nav {
  height: 82px;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  padding: 0 max(30px, calc((100vw - 1440px) / 2));
  color: #f7f0e5;
  background: rgba(18, 18, 16, .97);
  border-bottom: 1px solid rgba(205, 182, 137, .18);
}

.site-nav.scrolled {
  background: rgba(18, 18, 16, .94);
  border-bottom-color: rgba(205, 182, 137, .22);
  backdrop-filter: blur(14px);
}

.site-nav .logo span {
  font-size: 30px;
  letter-spacing: .08em;
}

.site-nav .logo small {
  color: #c5b69e;
  letter-spacing: .3em;
}

.site-nav nav {
  justify-self: end;
  gap: clamp(18px, 2vw, 34px);
  font: 15px var(--serif);
  white-space: nowrap;
}

.site-nav nav a:after {
  background: var(--xcy-cinnabar);
  height: 2px;
}

.account-link {
  margin-left: 28px;
  color: #eee4d6;
  background: transparent;
  border-color: rgba(205, 182, 137, .42);
}

.home-mode .site-nav {
  background: linear-gradient(90deg, rgba(18, 18, 16, .98) 0 50%, rgba(244, 238, 227, .96) 50% 100%);
  border-bottom-color: rgba(174, 138, 77, .22);
}

.home-mode .site-nav nav {
  transform: translateX(-12px);
}

.home-mode .site-nav nav a:nth-child(n + 2),
.home-mode .site-nav .account-link {
  color: #211e19;
}

.home-mode .site-nav .account-link {
  border-color: rgba(91, 73, 46, .34);
}

.home-mode main {
  padding-top: 0;
}

main {
  padding-top: 82px;
}

.button {
  min-height: 50px;
  height: auto;
  border-radius: 2px;
}

.button.primary {
  background: var(--xcy-cinnabar);
}

.button.primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: #c13a32;
}

.button.secondary {
  border-color: #746246;
}

.page-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--xcy-ink) url("/assets/design/ink-structure-bg-v2.png") center / cover no-repeat;
  color: #f6eee2;
}

.page-hero:after {
  content: "";
  position: absolute;
  width: 510px;
  height: 510px;
  right: -78px;
  top: 50%;
  background: url("/assets/design/life-rhythm-map.png") center / cover no-repeat;
  opacity: .16;
  mix-blend-mode: screen;
  transform: translateY(-50%) scaleY(.925);
  animation: xcy-inner-map-drift 10s ease-in-out infinite;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .overline {
  color: #c3a66f;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 500;
}

.page-hero .container > p:last-child {
  max-width: 720px;
  color: rgba(246, 238, 226, .72);
  font-size: 17px;
  line-height: 1.9;
}

.order-panel,
.naming-tool.card,
.login-panel,
.card,
.policy-service-grid article,
.support-contact-panel {
  border-color: var(--xcy-line);
  background: #fbf7ef;
  box-shadow: 0 18px 54px rgba(65, 49, 27, .055);
}

.field input,
.field select,
.field textarea {
  border-color: #cfc0a9;
  border-radius: 1px;
  background: #fffdf8;
}

.order-step.active > span,
.order-step.done > span {
  border-color: var(--xcy-cinnabar);
  background: var(--xcy-cinnabar);
}

.site-footer {
  padding: 58px 0;
  background: #11110f;
  color: #e8dfd1;
  border-top: 1px solid rgba(205, 182, 137, .2);
}

.site-footer .footer-inner {
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 44px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
}

.site-footer .footer-meta,
.site-footer p {
  color: #998d7a;
}

/* 首页：已确认的 Product Design 视觉方案 */
.xcy-v2-hero {
  position: relative;
  min-height: 806px;
  overflow: hidden;
  background: var(--xcy-ink);
  color: #f7f0e5;
}

.xcy-v2-hero-dark {
  position: absolute;
  inset: 0 37% 0 0;
  background: var(--xcy-ink) url("/assets/design/ink-structure-bg-v2.png") center / cover no-repeat;
}

.xcy-v2-hero-light {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 50%;
  overflow: hidden;
  background: #f3ecdf;
  border-radius: 48% 0 0 48%;
  box-shadow: -1px 0 0 rgba(188, 150, 87, .48);
  transform-origin: right center;
  animation: xcy-panel-enter 1.15s cubic-bezier(.2, .75, .2, 1) both;
}

.xcy-v2-map {
  position: absolute;
  width: min(64vw, 720px);
  aspect-ratio: 1;
  right: 0;
  top: 52%;
  transform: translateY(-49%);
}

.xcy-v2-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  mix-blend-mode: multiply;
  animation: xcy-map-breathe 6s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes xcy-map-breathe {
  0%, 100% { transform: scaleY(.925) scale(.99) translateY(2px); filter: saturate(.96) contrast(.99); }
  50% { transform: scaleY(.925) scale(1.02) translateY(-4px); filter: saturate(1.06) contrast(1.025); }
}

@keyframes xcy-panel-enter {
  from { opacity: 0; transform: translateX(56px) scale(1.035); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes xcy-enter-left {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes xcy-enter-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xcy-inner-map-drift {
  0%, 100% { transform: translateY(-50%) scaleY(.925) rotate(0deg); }
  50% { transform: translateY(-52%) scaleY(.925) rotate(2deg); }
}

.xcy-v2-content {
  position: relative;
  z-index: 5;
  width: 620px;
  padding-top: 180px;
  margin-left: max(54px, calc((100vw - 1440px) / 2));
}

.xcy-v2-eyebrow {
  margin: 0 0 30px;
  color: #b99a65;
  font-size: 18px;
  letter-spacing: .12em;
  animation: xcy-enter-left .7s .2s ease-out both;
}

.xcy-v2-content h1 {
  margin: 0;
  font-size: clamp(72px, 6.65vw, 102px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: .02em;
  animation: xcy-enter-left .85s .32s ease-out both;
}

.xcy-v2-content h1 span {
  color: var(--xcy-cinnabar);
}

.xcy-v2-intro {
  margin: 48px 0 0;
  color: rgba(247, 240, 229, .78);
  font-size: 23px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: .05em;
  animation: xcy-enter-left .8s .5s ease-out both;
}

.xcy-v2-actions {
  display: flex;
  gap: 20px;
  margin-top: 42px;
  animation: xcy-enter-up .75s .68s ease-out both;
}

.xcy-v2-actions .button {
  min-height: 70px;
  padding: 0 34px;
  font-size: 18px;
}

.xcy-v2-actions .button.primary {
  width: 306px;
}

.xcy-v2-actions .button.secondary {
  width: 224px;
  border-color: rgba(191, 154, 92, .8);
  color: #fff7ea;
}

.xcy-v2-actions .button.secondary:hover {
  background: #f3ecdf;
  color: #181816;
}

.xcy-v2-trust {
  display: flex;
  margin-top: 42px;
  color: #cdb689;
  font: 13px "Noto Sans SC", sans-serif;
  animation: xcy-enter-up .75s .82s ease-out both;
}

.xcy-v2-trust span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid rgba(205, 182, 137, .32);
  white-space: nowrap;
}

.xcy-v2-trust span:first-child { padding-left: 0; }
.xcy-v2-trust span:last-child { border-right: 0; }
.xcy-v2-trust svg { width: 18px; }

.xcy-v2-seal {
  position: absolute;
  z-index: 6;
  left: calc(50% - 27px);
  top: 49%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #bb9455;
  border-radius: 50%;
  background: #171612;
  color: #c24437;
  font-size: 12px;
  letter-spacing: .08em;
  box-shadow: 0 0 0 5px rgba(17, 16, 13, .8);
}

.xcy-v2-meaning {
  padding: 56px 7vw 92px;
  text-align: center;
  background: #f5f0e7;
}

.xcy-v2-meaning > p {
  margin: 0;
  color: #8e6e40;
  font-size: 13px;
  letter-spacing: .28em;
}

.xcy-v2-meaning h2 {
  margin: 14px 0 50px;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 500;
}

.xcy-v2-meaning > div {
  width: min(1120px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d8c9b2;
}

.xcy-v2-meaning article {
  padding: 32px;
  border-right: 1px solid #d8c9b2;
  text-align: left;
}

.xcy-v2-meaning article:last-child { border-right: 0; }
.xcy-v2-meaning span { color: var(--xcy-cinnabar); font: 500 12px "Noto Sans SC", sans-serif; }
.xcy-v2-meaning h3 { margin: 18px 0 10px; font-size: 24px; font-weight: 500; }
.xcy-v2-meaning article p { margin: 0; color: #61594e; font-size: 14px; line-height: 1.9; }

.xcy-v2-services {
  padding: 92px max(6vw, 44px);
  background: #f4eee3;
}

.xcy-v2-section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.xcy-v2-section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
}

.xcy-v2-section-head > p:last-child {
  margin: 18px auto 0;
  color: #6a6053;
  line-height: 1.8;
}

.xcy-v2-service-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d4c3a8;
  border-bottom: 1px solid #d4c3a8;
}

.xcy-v2-service-grid > a {
  min-height: 330px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d4c3a8;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.xcy-v2-service-grid > a:last-child { border-right: 0; }
.xcy-v2-service-grid > a:hover { transform: translateY(-8px); background: #efe2d0; }
.xcy-v2-service-grid > a.featured { background: #191816; color: #f7efe3; }
.xcy-v2-service-grid > a > svg { color: var(--xcy-cinnabar); width: 34px; height: 34px; }
.xcy-v2-service-grid > a > span { margin-top: 36px; color: #a8854b; font: 500 11px "Noto Sans SC", sans-serif; }
.xcy-v2-service-grid h3 { margin: 13px 0 12px; font-size: 26px; font-weight: 500; }
.xcy-v2-service-grid p { margin: 0; color: #675d50; font-size: 14px; line-height: 1.8; }
.xcy-v2-service-grid .featured p { color: #bdb19f; }
.xcy-v2-service-grid b { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.xcy-v2-service-grid b svg { width: 17px; }

.xcy-v2-samples {
  background: #181816;
  color: #f6efe4;
}

.xcy-v2-samples .sample-card {
  border-color: rgba(205, 182, 137, .28);
  background: rgba(255, 255, 255, .025);
  box-shadow: none;
}

.xcy-v2-samples .sample-card h3 { color: #f6efe4; }
.xcy-v2-samples .sample-card blockquote,
.xcy-v2-samples .section-head > p { color: #a99f91; }
.xcy-v2-samples .button.ghost { color: #d8c6a1; }
.xcy-v2-pricing { background: #f4eee3; }

/* 与真实问答、个人中心保持同一视觉语言 */
body.qa-mode .qa-sidebar,
body.qa-mode .qa-brand,
.dashboard-nav {
  background: #181816;
}

body.qa-mode .qa-page,
.dashboard,
.dashboard-main {
  background: #eee7dc;
}

body.qa-mode .qa-message.assistant .qa-message-body,
body.qa-mode .qa-composer,
.console-section,
.console-card {
  border-color: var(--xcy-line);
  background: #fbf8f1;
}

@media (max-width: 1180px) {
  .site-nav { grid-template-columns: 205px minmax(0, 1fr) auto; }
  .site-nav nav { gap: 18px; font-size: 14px; }
  .site-nav .logo span { font-size: 26px; }
  .xcy-v2-content { width: 560px; margin-left: 36px; }
  .xcy-v2-trust span { padding: 0 10px; }
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
    background: rgba(18, 18, 16, .97);
  }

  .home-mode .site-nav { background: rgba(18, 18, 16, .97); }
  .home-mode .site-nav .account-link { color: #f7f0e5; }
  .menu-button { color: #f7f0e5; }
  .mobile-menu { top: 82px; background: #171714; color: #eee4d6; border-color: rgba(205, 182, 137, .25); }
  .mobile-menu a { border-color: rgba(205, 182, 137, .14); }
  .xcy-v2-service-grid { grid-template-columns: repeat(2, 1fr); }
  .xcy-v2-service-grid > a:nth-child(2) { border-right: 0; }
  .xcy-v2-service-grid > a:nth-child(-n + 2) { border-bottom: 1px solid #d4c3a8; }
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  main { padding-top: 72px; }
  .home-mode main { padding-top: 72px; }
  .site-nav { height: 72px; }
  .site-nav .logo span { font-size: 24px; }
  .site-nav .logo small { font-size: 9px; }
  .mobile-menu { top: 72px; }
  .mobile-app-home { background: #efe8dc; }
  .app-hero-card { background: #171714 url("/assets/design/ink-structure-bg-v2.png") center / cover no-repeat; border: 1px solid rgba(205, 182, 137, .2); }
  .app-service-card,
  .app-quick-grid a,
  .app-support-link { border-color: #d6c6ad; background: #fbf7ef; border-radius: 3px; }
  .app-service-card.featured { background: #191816; color: #f7efe3; }
  .app-service-card.featured small { color: #bdb19f; }
  .mobile-sticky.app-bottom-nav { border-radius: 4px; background: rgba(251, 247, 239, .95); }
  .page-hero { min-height: 330px; padding: 58px 0 48px; }
  .page-hero:after { width: 330px; height: 330px; right: -130px; opacity: .12; }
  .page-hero h1 { font-size: 38px; }
  .page-hero .container > p:last-child { font-size: 14px; }
  .xcy-v2-meaning > div,
  .xcy-v2-service-grid { grid-template-columns: 1fr; }
  .xcy-v2-meaning article,
  .xcy-v2-service-grid > a { border-right: 0; border-bottom: 1px solid #d4c3a8; }
  .xcy-v2-services { padding: 68px 22px; }
  .site-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
