/* Destiny and Code — 7号香水 高定版 V1.1 */
:root {
  --l-ivory:#F7F3EC; --l-cream:#EFE7DA; --l-sand:#DDD0BC; --l-grey:#B9AE9E;
  --l-taupe:#8A7E6D; --l-charcoal:#332E28; --l-ink:#171411; --l-white:#FFFFFF;
  --l-rosewood:#8C5A56; --l-powder:#D9B7B0; --l-gold:#B08D57; --ok:#7FA98E;
  --font-sans:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Yu Gothic","Malgun Gothic","Microsoft YaHei",system-ui,sans-serif;
  --font-serif:"Noto Serif SC","Source Han Serif SC","Songti SC",serif;
  --font-display:"Cinzel","Noto Serif SC","Songti SC",serif;
  --font-mono:"JetBrains Mono",Consolas,monospace;
  --radius-none:0; --radius-sm:4px; --radius-md:6px;
  --hairline:1px solid var(--l-sand);
  --shadow-lift:0 1px 2px rgba(23,20,17,.06);
  --shadow-elevated:0 8px 24px rgba(23,20,17,.08);
  --motion-quiet:400ms;
  --ease-quiet:cubic-bezier(.4,0,.2,1);
  --veil-light:rgba(23,20,17,.16);
  --cover-url: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80&auto=format&fit=crop');
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--l-ivory); }
html {
  height: 100%;
  scrollbar-width: none;
  /* 确保浏览器主题色/安全区与页面底色一致，消除右上角白边 */
  background-color: var(--l-ivory);
  color-scheme: light;
}
body {
  font-family: var(--font-sans); color: var(--l-charcoal);
  background: var(--l-ivory);
  background-color: var(--l-ivory);
  line-height: 1.8; font-size: 15px;
  min-height: 100%;
  /* 防止子元素溢出视口边缘 */
  overflow-x: hidden;
}
body.home {
  background: var(--l-ivory) var(--cover-url, url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80&auto=format&fit=crop')) center / cover no-repeat fixed;
  transition: background-image var(--motion-quiet) var(--ease-quiet);
}
body.home::before { content: none; display: none; }
body.home {
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  position: relative; z-index: 1;
}
body.home .top { flex: 0 0 auto; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.stage-wrap::-webkit-scrollbar,
.drawer::-webkit-scrollbar { width: 0; height: 0; display: none; background: var(--l-ivory); }
::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement {
  width: 0; height: 0; display: block; background: var(--l-ivory); border: none;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner { background: var(--l-ivory); }
body::after, .aurora { content: none; display: none; }

/* 加载 */
.boot {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: var(--l-ivory);
  transition: opacity var(--motion-quiet) var(--ease-quiet), visibility var(--motion-quiet) var(--ease-quiet);
}
.boot.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-card { text-align: center; color: var(--l-rosewood); }
.boot-card b { display: block; margin-top: 14px; letter-spacing: .18em; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--l-gold); }
.boot-logo { width: 72px; height: 72px; object-fit: cover; display: block; margin: 0 auto; border-radius: 18px; animation: bootspin 1.1s ease-in-out infinite; }
.boot svg { width: 76px; height: 76px; animation: bootspin 1.1s ease-in-out infinite; }
@keyframes bootspin { 50% { transform: translateY(-4px); } }

/* 顶部 Slogan */
.brand-slogan {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 13px; letter-spacing: .22em;
  color: var(--l-gold); white-space: nowrap; pointer-events: none;
  max-width: min(46vw, 460px); text-align: center;
}

/* 顶栏 */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px clamp(16px, 3vw, 28px) 20px; position: relative; z-index: 5;
  overflow: visible;
  border-radius: 0;
  min-height: 72px;
  background: rgba(247, 243, 236, .9);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(176, 141, 87, .7);
  box-shadow: inset 0 -1px 0 rgba(23, 20, 17, .28);
}
.account { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; cursor: pointer; min-width: 0; }
.avatar {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 16px;
  color: var(--l-rosewood); background: var(--l-white);
  border: var(--hairline); box-shadow: var(--shadow-lift);
}
.avatar-hint {
  background: transparent; color: var(--l-rosewood); border-radius: 0;
  padding: 8px 14px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  border: var(--hairline); box-shadow: none;
}
.avatar-hint:hover { background: rgba(140,90,86,.06); }
.lang {
  position: relative; flex: 0 0 auto;
  overflow: visible;
  z-index: 40;
  border-radius: 0;
}
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px;
  border-radius: 0; border: var(--hairline);
  background: transparent; color: var(--l-rosewood);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background var(--motion-quiet) var(--ease-quiet);
}
.lang-btn:hover { background: rgba(140,90,86,.06); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 168px; padding: 8px; z-index: 41;
  background: rgba(247, 243, 236, .98);
  border-radius: 0; border: var(--hairline);
  box-shadow: var(--shadow-elevated); display: none;
}
.lang.open .lang-menu { display: grid; gap: 2px; }
.lang-menu button {
  text-align: left; border: 0; background: transparent; border-radius: 0;
  padding: 8px 10px; color: var(--l-charcoal); cursor: pointer; font-size: 14px;
  transition: background var(--motion-quiet) var(--ease-quiet);
}
.lang-menu button:hover { background: rgba(140,90,86,.06); }
.lang-menu button[aria-current="true"] { background: rgba(140,90,86,.08); color: var(--l-rosewood); }

