/* ============================================================
   Hey Tuling · 官网 v3 —— 「技术图纸」风格
   参考：getartcraft.com（暖纸白 / 发丝网格 / 单色 HUD / 超大紧字距）
   品牌色保留图灵深绿，不引入参考站的蓝。

   · 底色暖纸白 #F2F0EA，墨黑 #12100D（强调色同墨黑）
   · 字体两族：Inter（西文）· Alibaba PuHuiTi（中文）· Geist Mono（HUD 标签）
   · 全部方角（radius 0）；分隔一律 1px 发丝线；网格用 gap:1px + 底色透出
   · 中文走自托管 Alibaba PuHuiTi（子集）
   ============================================================ */

/* ── 字体 ─────────────────────────────────────────────────
   统一两族，不再混搭衬线：
   · Inter           —— 西文/数字（可变字重，latin 子集 48KB）
   · Alibaba PuHuiTi —— 中文（官方免费商用，按本站实际用字子集化）
   ============================================================ */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Alibaba PuHuiTi'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/puhuiti-400.woff2') format('woff2');
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF, U+3000-303F;
}
@font-face {
  font-family: 'Alibaba PuHuiTi'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/puhuiti-500.woff2') format('woff2');
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF, U+3000-303F;
}
@font-face {
  font-family: 'Alibaba PuHuiTi'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/puhuiti-700.woff2') format('woff2');
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FF00-FFEF, U+3000-303F;
}

/* ── 设计令牌 ───────────────────────────────────────────── */
:root {
  --bg: #F2F0EA;
  --bg-raised: #FAF8F3;
  --bg-sunken: #E8E4D9;
  --ink: #12100D;
  --ink-strong: #000000;
  --muted: rgba(18, 16, 13, .62);
  --faint: rgba(18, 16, 13, .40);
  --line: rgba(18, 16, 13, .15);
  --line-soft: rgba(18, 16, 13, .08);
  --line-strong: rgba(18, 16, 13, .42);
  /* 强调色改为黑色系（原深绿 #133E31） */
  --accent: #12100D;
  --accent-deep: #000000;
  --accent-soft: rgba(18, 16, 13, .08);
  --invert-bg: #12100D;
  --invert-fg: #F2F0EA;
  --danger: #B3261E;
  --ok: #1D7A46;

  /* 统一两族：西文 Inter，中文阿里巴巴普惠体 */
  --font-display: 'Inter', 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  --shell: 1280px;
  --pad: clamp(18px, 3.2vw, 40px);
  --sec-y: clamp(56px, 8vw, 104px);
  --bar-h: 48px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t: 180ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 纸面：极淡的点阵网格 + 顶部一道暖色雾光。
   点阵只作为质感，对比度压到几乎看不见（0.028），不影响阅读。 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(18, 16, 13, .028) 1px, transparent 0);
  background-size: 4px 4px;
}
body::after {
  content: '';
  position: fixed; z-index: 0; pointer-events: none;
  left: 0; right: 0; top: 0; height: 62vh;
  background:
    radial-gradient(58% 100% at 22% 0%, rgba(18, 16, 13, .05), transparent 68%),
    radial-gradient(46% 82% at 88% 4%, rgba(180, 132, 24, .045), transparent 70%);
}
.page-wrap { position: relative; z-index: 1; }

::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── 排版基元 ───────────────────────────────────────────── */

/* HUD 等宽小标签：11px / 大写 / 宽字距 —— 全站技术感来源 */
.hud {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hud-sm { font-size: 10px; letter-spacing: .18em; }
.hud-lg { font-size: 12px; letter-spacing: .13em; }

/* 强调词：不再用衬线斜体（会和正文打架），改用同族加粗 + 品牌绿。
   视觉上仍然「跳出来」，但字形是统一的。 */
.serif {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.02em;
}

.d-hero {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 7.6vw, 104px);
  line-height: .96;
  letter-spacing: -.045em;
}
.d-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.d-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lead {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

/* ── 外壳：贯穿全页的两条竖向发丝线（参考站签名） ──────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .shell { border-left: 0; border-right: 0; }
}

/* ── 顶栏 ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  /* logo 固定在视口左侧：顶栏铺满宽度，logo 贴左边框；
     不再用 max-width + margin auto 居中（那样窗口越宽 logo 越往右漂移）。 */
  width: 100%; margin: 0;
  height: var(--bar-h);
  display: flex; align-items: stretch;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .topbar-in { border-left: 0; border-right: 0; }
}

