/* ============================================================
   PRISMLY · 跨境战略研究工作台 — 营销站点
   设计语言沿用应用本体：暖纸底 × 深棕黑 × 类别色 × 衬线大标题。
   编辑期刊气质：mono eyebrow、细分隔线、编号区块、克制动效。
   ============================================================ */

:root {
  /* 浅色暖调 */
  --bg: #F3F0E8;
  --bg-deep: #ECE8DD;
  --card: #FDFCF7;
  --card-hover: #FFFFFF;
  --ink: #1C1913;
  --ink-2: #4A4438;
  --ink-3: #6E675C;
  --ink-4: #9A927F;
  --line: #E3DECF;
  --line-soft: #EDE9DC;

  /* 深色（门户 / 页脚） */
  --dark: #1B1512;
  --dark-2: #241C16;
  --dark-3: #2E241B;
  --dark-line: #3A2F24;
  --dark-text: #EDE6D8;
  --dark-text2: #B4A892;
  --dark-text3: #8A7D68;

  /* 类别色 */
  --c-purple: #6D5BD0;
  --c-red: #C2543A;
  --c-green: #2E8B6E;
  --c-gold: #C9962E;
  --c-teal: #2E7D74;
  --c-blue: #2A5AB8;
  --c-magenta: #8B5DA0;
  --c-sky: #5AADE0;
  --c-orange: #D47830;

  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --r-card: 18px;
  --r-chip: 999px;
  --shadow: 0 1px 2px rgba(28,25,19,.04), 0 8px 24px rgba(28,25,19,.06);
  --shadow-lg: 0 2px 6px rgba(28,25,19,.05), 0 16px 48px rgba(28,25,19,.10);
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(109,91,208,.18); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #CFC8B4; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }

/* ── 顶栏 ─────────────────────────────────────────────── */
.topbar {
  height: 62px; display: flex; align-items: center; padding: 0 32px;
  gap: 14px; border-bottom: 1px solid var(--line);
  background: rgba(243,240,232,.88); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner { max-width: var(--wrap); width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; }
.brand .sub { font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-left: 2px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topbar nav a { font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }
.topbar nav a[aria-current="page"] { font-weight: 600; }
.topbar .cta {
  background: var(--ink); color: #F3F0E8; padding: 8px 18px; border-radius: var(--r-chip);
  font-size: 13.5px; font-weight: 500; transition: opacity .15s;
}
.topbar .cta:hover { opacity: .85; color: #F3F0E8; }
.burger { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ── 通用文字部件 ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: var(--ink-4); text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 9px; vertical-align: 1px; }
h1 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
h2.section-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
.lead { font-size: 16.5px; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

/* ── 区块骨架 ─────────────────────────────────────────── */
section.band { padding: 88px 0; }
section.band + section.band { padding-top: 0; }
.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }
.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 44px; }
.sec-num { font-family: var(--mono); font-size: 12px; color: var(--ink-4); letter-spacing: .15em; white-space: nowrap; }
.sec-head p { color: var(--ink-2); max-width: 560px; font-size: 15px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 340px at 82% -10%, rgba(109,91,208,.09), transparent 70%),
    radial-gradient(560px 300px at 6% 4%, rgba(201,150,46,.08), transparent 70%);
}
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.28; margin-bottom: 24px; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--c-purple); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-chip); font-size: 15px; font-weight: 500;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #F3F0E8; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); background: var(--card); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-4); }
.btn-dark-text { color: var(--dark-text); }

/* 统计条 */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat-strip .cell { background: var(--card); padding: 26px 28px; }
.stat-strip .num { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.2; }
.stat-strip .num small { font-size: 17px; color: var(--ink-3); font-family: var(--sans); font-weight: 400; margin-left: 2px; }
.stat-strip .lab { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ── 研究启动器复刻（composer） ───────────────────────── */
.composer {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); padding: 26px 28px 20px;
}
.composer .q {
  font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink);
  border-left: 3px solid var(--c-purple); padding-left: 18px; margin-bottom: 20px;
}
.composer .q .cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--c-purple); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-chip); padding: 6px 14px; font-size: 13px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.on { background: rgba(109,91,208,.10); border-color: rgba(109,91,208,.35); color: var(--ink); }
.composer .go {
  margin-left: auto; background: var(--ink); color: #F3F0E8; border-radius: var(--r-chip);
  padding: 9px 20px; font-size: 13.5px; font-weight: 500;
}