/* 舞台与卡片 */
.stage-wrap {
  position: relative; z-index: 1; flex: 1 1 auto; min-height: 0;
  display: grid; place-items: center; padding: 22px 28px 40px;
  overflow: auto; scrollbar-width: none;
  padding-top: 28px;
}
.card {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  overflow: visible;
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 48px) 24px;
  border-radius: 0;
  /* 只有卡片做毛玻璃，背景照片保持清晰 */
  background-color: rgba(247, 243, 236, .5);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(176, 141, 87, .75);
  box-shadow:
    inset 0 0 0 5px rgba(247, 243, 236, .28),
    inset 0 0 0 6px rgba(23, 20, 17, .45),
    0 18px 40px rgba(23, 20, 17, .14);
}
.card.leave { animation: leave .4s var(--ease-quiet) forwards; }
.card.enter { animation: enter .48s var(--ease-quiet); }
@keyframes leave { to { opacity: 0; transform: translateX(-8px); } }
@keyframes enter { from { opacity: 0; transform: translateX(8px); } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}
.deck { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 3vw, 40px); align-items: center; }

/* 标题：高定衬线 */
h1 {
  margin: 10px 0 14px; font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18; color: var(--l-ink); letter-spacing: -.01em; font-weight: 700;
}
.deck-copy h1 { max-width: 8em; margin-top: 8px; }
.brand-mark { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; display: block; margin: 0 0 18px; }
.sample-box {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 36em;
  margin-top: 22px; padding: 14px; text-align: left; cursor: pointer;
  background: rgba(247, 243, 236, .78); border: 1px solid rgba(176, 141, 87, .8); color: var(--l-ink);
  box-shadow: inset 0 0 0 3px rgba(247, 243, 236, .35), inset 0 0 0 4px rgba(23, 20, 17, .28);
  font-family: var(--font-serif); letter-spacing: 0; text-transform: none;
}
.sample-box img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: 0 0 52px; }
.sample-box b { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.sample-box em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; line-height: 1.6; color: var(--l-charcoal); }
.sample-box:hover { background: rgba(255, 255, 255, .9); }
.sample-back {
  position: fixed; inset: 0; z-index: 40; overflow: auto;
  background: rgba(23, 20, 17, .28); padding: 28px 16px 48px;
}
.sample-back[hidden] { display: none; }
.sample-sheet {
  width: min(860px, 100%); margin: 0 auto;
  background: rgba(247, 243, 236, .97); border: 1px solid rgba(176, 141, 87, .8);
  box-shadow: inset 0 0 0 5px rgba(247, 243, 236, .4), inset 0 0 0 6px rgba(23, 20, 17, .4), 0 18px 40px rgba(23, 20, 17, .18);
  padding: 28px 24px 40px;
}
.sample-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sample-bar h2 { margin: 0; }
.sample-head { margin-top: 0; }
.origin { display: grid; gap: 14px; margin-top: 6px; max-width: 36em; }
.origin div { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; align-items: start; }
.origin b { font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--l-rosewood); line-height: 1.7; }
.origin p { margin: 0; color: var(--l-charcoal); line-height: 1.75; }
h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--l-ink); letter-spacing: -.01em; margin: 28px 0 12px; line-height: 1.3; }
h2::before { content: ""; display: inline-block; width: 8px; height: 20px; background: var(--l-rosewood); margin-right: 10px; vertical-align: -3px; }
h2.with-mark { display: flex; align-items: center; gap: 12px; }
h2.with-mark::before { display: none; }
h2.with-mark img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 40px; }
.kicker { color: var(--l-gold); font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.kicker::before, .kicker::after { content: "✦"; margin: 0 .7em; font-size: 9px; letter-spacing: 0; }
.lead, .note { color: var(--l-charcoal); margin: 0 0 14px; line-height: 1.8; }

/* 生日输入 */
.side {
  background: rgba(247, 243, 236, .28);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(176, 141, 87, .65);
  border-radius: 0;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-lift), inset 0 0 0 4px rgba(247, 243, 236, .2), inset 0 0 0 5px rgba(23, 20, 17, .35);
}
.date-row { display: flex; gap: 12px; min-width: 0; }
.digit {
  flex: 1; min-width: 0; display: block;
  background: rgba(255, 255, 255, .94);
  border: var(--hairline);
  border-radius: 0; padding: 12px 8px 10px; text-align: center;
  transition: box-shadow var(--motion-quiet) var(--ease-quiet);
}
.digit.year { flex: 1.35; }
.digit span { display: block; font-size: 12px; letter-spacing: .14em; color: var(--l-gold); font-weight: 500; text-transform: uppercase; }
.digit input {
  width: 100%; min-width: 0; border: 0; background: transparent; text-align: center;
  font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: .02em; color: var(--l-ink);
  padding: 6px 0 0; box-shadow: none;
}
.digit input::placeholder { color: #6e6558; font-weight: 500; opacity: 1; }
.digit:focus-within { box-shadow: 0 0 0 3px rgba(140,90,86,.08); border-color: var(--l-rosewood); }

/* 表单 */
.field { margin: 18px 0; }
label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--l-charcoal); }
input[type="date"], input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; border: var(--hairline); background: rgba(255, 255, 255, .94);
  border-radius: 0; padding: 12px 14px; font-size: 15px; color: var(--l-ink); outline: none;
  font-family: var(--font-sans);
}
input:focus { border-color: var(--l-rosewood); box-shadow: 0 0 0 3px rgba(140,90,86,.08); }
.digit input { border: 0; background: transparent; box-shadow: none; }
.digit input:focus { border: 0; box-shadow: none; }
.hint { color: #a85550; font-size: 13px; min-height: 1.2em; }

/* 数字特质速览 */
.traits-toggle { margin-top: 18px; }
.traits-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none; padding: 6px 0; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--l-rosewood);
  transition: color var(--motion-quiet) var(--ease-quiet);
}
.traits-btn svg { width: 14px; height: 14px; transition: transform var(--motion-quiet) var(--ease-quiet); }
.traits-btn.open svg { transform: rotate(180deg); }
.traits-btn:hover { color: var(--l-ink); }
.traits-panel { margin-top: 14px; }
.traits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-height: 0; overflow: hidden; transition: max-height var(--motion-quiet) var(--ease-quiet);
}
.traits-panel:not([hidden]) .traits-grid { max-height: 1600px; }
.trait {
  background: rgba(247, 243, 236, .88); border: var(--hairline); padding: 14px;
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
}
.trait-art {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: #F7F3EC; border: var(--hairline);
  display: grid; place-items: center;
}
.trait-art .symbol { width: 64px; height: 64px; object-fit: cover; border-radius: 16px; }
.trait-body b { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--l-ink); margin-bottom: 2px; }
.trait-body em { display: block; font-style: normal; font-size: 12px; letter-spacing: .12em; color: var(--l-gold); margin-bottom: 8px; }
.trait-body p { margin: 0 0 4px; font-size: 13px; color: var(--l-charcoal); line-height: 1.6; }
.trait-body p span { color: var(--l-rosewood); margin-right: 6px; }

