/* ==========================================================================
   main.css —— 基础层 + 组件层
   设计方向：杂志编辑感 + 墨绿纸感
   · 展示字：中文宋体系（衬线）做标题，黑体做正文，形成编辑感对照
   · 主色：深墨绿；强调色：WhatsApp 亮绿，只用于关键动作与关键词标记
   · 记忆点：首屏右侧「扫码取景框」——四角括号 + 扫描光束
   ========================================================================== */

/* ---------- 1. 重置与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background: var(--leaf);
  color: var(--leaf-ink);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* 跳转链接：键盘用户第一下 Tab 就出现 */
.skip-link {
  position: fixed;
  top: var(--s3);
  left: var(--s3);
  z-index: 200;
  padding: var(--s2) var(--s4);
  background: var(--forest);
  color: var(--paper-2);
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- 2. 氛围层：渐变网格 + 颗粒 ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(52rem 38rem at 8% -12%, var(--mesh-a), transparent 62%),
    radial-gradient(46rem 34rem at 100% 2%, var(--mesh-b), transparent 58%),
    radial-gradient(40rem 30rem at 50% 108%, var(--mesh-a), transparent 62%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="night"] .grain { mix-blend-mode: screen; }

/* ---------- 3. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section {
  position: relative;
  padding-block: var(--s9);
}

.section--tight { padding-block: var(--s8); }

/* 区块标题：编号 + 标题 + 引言，靠左，带规则线 */
.section-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s5) var(--s7);
  align-items: start;
  margin-bottom: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-2);
}

/* 内层 div 用 display:contents 展开，让标题与引言分列两栏 */
.section-head > div { display: contents; }

.section-head__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding-top: 0.55em;
  white-space: nowrap;
}

.section-head h2 {
  grid-column: 2;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  max-width: 20em;
}

.section-head__desc {
  grid-column: 3;
  margin-top: 0;
  padding-top: 0.35em;
  max-width: 34em;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.section-head--single { grid-template-columns: 1fr; }
.section-head--single h2,
.section-head--single .section-head__desc { grid-column: 1; }
.section-head--single .section-head__desc { margin-top: var(--s4); }

/* ---------- 4. 文字工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-2);
}

/* 关键词标记：不是荧光笔乱涂，是纸上一道印刷绿 */
.mark {
  background-image: linear-gradient(transparent 62%, rgba(37, 211, 102, 0.42) 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-inline: 0.06em;
}
[data-theme="night"] .mark {
  background-image: linear-gradient(transparent 62%, rgba(37, 211, 102, 0.28) 62%);
}

/* 仅供屏幕阅读器 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.btn svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--leaf);
  color: var(--leaf-ink);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper-2);
}
[data-theme="night"] .btn-ghost:hover { color: var(--paper); }

/* 深色 CTA 区里的幽灵按钮 */
.btn-ghost--light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.btn-ghost--light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
[data-theme="night"] .btn-ghost--light { border-color: var(--line-2); color: var(--ink); }
[data-theme="night"] .btn-ghost--light:hover { background: var(--forest-soft); color: var(--ink); }

/* 文本链：下划线从左侧扫过 */
.link-sweep {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--forest);
}
[data-theme="night"] .link-sweep { color: var(--forest-2); }
.link-sweep::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.link-sweep:hover::after { transform: scaleX(1); }

/* ---------- 6. 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
  min-height: 44px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px 12px 12px 3px;
  background: var(--forest);
  display: grid;
  place-items: center;
  transition: border-radius var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.brand:hover .brand__mark { border-radius: 12px 3px 12px 12px; transform: rotate(-4deg); }
.brand__mark svg { width: 20px; height: 20px; color: var(--paper-2); }
[data-theme="night"] .brand__mark { background: var(--leaf); }
[data-theme="night"] .brand__mark svg { color: var(--leaf-ink); }
[data-theme="night"] .brand__mark svg circle { fill: var(--leaf); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__text span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: var(--s5); }

.nav a {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
[data-theme="night"] .nav a::after { background: var(--leaf); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-cta { flex-shrink: 0; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- 7. 跑马灯 ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper-3);
  overflow: hidden;
  padding-block: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: var(--s7);
  animation: ticker-scroll 44s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--ink-3);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--leaf);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. 首屏 ---------- */
.hero { padding-block: var(--s7) var(--s8); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s7);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 1.16;
  letter-spacing: 0;
  margin-block: var(--s5) var(--s5);
}

.hero__title .line { display: block; }
.hero__title .line--indent { padding-left: 0.72em; }

.hero__lead {
  max-width: 42ch;
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}

/* 扫码取景框：首屏记忆点 */
.scan-card {
  position: relative;
  padding: var(--s6);
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
}