/* ── 卡片网格 ─────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 30px 30px 28px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 14px 0 10px; }
.card p { font-size: 14px; color: var(--ink-2); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 19px;
}
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px;
}

/* ── 步骤（How it works） ─────────────────────────────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 30px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-4);
}
.step h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--ink-2); }
.step .meta { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: .06em; }

/* ── 深色带（门户母题） ───────────────────────────────── */
.dark-band {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark-3) 100%);
  color: var(--dark-text); border-radius: 24px; padding: 64px 60px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.dark-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 300px at 88% 0%, rgba(109,91,208,.16), transparent 70%);
}
.dark-band .eyebrow { color: var(--dark-text3); }
.dark-band h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.dark-band p { color: var(--dark-text2); font-size: 15px; max-width: 640px; }
.dark-band .card { background: var(--dark-2); border-color: var(--dark-line); box-shadow: none; }
.dark-band .card h3 { color: var(--dark-text); }
.dark-band .card p { color: var(--dark-text2); }
.dark-band .tag { color: var(--dark-text3); }

/* 门户预览 */
.portal {
  margin-top: 40px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--dark-line); box-shadow: 0 24px 64px rgba(20,14,8,.4);
}
.portal-hero {
  background: linear-gradient(150deg, #1C1611 0%, #2A1F18 100%);
  color: #EDE6D8; padding: 44px 48px;
}
.portal-hero .eyebrow { color: #8A7D68; margin-bottom: 12px; }
.portal-hero h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.portal-hero .sub { color: #B4A892; font-size: 13.5px; }
.portal-stats { display: flex; gap: 44px; margin-top: 26px; }
.portal-stats .num { font-size: 28px; font-weight: 600; font-family: var(--serif); }
.portal-stats .lab { font-size: 12px; color: #8A7D68; }
.portal-body { background: var(--card); padding: 30px 48px 34px; }
.portal-line { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.portal-line:last-child { border-bottom: none; }
.portal-line .sq { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.portal-line .t { font-weight: 600; font-size: 14.5px; }
.portal-line .d { font-size: 12.5px; color: var(--ink-3); }
.portal-line .badge { margin-left: auto; flex: none; }
.badge {
  display: inline-block; font-size: 11px; padding: 3px 11px; border-radius: var(--r-chip); font-weight: 500;
}
.badge.ok { background: rgba(46,139,110,.12); color: var(--c-green); }
.badge.run { background: rgba(109,91,208,.12); color: var(--c-purple); }

/* ── 场景/方向（研究体系） ────────────────────────────── */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scene {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 18px 20px; display: flex; gap: 13px; align-items: flex-start;
  transition: transform .15s, box-shadow .15s;
}
.scene:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.scene .dot { width: 11px; height: 11px; border-radius: 4px; flex: none; margin-top: 6px; }
.scene .t { font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.scene .d { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.group-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-4);
  text-transform: uppercase; margin: 30px 0 14px;
}
.group-label:first-child { margin-top: 0; }

/* ── 深度阶梯 ─────────────────────────────────────────── */
.effort-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.effort-table th { font-size: 12.5px; font-weight: 600; text-align: left; color: var(--ink-3); padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.effort-table td { padding: 17px 22px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; vertical-align: top; }
.effort-table tr:last-child td { border-bottom: none; }
.effort-table .name { font-weight: 600; font-family: var(--serif); font-size: 16px; white-space: nowrap; }
.effort-table .eta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ── 信任规则 / 结算 ──────────────────────────────────── */
.trust-card { border-top: 3px solid var(--c-green); }
.trust-card .rule-no { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: .18em; }
.trust-card h3 { margin-top: 10px; }
.check-list { list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 30px; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 9px; color: var(--c-green);
  font-weight: 700; font-size: 14px;
}

/* ── 定价卡 ───────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 34px 34px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan.featured { border: 1.5px solid rgba(109,91,208,.5); box-shadow: var(--shadow-lg); }
.plan .badge-float {
  position: absolute; top: -13px; left: 30px; background: var(--c-purple); color: #fff;
  font-size: 12px; padding: 4px 14px; border-radius: var(--r-chip); font-weight: 500;
}
.plan h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.plan .tagline { font-size: 13.5px; color: var(--ink-3); margin: 6px 0 18px; min-height: 42px; }
.plan .price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.plan .price { font-family: var(--serif); font-size: 40px; font-weight: 600; }
.plan .price small { font-size: 15px; color: var(--ink-3); font-family: var(--sans); font-weight: 400; }
.plan .list-price { color: var(--ink-4); text-decoration: line-through; font-size: 16px; }
.plan .unit { font-size: 12.5px; color: var(--ink-4); margin-bottom: 14px; }
.plan .seats { font-size: 13px; color: var(--ink-2); background: var(--bg-deep); border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; }
.plan .credits { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.plan .credits strong { font-family: var(--serif); font-size: 16px; }
.plan ul { list-style: none; margin-bottom: 24px; flex: 1; }
.plan ul li { position: relative; padding: 6px 0 6px 26px; font-size: 13.5px; color: var(--ink-2); }
.plan ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--c-green); font-weight: 700; }
.plan .btn { justify-content: center; }
.plan .highlight-block { background: rgba(201,150,46,.08); border: 1px solid rgba(201,150,46,.3); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.plan .highlight-block strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 13.5px; }

/* 价格构成表 */
.breakdown { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.breakdown .bd-head { padding: 20px 28px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.breakdown .bd-head .t { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.breakdown .bd-head .total { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.breakdown .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 28px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.breakdown .row:last-of-type { border-bottom: none; }
.breakdown .row .lab strong { display: block; }
.breakdown .row .lab span { color: var(--ink-3); font-size: 12.5px; }
.breakdown .row .amt { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.breakdown .bd-note { padding: 14px 28px 20px; font-size: 12.5px; color: var(--ink-3); background: var(--bg-deep); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 4px; position: relative;
  font-weight: 600; font-size: 15.5px; font-family: var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 18px; color: var(--ink-4); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 40px 22px 4px; color: var(--ink-2); font-size: 14.5px; }

/* ── 页脚 ─────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 280px at 50% 0%, rgba(109,91,208,.10), transparent 70%);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--ink-2); margin-bottom: 32px; position: relative; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; position: relative; }

footer.site {
  background: var(--dark); color: var(--dark-text2); margin-top: 40px;
  padding: 64px 0 36px; font-size: 13.5px;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
footer.site .brand { color: var(--dark-text); }
footer.site .brand img { background: rgba(255,255,255,.92); }
footer.site .desc { margin-top: 14px; max-width: 300px; color: var(--dark-text3); font-size: 13px; line-height: 1.7; }
footer.site h4 { color: var(--dark-text); font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
footer.site a { display: block; padding: 4px 0; color: var(--dark-text2); transition: color .15s; }
footer.site a:hover { color: var(--dark-text); }
footer.site .legal { border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dark-text3); font-size: 12.5px; }

/* ── 法律页面 ─────────────────────────────────────────── */
.legal-page { padding: 72px 0 96px; }
.legal-page h1 { font-size: 34px; margin-bottom: 10px; }
.legal-page .updated { font-family: var(--mono); font-size: 12px; color: var(--ink-4); letter-spacing: .08em; margin-bottom: 44px; }
.legal-page h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-2); font-size: 14.5px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin: 10px 0 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); }
.legal-page .toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 20px 26px; margin-bottom: 36px; box-shadow: var(--shadow); }
.legal-page .toc .t { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-4); text-transform: uppercase; margin-bottom: 10px; }
.legal-page .toc a { display: inline-block; margin-right: 18px; font-size: 13.5px; color: var(--ink-2); }
.legal-page .toc a:hover { color: var(--ink); }

/* ── 页面头（内页 hero 短版） ─────────────────────────── */
.page-hero { padding: 76px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 280px at 78% -12%, rgba(109,91,208,.08), transparent 70%);
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.3; margin-bottom: 18px; max-width: 760px; position: relative; }
.page-hero .lead { position: relative; }

/* ── 滚动浮现 ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .composer .q .cursor { animation: none; }
}

/* ── 转场玻璃层（移植自 app 的 route-veil，MPA 版） ────── */
/* 时序契约：入向由各页 <head> 内联脚本在首帧绘制前立起（html.veil），
   app.js 在 DOM 就绪后按「最短展示 320ms」揭幕（.veil-out → 180ms 退场）；
   出向由 app.js 在站内链接点击时立起，盖住旧页冻结的瞬间。 */
#site-veil {
  position: fixed; inset: 0; z-index: 600;
  display: grid; place-items: center;
  background: rgba(243,240,232,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: veil-fade .15s ease-out;
  transition: opacity .18s ease-out;
}
#site-veil.veil-out { opacity: 0; }
@keyframes veil-fade { from { opacity: 0; } to { opacity: 1; } }
.site-veil-box {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 13.5px;
}
.site-veil-spin {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); border-top-color: var(--ink-3);
  animation: veil-spin .8s linear infinite;
}
@keyframes veil-spin { to { transform: rotate(360deg); } }
/* 前庭安全：减少动态偏好下不做旋转与淡入淡出，veil 仍照常出现/消失。 */
@media (prefers-reduced-motion: reduce) {
  #site-veil { animation: none; transition: none; }
  .site-veil-spin { animation: none; }
}

/* ── 响应式 ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps, .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .dark-band { padding: 44px 32px; }
  .portal-hero, .portal-body { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .topbar { padding: 0 20px; }
  .topbar nav { display: none; }
  .burger { display: block; }
  .mobile-nav {
    display: none; position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 20px 22px; flex-direction: column; gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 6px; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav .cta { background: var(--ink); color: #F3F0E8; text-align: center; border-radius: var(--r-chip); margin-top: 10px; border-bottom: none; }
  .grid-3, .grid-4, .grid-2, .steps, .scene-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  section.band { padding: 60px 0; }
  .hero { padding: 60px 0 48px; }
  .sec-head { flex-direction: column; gap: 8px; margin-bottom: 30px; }
  .composer { padding: 20px 18px 16px; }
  .composer .go { margin-left: 0; width: 100%; text-align: center; margin-top: 12px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  .legal-page { padding: 52px 0 72px; }
}