/* 卡片展开状态 */
.card.traits-open { width: min(1440px, calc(100% - 40px)); }

/* 营销元素：社交证明与价格 */
.social-proof { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.proof-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--l-rosewood); letter-spacing: .04em;
  background: transparent; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-sans);
  transition: transform var(--motion-quiet) var(--ease-quiet), color var(--motion-quiet) var(--ease-quiet);
}
.proof-item svg { width: 16px; height: 16px; }
.proof-item b { font-weight: 600; color: inherit; font-variant-numeric: tabular-nums; }
.like-btn:hover { transform: scale(1.08); }
.like-btn.liked { color: var(--l-gold); }
.like-toggle { display: inline-flex; align-items: center; gap: 8px; }
.like-toggle svg { width: 14px; height: 14px; }
.like-toggle.liked { background: var(--l-ink); color: var(--l-white); border-color: var(--l-ink); }
.like-toggle.liked svg path { fill: currentColor; }
.collab {
  margin-top: 36px; padding: 28px 0 8px; border-top: 1px solid var(--l-sand);
}
.collab h2 { margin-top: 0; }
.collab .note { max-width: 40em; }
.collab .blessing { color: var(--l-rosewood); margin: 0 0 18px; max-width: 40em; }
.collab .field { max-width: 640px; }
.collab input, .collab textarea {
  width: 100%; border: 1px solid var(--l-sand); border-radius: 0;
  background: rgba(255, 255, 255, .96); padding: 12px 14px; font: inherit; color: var(--l-ink);
  outline: none;
}
.collab textarea { min-height: 88px; resize: vertical; }
.collab input::placeholder, .collab textarea::placeholder { color: #6e6558; opacity: 1; }
.collab input:focus, .collab textarea:focus { border-color: var(--l-rosewood); box-shadow: 0 0 0 3px rgba(140,90,86,.08); }
.stage-wrap.long { align-items: start; }
.price-badge { display: inline-flex; align-items: baseline; gap: 8px; margin-left: 6px; }
.price-was { text-decoration: line-through; color: var(--l-grey); font-size: 13px; }
.price-now { color: var(--l-rosewood); font-weight: 600; font-size: 16px; }
.price-off {
  font-size: 11px; color: var(--l-gold); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--l-gold); padding: 2px 6px; margin-left: 4px;
}
.btn-price { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 4px; }
.btn-price .price-now { color: inherit; font-size: inherit; }
.btn-price .price-was { color: rgba(255,255,255,.6); font-size: 11px; }
.btn-price .price-off { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.8); font-size: 10px; padding: 1px 4px; }