.brand {
  display: flex; align-items: center; gap: 9px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  text-decoration: none; white-space: nowrap;
  transition: opacity var(--t);
}
.brand:hover { opacity: .62; }
.brand-logo {
  width: 22px; height: 22px; border-radius: 4px; flex: none;
  object-fit: cover;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600; font-size: 13.5px;
  letter-spacing: -.01em;
}
.brand-cn { color: var(--faint); font-size: 10.5px; letter-spacing: .1em; }

.nav { display: flex; align-items: stretch; min-width: 0; }
.nav a {
  display: flex; align-items: center;
  padding: 0 11px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .13em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--ink); background: var(--line-soft); }

.topbar-right {
  margin-left: auto; display: flex; align-items: stretch; flex: none;
}
.topbar-right > * { border-left: 1px solid var(--line); }

.icon-cell {
  display: flex; align-items: center; justify-content: center;
  width: 46px; color: var(--muted); text-decoration: none;
  transition: background var(--t), color var(--t);
}
.icon-cell:hover { background: var(--invert-bg); color: var(--invert-fg); }
.icon-cell svg { width: 15px; height: 15px; }

/* ── 按钮：方角 + 等宽大写 ─────────────────────────────── */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--btn-h); padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-radius: 0;
  background: none; color: var(--ink);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t) var(--ease);
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--invert-bg); color: var(--invert-fg);
  border-color: var(--invert-bg);
}
.btn-primary:hover:not([disabled]) {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.btn-quiet { border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover:not([disabled]) {
  background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-fg);
}

.btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 12px; }
.btn-block { width: 100%; }

/* 顶栏专用小号 */
.topbar .btn { --btn-h: var(--bar-h); border: 0; border-left: 1px solid var(--line); padding: 0 20px; }

/* 文字链：底线随动 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink); text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t), border-color var(--t), gap var(--t) var(--ease);
}
.link-arrow::after { content: '→'; transition: transform var(--t) var(--ease); }
.link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

.link-quiet {
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .13em; color: var(--muted);
  text-decoration: none; white-space: nowrap;
  transition: color var(--t), background var(--t);
}
.link-quiet:hover { color: var(--ink); background: var(--line-soft); }

/* ── 刻度十字（技术图纸角标） ───────────────────────────── */
.tick {
  position: absolute; width: 11px; height: 11px; pointer-events: none;
}
.tick::before, .tick::after {
  content: ''; position: absolute; background: var(--line-strong);
}
.tick::before { width: 1px; top: 0; bottom: 0; left: 5px; }
.tick::after { height: 1px; left: 0; right: 0; top: 5px; }
.tick-tl { top: -5px; left: -6px; }
.tick-tr { top: -5px; right: -6px; }

/* ── 首屏 ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(34px, 5vh, 56px) var(--pad) clamp(40px, 6vh, 68px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero > * { position: relative; z-index: 2; }

.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 5vh, 52px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted);
}
.hero-eyebrow i {
  width: 5px; height: 5px; background: var(--accent); flex: none;
  border-radius: 50%;
}
.hero-beta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

/* 双栏：左标题+行动，右规格表 —— 标题窄是刻意的（高密度排布），
   右侧用规格表把横向空间填满，避免大片空白。 */
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 980px) {
  .hero-main { grid-template-columns: 1fr; gap: 34px; }
}