.scan-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s4);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.qr-frame {
  position: relative;
  aspect-ratio: 1;
  max-width: 248px;
  margin-inline: auto;
  padding: var(--s4);
  background: var(--paper-2);
  color: var(--forest);
  display: grid;
  place-items: center;
}
[data-theme="night"] .qr-frame { color: var(--leaf); }

/* 四角取景括号 */
.qr-frame .corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--forest);
}
[data-theme="night"] .qr-frame .corner { border-color: var(--leaf); }
.corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* 扫描光束 */
.qr-frame::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  top: 10%;
  background: linear-gradient(90deg, transparent, var(--leaf), transparent);
  opacity: 0.9;
  animation: scan 3.6s var(--ease-out) infinite;
}
@keyframes scan {
  0%, 100% { top: 8%; opacity: 0; }
  12% { opacity: 0.95; }
  50% { top: 92%; opacity: 0.95; }
  62% { opacity: 0; }
}

.qr-frame svg { width: 100%; height: auto; }

.scan-card__hint {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px dashed var(--line-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-align: center;
  line-height: 1.6;
}

.scan-card__foot {
  margin-top: var(--s3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- 9. 编号条目列表（替代卡片堆砌） ---------- */
.index-list { border-top: 1px solid var(--line); }

.index-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s5) var(--s7);
  padding-block: var(--s6);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-base) var(--ease-out);
}
.index-list li:hover { background: var(--forest-soft); }

.index-list__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease-out);
}
.index-list li:hover .index-list__no { color: var(--leaf); }

.index-list h3 {
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.index-list p {
  color: var(--ink-2);
  font-size: var(--fs-base);
  line-height: 1.8;
}

/* ---------- 10. 步骤流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--s6);
  border-top: 2px solid var(--forest);
}
[data-theme="night"] .step { border-top-color: var(--leaf); }

.step__no {
  position: absolute;
  top: calc(-1 * var(--s5));
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--forest);
}
[data-theme="night"] .step__no { color: var(--leaf); }

.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s3); }
.step p { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- 11. 特性网格（异质单元，不是等大卡片） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature {
  grid-column: span 2;
  position: relative;
  padding: var(--s6) var(--s5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.feature--wide { grid-column: span 3; }
.feature--full { grid-column: span 6; }

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}

.feature__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s5);
  color: var(--forest);
}
.feature__icon svg { width: 40px; height: 40px; }
[data-theme="night"] .feature__icon { color: var(--leaf); }

.feature h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s3);
}
.feature p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* ---------- 12. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 560px;
}

thead th {
  text-align: left;
  padding: var(--s4) var(--s5);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-3);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}

tbody td {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--forest-soft); }
tbody td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- 13. FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--s4);
  align-items: baseline;
  padding-block: var(--s5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.5;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--forest); }
[data-theme="night"] .faq summary:hover { color: var(--leaf); }

.faq summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  color: var(--leaf);
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary::before { content: "\2212"; }

.faq__body {
  padding: 0 0 var(--s6) 44px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.85;
  max-width: 68ch;
}
.faq__body p { margin-bottom: var(--s3); }

/* ---------- 14. 提示条 ---------- */
.notice {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: var(--s5);
  margin-block: var(--s6);
  padding: var(--s5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.notice__bar { background: var(--leaf); border-radius: var(--r-pill); }
.notice strong { color: var(--ink); }

/* ---------- 15. CTA 区 ---------- */
.cta {
  position: relative;
  padding: var(--s8) var(--s7);
  background: var(--forest);
  color: var(--paper-2);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s7);
  align-items: center;
}
[data-theme="night"] .cta { background: var(--paper-3); color: var(--ink); }

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(30rem 20rem at 88% 10%, rgba(37, 211, 102, 0.28), transparent 62%),
    radial-gradient(24rem 18rem at 0% 100%, rgba(37, 211, 102, 0.14), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }

.cta h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s3);
}
.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  max-width: 46ch;
}
[data-theme="night"] .cta p { color: var(--ink-2); }

.cta__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---------- 16. 内页头 ---------- */
.page-hero {
  padding-block: var(--s7) var(--s8);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: var(--s5);
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

.page-hero h1 {
  font-size: var(--fs-3xl);
  max-width: 34ch;
  line-height: 1.14;
}

.page-hero__lead {
  margin-top: var(--s5);
  max-width: 34em;
  font-size: var(--fs-lg);
  color: var(--ink-2);
  line-height: 1.7;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ---------- 17. 正文排版（长文页） ---------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--s7);
  margin-bottom: var(--s4);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--s6);
  margin-bottom: var(--s3);
}
.prose p { color: var(--ink-2); margin-bottom: var(--s4); }
.prose ul { margin-bottom: var(--s5); }
.prose ul li {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.85;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
}
.prose strong { color: var(--ink); }