/* 按钮：高定黑底与细线 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; border-radius: 0; padding: 0 22px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--l-ink); background: rgba(247, 243, 236, .94); color: var(--l-ink);
  box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .55);
  transition: background var(--motion-quiet) var(--ease-quiet), color var(--motion-quiet) var(--ease-quiet), border-color var(--motion-quiet) var(--ease-quiet), box-shadow var(--motion-quiet) var(--ease-quiet);
}
.btn.primary { background: var(--l-ink); color: var(--l-white); border-color: var(--l-gold); box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .85); }
.btn.primary:hover { background: #241816; box-shadow: inset 0 0 0 1px var(--l-gold); }
.btn.ghost { background: rgba(247, 243, 236, .94); color: var(--l-ink); border: 1px solid var(--l-ink); }
.btn.ghost:hover { background: var(--l-cream); box-shadow: inset 0 0 0 1px var(--l-gold); }
.btn:disabled { opacity: .5; cursor: wait; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* 步骤圆点：细线 */
.steps { display: none; }
#stripeMount { margin-top: 16px; min-height: 280px; }
.step {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--l-sand); color: var(--l-rosewood);
  background: transparent; font-size: 13px; font-weight: 500;
}
.step.on { background: var(--l-ink); color: var(--l-white); border-color: var(--l-ink); }
.step.done { background: var(--l-cream); color: var(--l-taupe); border-color: transparent; }

/* 印章与图标 */
.ornament { width: 72px; height: 72px; margin-bottom: 10px; }
.chips svg { width: 14px; height: 14px; }