.hero-title { max-width: 11em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > i {
  display: block; font-style: normal;
  transform: translateY(104%);
  animation: lineUp .96s var(--ease) forwards;
}
.hero-title .ln:nth-child(2) > i { animation-delay: .1s; }
@keyframes lineUp { to { transform: none; } }

.hero-title .accent { color: var(--accent); }

.hero-kicker {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
}

.hero-sub { max-width: 26em; margin-top: 14px; }

.hero-cta {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; margin-top: 30px;
}

.hero-login {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--muted);
}
.hero-login a {
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.hero-login a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* 右侧规格栏 */
.hero-side { padding-top: 6px; }
.hero-side-label {
  color: var(--faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.hero-spec {
  display: grid; gap: 0;
  border-bottom: 1px solid var(--line);
}
.hero-spec div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hero-spec div:last-child { border-bottom: 0; }
.hero-spec dt { color: var(--muted); }
.hero-spec dd {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14.5px; letter-spacing: -.01em;
  text-align: right;
}
.hero-side-note {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .08em; line-height: 1.7; color: var(--faint);
}

/* 首屏底部横贯刻度 */
.hero-ruler {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0;
  height: 7px; display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none; z-index: 1;
}
.hero-ruler i { width: 1px; height: 6px; background: var(--line); }
.hero-ruler i:nth-child(5n + 1) { height: 11px; background: var(--line-strong); opacity: .45; }

/* ── 区块通用 ───────────────────────────────────────────── */
.sec { position: relative; border-bottom: 1px solid var(--line); }
.sec:last-of-type { border-bottom: 0; }

/* 吸顶区块头：01 / 名称  +  右侧元信息 */
.sec-head {
  position: sticky; top: var(--bar-h); z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 11px var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}
.sec-head-l { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.sec-head-l b { color: var(--ink); font-weight: 500; }
.sec-head-r { color: var(--faint); }
.sec-head .dot { color: var(--line-strong); }

.sec-body { padding: var(--sec-y) var(--pad); }

/* 区块引题：左大标 + 右导语 */
.sec-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 52px);
}
.sec-intro p { color: var(--muted); max-width: 26em; }
.sec-intro .kicker { color: var(--faint); margin-bottom: 14px; }
@media (max-width: 900px) {
  .sec-intro { grid-template-columns: 1fr; align-items: start; }
}

/* 数字编号行（01 02 03） */
.num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }

/* ── 01 样品：对比滑块 ──────────────────────────────────── */
.cmp-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cmp-wrap > * { background: var(--bg); }
@media (max-width: 900px) {
  .cmp-wrap { grid-template-columns: 1fr; }
}

.cmp { width: 100%; min-width: 0; }

.cmp-frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg-sunken);
  overflow: hidden; cursor: ew-resize; touch-action: none; user-select: none;
}
.cmp-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.cmp-a { clip-path: inset(0 0 0 var(--split, 100%)); }

.cmp-bar {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 1px; background: var(--accent); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
.cmp-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 0;
  background: var(--invert-bg); color: var(--invert-fg);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22);
}
.cmp-handle svg { width: 18px; height: 18px; display: block; }

.cmp-tag {
  position: absolute; top: 0; padding: 6px 11px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); pointer-events: none;
}
.tag-l { left: 0; border-left: 0; border-top: 0; }
.tag-r { right: 0; border-right: 0; border-top: 0; background: var(--accent); color: #fff; border-color: var(--accent); }

/* 右栏：说明 + 场景列表 */
.cmp-side {
  display: flex; flex-direction: column;
  border-left: 1px solid transparent;
}
.cmp-side-in { padding: clamp(20px, 2.6vw, 30px); }
.cmp-side .hud { color: var(--faint); }

.cmp-cap {
  margin-top: 14px;
  font-size: 14.5px; line-height: 1.8;
  color: var(--muted);
  min-height: 5.4em;
}
.cmp-cap b {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  letter-spacing: -.015em; color: var(--ink);
}

.cmp-tabs {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.cmp-tab {
  appearance: none; cursor: pointer; font: inherit;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; text-align: left;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .08em; color: var(--muted);
  transition: color var(--t), padding-left var(--t) var(--ease);
}
.cmp-tab::before {
  content: ''; width: 0; height: 1px; background: var(--accent);
  transition: width var(--t) var(--ease); flex: none;
}
.cmp-tab:hover { color: var(--ink); }
.cmp-tab.on { color: var(--ink); padding-left: 2px; }
.cmp-tab.on::before { width: 16px; }
.cmp-tab:last-child { border-bottom: 0; }

.cmp-dots { display: none; }

@media (max-width: 900px) {
  .cmp-side { border-left: 0; border-top: 1px solid var(--line); }
  .cmp-cap { min-height: 0; }
  .cmp-tabs { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .cmp-tab { border-bottom: 0; padding: 10px 0; }
}

/* ── 02 流水线：七格矩阵 ────────────────────────────────── */
.cat-tabs {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-bottom: 0;
  overflow-x: auto; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  appearance: none; cursor: pointer; font: inherit;
  flex: 1 1 0; min-width: 96px;
  padding: 13px 18px;
  border: 0; border-right: 1px solid var(--line);
  background: none;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; color: var(--muted);
  transition: background var(--t), color var(--t);
}
.cat-tab:last-child { border-right: 0; }
.cat-tab:hover { background: var(--line-soft); color: var(--ink); }
.cat-tab.on { background: var(--invert-bg); color: var(--invert-fg); }

/* 窄屏：四格挤进一行，不靠横向滚动（滚动条藏起来了，用户看不见后面还有） */
@media (max-width: 560px) {
  .cat-tab { min-width: 0; padding: 13px 8px; font-size: 10.5px; letter-spacing: .04em; }
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  transition: opacity .22s ease, transform .22s ease;
}
.flow-strip.is-swapping { opacity: .25; transform: translateY(4px); }
@media (max-width: 900px) {
  .flow-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .flow-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bstep {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding: 14px 12px 16px;
  cursor: zoom-in;
  transition: background var(--t);
}
.bstep:hover { background: var(--bg-raised); }
.bstep::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.bstep:hover::before { transform: scaleX(1); }

.bstep-no {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .14em; color: var(--faint);
  margin-bottom: 10px;
}
.bstep-no::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.bstep img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 0;
  transition: transform .4s var(--ease);
}
.bstep:hover img { transform: scale(1.015); }
.bstep-tall img { aspect-ratio: 2 / 3; }

.bstep figcaption {
  margin-top: 10px;
  font-size: 12.5px; line-height: 1.4; color: var(--muted);
  transition: color var(--t);
}
.bstep:hover figcaption { color: var(--ink); }

@media (max-width: 560px) {
  .bstep-tall { grid-column: 1 / -1; }
  .bstep-tall img { aspect-ratio: auto; height: auto; }
}

.flow-cta { margin-top: 28px; }

/* ── 03 流程：三行编号 ──────────────────────────────────── */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 68px minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.step-no {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--accent); padding-top: 6px;
}
.step h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 1.9vw, 24px);
  letter-spacing: -.02em; line-height: 1.35;
}
.step p { font-size: 14.5px; line-height: 1.85; color: var(--muted); max-width: 34em; }
@media (max-width: 760px) {
  .step { grid-template-columns: 46px 1fr; }
  .step p { grid-column: 2; }
}

