/* ============================================================
   三生档案 SANSHENG ARCHIVE — base system
   ============================================================ */

:root {
  --paper: #f4efe6;
  --paper-deep: #ece4d6;
  --card: #fffcf6;
  --ink: #1e1b18;
  --ink-2: #6c6257;
  --ink-3: #a2978a;
  --line: #e3d8c7;
  --line-soft: #ede4d7;
  --cinnabar: #a6402f;
  --gold: #b08a4f;
  --indigo: #2f4858;
  --stone: #3c5c63;
  --rouge: #6e2233;
  --moss: #5f6f52;

  --wood: #4c7a5a;
  --fire: #a6402f;
  --earth: #94764a;
  --metal: #7d848a;
  --water: #2f4858;

  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", "Cascadia Mono", Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(70, 50, 30, .04), 0 8px 24px rgba(70, 50, 30, .06);
  --shadow-md: 0 2px 6px rgba(70, 50, 30, .05), 0 18px 48px rgba(70, 50, 30, .10);
  --shadow-lg: 0 4px 10px rgba(70, 50, 30, .06), 0 32px 80px rgba(70, 50, 30, .16);

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: rgba(166, 64, 47, .16); }

.app { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* ---------- type helpers ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.kicker-red { color: var(--cinnabar); }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.tiny { font-size: 12px; line-height: 1.7; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}

/* ---------- rules ---------- */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #f7f2e8;
  box-shadow: 0 10px 26px rgba(30, 27, 24, .18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 27, 24, .22); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: rgba(255, 252, 246, .4);
}
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.btn-cinnabar { background: var(--cinnabar); color: #fff7ee; }
.btn-cinnabar:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(166, 64, 47, .22); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 12.5px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow, .textlink:hover .arrow { transform: translateX(4px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--cinnabar);
  letter-spacing: .05em;
  border-bottom: 1px solid rgba(166, 64, 47, .28);
  padding-bottom: 2px;
  transition: border-color .3s, color .3s;
}
.textlink:hover { border-color: var(--cinnabar); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, .78);
  border-bottom: 1px solid rgba(227, 216, 199, .8);
  transition: background .3s;
}
.site-head-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
}
.brand-cn {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .16em;
}
.brand-en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .08em;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--cinnabar);
  transition: right .35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a:hover, .nav a.active { color: var(--ink); }
.head-right { display: flex; align-items: center; gap: 18px; }
.head-code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: 54px 0 46px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .brand-cn { font-size: 22px; letter-spacing: .2em; }
.foot-note { margin-top: 14px; max-width: 34ch; font-size: 12.5px; line-height: 1.9; color: var(--ink-3); }
.foot-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-col a, .foot-col p { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.sec-title { font-size: clamp(24px, 3vw, 32px); letter-spacing: .04em; }
.sec-sub { margin-top: 10px; font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.sec-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cinnabar);
  margin-bottom: 10px;
}

/* ---------- generic card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, .6);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip-red { border-color: rgba(166, 64, 47, .28); color: var(--cinnabar); background: rgba(166, 64, 47, .045); }
.chip-solid { background: var(--ink); color: #f6f0e5; border-color: var(--ink); }

/* ---------- seal ---------- */
.seal {
  --seal-color: var(--cinnabar);
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 2px solid var(--seal-color);
  border-radius: 3px;
  color: var(--seal-color);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  transform: rotate(-4deg);
  opacity: .92;
  letter-spacing: 0;
  position: relative;
}
.seal::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: .5px solid var(--seal-color);
  border-radius: 2px;
  opacity: .45;
}
.seal span { display: block; }
.seal.seal-2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HOME
   ============================================================ */

.hero {
  position: relative;
  padding: 74px 0 58px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -14%;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(176, 138, 79, .13), rgba(176, 138, 79, 0) 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 20px 0 0;
}
.hero-title em {
  font-style: normal;
  color: var(--cinnabar);
  position: relative;
  white-space: nowrap;
}
.hero-title .brush {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -8px;
  width: 104%;
  height: 12px;
  opacity: .55;
}
.hero-sub {
  margin-top: 26px;
  max-width: 30em;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-2);
}
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 46px;
  display: flex;
  gap: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}
.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-stat span { font-size: 11px; color: var(--ink-3); letter-spacing: .12em; }