/* 计算动画 */
.orbit {
  width: 64px; height: 64px; border-radius: 50%; margin: 28px auto 12px;
  border: 1px solid var(--l-sand); border-top-color: var(--l-rosewood); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.compute { text-align: center; color: var(--l-rosewood); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.pyramid { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; margin: 18px 0; }
.prow { display: flex; gap: 5px; }
.cell {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(247, 243, 236, .96); border: 1px solid var(--l-gold); color: var(--l-ink);
  box-shadow: inset 0 0 0 2px rgba(247, 243, 236, .9), inset 0 0 0 3px rgba(23, 20, 17, .35);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(6px);
}
.cell.show { animation: pop .4s var(--ease-quiet) forwards; }
.cell.tip { background: var(--l-ink); color: var(--l-gold); border-color: var(--l-gold); box-shadow: inset 0 0 0 2px var(--l-ink), inset 0 0 0 3px var(--l-gold); }
@keyframes pop { to { opacity: 1; transform: none; } }
.step-line { min-height: 1.4em; text-align: center; color: var(--l-rosewood); font-variant-numeric: tabular-nums; font-size: 13px; }

/* 数字标签 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chips span {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: var(--l-rosewood); border-radius: 0;
  border: 1px solid rgba(140,90,86,.18);
  padding: 4px 10px; font-size: 12px; font-weight: 500;
}
.layers { margin-top: 8px; }
.layers h2 { margin-top: 22px; }
.layer {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start;
  margin: 0 0 12px; padding: 12px; max-width: 40em;
  background: rgba(247, 243, 236, .72); border: 1px solid rgba(176, 141, 87, .55);
}
.layer img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.layer b { display: block; font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--l-ink); }
.layer em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; letter-spacing: .12em; color: var(--l-gold); }
.layer p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--l-charcoal); }
.layer.main { background: rgba(255, 255, 255, .78); border-color: rgba(176, 141, 87, .9); }
.price { background: rgba(239, 231, 218, .85); border: var(--hairline); border-radius: 0; padding: 12px 14px; color: var(--l-charcoal); font-size: 14px; }

/* 浮层 */
.modal, .drawer-back {
  position: fixed; inset: 0; background: var(--veil-light); display: none; place-items: center; z-index: 20;
}
.modal.open, .drawer-back.open { display: grid; }
.sheet {
  width: min(440px, calc(100% - 28px)); background: var(--l-ivory); border-radius: 0; padding: 28px;
  border: 1px solid rgba(176, 141, 87, .8);
  box-shadow: var(--shadow-elevated), inset 0 0 0 5px rgba(247, 243, 236, .5), inset 0 0 0 6px rgba(23, 20, 17, .4);
}
.drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(380px, 92vw); background: var(--l-ivory);
  padding: 28px 22px; border-right: 1px solid rgba(176, 141, 87, .8);
  box-shadow: inset -5px 0 0 rgba(247, 243, 236, .4), inset -6px 0 0 rgba(23, 20, 17, .35); overflow: auto;
}
.report-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: var(--hairline); }

/* 提示 */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--l-ink); color: var(--l-white); border-radius: 0; padding: 10px 18px; display: none; z-index: 30;
  font-size: 13px; letter-spacing: .08em;
}
.toast.show { display: block; }