/* ── 04 交付：四格数字 ──────────────────────────────────── */
.spec {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.spec-item {
  background: var(--bg);
  padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2vw, 24px);
  transition: background var(--t);
}
.spec-item:hover { background: var(--bg-raised); }
.spec-item b {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5vw, 60px);
  line-height: .92; letter-spacing: -.05em;
  color: var(--ink-strong);
}
.spec-item span {
  display: block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.spec-item em {
  display: block; margin-top: 6px; font-style: normal;
  font-size: 12.5px; color: var(--faint); line-height: 1.6;
}
@media (max-width: 760px) {
  .spec { grid-template-columns: 1fr 1fr; }
}

/* ── 05 内测 / 价格 ─────────────────────────────────────── */
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.price-row > * { background: var(--bg); }
@media (max-width: 900px) { .price-row { grid-template-columns: 1fr; } }

.price-list { list-style: none; padding: clamp(20px, 2.6vw, 30px); }
.price-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; color: var(--muted); line-height: 1.7;
}
.price-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-list li::before {
  content: counter(pl, decimal-leading-zero);
  counter-increment: pl;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; color: var(--accent); flex: none;
}
.price-list { counter-reset: pl; }

.price-side { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.price-label { color: var(--faint); }
.price-value {
  margin: 12px 0 6px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1; letter-spacing: -.045em;
}
.price-side .btn { margin-top: 24px; }
.price-note {
  margin-top: 16px; font-size: 12.5px; line-height: 1.85; color: var(--faint);
}

/* ── 06 FAQ ─────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0;
  font-size: 15px; font-weight: 500; line-height: 1.6;
  cursor: pointer; list-style: none;
  transition: color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono); font-size: 15px; color: var(--faint);
  flex: none; transition: color var(--t), transform .25s var(--ease);
}
.faq details[open] summary::after { content: '−'; color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq details p {
  padding: 0 0 20px;
  font-size: 14px; line-height: 1.9; color: var(--muted);
  max-width: 54em;
}

/* ── 07 试用 ────────────────────────────────────────────── */
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.apply-grid > * { background: var(--bg); }
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; } }

.apply-main { padding: clamp(24px, 3.2vw, 40px); }

.apply-steps { list-style: none; counter-reset: s; margin: 26px 0 30px; }
.apply-steps li {
  counter-increment: s; position: relative;
  padding: 11px 0 11px 42px;
  font-size: 14px; color: var(--muted); line-height: 1.7;
  border-bottom: 1px solid var(--line-soft);
}
.apply-steps li:last-child { border-bottom: 0; }
.apply-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--accent);
}