/* 正文内联链接 */
.prose a:not(.link-sweep) {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
.prose a:not(.link-sweep):hover { text-decoration-color: currentColor; }
[data-theme="night"] .prose a:not(.link-sweep) { color: var(--forest-2); }

/* ---------- 18. 双栏内容 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--s8);
  align-items: start;
}

.sticky-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--s5));
  padding: var(--s5);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.sticky-aside h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}

.toc { font-size: var(--fs-sm); }
.toc li { border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a {
  display: flex;
  gap: var(--s3);
  padding-block: var(--s3);
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.toc a:hover { color: var(--forest); padding-left: var(--s2); }
[data-theme="night"] .toc a:hover { color: var(--leaf); }
.toc__no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ---------- 19. 页脚 ---------- */
.site-footer {
  margin-top: var(--s9);
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: var(--s8) var(--s6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s7);
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--footer-line);
}

.footer-brand .brand__text strong { color: var(--footer-ink); }
.footer-brand .brand__text span { color: var(--footer-ink-2); }
.footer-brand .brand__mark { background: var(--leaf); }
.footer-brand .brand__mark svg { color: var(--leaf-ink); }

.footer-brand p {
  margin-top: var(--s4);
  color: var(--footer-ink-2);
  font-size: var(--fs-sm);
  max-width: 34ch;
  line-height: 1.75;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-ink-2);
  margin-bottom: var(--s4);
}

.footer-col li { margin-bottom: var(--s3); }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--footer-ink);
  opacity: 0.82;
  transition: opacity var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { opacity: 1; padding-left: var(--s1); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s5);
  font-size: var(--fs-xs);
  color: var(--footer-ink-2);
}
.footer-bottom p { margin: 0; }
.footer-bottom .mono { letter-spacing: 0.08em; }

/* ---------- 20. 滚动入场 ---------- */
/* 只在 JS 可用时才隐藏，脚本失效时内容照常可见 */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 480ms var(--ease-out),
    transform 480ms var(--ease-out);
}
.js .reveal.in:nth-child(2) { transition-delay: 70ms; }
.js .reveal.in:nth-child(3) { transition-delay: 140ms; }
.js .reveal.in:nth-child(4) { transition-delay: 210ms; }

/* 首屏编排：三组错峰 */
.hero__copy > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.hero__copy > *:nth-child(1) { animation-delay: 40ms; }
.hero__copy > *:nth-child(2) { animation-delay: 110ms; }
.hero__copy > *:nth-child(3) { animation-delay: 180ms; }
.hero__copy > *:nth-child(4) { animation-delay: 250ms; }
.hero__copy > *:nth-child(5) { animation-delay: 320ms; }

.scan-card { animation: rise 700ms var(--ease-out) 260ms both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__grid { gap: var(--s7); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .feature--wide, .feature--full { grid-column: span 3; }
  .feature { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .js .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: var(--s4) var(--s5) var(--s5);
    background: var(--paper-2);
    border-bottom: 1px solid var(--line-2);
    box-shadow: var(--shadow-2);
  }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { padding-block: var(--s4); font-size: var(--fs-base); }

  .nav-toggle { display: grid; }
  .header-cta { display: none; }

  .hero__grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero__title .line--indent { padding-left: 0; }
  .scan-card { max-width: 380px; margin-inline: auto; }

  .split { grid-template-columns: 1fr; gap: var(--s6); }
  .sticky-aside { position: static; }

  .steps { grid-template-columns: 1fr; gap: var(--s7); }
  .index-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .index-list li > p { grid-column: 2; }

  .section-head { grid-template-columns: 1fr; gap: var(--s3); }
  .section-head > div { display: block; }
  .section-head h2, .section-head__desc { grid-column: 1; }
  .section-head h2 { max-width: none; }
  .section-head__desc { margin-top: var(--s4); padding-top: 0; max-width: none; }
  .section-head__no { padding-top: 0; }

  .cta {
    grid-template-columns: 1fr;
    padding: var(--s7) var(--s5);
    gap: var(--s5);
  }

  .section { padding-block: var(--s8); }
}

@media (max-width: 640px) {
  :root { --fs-4xl: 2.35rem; }

  .wrap { padding-inline: var(--s4); }
  .feature, .feature--wide, .feature--full { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--s4) var(--s5); }
  .hero__meta dd { font-size: var(--fs-base); }
  .brand__text span { display: none; }
  .qr-frame { max-width: 220px; }
  .faq__body { padding-left: 0; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; }
}

/* ---------- 22. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .reveal { opacity: 1; transform: none; }
  .hero__copy > *, .scan-card { animation: none; }
  .ticker__track { animation: none; }
  .qr-frame::after { display: none; }
}

/* ---------- 23. 打印 ---------- */
@media print {
  .site-header, .ticker, .cta, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .atmosphere, .grain { display: none; }
}