/* hero dossier composition */
.dossier-stage {
  position: relative;
  height: 540px;
  perspective: 1400px;
}
.dossier {
  position: absolute;
  inset: 20px 8px 20px 8px;
  background: linear-gradient(158deg, #fbf6ec 0%, #f3ead9 62%, #e9ddc8 100%);
  border: 1px solid rgba(160, 136, 100, .35);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.4deg) rotateY(-7deg);
  transform-style: preserve-3d;
  overflow: visible;
}
.dossier::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 34px;
  background: linear-gradient(90deg, rgba(160, 136, 100, .18), rgba(160, 136, 100, 0));
}
.dossier-inner { position: absolute; inset: 34px 30px 26px 56px; display: flex; flex-direction: column; }
.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dossier-no { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: #8c7a5f; }
.dossier-title { margin-top: 26px; font-family: var(--serif); font-size: 38px; letter-spacing: .1em; }
.dossier-line { margin-top: 6px; font-size: 11px; letter-spacing: .3em; color: #8c7a5f; }
.dossier-ring { margin: 22px auto 0; width: 230px; height: 230px; }
.dossier-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.dossier-stamp {
  position: absolute;
  right: 26px;
  bottom: 76px;
  width: 86px; height: 86px;
  border: 3px solid rgba(166, 64, 47, .78);
  border-radius: 3px;
  color: rgba(166, 64, 47, .82);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .08em;
  transform: rotate(7deg);
  opacity: .9;
  line-height: 1.25;
  text-align: center;
}
.dossier-stamp::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(166, 64, 47, .5); }
.dossier-tab {
  position: absolute;
  top: 196px;
  right: -18px;
  width: 44px;
  height: 132px;
  background: #a6402f;
  border-radius: 0 4px 4px 0;
  color: #f7ede0;
  writing-mode: vertical-rl;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .3em;
  box-shadow: 6px 0 18px rgba(120, 40, 28, .18);
}
.dossier-float {
  position: absolute;
  left: -34px;
  bottom: 118px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  transform: rotate(1.6deg);
}
.dossier-float .k { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-3); }
.dossier-float .v { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; margin-top: 3px; }
.dossier-thread {
  position: absolute;
  right: 6px; top: -10px;
  width: 120px; height: 170px;
  z-index: 3;
  opacity: .8;
}

/* archive shelf */
.shelf { padding: 66px 0 10px; }
.shelf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.file-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 32px 26px 36px;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  overflow: hidden;
}
.file-card::before {
  content: "";
  position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 3px;
  background: var(--accent, var(--ink));
  border-radius: 0 3px 3px 0;
  opacity: .85;
  transition: top .5s var(--ease), bottom .5s var(--ease);
}
.file-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.file-card:hover::before { top: 16px; bottom: 16px; }
.file-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.file-index { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--ink-3); }
.file-state { font-size: 10px; letter-spacing: .18em; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--moss); display: inline-block; }
.dot.soon { background: var(--ink-3); }
.file-title {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: .07em;
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.file-title .en { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--ink-3); }
.file-hook { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); letter-spacing: .03em; }
.file-desc { margin-top: 14px; font-size: 13px; line-height: 1.85; color: var(--ink-3); }
.file-meta { margin-top: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.file-price { font-family: var(--serif); font-size: 18px; letter-spacing: .02em; }
.file-price small { font-family: var(--sans); font-size: 11px; color: var(--ink-3); margin-left: 5px; letter-spacing: .08em; }
.file-go { font-size: 12.5px; color: var(--cinnabar); letter-spacing: .1em; display: flex; align-items: center; gap: 7px; }
.file-card.sealed .file-title, .file-card.sealed .file-hook { opacity: .55; }
.file-card.sealed::after {
  content: attr(data-seal);
  position: absolute;
  right: 18px; bottom: 58px;
  padding: 5px 10px;
  border: 1px dashed rgba(166, 64, 47, .35);
  color: rgba(166, 64, 47, .6);
  font-size: 10px;
  letter-spacing: .22em;
  transform: rotate(-5deg);
  border-radius: 2px;
}

/* puzzle */
.puzzle { padding: 84px 0 20px; }
.puzzle-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.puzzle-ring { position: relative; }
.puzzle-copy h3 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: .04em; margin-top: 12px; }
.puzzle-copy p { margin-top: 16px; font-size: 14px; line-height: 2; color: var(--ink-2); max-width: 30em; }
.puzzle-list { margin-top: 26px; display: flex; flex-direction: column; gap: 0; }
.puzzle-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-2);
}
.puzzle-item:last-child { border-bottom: 1px solid var(--line-soft); }
.puzzle-item .n { font-family: var(--mono); font-size: 10px; color: var(--ink-3); width: 30px; letter-spacing: .12em; }
.puzzle-item .s { margin-left: auto; font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.puzzle-item.on .s { color: var(--moss); }
.puzzle-item.soon .s { color: var(--ink-3); }

/* demo report */
.demo { padding: 88px 0 30px; }
.demo-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.demo-copy p { margin-top: 16px; font-size: 14px; line-height: 2.05; color: var(--ink-2); max-width: 30em; }
.demo-copy ul { margin: 24px 0 0; padding: 0; list-style: none; }
.demo-copy li {
  display: flex; gap: 12px; font-size: 13px; color: var(--ink-2);
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.demo-copy li b { font-family: var(--mono); font-size: 10px; color: var(--cinnabar); letter-spacing: .1em; padding-top: 3px; }
.poster-frame {
  background: #1b2430;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 30px 70px rgba(40, 30, 20, .26), 0 2px 4px rgba(40, 30, 20, .1);
  transform: rotate(-1.3deg);
  overflow: hidden;
  max-width: 380px;
  margin-left: auto;
}
.poster-frame svg { width: 100%; height: auto; }

/* steps */
.steps { padding: 82px 0 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.step .k { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--cinnabar); }
.step h4 { font-size: 18px; letter-spacing: .06em; margin-top: 14px; }
.step p { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-3); }

/* classics */
.classics { padding: 86px 0 20px; }
.classic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.classic {
  background: linear-gradient(180deg, rgba(255, 252, 246, .9), rgba(250, 244, 234, .7));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.classic-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.85;
  letter-spacing: .08em;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid rgba(166, 64, 47, .45);
}
.classic-body { margin-top: 22px; }
.classic-body .src { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--cinnabar); }
.classic-body h4 { font-size: 17px; letter-spacing: .05em; margin-top: 8px; }
.classic-body p { margin-top: 10px; font-size: 12.5px; line-height: 1.95; color: var(--ink-3); }