.apply-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.field-input {
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; min-height: 46px;
  transition: border-color var(--t), background var(--t);
}
.field-input::placeholder { color: var(--faint); }
.field-input:focus { outline: none; border-color: var(--accent); background: #fff; }

.apply-msg { min-height: 22px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.apply-msg.ok { color: var(--ok); }
.apply-msg.err { color: var(--danger); }

.apply-alt { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.apply-alt summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 6px;
  min-height: 44px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--muted);
  transition: color var(--t);
}
.apply-alt summary::-webkit-details-marker { display: none; }
.apply-alt summary::before { content: '+ '; color: var(--accent); }
.apply-alt[open] summary::before { content: '− '; }
.apply-alt summary:hover { color: var(--ink); }
.apply-alt-note { margin-top: 12px; font-size: 12.5px; color: var(--faint); line-height: 1.7; }

.apply-result {
  margin-top: 18px; padding: 18px;
  border: 1px solid var(--line); background: var(--bg-raised);
}
.apply-result-title {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 10px;
}
.apply-code-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.apply-code {
  flex: 1; display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em;
  color: var(--accent);
  background: #fff; border: 1px dashed var(--line-strong);
  padding: 11px 12px; word-break: break-all;
}
.apply-result-note {
  font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.75;
}
.apply-result-note a, .apply-login-link {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
.apply-result-note a:hover { border-bottom-color: var(--accent); }

/* 二维码侧栏 */
.qr-panel {
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column;
}
.qr-panel .hud { color: var(--faint); }
.qr-title {
  margin: 12px 0 8px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; letter-spacing: -.02em;
}
.qr-sub { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin-bottom: 22px; }
.qr-panel img {
  width: 100%; max-width: 200px;
  border: 1px solid var(--line);
  background: #fff; padding: 8px;
}
.qr-tip {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; color: var(--faint);
}

/* ── 收尾 CTA 弧线字 ────────────────────────────────────── */
.arc-cta {
  position: relative;
  padding: clamp(48px, 8vw, 96px) var(--pad) clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.arc-stage {
  position: relative;
  height: clamp(76px, 8vw, 118px);
  margin-bottom: clamp(18px, 3vw, 32px);
}
.arc-stage span {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 500; letter-spacing: -.02em; line-height: 1;
  color: var(--ink);
  white-space: pre;
}
.arc-cta-in {
  display: flex; align-items: end; justify-content: space-between;
  gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
}
.arc-cta h2 { max-width: 12em; }

/* ── 页脚 ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer-in { padding: clamp(36px, 5vw, 56px) var(--pad) 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }

.footer .brand {
  border-right: 0; padding: 0; display: inline-flex;
  margin-bottom: 14px;
}
.footer-tag { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.footer-contact { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--faint); }

.footer-h {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.footer-col a {
  display: block; padding: 6px 0;
  font-size: 13.5px; color: var(--muted); text-decoration: none;
  transition: color var(--t), padding-left var(--t) var(--ease);
}
.footer-col a:hover { color: var(--ink); padding-left: 5px; }
.footer-about p { font-size: 13.5px; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }

.letter-head {
  font: inherit;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center;
  min-height: 40px; margin: -10px 0;
  transition: color var(--t);
}
.letter-head:hover { color: var(--accent); }

.letter-btn {
  font: inherit; font-size: 12.5px; cursor: pointer;
  color: var(--ink); background: none;
  border: 1px solid var(--line-strong); border-radius: 0;
  padding: 9px 15px;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.letter-btn:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }

.footer-legal {
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .08em; color: var(--faint);
}
.footer-legal .sep { color: var(--line-strong); }

/* ── 内测徽标 ───────────────────────────────────────────── */
.beta-tag {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 4px 9px; line-height: 1.5;
}

/* ── 右侧刻度尺 ─────────────────────────────────────────── */
.rail {
  position: fixed; right: 0; top: 0; bottom: 0; width: 52px;
  z-index: 25; pointer-events: none; display: none;
  color: var(--ink);
}
@media (min-width: 1180px) { .rail { display: block; } }

.rail-tape {
  position: absolute; right: 8px; top: 12vh; bottom: 12vh; width: 24px;
}
.rail-tick {
  position: absolute; right: 0; height: 1px; width: 5px;
  background: currentColor; opacity: .22;
}
.rail-tick.major { width: 9px; opacity: .38; }
.rail-num {
  position: absolute; right: 14px; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em;
  opacity: .30;
}
.rail-fill {
  position: absolute; right: 0; top: 0; width: 1px;
  background: var(--accent); opacity: .9;
}
.rail-head {
  position: absolute; right: -3px; transform: translate(-100%, -50%);
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 4px; background: var(--accent); color: #fff; white-space: nowrap;
}

.rail-nav {
  position: absolute; right: 14px; top: 12vh; bottom: 12vh;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end; pointer-events: auto;
}
.rail-word {
  position: relative; display: block;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); text-decoration: none;
  padding: 3px 0; white-space: nowrap;
  transition: color var(--t), letter-spacing var(--t) var(--ease);
}
.rail-word:hover { color: var(--ink); }
.rail-word.on { color: var(--ink); letter-spacing: .2em; }
.rail-word.on::before {
  content: ''; position: absolute; right: calc(100% + 6px); top: 50%;
  width: 12px; height: 1px; background: var(--accent);
}

/* ── 图片放大灯箱 ───────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(8px, 2vw, 28px);
  padding: clamp(16px, 3vw, 36px);
  background: rgba(18, 16, 13, .96);
  animation: veilIn .18s ease-out both;
}
.lightbox[hidden] { display: none; }
.lightbox-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox-stage img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border: 1px solid rgba(242, 240, 234, .18);
  background: #fff;
}
.lightbox-cap {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: rgba(242, 240, 234, .8);
}
.lightbox-count { color: rgba(242, 240, 234, .45); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 0;
  border: 1px solid rgba(242, 240, 234, .3);
  background: transparent; color: rgba(242, 240, 234, .9);
  font-size: 14px; line-height: 1; cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.lightbox-close:hover { background: var(--invert-fg); color: var(--invert-bg); }
.lightbox-nav {
  width: 46px; height: 46px; border-radius: 0; cursor: pointer;
  border: 1px solid rgba(242, 240, 234, .3);
  background: transparent; color: rgba(242, 240, 234, .9);
  font-size: 16px;
  transition: background var(--t), color var(--t);
}
.lightbox-nav:hover { background: var(--invert-fg); color: var(--invert-bg); }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .lightbox-stage img { max-height: 70vh; }
}

/* ── 关于我 · 信封弹层（内部独立纸面配色） ─────────────── */
.letter-mask {
  --ink: #1B1813;
  --ink-60: rgba(27,24,19,.62);
  --ink-40: rgba(27,24,19,.42);
  --line: rgba(27,24,19,.14);
  --line-strong: rgba(27,24,19,.30);
  --accent: #12100D;
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.letter-mask[hidden] { display: none; }
.letter-mask::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, rgba(10,12,10,.66), rgba(4,6,5,.92) 78%);
  backdrop-filter: blur(2px);
  animation: veilIn 320ms ease-out both;
}
.letter-mask:not([hidden]) .letter-stage { animation: stageIn .62s var(--ease) both; }
@keyframes stageIn {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.letter-mask.is-closing::before { animation: veilOut 150ms ease-in 110ms both; }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes veilOut { from { opacity: 1; } to { opacity: 0; } }

.letter-stage {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  display: flex; flex-direction: column; align-items: center;
  margin: 0 auto; padding-bottom: clamp(16px, 6vh, 72px);
}
.letter-card {
  position: relative; z-index: 1; width: calc(100% - 28px); margin: 0 14px;
  border: 1px solid rgba(27,24,19,.12); border-radius: 0;
  padding: clamp(30px, 4.5vw, 46px) clamp(28px, 5vw, 48px) clamp(58px, 7vw, 74px);
  background-color: #F7F3E8;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(130% 90% at 50% -12%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 2px 0 2px #E9E2D0,
    0 4px 0 4px #DDD4BE,
    0 26px 60px -12px rgba(0,0,0,.7),
    0 8px 20px rgba(0,0,0,.35);
  animation: letterOutEnv 620ms cubic-bezier(.22,1,.36,1) 180ms both;
}
@keyframes letterOutEnv { from { transform: translateY(150px); } to { transform: none; } }
.letter-mask.is-closing .letter-card { animation: letterBackEnv 190ms cubic-bezier(.22,1,.36,1) both; }
@keyframes letterBackEnv { from { transform: none; opacity: 1; } to { transform: translateY(48px); opacity: 0; } }

.letter-env {
  position: relative; width: 100%;
  height: clamp(250px, 56vw, 330px);
  margin: -100px 0 0;
  transition: margin-top .7s var(--ease);
}
.letter-stage.is-open .letter-env { margin-top: -150px; }
.env-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.env-back  { z-index: 1; filter: drop-shadow(0 22px 40px rgba(0,0,0,.55)); }
.env-front { z-index: 3; }
.env-flap  {
  z-index: 4; transform-origin: 50% 0; transform-box: border-box;
  transition: transform .72s cubic-bezier(.34,1.18,.64,1), z-index 0s linear .36s;
  filter: drop-shadow(0 4px 8px rgba(27,24,19,.12));
}
.env-body, .env-lining, .env-front path, .env-flap path { stroke: rgba(27,24,19,.10); stroke-width: 1; }
.env-lining { opacity: 0; transition: opacity .3s ease .12s; }
.letter-stage.is-open .env-lining { opacity: 1; }
.letter-stage.is-open .env-flap { transform: perspective(1100px) rotateX(180deg); z-index: 0; }

.letter-stamp {
  position: absolute; z-index: 5;
  top: calc(56% - 50px); left: 50%; margin-left: -46px;
  width: 92px; height: 104px; padding: 9px;
  background: #FCFAF1; transform: rotate(-4deg);
  box-shadow: 0 8px 18px rgba(0,0,0,.30), 0 1px 0 rgba(255,255,255,.9) inset;
  display: flex; align-items: center; justify-content: center;
  -webkit-mask:
    radial-gradient(circle 4px at 50% 0, transparent 97%, #000) 0 0/11px 100% repeat-x,
    radial-gradient(circle 4px at 50% 100%, transparent 97%, #000) 0 100%/11px 100% repeat-x,
    radial-gradient(circle 4px at 0 50%, transparent 97%, #000) 0 0/100% 11px repeat-y,
    radial-gradient(circle 4px at 100% 50%, transparent 97%, #000) 100% 0/100% 11px repeat-y;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: opacity .3s ease, transform .5s cubic-bezier(.4,0,.6,1);
}
.letter-stamp img { display: block; width: 100%; height: auto; }
.letter-stage.is-open .letter-stamp {
  opacity: 0; transform: rotate(-4deg) translateY(-16px) scale(.94);
  transition: opacity .26s ease .12s, transform .5s cubic-bezier(.4,0,.6,1);
}
.letter-env-brand {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  color: rgba(60,48,26,.42);
}

.letter-eyebrow, .letter-title, .letter-body p, .letter-sign { animation: riseIn 400ms cubic-bezier(.2,.8,.3,1) both; }
.letter-eyebrow { animation-delay: 560ms; }
.letter-title { animation-delay: 610ms; }
.letter-body p:nth-of-type(1) { animation-delay: 660ms; }
.letter-body p:nth-of-type(2) { animation-delay: 705ms; }
.letter-body p:nth-of-type(3) { animation-delay: 750ms; }
.letter-sign { animation-delay: 800ms; }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.letter-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 0;
  border: 1px solid var(--line); background: rgba(251,247,238,.8); cursor: pointer;
  color: var(--ink-60); font-size: 13px; line-height: 1;
  transition: color .15s, border-color .15s, transform .25s var(--ease);
}
.letter-close:hover { color: var(--ink); border-color: var(--line-strong); }
.letter-eyebrow { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .3em; color: rgba(27,24,19,.5); }
.letter-title {
  margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 3.2vw, 26px); letter-spacing: -.02em;
  color: var(--ink); padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.letter-body p {
  margin: 0 0 13px; font-size: 14.5px; line-height: 1.9; color: var(--ink);
  background-image:
    repeating-linear-gradient(to right, transparent 0 5px, #F7F3E8 5px 10px),
    repeating-linear-gradient(to bottom,
      transparent 0,
      transparent calc(1.9em - 1px),
      rgba(58, 92, 140, .30) calc(1.9em - 1px),
      rgba(58, 92, 140, .30) 1.9em);
}
.letter-sign { margin: 22px 0 0; text-align: right; font-size: 14px; color: var(--ink); line-height: 1.9; }
.letter-sign span { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-40); letter-spacing: .16em; }

.letter-slot { position: relative; z-index: 2; width: 100%; }
.letter-stage.sealed .letter-slot { display: none; }
.letter-stage.is-open .letter-slot { display: block; }
.letter-stage.sealed .letter-env,
.letter-stage.sealed .letter-stamp { cursor: pointer; }
.letter-stage.is-open .letter-card {
  animation: letterRise .92s cubic-bezier(.22,1,.36,1) .52s both;
  will-change: transform, opacity;
}
@keyframes letterRise {
  0%   { opacity: 0; transform: translate3d(0, 160px, 0) rotate(1.1deg) scale(.99); }
  45%  { opacity: 1; }
  76%  { transform: translate3d(0, -8px, 0) rotate(-.28deg) scale(1.003); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
}

/* ── 入场浮现 ───────────────────────────────────────────── */
/* 只有 JS 跑起来（html.js）才隐藏；否则内容必须直接可见，
   绝不能让脚本失败变成白屏。 */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .78s var(--ease), transform .78s var(--ease);
}
.js .reveal.d1 { transition-delay: .07s; }
.js .reveal.d2 { transition-delay: .14s; }
.js .reveal.d3 { transition-delay: .21s; }

/* ── 触屏 / 小屏 ────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { display: none; }
  :root { --bar-h: 52px; }
}
@media (max-width: 620px) {
  .hero-cta { gap: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .topbar .link-quiet { display: none; }
  .arc-cta-in { align-items: start; }
}

/* ── 降级 ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .hero-title .ln > i { transform: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

section[id] { scroll-margin-top: calc(var(--bar-h) + 44px); }

/* Lenis 平滑滚动 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ══════════════════════════════════════════════════════════
   关灯 / 护眼模式（data-theme="dark"）
   与工作台同一套「石墨黑 + 暖白」，状态跨页面共享。
   ══════════════════════════════════════════════════════════ */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #16150F;
  --bg-raised: #1E1C15;
  --bg-sunken: #232118;
  --ink: #EDE9DE;
  --ink-strong: #FFFFFF;
  --muted: rgba(237, 233, 222, .62);
  --faint: rgba(237, 233, 222, .42);
  --line: rgba(237, 233, 222, .15);
  --line-soft: rgba(237, 233, 222, .08);
  --line-strong: rgba(237, 233, 222, .38);
  --accent: #EDE9DE;
  --accent-deep: #FFFFFF;
  --accent-soft: rgba(237, 233, 222, .12);
  --invert-bg: #EDE9DE;
  --invert-fg: #16150F;
  --ok: #5FD39A;
  --danger: #FF7A6B;
}

/* 点阵与雾光在深色下减弱 */
html[data-theme="dark"] body::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(237, 233, 222, .026) 1px, transparent 0);
}
html[data-theme="dark"] body::after {
  background:
    radial-gradient(58% 100% at 22% 0%, rgba(237, 233, 222, .05), transparent 68%),
    radial-gradient(46% 82% at 88% 4%, rgba(224, 180, 92, .05), transparent 70%);
}

/* 写死浅色的表面 */
html[data-theme="dark"] .hero-spec div,
html[data-theme="dark"] .bstep,
html[data-theme="dark"] .spec-item,
html[data-theme="dark"] .cmp-wrap > *,
html[data-theme="dark"] .price-row > *,
html[data-theme="dark"] .apply-grid > *,
html[data-theme="dark"] .field-input,
html[data-theme="dark"] .apply-result,
html[data-theme="dark"] .qr-panel {
  background: var(--bg);
}
html[data-theme="dark"] .bstep:hover,
html[data-theme="dark"] .spec-item:hover { background: var(--bg-raised); }

/* 流水线缩略图保持白底（商品图本身是白底，反色会脏） */
html[data-theme="dark"] .bstep img { background: #fff; }

/* 对比滑块棋盘格 */
html[data-theme="dark"] .cmp-frame { background: var(--bg-sunken); }

/* 对比图标签：深色模式下 --accent 变成浅绿，白字会糊，改用深字 */
html[data-theme="dark"] .tag-r,
html[data-theme="dark"] .compare-tags .compare-tag:last-child {
  background: var(--accent);
  color: #16150F;
  border-color: var(--accent);
}

/* 选中态反色（必须写在 hover 之后，否则被 hover 盖掉） */
html[data-theme="dark"] .cat-tab:hover { background: rgba(237, 233, 222, .07); color: var(--ink); }
html[data-theme="dark"] .cat-tab.on,
html[data-theme="dark"] .cat-tab.on:hover { background: var(--invert-bg); color: var(--invert-fg); }
html[data-theme="dark"] .rail-word.on { color: var(--ink); }

/* 主按钮：深色下用暖白底 + 深字 */
html[data-theme="dark"] .btn-primary {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}
html[data-theme="dark"] .btn-primary:hover:not([disabled]) {
  background: var(--accent);
  border-color: var(--accent);
  color: #16150F;
}

/* 二维码留白底 */
html[data-theme="dark"] .qr-panel img { background: #fff; }

/* 关灯开关（官网）：位于 .topbar-right 组内第一个，
   与下载图标同款 —— 等宽 46px、撑满栏高、悬停反色。 */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 46px;
  align-self: stretch;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent; color: var(--muted);
  cursor: pointer;
  flex: none;
  transition: background var(--t), color var(--t);
}
.theme-toggle:hover { background: var(--invert-bg); color: var(--invert-fg); }
.theme-toggle [data-icon] svg,
.theme-toggle svg { width: 15px; height: 15px; display: block; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

/* 图标基类 */
/* [data-icon] 是容器；按钮内图标有自己的尺寸，不在此列 */
[data-icon] svg { width: 100%; height: 100%; display: block; }