/* 报告页 */
.page { width: min(980px, calc(100% - 32px)); margin: 18px auto 48px; }
.report-hero, .block {
  background: rgba(247, 243, 236, .94); border: 1px solid rgba(176, 141, 87, .75);
  border-radius: 0; padding: 28px; margin-bottom: 16px;
  box-shadow: var(--shadow-lift), inset 0 0 0 5px rgba(247, 243, 236, .35), inset 0 0 0 6px rgba(23, 20, 17, .35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.report-hero h1 { margin-top: 0; }
.statline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.statline span { background: rgba(239, 231, 218, .85); border: var(--hairline); border-radius: 0; padding: 8px 12px; font-size: 13px; color: var(--l-taupe); }
.statline b { color: var(--l-ink); font-size: 16px; display: block; }
.grid9 { display: grid; grid-template-columns: repeat(3, 92px); gap: 12px; justify-content: center; margin: 18px 0; }
.gcell {
  height: 92px; border-radius: 0; background: rgba(255, 255, 255, .92); border: var(--hairline);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.gcell strong { font-family: var(--font-serif); font-size: 24px; color: var(--l-ink); z-index: 1; font-weight: 700; }
.gcell em { font-style: normal; font-size: 12px; color: var(--l-grey); z-index: 1; }
.gcell i {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--l-gold); opacity: .5;
  animation: float 3.2s ease-in-out infinite;
}
.gcell.is-empty { background: var(--l-ivory); }
.gcell.is-peak { box-shadow: inset 0 0 0 2px var(--l-gold); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pane { background: rgba(255, 255, 255, .92); border: var(--hairline); border-radius: 0; padding: 16px; }
.pane h3 { margin: 0 0 8px; color: var(--l-ink); font-family: var(--font-serif); font-weight: 600; }
.timeline { display: grid; gap: 12px; }
.phase { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.phase .mark { width: 16px; height: 16px; border-radius: 50%; background: var(--l-gold); margin-top: 4px; box-shadow: 0 0 0 4px var(--l-cream); animation: pulse 2.8s ease-in-out infinite; }
.fine { color: var(--l-charcoal); font-size: 13px; line-height: 1.7; }
.back { color: var(--l-rosewood); text-decoration: none; font-size: 13px; letter-spacing: .1em; }
.wait { text-align: center; padding: 48px 16px; }

@media (max-width: 1080px) {
  h1 { font-size: clamp(26px, 6vw, 32px); }
  .card { width: min(1120px, calc(100% - 24px)); max-height: none; }
  .card.traits-open { width: min(1120px, calc(100% - 24px)); }
  .stage-wrap { align-items: start; padding-top: 16px; }
  .deck, .split { grid-template-columns: 1fr; }
  .deck-copy h1 { max-width: none; }
  .side .btn.primary { width: 100%; }
  .traits-grid { grid-template-columns: 1fr 1fr; }
}
.focus { margin-top: 18px; max-width: 40em; }
.focus-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.focus-grid[hidden], #focusQs[hidden] { display: none; }
.focus-qs { display: grid; gap: 8px; margin-top: 12px; }
.focus-pick, .focus-q {
  width: 100%; cursor: pointer; border-radius: 0;
  border: 1px solid rgba(176, 141, 87, .75);
  background: rgba(247, 243, 236, .82); color: var(--l-ink);
  font-family: var(--font-serif); letter-spacing: 0; text-transform: none;
}
.focus-pick { display: grid; justify-items: center; gap: 6px; min-height: 92px; padding: 10px 6px; }
.focus-pick img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.focus-pick b { font-size: 14px; font-weight: 600; }
.focus-q { padding: 12px 14px; min-height: 44px; font-size: 14px; line-height: 1.55; text-align: left; }
.focus-q.on { background: var(--l-ink); color: var(--l-ivory); border-color: var(--l-gold); }
#focusBack { margin-bottom: 4px; }
@media (max-width: 720px) {
  .traits-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .avatar-hint { display: none; }
  .brand-slogan { display: none; }
  .grid9 { grid-template-columns: repeat(3, 1fr); }
  .cell { width: 28px; height: 28px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card.leave, .card.enter, .orbit, .cell, .gcell i, .phase .mark, .boot svg { animation: none; }
  .card { transform: none; }
  .cell { opacity: 1; transform: none; }
}
@keyframes float { 50% { transform: translateY(-4px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(176,141,87,.18); } }

/* 哥特金线：角饰只点在大面上，正文仍用衬线，方便阅读 */
.card,
.sample-sheet,
.sheet {
  background-image:
    linear-gradient(var(--l-gold), var(--l-gold)), linear-gradient(var(--l-gold), var(--l-gold)),
    linear-gradient(var(--l-gold), var(--l-gold)), linear-gradient(var(--l-gold), var(--l-gold)),
    linear-gradient(var(--l-gold), var(--l-gold)), linear-gradient(var(--l-gold), var(--l-gold)),
    linear-gradient(var(--l-gold), var(--l-gold)), linear-gradient(var(--l-gold), var(--l-gold));
  background-repeat: no-repeat;
  background-size: 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-position:
    10px 10px, 10px 10px,
    right 10px top 10px, right 10px top 10px,
    left 10px bottom 10px, left 10px bottom 10px,
    right 10px bottom 10px, right 10px bottom 10px;
}
.deck-copy h1::after {
  content: "✦";
  display: block;
  margin-top: 10px;
  color: var(--l-gold);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.brand-slogan::before,
.brand-slogan::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 10px;
  background: var(--l-gold);
  vertical-align: middle;
}
.lang-btn, .avatar, .avatar-hint, .lang-menu {
  border-color: rgba(176, 141, 87, .75);
}
.lang-btn, .avatar-hint { font-family: var(--font-display); letter-spacing: .16em; }
.digit { border-color: rgba(176, 141, 87, .7); }
.digit:focus-within, input:focus, .collab input:focus, .collab textarea:focus {
  border-color: var(--l-gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, .22);
}
.digit input:focus { border: 0; box-shadow: none; }
.chips span { border-color: rgba(176, 141, 87, .55); font-family: var(--font-display); letter-spacing: .08em; }
.compute, .price-off, label, .digit span { font-family: var(--font-display); }
.trait { border-color: rgba(176, 141, 87, .45); }
.gcell { border-color: rgba(176, 141, 87, .7); }
.orbit { border-color: rgba(176, 141, 87, .45); border-top-color: var(--l-gold); }