/* faq */
.faq { padding: 84px 0 10px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14.5px;
  letter-spacing: .03em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 15px;
  transition: transform .35s var(--ease), color .3s;
}
.faq-item[open] summary .plus { transform: rotate(45deg); color: var(--cinnabar); }
.faq-a { padding: 0 6px 24px; font-size: 13.5px; line-height: 2; color: var(--ink-2); max-width: 62em; }

/* entry overlay */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 27, 24, .42);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.gate.open { opacity: 1; pointer-events: auto; }
.gate-panel {
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(30, 20, 10, .3);
  padding: 34px 34px 28px;
  transform: translateY(14px) scale(.99);
  transition: transform .45s var(--ease);
}
.gate.open .gate-panel { transform: none; }
.gate-title { font-size: 24px; letter-spacing: .05em; margin-top: 10px; }
.gate-sub { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }

/* form primitives */
.field { margin-top: 18px; }
.field-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-3);
  margin-bottom: 9px;
  text-transform: uppercase;
}
.field-label .hint { letter-spacing: .04em; text-transform: none; font-size: 11px; color: var(--ink-3); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt {
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, .5);
  font-size: 12.5px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .25s var(--ease);
}
.seg-opt:hover { border-color: var(--ink-3); }
.seg-opt.on { background: var(--ink); border-color: var(--ink); color: #f6f0e5; }
.date-row { display: flex; gap: 8px; }
.select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a2978a' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.select:focus { border-color: var(--ink-3); }
.input {
  height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 0 13px;
  font-size: 13px;
  outline: none;
}
.input:focus { border-color: var(--ink-3); }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.form-note { margin-top: 14px; font-size: 11px; color: var(--ink-3); line-height: 1.7; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(30, 27, 24, .94);
  color: #f6f0e5;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 11px 20px;
  border-radius: 999px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease);
  white-space: nowrap;
  max-width: 86vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .puzzle-grid, .demo-grid { grid-template-columns: 1fr; gap: 44px; }
  .dossier-stage { height: 470px; max-width: 520px; margin: 0 auto; width: 100%; }
  .shelf-grid, .classic-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .poster-frame { margin: 0 auto; transform: rotate(-.8deg); }
  .nav { display: none; }
  .hero { padding-top: 44px; }
  .demo-copy p { max-width: none; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  .hero-title { font-size: clamp(38px, 11vw, 54px); }
  .hero-stats { gap: 22px; }
  .hero-stat strong { font-size: 19px; }
  .file-card { padding: 26px 22px 22px 26px; }
  .file-title { font-size: 23px; }
  .dossier-stage { height: 400px; }
  .dossier-title { font-size: 30px; }
  .dossier-ring { width: 180px; height: 180px; }
  .classic { padding: 24px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .gate-panel { padding: 26px 22px 22px; }
  .brand-en { display: none; }
}

/* 移动端补充 */
.textlink { white-space: nowrap; }
@media (max-width: 560px) {
  .head-code { display: none; }
  .site-head-inner { height: 60px; gap: 12px; }
  .brand-cn { font-size: 17px; letter-spacing: .12em; }
  .head-right .btn { height: 34px; padding: 0 15px; font-size: 12px; }
  .dossier-stage { height: 432px; }
  .dossier-inner { inset: 26px 20px 20px 42px; }
  .dossier-ring { width: 152px; height: 152px; margin-top: 12px; }
  .dossier-title { font-size: 27px; margin-top: 14px; }
  .dossier-float { display: none; }
  .dossier-foot > div:last-child { display: none; }
  .dossier-tab { top: 150px; height: 110px; width: 38px; font-size: 11px; }
  .sec-head { gap: 14px; }
  .sec-sub { font-size: 12px; }
  .sec-head .textlink { font-size: 12px; }
}
@media (max-width: 560px) {
  .dossier-stamp { display: none; }
}
