/*
 * ZouFengBio V2.0.0 · Swiss Bio-Editorial（瑞士精密实验室 × 温暖记录纸）
 * 设计系统规范：
 *   - 浅色（默认 · 温暖实验记录纸）：--bg-canvas #f7f6f2 / --bg-surface #ffffff / --bg-subtle #efede7
 *   - 深色（共聚焦暗场 · Confocal Obsidian）：--bg-canvas #0d0e0d / --bg-surface #151716 / --bg-subtle #1c1f1d
 *   - 唯一高辨识度主强调色：GFP 实验深翡翠绿（浅色 #166534 / 深色 #34d374）
 *   - 校准状态色：--sem-warn（开发中） / --sem-danger（终止信号、错态）
 *   - 零外部字体与第三方库，严格 4px/8px 网格与 prefers-reduced-motion 降级
 */
:root {
  /* 1. 配色 Token（浅色 · 温暖实验记录纸） */
  --bg-canvas: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-subtle: #efede7;
  --bg-inset: #e5e2d8;
  --bg-field: #efede7;
  --surface-solid: #ffffff;

  --ink-1: #161614;
  --ink-2: #4d4d48;
  --ink-3: #6c6b64;

  --line: rgba(22, 22, 20, .10);
  --line-strong: rgba(22, 22, 20, .20);
  --grid-line: rgba(22, 22, 20, .036);
  --topo-color: #2f2f2b;
  --helix-opacity: .38;
  --helix-opacity-hi: .54;
  --noise-opacity: .022;

  /* 唯一品牌主强调色：GFP 深翡翠绿 */
  --brand-accent: #166534;
  --brand-accent-hover: #14532d;
  --brand-accent-soft: rgba(22, 101, 52, .09);
  --brand-on-accent: #ffffff;

  /* 校准辅助链接与生物读数信号色（非大面积渐变） */
  --accent-interactive: #1d4ed8;
  --accent-interactive-soft: rgba(29, 78, 216, .09);
  --sem-warn: #a16207;
  --sem-warn-soft: rgba(161, 98, 7, .10);
  --sem-danger: #b91c1c;
  --sem-danger-soft: rgba(185, 28, 28, .09);

  /* 克制物理表面阴影与聚焦环 */
  --surface-nav: color-mix(in srgb, var(--bg-canvas) 90%, transparent);
  --shadow-card: 0 1px 2px rgba(22, 22, 20, .04), 0 8px 24px -18px rgba(22, 22, 20, .10);
  --shadow-hover: 0 2px 6px rgba(22, 22, 20, .06), 0 14px 32px -18px rgba(22, 22, 20, .14);
  --focus-ring: 0 0 0 3px rgba(22, 101, 52, .24);

  /* 缩略图与精密仪器暗色终端屏 Token */
  --thumb-bg: #efede7;
  --thumb-surface: #ffffff;
  --thumb-line: rgba(22, 22, 20, .10);
  --thumb-bar: rgba(22, 22, 20, .20);

  --surface-console: #141715;
  --surface-console-cell: #1c201d;
  --screen-bg: #141715;
  --screen-cell: #1d211e;
  --screen-line: rgba(243, 242, 238, .12);
  --screen-text: #f3f2ee;
  --screen-muted: #b8b7af;
  --screen-dim: #8a8981;
  --screen-green: #34d374;
  --screen-blue: #60a5fa;
  --screen-cyan: #38bdf8;
  --screen-amber: #fbbf24;
  --screen-red: #fb7185;

  /* 2. 排版阶梯 Token（Type Scale & Reading Measure） */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
  --text-hero: clamp(2.125rem, 4.6vw, 3.375rem);
  --leading-tight: 1.18;
  --leading-body: 1.7;
  --para-gap: 1.2em;
  --measure: 62ch;

  /* 3. 4px / 8px 网格间距系统 Token */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --sp-9: 88px;

  /* 4. 统一圆角与容器宽度 Token */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --wrap: 1120px;

  /* 5. 动效曲线 Token */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 260ms;
  --dur-slow: 520ms;

  /* 语义别名兼容 */
  --bg: var(--bg-canvas);
  --bg-2: var(--bg-subtle);
  --text: var(--ink-1);
  --muted: var(--ink-2);
  --dim: var(--ink-3);
  --accent: var(--accent-interactive);
  --accent-hover: #1e40af;
  --accent-soft: var(--accent-interactive-soft);
  --mint: var(--brand-accent);
  --mint-soft: var(--brand-accent-soft);
  --cyan: #0891b2;
  --mcherry: var(--sem-danger);
  --mcherry-soft: var(--sem-danger-soft);
  --amber: var(--sem-warn);
  --amber-soft: var(--sem-warn-soft);
  --space-1: var(--sp-1);
  --space-2: var(--sp-2);
  --space-3: var(--sp-3);
  --space-4: var(--sp-4);
  --space-5: var(--sp-5);
  --space-6: var(--sp-6);
  --space-7: var(--sp-8);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
  --pill: var(--r-pill);
}

/* 深色模式：Confocal Obsidian（跟随系统或手动切换） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-canvas: #0d0e0d;
    --bg-surface: #151716;
    --bg-subtle: #1c1f1d;
    --bg-inset: #252926;
    --bg-field: #1c1f1d;
    --surface-solid: #151716;

    --ink-1: #f3f2ee;
    --ink-2: #b4b3ab;
    --ink-3: #8a8981;

    --line: rgba(243, 242, 238, .11);
    --line-strong: rgba(243, 242, 238, .22);
    --grid-line: rgba(243, 242, 238, .038);
    --topo-color: #c2c1b8;
    --helix-opacity: .42;
    --helix-opacity-hi: .62;
    --noise-opacity: .028;

    --brand-accent: #34d374;
    --brand-accent-hover: #4ade80;
    --brand-accent-soft: rgba(52, 211, 116, .14);
    --brand-on-accent: #09130c;

    --accent-interactive: #60a5fa;
    --accent-interactive-soft: rgba(96, 165, 250, .14);
    --accent-hover: #93c5fd;
    --sem-warn: #f59e0b;
    --sem-warn-soft: rgba(245, 158, 11, .15);
    --sem-danger: #f87171;
    --sem-danger-soft: rgba(248, 113, 113, .15);

    --surface-nav: color-mix(in srgb, var(--bg-canvas) 90%, transparent);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .32), 0 12px 28px -18px rgba(0, 0, 0, .65);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, .40), 0 16px 36px -18px rgba(0, 0, 0, .75);
    --focus-ring: 0 0 0 3px rgba(52, 211, 116, .28);

    --thumb-bg: #111312;
    --thumb-surface: #1b1e1c;
    --thumb-line: rgba(243, 242, 238, .10);
    --thumb-bar: rgba(243, 242, 238, .22);

    --surface-console: #090a09;
    --surface-console-cell: #121513;
    --screen-bg: #090a09;
    --screen-cell: #121513;
  }
}

:root[data-theme="dark"] {
  --bg-canvas: #0d0e0d;
  --bg-surface: #151716;
  --bg-subtle: #1c1f1d;
  --bg-inset: #252926;
  --bg-field: #1c1f1d;
  --surface-solid: #151716;

  --ink-1: #f3f2ee;
  --ink-2: #b4b3ab;
  --ink-3: #8a8981;

  --line: rgba(243, 242, 238, .11);
  --line-strong: rgba(243, 242, 238, .22);
  --grid-line: rgba(243, 242, 238, .038);
  --topo-color: #c2c1b8;
  --helix-opacity: .42;
  --helix-opacity-hi: .62;
  --noise-opacity: .028;

  --brand-accent: #34d374;
  --brand-accent-hover: #4ade80;
  --brand-accent-soft: rgba(52, 211, 116, .14);
  --brand-on-accent: #09130c;

  --accent-interactive: #60a5fa;
  --accent-interactive-soft: rgba(96, 165, 250, .14);
  --accent-hover: #93c5fd;
  --sem-warn: #f59e0b;
  --sem-warn-soft: rgba(245, 158, 11, .15);
  --sem-danger: #f87171;
  --sem-danger-soft: rgba(248, 113, 113, .15);

  --surface-nav: color-mix(in srgb, var(--bg-canvas) 90%, transparent);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .32), 0 12px 28px -18px rgba(0, 0, 0, .65);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, .40), 0 16px 36px -18px rgba(0, 0, 0, .75);
  --focus-ring: 0 0 0 3px rgba(52, 211, 116, .28);

  --thumb-bg: #111312;
  --thumb-surface: #1b1e1c;
  --thumb-line: rgba(243, 242, 238, .10);
  --thumb-bar: rgba(243, 242, 238, .22);

  --surface-console: #090a09;
  --surface-console-cell: #121513;
  --screen-bg: #090a09;
  --screen-cell: #121513;
}

/* ---------- 基础重置与排版系统 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink-1);
  font: var(--text-base)/var(--leading-body) var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
body.nav-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: var(--leading-tight); letter-spacing: -.022em; color: var(--ink-1); }
p { max-width: var(--measure); }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.narrow { max-width: 780px; }
.muted { color: var(--ink-2); }
.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;
}
::selection { background: var(--brand-accent-soft); color: var(--ink-1); }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }

.skip {
  position: absolute; left: -999px; top: var(--sp-2); z-index: 100;
  background: var(--brand-accent); color: var(--brand-on-accent);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip:focus { left: var(--sp-2); }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; border-radius: var(--r-xs); }

.ico { width: 15px; height: 15px; flex: none; display: inline-block; vertical-align: -2px; }
.ico--lg { width: 20px; height: 20px; }
.ico--ext { width: 13px; height: 13px; opacity: .76; transition: transform var(--dur-fast) var(--ease-out); }

/* ---------- 实验记录纸毫米网格与克制矢量底纹 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-topo {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none;
  color: var(--topo-color);
  opacity: .85;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--noise-opacity);
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* 链接下划线生长 */
.u-link { position: relative; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); }
.u-link:hover .ico--ext { transform: translate(2px, -2px); opacity: 1; }

/* 滚动渐显（遵循 prefers-reduced-motion） */
html.js-reveal .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
html.js-reveal .reveal .phylo__node {
  opacity: 0; transform: translateX(-8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
html.js-reveal .reveal.is-visible .phylo__node { opacity: 1; transform: none; }
html.js-reveal .reveal.is-visible .phylo__node:nth-child(1) { transition-delay: .04s; }
html.js-reveal .reveal.is-visible .phylo__node:nth-child(2) { transition-delay: .12s; }
html.js-reveal .reveal.is-visible .phylo__node:nth-child(3) { transition-delay: .20s; }
html.js-reveal .reveal.is-visible .phylo__node:nth-child(4) { transition-delay: .28s; }

/* ---------- 顶部瑞士精密标尺导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface-nav);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__backdrop { display: none; }
.nav__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-weight: 700; font-size: var(--text-base); letter-spacing: -.015em; text-decoration: none;
  min-height: 44px;
}
.brand__mark {
  width: 40px; height: auto; flex: none;
}
:root[data-theme="dark"] .brand__mark { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark { filter: brightness(0) invert(1); }
}
.nav__menu { position: relative; display: flex; gap: var(--sp-1); align-items: center; }
.nav__indicator {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: var(--r-pill);
  background: var(--bg-subtle); border: 1px solid var(--line-strong);
  pointer-events: none; opacity: 0; z-index: 0;
  transition: left var(--dur-med) var(--ease-out), width var(--dur-med) var(--ease-out), opacity .18s ease;
}
.nav__menu a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px var(--sp-3); border-radius: var(--r-pill);
  color: var(--ink-2); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  transition: color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}
.nav__menu a:hover { color: var(--ink-1); background: var(--bg-subtle); }
.nav__menu a:active { transform: scale(.98); }
.nav__menu a[aria-current="page"] {
  color: var(--ink-1); font-weight: 600;
  background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.nav__menu.has-indicator a:hover,
.nav__menu.has-indicator a[aria-current="page"] {
  background: transparent; box-shadow: none;
}
.nav__ctrls { display: inline-flex; align-items: center; gap: var(--sp-2); }
.nav__theme {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 var(--sp-3); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--bg-surface); color: var(--ink-1);
  font: 600 var(--text-xs)/1 var(--mono); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}
.nav__theme:hover { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--brand-accent-soft); }
.nav__theme:active { transform: scale(.97); }
.nav__theme .ico--sun { display: none; }
.nav__theme[aria-pressed="true"] .ico--sun { display: inline-block; }
.nav__theme[aria-pressed="true"] .ico--moon { display: none; }
.nav__toggle { display: none; }

/* ---------- 首屏 Hero + B-DNA 双螺旋 + 物理弹弓 ---------- */
.hero {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-7);
  overflow-x: clip;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.18fr 1fr; gap: var(--sp-7); align-items: center;
}
.hero__marquee {
  position: absolute; left: 0; right: 0; bottom: var(--sp-2); z-index: 0; pointer-events: none;
  overflow: hidden; white-space: nowrap; user-select: none;
  font-size: var(--text-xs); letter-spacing: 5px; color: var(--ink-3); opacity: .26;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.hero__marquee-track { display: inline-flex; width: max-content; animation: seq-marquee 48s linear infinite; }
@keyframes seq-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero__text > *, .hero__side > * { animation: rise-in .45s var(--ease-out) both; }
.hero__text > :nth-child(2) { animation-delay: .04s; }
.hero__text > :nth-child(3) { animation-delay: .08s; }
.hero__text > :nth-child(4) { animation-delay: .12s; }
@keyframes rise-in { from { transform: translateY(8px); } to { transform: none; } }

.hero__helix {
  position: absolute; right: max(-56px, calc(50% - 710px)); top: 50%;
  width: 390px; height: min(680px, 96%);
  transform: translateY(-50%) rotate(9deg);
  pointer-events: none; z-index: 0; overflow: hidden;
  color: var(--ink-1);
  opacity: var(--helix-opacity);
  mask-image: radial-gradient(ellipse 76% 84% at 62% 50%, #000 32%, rgba(0, 0, 0, .5) 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 76% 84% at 62% 50%, #000 32%, rgba(0, 0, 0, .5) 68%, transparent 100%);
  transition: opacity var(--dur-med) ease;
}
.hero.is-helix-active .hero__helix { opacity: var(--helix-opacity-hi); }
.hero__helix svg { width: 100%; height: 100%; display: block; }
.bp-link1, .bp-link2 { stroke-width: 1.25; stroke-opacity: .72; stroke-linecap: round; }
.bp-ring1, .bp-ring2 { stroke-width: 1.15; stroke-linejoin: round; }
.bp-sug1, .bp-sug2 { stroke-width: .95; stroke-linejoin: round; }
.bp-h { stroke: currentColor; stroke-opacity: .56; stroke-width: 1.05; stroke-dasharray: 2 2.4; stroke-linecap: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; color: var(--ink-1);
  padding: 6px var(--sp-3); border-radius: var(--r-pill);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.pulse-dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--brand-accent); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand-accent-soft); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.hero__title { margin-top: var(--sp-5); font-size: var(--text-hero); font-weight: 700; letter-spacing: -.03em; }
.hl {
  color: var(--brand-accent);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
  text-decoration-color: color-mix(in srgb, var(--brand-accent) 42%, transparent);
}
.hero__lead { margin-top: var(--sp-4); font-size: var(--text-lg); color: var(--ink-2); max-width: var(--measure); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__actions--center { justify-content: center; }
.hero__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-2);
}
.hero__link:hover { color: var(--brand-accent); }

/* 按钮体系（唯一品牌主色 CTA + 清晰线框次按钮） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  flex-shrink: 0; white-space: nowrap; min-height: 44px; height: 46px; padding: 0 var(--sp-5);
  border-radius: var(--r-sm); font-weight: 600; font-size: var(--text-sm);
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: var(--focus-ring); }
.btn--primary {
  background: var(--brand-accent); color: var(--brand-on-accent); border: 1px solid var(--brand-accent);
  box-shadow: 0 2px 6px rgba(22, 101, 52, .18);
}
.btn--primary:hover { background: var(--brand-accent-hover); border-color: var(--brand-accent-hover); }
.btn--ghost {
  background: var(--bg-surface); color: var(--ink-1); border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand-accent); color: var(--brand-accent); background: var(--brand-accent-soft); }
.btn--sm { min-height: 36px; height: 38px; padding: 0 var(--sp-3); font-size: var(--text-xs); border-radius: var(--r-xs); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-copied {
  color: var(--brand-accent); background: var(--brand-accent-soft); border-color: var(--brand-accent);
}
.btn.is-active {
  background: var(--brand-accent); color: var(--brand-on-accent); border-color: var(--brand-accent);
}

/* ---------- Hero 右侧精密 status.log + 物理弹弓底座 ---------- */
.hero__side { display: flex; flex-direction: column; gap: var(--sp-4); position: relative; z-index: 2; }
.console {
  background: var(--bg-surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .38s var(--ease-out), border-color .22s, box-shadow .26s;
}
.console.is-hit {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--brand-accent-soft), var(--shadow-hover);
}
.console__bar {
  display: flex; align-items: center; gap: 7px; padding: var(--sp-3) var(--sp-4);
  background: var(--bg-subtle); border-bottom: 1px solid var(--line);
}
.console__bar span { width: 9px; height: 9px; border-radius: 50%; }
.console__bar span:first-child { background: #dc2626; opacity: .78; }
.console__bar span:nth-child(2) { background: #d97706; opacity: .78; }
.console__bar span:nth-child(3) { background: #16a34a; opacity: .82; }
.console__bar b { margin-left: auto; font-weight: 600; font-size: var(--text-xs); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.console__cursor { display: inline-block; width: 6px; height: 12px; border-radius: 1px; background: var(--brand-accent); animation: blink 1.15s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0; } }
.console__body { padding: var(--sp-2) var(--sp-4) var(--sp-3); font-size: var(--text-sm); }
.console__body > div { display: grid; grid-template-columns: 5.5em 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.console__body > div:last-child { border-bottom: 0; }
.console__body dt { color: var(--ink-3); font-family: var(--font); font-weight: 500; }
.console__body dd { color: var(--ink-1); font-family: var(--font); }
.console__body .tag { margin-left: 6px; }

/* 校准标签徽章 */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 var(--text-xs)/1 var(--font); font-style: normal;
  padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; vertical-align: 1px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--live { color: var(--brand-accent); background: var(--brand-accent-soft); }
.tag--dev { color: var(--sem-warn); background: var(--sem-warn-soft); }
.tag--accent { color: var(--sem-danger); background: var(--sem-danger-soft); }
.tag--muted { color: var(--ink-2); background: var(--bg-subtle); border: 1px solid var(--line); }

/* GFP 物理弹弓底座 */
.sling-dock {
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4) var(--sp-4);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.sling-dock__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.sling-dock__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sling-dock__title { font-size: var(--text-sm); font-weight: 650; color: var(--ink-1); }
.sling-dock__stat { font-size: var(--text-xs); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sling-dock__controls { display: inline-flex; align-items: center; gap: var(--sp-2); flex: none; }
.sling-mode {
  display: inline-flex; padding: 2px; border-radius: var(--r-xs);
  background: var(--bg-subtle); border: 1px solid var(--line);
}
.sling-mode__btn {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  min-height: 28px; padding: 4px var(--sp-3); border-radius: 4px; font: 600 var(--text-xs)/1 var(--font);
  transition: color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}
.sling-mode__btn:hover { color: var(--ink-1); }
.sling-mode__btn:active { transform: scale(.96); }
.sling-mode__btn.is-active {
  color: var(--ink-1); background: var(--bg-surface); box-shadow: 0 1px 2px rgba(22, 22, 20, .08);
}
.sling-reset {
  border: 1px solid var(--line-strong); background: var(--bg-surface); color: var(--ink-2); cursor: pointer;
  min-height: 32px; padding: 4px var(--sp-3); border-radius: var(--r-xs); font: 600 var(--text-xs)/1 var(--font);
  transition: color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}
.sling-reset:hover { color: var(--brand-accent); border-color: var(--brand-accent); background: var(--brand-accent-soft); }
.sling-reset:active { transform: scale(.96); }
.sling-dock__well {
  position: relative; margin-top: var(--sp-3); height: 94px; border-radius: var(--r-sm);
  background: radial-gradient(circle at 50% 18%, var(--brand-accent-soft), transparent 68%), var(--bg-subtle);
  border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: var(--sp-3) var(--sp-3);
}
.sling-anchor {
  width: 24px; height: 24px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: var(--bg-surface);
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.sling-anchor:hover { transform: scale(1.1); border-color: var(--brand-accent); }
.sling-anchor__pin { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--brand-accent); }
.sling-dock__hint {
  position: absolute; right: var(--sp-3); bottom: var(--sp-2);
  font-size: 11px; letter-spacing: 1.4px; color: var(--ink-3); user-select: none; pointer-events: none;
}

/* 物理弹弓舞台层 */
.sling-layer { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.sling-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sling-cord-shadow { stroke: rgba(22, 22, 20, .14); stroke-width: 4; stroke-linecap: round; }
.sling-cord { stroke: var(--brand-accent); stroke-width: 2.8; stroke-linecap: round; }
.sling-pin-dot { fill: var(--brand-accent); stroke: var(--bg-surface); stroke-width: 1.5; }
.sling-trail { stroke: var(--brand-accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.sling-dots circle { fill: var(--brand-accent); }
.sling-ring { fill: none; stroke: var(--brand-accent); stroke-width: 2; opacity: 0; }
.sling-orb {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand-accent) 45%, #ffffff); padding: 0;
  cursor: grab; pointer-events: auto; touch-action: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, #86efac 0%, #229954 46%, #14532d 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .82), 0 8px 18px -6px rgba(22, 101, 52, .45);
  will-change: transform; user-select: none; -webkit-user-select: none;
}
.sling-orb:hover { box-shadow: inset 0 1px 4px #ffffff, 0 10px 24px -6px rgba(22, 101, 52, .56), 0 0 0 2px var(--brand-accent); }
.sling-orb.is-dragging { cursor: grabbing; box-shadow: inset 0 1px 4px #ffffff, 0 14px 28px -6px rgba(22, 101, 52, .62), 0 0 0 2px var(--brand-accent); }
.sling-orb__core { position: relative; z-index: 1; display: inline-flex; }
.sling-orb__core .ico { width: 20px; height: 20px; }
.sling-orb__glint {
  position: absolute; top: 6px; left: 9px; width: 14px; height: 7px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0));
  transform: rotate(-22deg); pointer-events: none;
}

/* ---------- 实验室遥测读数带 & 序列分隔线 ---------- */
.telemetry-wrap { padding: var(--sp-6) 0 var(--sp-4); }
.telemetry {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden;
}
.telemetry__item { padding: var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-1); }
.telemetry__item + .telemetry__item { border-left: 1px solid var(--line); }
.telemetry__kicker { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: .5px; color: var(--ink-3); }
.telemetry__kicker i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--brand-accent); }
.telemetry__item--accent .telemetry__kicker i { background: var(--sem-danger); }
.telemetry__val {
  display: flex; align-items: baseline; gap: var(--sp-2); margin-top: var(--sp-1);
  font-size: clamp(1.875rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink-1); line-height: 1.1;
}
.telemetry__unit { font-size: var(--text-base); font-weight: 600; color: var(--brand-accent); }
.telemetry__item--accent .telemetry__unit { color: var(--sem-danger); }
.telemetry__label { font-size: var(--text-sm); color: var(--ink-2); }

.seq-divider {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: var(--sp-3) 0; font-size: var(--text-xs); letter-spacing: 2px; color: var(--ink-3);
  white-space: nowrap; user-select: none;
}
.seq-divider::before, .seq-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); min-width: var(--sp-5); }
.seq-divider::before { margin-right: var(--sp-4); }
.seq-divider::after { margin-left: var(--sp-4); }
.seq-divider .codon-start { color: var(--brand-accent); font-weight: 700; }
.seq-divider .codon-stop { color: var(--sem-danger); font-weight: 700; }

/* ---------- 通用区块与标题体系 ---------- */
.section { padding: var(--sp-7) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--cta { border-top: 0; padding-top: var(--sp-5); padding-bottom: var(--sp-8); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section__head .section__title { margin-bottom: 0; }
.section__title { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--sp-5); }
.section__desc { margin: calc(-1 * var(--sp-3)) 0 var(--sp-5); font-size: var(--text-base); color: var(--ink-2); }
.section__meta { font-size: var(--text-xs); color: var(--ink-3); }
.section__subhead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.section__eyebrow { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent); letter-spacing: .5px; margin-bottom: var(--sp-1); }
.section__subtitle { font-size: var(--text-xl); font-weight: 700; }
.workbench-block { margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.idx {
  font-family: var(--mono); font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-xs);
  background: var(--brand-accent-soft); border: 1px solid color-mix(in srgb, var(--brand-accent) 24%, transparent);
}
.more { color: var(--brand-accent); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.more:hover { color: var(--brand-accent-hover); }

/* ---------- 项目卡与纯 CSS 线稿缩略图 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-med);
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line-strong)); box-shadow: var(--shadow-hover); }
.card--accent { border-top: 3px solid var(--brand-accent); }
.card--link { cursor: pointer; }
.card__stretch { text-decoration: none; position: static; }
.card__stretch::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); z-index: 2; }
.card--link:hover .card__stretch .u-link::after { transform: scaleX(1); }
.card--link:hover .card__stretch .ico--ext { transform: translate(2px, -2px); opacity: 1; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.card h2, .card h3 { font-size: var(--text-xl); font-weight: 650; }
.card h2 small, .card h3 small { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); margin-left: 6px; font-family: var(--mono); }
.card p { color: var(--ink-2); font-size: var(--text-sm); }
.card__meta { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); color: var(--ink-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.card__link { margin-top: auto; width: fit-content; color: var(--brand-accent); font-weight: 600; font-size: var(--text-sm); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: var(--text-xs); font-weight: 500; padding: 4px 10px;
  border-radius: var(--r-xs); color: var(--ink-2); background: var(--bg-subtle); border: 1px solid var(--line);
}

/* 迷你线稿窗口缩略图 */
.card__thumb {
  height: 138px; border-radius: var(--r-sm); border: 1px solid var(--thumb-line);
  background: var(--thumb-bg); overflow: hidden; display: flex; flex-direction: column; margin-bottom: var(--sp-1);
}
.thumb__bar {
  height: 22px; padding: 0 10px; display: flex; align-items: center; gap: 5px;
  border-bottom: 1px solid var(--thumb-line); background: var(--thumb-surface);
}
.thumb__bar i { width: 6px; height: 6px; border-radius: 50%; }
.thumb__bar i:first-child { background: #dc2626; opacity: .75; }
.thumb__bar i:nth-child(2) { background: #d97706; opacity: .75; }
.thumb__bar i:nth-child(3) { background: #16a34a; opacity: .78; }
.thumb__pill { margin-left: auto; width: 56px; height: 5px; border-radius: var(--r-pill); background: var(--thumb-bar); }
.thumb__body { flex: 1; padding: 10px; display: grid; gap: 8px; }

.thumb-store .thumb__body { grid-template-columns: repeat(3, 1fr); }
.thumb-sku {
  border-radius: var(--r-xs); border: 1px solid var(--thumb-line); background: var(--thumb-surface);
  padding: 6px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast);
}
.thumb-sku--hi { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--thumb-line)); }
.thumb-sku__pic { height: 38px; border-radius: 4px; background: linear-gradient(135deg, var(--brand-accent-soft), var(--accent-interactive-soft)); border: 1px solid var(--thumb-line); }
.thumb-sku__meta { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.thumb-sku__line { height: 4px; width: 74%; border-radius: var(--r-pill); background: var(--thumb-bar); }
.thumb-sku__price { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.thumb-sku__price span { height: 4px; width: 40%; border-radius: var(--r-pill); background: var(--brand-accent); opacity: .7; }
.thumb-sku__price b { height: 9px; width: 22px; border-radius: var(--r-pill); background: var(--brand-accent-soft); }
.card:hover .thumb-sku:nth-child(1) { transform: translateY(-2px); border-color: var(--brand-accent); }
.card:hover .thumb-sku:nth-child(3) { transform: translateY(-2px); }

.thumb-bkb .thumb__body { grid-template-columns: 0.7fr 1.5fr 1.1fr; gap: 6px; }
.thumb-pane {
  border-radius: 4px; border: 1px solid var(--thumb-line); background: var(--thumb-surface);
  padding: 6px; display: flex; flex-direction: column; gap: 5px;
}
.thumb-ln { height: 4px; border-radius: var(--r-pill); background: var(--thumb-bar); }
.thumb-ln--t { height: 5px; width: 62%; background: var(--ink-3); }
.thumb-ln--s { width: 70%; }
.thumb-ln--m { width: 88%; }
.thumb-ln--hl { height: 10px; border-radius: 4px; background: var(--brand-accent-soft); border-left: 2.5px solid var(--brand-accent); }
.thumb-note {
  margin-top: 2px; padding: 4px 6px; border-radius: 4px;
  background: var(--sem-danger-soft); border-left: 2.5px solid var(--sem-danger);
  display: flex; flex-direction: column; gap: 4px;
}
.thumb-note span { height: 3px; width: 80%; border-radius: var(--r-pill); background: var(--sem-danger); opacity: .7; }
.thumb-note span:last-child { width: 52%; }

.thumb-bot__split { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.thumb-bot__half { position: relative; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.thumb-bot__day { background: linear-gradient(155deg, #f8f2e6, #ece1cd); border-right: 1px solid var(--line); }
.thumb-bot__night { background: linear-gradient(155deg, #1b2433, #111722); }
.room-win { display: block; width: 34px; height: 24px; border-radius: 4px; }
.thumb-bot__day .room-win { background: rgba(255, 255, 255, .84); border: 1px solid rgba(154, 126, 82, .35); }
.thumb-bot__night .room-win { margin-left: auto; background: rgba(96, 165, 250, .18); border: 1px solid rgba(255, 255, 255, .22); }
.room-desk { display: block; height: 20px; width: 78%; border-radius: 4px 4px 2px 2px; }
.thumb-bot__day .room-desk { background: rgba(154, 126, 82, .22); border-top: 2px solid rgba(145, 114, 68, .50); }
.thumb-bot__night .room-desk { margin-left: auto; background: rgba(255, 255, 255, .10); border-top: 2px solid var(--screen-green); }
.thumb-bot__switch {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-surface); color: var(--ink-1); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out);
}
.card--link:hover .thumb-bot__switch { transform: translate(-50%, -50%) rotate(180deg); color: var(--brand-accent); }

/* 能力基座子带与通用三栏 */
.cap-strip { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.cap-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.cap-strip__title { font-size: var(--text-xl); font-weight: 700; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.cell {
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-med);
}
.cell:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-accent) 42%, var(--line-strong)); box-shadow: var(--shadow-hover); }
.cell--dashed { border-style: dashed; background: var(--bg-subtle); box-shadow: none; }
.cell--dashed:hover { transform: none; box-shadow: none; }
.cell h3 { font-size: var(--text-lg); font-weight: 650; margin: var(--sp-4) 0 var(--sp-2); }
.cell p { color: var(--ink-2); font-size: var(--text-sm); }
.cell__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--brand-accent-soft); color: var(--brand-accent);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 22%, transparent);
}
.cell__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.cell__num {
  display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--ink-3);
  padding: 2px 8px; border-radius: var(--r-xs); background: var(--bg-subtle); border: 1px solid var(--line);
}

/* ---------- 02 协作工作流、双机器人互动角、方法与真实轨迹 ---------- */
.flow-pipe {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4); border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.flow-pipe__node {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--bg-subtle); border: 1px solid var(--line-strong);
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: transform var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast);
}
.flow-pipe__node:hover,
.flow-pipe__node:focus-visible,
.flow-pipe__node.is-active {
  transform: translateY(-1px); background: var(--brand-accent-soft); border-color: var(--brand-accent); outline: none;
}
.flow-pipe__node--end:hover,
.flow-pipe__node--end:focus-visible,
.flow-pipe__node--end.is-active {
  background: var(--sem-danger-soft); border-color: var(--sem-danger);
}
.flow-pipe__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); }
.flow-pipe__node--end .flow-pipe__dot { background: var(--sem-danger); }
.flow-pipe__step { font-size: var(--text-xs); color: var(--ink-3); }
.flow-pipe__node strong { font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); }
.flow-pipe__link { position: relative; color: var(--ink-3); min-width: 24px; }
.flow-pipe__link svg { width: 100%; height: 12px; display: block; }
.flow-dash { animation: flow-dash 1.6s linear infinite; }
@keyframes flow-dash { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
.flow-packet {
  position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--brand-accent); opacity: 0; pointer-events: none;
}
.flow-pipe__link--1 .flow-packet { animation: packet-glide 3.6s ease-in-out .3s infinite; }
.flow-pipe__link--2 .flow-packet { background: var(--sem-danger); animation: packet-glide 3.6s ease-in-out 1.5s infinite; }
@keyframes packet-glide {
  0% { left: 2%; opacity: 0; }
  12% { opacity: 1; }
  30% { left: 92%; opacity: 1; }
  38%, 100% { left: 96%; opacity: 0; }
}

.wf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.wf-card {
  display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast), box-shadow var(--dur-med);
}
.wf-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line-strong)); }
.wf-card.is-linked { border-color: var(--brand-accent); box-shadow: 0 0 0 2px var(--brand-accent-soft), var(--shadow-hover); }
.wf-card.is-dimmed { opacity: .45; }
.wf-card--lead { border-left: 3px solid var(--brand-accent); }
.wf-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.wf-card__role {
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-2);
  padding: 3px 9px; border-radius: var(--r-xs); background: var(--bg-subtle); border: 1px solid var(--line);
}
.wf-card--lead .wf-card__role { color: var(--brand-accent); background: var(--brand-accent-soft); border-color: transparent; }
.wf-card h3 { font-size: var(--text-lg); margin-top: 2px; }
.wf-card p { font-size: var(--text-sm); color: var(--ink-2); }

/* 兄弟空间双机器人互动舞台 */
.bot-theater {
  margin-top: var(--sp-4); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.bot-theater__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--bg-subtle);
}
.bot-theater__title { font-size: var(--text-sm); font-weight: 650; color: var(--ink-1); }
.bot-theater__time { font-size: var(--text-xs); color: var(--ink-2); }
.bot-stage-row { display: grid; grid-template-columns: 1fr 122px 1fr; gap: var(--sp-4); align-items: stretch; padding: var(--sp-5); }
.bot-card { position: relative; border-radius: var(--r-md); padding: var(--sp-4) var(--sp-4) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.bot-card--gege {
  background: linear-gradient(155deg, #27313d, #181f28); color: #e9e4d8;
  border: 1px solid rgba(201, 168, 106, .35);
}
.bot-card--didi {
  background: linear-gradient(155deg, #fdf8ef, #f2e4ce); color: #4a3421;
  border: 1px solid rgba(196, 123, 74, .32);
}
.bot-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.bot-card__name { font-size: var(--text-base); font-weight: 650; }
.bot-card__chip { font-size: var(--text-xs); font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); }
.bot-card--gege .bot-card__chip { background: rgba(201, 168, 106, .18); color: #e2c58a; }
.bot-card--didi .bot-card__chip { background: rgba(196, 123, 74, .16); color: #a66033; }
.bot-bubble { position: relative; padding: 9px 12px; border-radius: var(--r-sm); font-size: var(--text-sm); line-height: 1.5; min-height: 44px; }
.bot-card--gege .bot-bubble { background: rgba(255, 255, 255, .08); color: #e9e4d8; border: 1px solid rgba(255, 255, 255, .12); }
.bot-card--didi .bot-bubble { background: rgba(255, 255, 255, .84); color: #4a3421; border: 1px solid rgba(196, 123, 74, .22); }
.bot-bubble.is-pop { animation: bubble-pop .28s var(--ease-out); }
@keyframes bubble-pop { from { transform: scale(.96); opacity: .7; } to { transform: none; opacity: 1; } }

.bot-avatar-btn {
  width: 100%; border: 0; background: transparent; padding: 4px 0 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.bot-avatar-btn:hover { transform: translateY(-3px); }
.bot-avatar-btn:active { transform: scale(.97); }
.bot-svg { width: 100%; max-width: 196px; height: auto; display: block; overflow: visible; }
.bot-body { transform-origin: 90px 136px; animation: bot-breathe 4s ease-in-out infinite; }
@keyframes bot-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .988); } }
.bot-pupils { transition: transform .15s ease-out; }
.bot-eyes-happy, .bot-mouth-yawn { opacity: 0; transition: opacity .15s ease; }
.bot-eyes-normal, .bot-mouth-normal { transition: opacity .15s ease; }
.bot-glasses, .bot-ear-l, .bot-ear-r, .bot-arm-l, .bot-arm-r { transition: transform .3s var(--ease-out); }
.bot-ear-l { transform-origin: 62px 54px; }
.bot-ear-r { transform-origin: 118px 54px; }
.bot-arm-l { transform-origin: 54px 118px; }
.bot-arm-r { transform-origin: 126px 118px; }

.gpu-led--1 { animation: led-blink 2.4s steps(2, start) infinite; }
.gpu-led--2 { animation: led-blink 1.8s steps(2, start) .5s infinite; }
.gpu-led--3 { animation: led-blink 2.8s steps(2, start) .9s infinite; }
.gpu-led--4 { animation: led-blink 2.1s steps(2, start) 1.3s infinite; }
@keyframes led-blink { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
.mug-steam { animation: steam-rise 2.8s ease-in-out infinite; }
@keyframes steam-rise { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-4px); opacity: .88; } }

.bot-card.is-glasses .bot-glasses { transform: translateY(-4px) scale(1.04); }
.bot-card.is-glasses .glasses-glint { opacity: 1; stroke: #ffffff; stroke-width: 2.8; }
.bot-card.is-glasses .bot-body { animation: bot-nod .55s var(--ease-out); }
@keyframes bot-nod { 0%, 100% { transform: none; } 35% { transform: translateY(-5px) rotate(-2deg); } 70% { transform: translateY(1px) rotate(1deg); } }
.bot-card.is-happy .bot-eyes-normal { opacity: 0; }
.bot-card.is-happy .bot-eyes-happy { opacity: 1; }
.bot-card.is-happy .bot-ear-l { transform: rotate(-16deg) translateY(-3px); }
.bot-card.is-happy .bot-ear-r { transform: rotate(16deg) translateY(-3px); }
.bot-card.is-happy .bot-body { animation: bot-hop .58s var(--ease-out); }
@keyframes bot-hop { 0% { transform: scale(1.06, .93); } 38% { transform: translateY(-12px) scale(.95, 1.07); } 72% { transform: translateY(2px) scale(1.03, .97); } 100% { transform: none; } }
.bot-card.is-wave .bot-arm-r { transform: translate(4px, -14px) rotate(-36deg); }
.bot-card.is-wave .bot-arm-l { transform: translate(-4px, -14px) rotate(36deg); }
.bot-card.is-wave .bot-body { animation: bot-nod .6s ease; }
.bot-card.is-yawn .bot-eyes-normal, .bot-card.is-yawn .bot-mouth-normal { opacity: 0; }
.bot-card.is-yawn .bot-eyes-happy, .bot-card.is-yawn .bot-mouth-yawn { opacity: 1; }
.bot-card.is-yawn .bot-arm-l { transform: translate(-7px, -24px) rotate(52deg); }
.bot-card.is-yawn .bot-arm-r { transform: translate(7px, -24px) rotate(-52deg); }
.bot-card.is-yawn .bot-body { animation: didi-yawn 1.35s ease-in-out; }
@keyframes didi-yawn { 0%, 100% { transform: none; } 30%, 70% { transform: translateY(-4px) rotate(4deg) scale(1.03, 1.04); } }

.bot-mail-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); }
.bot-mail-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--bg-surface); color: var(--ink-1); cursor: pointer;
  font: 600 var(--text-xs)/1 var(--font); box-shadow: var(--shadow-card); white-space: nowrap;
  transition: transform var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.bot-mail-btn:hover { transform: translateY(-1px); color: var(--brand-accent); border-color: var(--brand-accent); }
.bot-mail-track { position: relative; width: 100%; height: 26px; display: flex; align-items: center; }
.bot-mail-line { width: 100%; border-top: 2px dashed var(--line-strong); }
.bot-mail-fly {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-accent); color: var(--brand-on-accent); opacity: 0; pointer-events: none;
}
.bot-mail-fly.is-right { animation: mail-right .8s var(--ease-out) forwards; }
.bot-mail-fly.is-left { animation: mail-left .8s var(--ease-out) forwards; }
@keyframes mail-right { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }
@keyframes mail-left { 0% { left: calc(100% - 26px); opacity: 0; } 20% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }

.wf-cta {
  margin-top: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.wf-cta p { color: var(--ink-2); font-size: var(--text-sm); max-width: 44ch; }
.wf-cta__actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.wf-cta__sub { font-size: var(--text-sm); color: var(--brand-accent); font-weight: 600; }

/* 方法与真实成长轨迹双栏（替代空占位卡） */
.journey-grid {
  margin-top: var(--sp-5);
  display: grid; grid-template-columns: 0.92fr 1.28fr; gap: var(--sp-4); align-items: stretch;
}
.method {
  display: flex; flex-direction: column; justify-content: flex-start; gap: var(--sp-3);
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.method__quote { font-size: clamp(1.375rem, 2.3vw, 1.75rem); font-weight: 700; line-height: 1.32; letter-spacing: -.025em; }
.method__text { color: var(--ink-2); font-size: var(--text-sm); }

.journey-card {
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.journey-card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.journey-card__kicker { display: block; font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent); letter-spacing: .4px; }
.journey-card__head h3 { font-size: var(--text-xl); font-weight: 700; margin-top: 2px; }
.journey-list { display: grid; gap: var(--sp-3); }
.journey-list > li {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-3); align-items: start;
  padding-top: var(--sp-3); border-top: 1px solid var(--line);
}
.journey-list > li strong { display: block; font-size: var(--text-sm); font-weight: 650; color: var(--ink-1); }
.journey-list > li p { font-size: var(--text-xs); color: var(--ink-2); margin-top: 2px; }
.journey-list__tag {
  font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent);
  padding: 2px 6px; border-radius: var(--r-xs); background: var(--brand-accent-soft); text-align: center;
}
.journey-list__ride { grid-template-columns: 1fr !important; gap: var(--sp-2) !important; }
.life__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.life__time { font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent); }
.life__badge {
  font-size: var(--text-xs); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill);
  color: var(--sem-danger); background: var(--sem-danger-soft);
}
.route { position: relative; height: 22px; margin-top: var(--sp-1); }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line-strong); }
.route i {
  position: absolute; left: 0; top: 50%; width: 100%; height: 2.5px; margin-top: -1.25px;
  border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand-accent), var(--sem-danger));
  transform-origin: left; animation: ride 1.1s var(--ease-out) both;
}
.route::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--sem-danger); box-shadow: 0 0 0 3px var(--sem-danger-soft);
}
@keyframes ride { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 03-A 共聚焦细胞显微镜 ---------- */
.cell-lab {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.cell-lab__bezel {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--bg-subtle);
}
.cell-lab__tools { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cell-filters {
  display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--r-sm);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
}
.cell-filter {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  min-height: 32px; padding: 5px var(--sp-3); border-radius: var(--r-xs); font: 600 var(--text-xs)/1 var(--font);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.cell-filter:hover { color: var(--ink-1); }
.cell-filter.is-active { color: var(--brand-on-accent); background: var(--brand-accent); }
.cell-lab__grid { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-4); align-items: center; }
.cell-stage {
  position: relative; width: 100%; max-width: 100%; min-width: 0; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(circle at 46% 48%, #0e1929 0%, #070d17 64%, #03060c 100%);
  border: 1px solid var(--screen-line);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 15 / 9;
}
.cell-stage.is-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .10) 48%, transparent 66%);
  background-size: 220% 100%; animation: cell-skeleton 1.4s ease-in-out infinite;
}
@keyframes cell-skeleton { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.cell-lab[data-mode="phase"] .cell-stage {
  background: radial-gradient(circle at 46% 48%, #dce5f0 0%, #c6d3e3 68%, #b0c1d6 100%);
  border-color: var(--line-strong);
}
.cell-canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }
.cell-hud-tl, .cell-hud-br {
  position: absolute; z-index: 4; pointer-events: none;
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); letter-spacing: .5px;
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-xs);
  background: rgba(9, 10, 9, .78); color: #e2eefc; border: 1px solid var(--screen-line);
}
.cell-hud-tl { left: var(--sp-3); top: var(--sp-3); }
.cell-hud-br { right: var(--sp-3); bottom: var(--sp-3); }
.cell-lab[data-mode="phase"] .cell-hud-tl,
.cell-lab[data-mode="phase"] .cell-hud-br {
  background: rgba(255, 255, 255, .86); color: #161614; border-color: rgba(22, 22, 20, .2);
}
.cell-scale { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cell-scale i { display: inline-block; width: 34px; height: 2px; background: currentColor; border-radius: var(--r-pill); }

.cell-float-tag {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-xs);
  background: var(--screen-bg); color: var(--screen-text); font-size: var(--text-xs); font-weight: 600;
  border: 1px solid var(--screen-green); white-space: nowrap; transform: translate(14px, -38px);
}
.cell-float-tag[hidden] { display: none; }

.cell-panel {
  min-width: 0; min-height: 460px; border-radius: var(--r-md); padding: var(--sp-5);
  background: var(--screen-bg); color: var(--screen-text);
  border: 1px solid var(--screen-line);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.cell-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.cell-panel__badge {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .4px; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-xs);
  background: rgba(52, 211, 116, .16); color: var(--screen-green); border: 1px solid rgba(52, 211, 116, .35);
}
.cell-panel__live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--screen-green); }
.cell-panel__live i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--screen-green); animation: pulse 2.4s ease-out infinite; }
.cell-panel__live.is-paused { color: var(--screen-amber); }
.cell-panel__live.is-paused i { background: var(--screen-amber); animation: none; }
.cell-panel__name { font-size: var(--text-xl); font-weight: 700; color: var(--screen-text); min-height: 1.3em; }
.cell-panel__en { font-size: var(--text-xs); color: var(--screen-dim); margin-top: calc(-1 * var(--sp-1)); }
.cell-panel__dl { display: grid; gap: var(--sp-3); align-content: start; min-height: 204px; padding-top: var(--sp-3); border-top: 1px solid var(--screen-line); }
.cell-panel__dl dt { font-size: var(--text-xs); letter-spacing: .5px; color: var(--screen-dim); text-transform: uppercase; margin-bottom: 2px; }
.cell-panel__dl dd { font-size: var(--text-sm); line-height: 1.6; color: var(--screen-muted); }
.cell-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--screen-line); }
.cell-pill {
  border: 1px solid var(--screen-line); background: var(--screen-cell); color: var(--screen-muted);
  min-height: 30px; padding: 5px 10px; border-radius: var(--r-pill); font: 500 var(--text-xs)/1 var(--font); cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast);
}
.cell-pill:hover, .cell-pill.is-active { color: var(--screen-text); border-color: var(--screen-green); background: rgba(52, 211, 116, .18); }
.cell-pill:focus-visible { outline: 2px solid var(--screen-green); outline-offset: 2px; }

/* ---------- 03-B 4 合 1 离线生物小工具箱 ---------- */
.seq-tool {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.seq-tool__bezel {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); background: var(--bg-subtle);
}
.seq-tool__led { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: .5px; color: var(--brand-accent); }
.seq-tool__led::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); }
.tool-tabs {
  display: inline-flex; flex-wrap: wrap; gap: var(--sp-1); padding: 3px; border-radius: var(--r-sm);
  background: var(--bg-surface); border: 1px solid var(--line-strong);
}
.tool-tab {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: var(--sp-2) var(--sp-3);
  border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-2);
  font: 600 var(--text-sm)/1 var(--font); cursor: pointer;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.tool-tab:hover { color: var(--ink-1); background: var(--bg-subtle); }
.tool-tab:active { transform: scale(.98); }
.tool-tab[aria-selected="true"] { color: var(--brand-on-accent); background: var(--brand-accent); }
.tool-tab[aria-selected="true"] .ico { color: var(--brand-on-accent); }
.tool-panel[hidden] { display: none; }
.tool-panel.is-entering { animation: panel-in .22s var(--ease-out); }
@keyframes panel-in { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.seq-tool__body { padding: var(--sp-5); }
.seq-tool__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.seq-tool__label { font-size: var(--text-sm); font-weight: 650; color: var(--ink-1); }
.seq-tool__btns { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.seq-tool__input {
  width: 100%; min-height: 78px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg-subtle); color: var(--ink-1);
  font: var(--text-sm)/1.65 var(--mono); letter-spacing: .9px; resize: vertical;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.seq-tool__input:focus { outline: none; border-color: var(--brand-accent); box-shadow: var(--focus-ring); background: var(--bg-surface); }
.seq-tool__input.is-invalid,
.calc-field input.is-invalid {
  border-color: var(--sem-danger); background: var(--sem-danger-soft);
}
.seq-tool__input.is-invalid:focus,
.calc-field input.is-invalid:focus {
  box-shadow: 0 0 0 3px var(--sem-danger-soft);
}
.seq-tool__source { margin-top: var(--sp-2); font-size: var(--text-xs); color: var(--ink-3); }
.seq-tool__err {
  margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  border: 1px solid var(--sem-danger); background: var(--sem-danger-soft);
  color: var(--sem-danger); font-size: var(--text-sm); font-weight: 500;
}
.seq-tool__err[hidden] { display: none; }

/* 暗色精密读数屏 */
.seq-screen {
  margin-top: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--screen-bg); border: 1px solid var(--screen-line); color: var(--screen-text);
}
.seq-screen.is-updated .seq-stat dd, .seq-screen.is-updated .base-cell__val b { animation: readout-pop .28s var(--ease-out); }
@keyframes readout-pop { from { opacity: .5; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.seq-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.seq-stats--4 { grid-template-columns: repeat(4, 1fr); }
.seq-stat { padding: var(--sp-4); border-radius: var(--r-sm); border: 1px solid var(--screen-line); background: var(--screen-cell); }
.seq-stat dt { font-size: var(--text-xs); letter-spacing: .5px; color: var(--screen-dim); }
.seq-stat dd { margin-top: var(--sp-1); font-size: var(--text-xl); font-weight: 700; color: var(--screen-text); line-height: 1.25; }
.seq-stat dd small { display: block; margin-top: var(--sp-1); font-size: var(--text-xs); font-weight: 400; color: var(--screen-muted); }
.gc-bar { margin-top: var(--sp-2); height: 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .10); overflow: hidden; }
.gc-bar i { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: var(--screen-green); transition: width var(--dur-med) var(--ease-out); }

/* 工具箱空状态 */
.seq-empty {
  padding: var(--sp-6) var(--sp-4); border-radius: var(--r-sm);
  border: 1px dashed var(--screen-line); background: var(--screen-cell);
  display: grid; gap: var(--sp-3); justify-items: center; text-align: center;
}
.seq-empty[hidden] { display: none; }
.seq-empty__title { font-size: var(--text-base); font-weight: 600; color: var(--screen-text); }
.seq-empty__desc { font-size: var(--text-xs); color: var(--screen-muted); max-width: 44ch; }
.seq-empty .btn { background: rgba(255, 255, 255, .10); color: var(--screen-text); border-color: var(--screen-line); }
.seq-empty .btn:hover { background: rgba(52, 211, 116, .18); border-color: var(--screen-green); color: var(--screen-green); }

.base-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); }
.base-cell {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); border: 1px solid var(--screen-line); background: var(--screen-cell);
}
.base-cell__id { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); font-weight: 700; color: var(--screen-text); }
.base-cell__id::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.base-cell--a .base-cell__id::before { background: var(--screen-green); }
.base-cell--t .base-cell__id::before { background: var(--screen-blue); }
.base-cell--g .base-cell__id::before { background: var(--screen-cyan); }
.base-cell--c .base-cell__id::before { background: var(--screen-red); }
.base-cell__val { text-align: right; line-height: 1.2; }
.base-cell__val b { display: block; font-size: var(--text-base); color: var(--screen-text); }
.base-cell__val span { font-size: var(--text-xs); color: var(--screen-dim); }

.seq-out { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--screen-line); display: grid; gap: var(--sp-4); }
.seq-out[hidden] { display: none; }
.seq-out__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--text-xs); color: var(--screen-muted); }
.seq-direction-tag { font-size: var(--text-xs); color: var(--screen-green); font-weight: 600; }
.prot-comp-txt { font-size: var(--text-xs); color: var(--screen-muted); }
.seq-legend { display: inline-flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--text-xs); }
.seq-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.seq-legend .lg-start i { background: var(--screen-green); }
.seq-legend .lg-stop i { background: var(--screen-red); }
.aa-line { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); border: 1px solid var(--screen-line); background: var(--screen-cell); font-size: var(--text-base); }
.aa-line--spaced { margin-top: var(--sp-2); }
.aa-ch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 28px; padding: 0 6px;
  border-radius: var(--r-xs); font-weight: 600; color: var(--screen-text); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.aa-ch:hover, .aa-ch.is-selected, .aa-ch:focus-visible { outline: none; transform: translateY(-1px); border-color: var(--screen-blue); }
.aa-ch--start { background: rgba(52, 211, 116, .18); color: var(--screen-green); border-color: rgba(52, 211, 116, .6); }
.aa-ch--stop { background: rgba(251, 113, 133, .18); color: var(--screen-red); border-color: rgba(251, 113, 133, .6); }
.aa-ch--pos { background: rgba(96, 165, 250, .18); color: var(--screen-cyan); border-color: rgba(96, 165, 250, .5); }
.aa-ch--neg { background: rgba(251, 113, 133, .16); color: var(--screen-red); border-color: rgba(251, 113, 133, .5); }
.aa-ch--hyd { background: rgba(251, 191, 36, .14); color: var(--screen-amber); border-color: rgba(251, 191, 36, .42); }
.aa-ch--pol { background: rgba(52, 211, 116, .14); color: var(--screen-green); border-color: rgba(52, 211, 116, .42); }
.codon-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.codon-grid--spaced { margin-top: var(--sp-2); }
.codon {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 50px; padding: 6px var(--sp-2);
  border-radius: var(--r-xs); border: 1px solid var(--screen-line); background: var(--screen-cell); line-height: 1.25; cursor: pointer;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.codon:hover, .codon.is-selected, .codon:focus-visible { outline: none; transform: translateY(-1px); border-color: var(--screen-blue); }
.codon b { font-size: var(--text-xs); font-weight: 650; color: var(--screen-text); }
.codon span { font-size: var(--text-xs); color: var(--screen-muted); margin-top: 2px; }
.codon--start { border-color: rgba(52, 211, 116, .65); background: rgba(52, 211, 116, .15); }
.codon--start b, .codon--start span { color: var(--screen-green); }
.codon--stop { border-color: rgba(251, 113, 133, .65); background: rgba(251, 113, 133, .15); }
.codon--stop b, .codon--stop span { color: var(--screen-red); }
.codon--rem { border-style: dashed; opacity: .7; cursor: default; }
.inspector-bar {
  margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  border: 1px solid var(--screen-line); background: rgba(255, 255, 255, .04);
  font-size: var(--text-xs); color: var(--screen-muted);
}
.inspector-bar.is-active { border-color: var(--screen-blue); background: rgba(96, 165, 250, .10); color: var(--screen-text); }

.duplex-box { display: grid; gap: var(--sp-2); }
.seq-readout {
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); border: 1px solid var(--screen-line);
  background: var(--screen-cell); font-size: var(--text-base); letter-spacing: 1.4px; word-break: break-all; color: var(--screen-text);
}
.seq-readout--accent { border-color: rgba(52, 211, 116, .45); background: rgba(52, 211, 116, .08); }
.seq-readout .b-a { color: var(--screen-green); }
.seq-readout .b-t { color: var(--screen-cyan); }
.seq-readout .b-g { color: var(--screen-amber); }
.seq-readout .b-c { color: var(--screen-red); }

.sub-switch { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
.calc-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.calc-field { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink-1); }
.calc-field__row { display: flex; gap: var(--sp-2); }
.calc-field input, .calc-field select {
  height: 44px; padding: 0 var(--sp-3); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--bg-subtle); color: var(--ink-1);
  font: var(--text-sm)/1 var(--mono);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.calc-field input { flex: 1; min-width: 0; }
.calc-field select { width: 92px; flex: none; cursor: pointer; font-family: var(--font); font-weight: 500; }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--brand-accent); box-shadow: var(--focus-ring); background: var(--bg-surface); }
.calc-field select option { background: var(--bg-surface); color: var(--ink-1); }

.dil-screen { display: grid; grid-template-columns: 1fr 164px; gap: var(--sp-4); align-items: stretch; }
.dil-stats { grid-template-columns: repeat(3, 1fr); align-content: center; }
.tube-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3); border-radius: var(--r-sm);
  border: 1px solid var(--screen-line); background: var(--screen-cell);
  cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.tube-card:hover, .tube-card:focus-visible { border-color: var(--screen-blue); transform: translateY(-2px); outline: none; }
.tube {
  position: relative; width: 44px; height: 92px; border-radius: var(--r-xs) var(--r-xs) 22px 22px;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04);
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
}
.tube__solvent {
  width: 100%; height: 92%; position: relative;
  background: linear-gradient(180deg, rgba(96, 165, 250, .66), rgba(37, 99, 235, .86));
  transition: height .42s var(--ease-out);
}
.tube__solvent::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: -3px; height: 5px; border-radius: 50%;
  background: rgba(186, 230, 253, .6); animation: tube-wave 3.2s ease-in-out infinite alternate;
}
@keyframes tube-wave { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.tube__stock { width: 100%; height: 8%; background: var(--screen-green); transition: height .42s var(--ease-out); }
.tube__glint {
  position: absolute; left: 6px; top: 8px; bottom: 14px; width: 4px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent); pointer-events: none;
}
.tube-legend { display: flex; flex-direction: column; gap: 3px; font-size: var(--text-xs); color: var(--screen-muted); width: 100%; }
.tube-legend span { display: flex; align-items: center; gap: 5px; }
.tube-legend b { margin-left: auto; color: var(--screen-text); }
.tube-legend i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tube-legend .lg-sol i { background: var(--screen-blue); }
.tube-legend .lg-stk i { background: var(--screen-green); }

.comp-bar { margin-top: var(--sp-2); height: 10px; border-radius: var(--r-pill); overflow: hidden; display: flex; background: rgba(255, 255, 255, .08); border: 1px solid var(--screen-line); }
.comp-seg { display: block; height: 100%; width: 0; transition: width .38s var(--ease-out); }
.comp-pos { background: var(--screen-blue); }
.comp-neg { background: var(--screen-red); }
.comp-hyd { background: var(--screen-amber); }
.comp-pol { background: var(--screen-green); }

/* ---------- 04 FAQ 手风琴 ---------- */
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
  transition: border-color var(--dur-fast), box-shadow var(--dur-med);
}
.faq-item:hover, .faq-item[open] { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line-strong)); box-shadow: var(--shadow-hover); }
.faq-item__q {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 54px; padding: var(--sp-4) var(--sp-5); cursor: pointer;
  font-size: var(--text-base); font-weight: 600; color: var(--ink-1);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--brand-accent); }
.faq-item__icon {
  position: relative; flex: none; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--bg-subtle); border: 1px solid var(--line-strong);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px;
  border-radius: var(--r-pill); background: currentColor; transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--brand-accent-soft); border-color: var(--brand-accent); color: var(--brand-accent); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-item__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-2); font-size: var(--text-sm); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.faq-item__a a { color: var(--brand-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 05 Final CTA 与提示卡 ---------- */
.notice, .final-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
  padding: var(--sp-6); border-radius: var(--r-lg);
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.final-cta { border-left: 4px solid var(--brand-accent); }
.final-cta__body { flex: 1 1 380px; display: grid; gap: var(--sp-2); }
.final-cta__eyebrow { font-size: var(--text-xs); font-weight: 600; color: var(--brand-accent); letter-spacing: .5px; }
.final-cta__title { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--text-2xl); }
.final-cta__desc { color: var(--ink-2); font-size: var(--text-sm); }
.final-cta__sublinks { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-1); font-size: var(--text-xs); color: var(--ink-3); }
.final-cta__sublinks a { color: var(--ink-2); font-weight: 500; }
.final-cta__sublinks a:hover { color: var(--brand-accent); }
.final-cta__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.notice__title { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-xl); margin-bottom: var(--sp-1); }
.notice p { color: var(--ink-2); font-size: var(--text-sm); }
.roadmap-line {
  margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  background: var(--bg-subtle); border: 1px solid var(--line); border-left: 3px solid var(--sem-danger);
  color: var(--ink-1); font-size: var(--text-sm); font-weight: 500;
}

/* ---------- 内页通用 ---------- */
.page-head { padding: var(--sp-8) 0 var(--sp-6); border-bottom: 1px solid var(--line); }
.page-head--center { padding: 112px 0 92px; border-bottom: 0; }
.crumb { font-size: var(--text-xs); color: var(--ink-3); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: 6px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand-accent); }
.title-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.page-head__title { font-size: clamp(2rem, 4.2vw, 2.875rem); font-weight: 700; letter-spacing: -.03em; }
.page-head__title--spaced { margin-top: var(--sp-4); }
.sub-code { font-size: .46em; font-weight: 600; color: var(--brand-accent); margin-left: 6px; }
.page-head__lead { margin-top: var(--sp-4); color: var(--ink-2); font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: var(--measure); }

.bkb-status {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--sem-warn); box-shadow: var(--shadow-card);
}
.bkb-status .label { font-size: var(--text-xs); font-weight: 600; color: var(--sem-warn); letter-spacing: .5px; }
.bkb-status p { margin-top: var(--sp-1); color: var(--ink-2); }
.bkb-status strong { color: var(--ink-1); }

.prose p { font-size: var(--text-base); line-height: var(--leading-body); color: var(--ink-1); max-width: var(--measure); }
.prose p + p { margin-top: var(--para-gap); }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.skills li { padding: var(--sp-5); border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.skills h3 { font-size: var(--text-lg); font-weight: 650; margin-bottom: var(--sp-1); }
.skills p { font-size: var(--text-sm); color: var(--ink-2); }

/* 进化树分支时间线 */
.phylo { position: relative; padding-left: 26px; }
.phylo__root {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin-left: -26px; margin-bottom: var(--sp-4);
  padding: 6px var(--sp-4); border-radius: var(--r-pill);
  background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-1);
}
.phylo__root::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); }
.phylo__tree { position: relative; padding-left: 28px; }
.phylo__tree::before {
  content: ""; position: absolute; left: 0; top: -16px; bottom: 44px; width: 2px;
  background: linear-gradient(to bottom, var(--brand-accent), var(--line-strong) 75%, var(--sem-danger));
}
.phylo__node { position: relative; padding: 0 0 var(--sp-4) 28px; }
.phylo__node:last-child { padding-bottom: 0; }
.phylo__node::before { content: ""; position: absolute; left: -28px; top: 34px; width: 52px; height: 2px; background: var(--line-strong); }
.phylo__node::after {
  content: ""; position: absolute; left: 20px; top: 28px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-canvas); border: 3px solid var(--brand-accent);
}
.phylo__node--sub { margin-left: 28px; }
.phylo__node--sub::before { left: -56px; width: 80px; }
.phylo__node--accent::after { border-color: var(--sem-danger); }
.phylo__card { padding: var(--sp-5); border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.phylo__node:hover .phylo__card { border-color: var(--brand-accent); }
.phylo__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.phylo__branch { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.phylo__node--accent .phylo__branch { color: var(--sem-danger); }
.phylo__card h3 { font-size: var(--text-lg); font-weight: 650; margin-top: 6px; }
.phylo__card p { font-size: var(--text-sm); color: var(--ink-2); margin-top: var(--sp-1); }
.phylo__card a { color: var(--brand-accent); }
.phylo__future { margin-top: var(--sp-5); padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); font-size: var(--text-sm); color: var(--ink-3); }

.links { border-radius: var(--r-md); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.links a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-4); min-height: 54px; padding: var(--sp-5); border-bottom: 1px solid var(--line); text-decoration: none; }
.links li:last-child a { border-bottom: 0; }
.links a:hover, .links a:focus-visible { outline: none; background: var(--bg-subtle); color: var(--brand-accent); }
.links__name { font-weight: 600; font-size: var(--text-base); display: inline-flex; align-items: center; gap: var(--sp-2); }
.links__url { color: var(--ink-3); font-size: var(--text-xs); text-align: right; overflow-wrap: anywhere; }
.links__arrow { color: var(--brand-accent); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: var(--sp-6); border-top: 1px solid var(--line-strong);
  padding: var(--sp-6) 0 calc(76px + env(safe-area-inset-bottom));
  background: var(--bg-surface); font-size: var(--text-sm); color: var(--ink-2);
}
.footer__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1.1fr);
  align-items: start; gap: clamp(16px, 3vw, 36px);
}
.footer__brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-1); }
.footer__note { font-size: var(--text-xs); color: var(--ink-3); margin-top: 2px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.footer__nav a { text-decoration: none; font-size: var(--text-xs); font-weight: 500; min-height: 36px; display: flex; align-items: center; }
.footer__nav a:hover { color: var(--brand-accent); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li + li { border-top: 1px solid var(--line); }
.footer__links a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 10px; align-items: center;
  min-height: 52px; padding: 6px 0; text-decoration: none; font-size: var(--text-sm);
}
.footer__links .ico { width: 18px; height: 18px; }
.footer__links .ico--ext { width: 16px; height: 16px; color: var(--ink-3); }
.footer__site { display: grid; min-width: 0; }
.footer__site .mono { overflow-wrap: anywhere; }
.footer__links a:hover { color: var(--brand-accent); }
.footer__links .mono { color: var(--ink-3); font-size: var(--text-xs); }
.footer__right {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  justify-content: space-between; padding-top: var(--sp-3); border-top: 1px solid var(--line);
}
.back-top {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 0 var(--sp-4);
  border-radius: var(--r-pill); background: var(--bg-subtle); border: 1px solid var(--line-strong);
  color: var(--ink-1); text-decoration: none; font-size: var(--text-xs); font-weight: 600;
}
.back-top:hover { color: var(--brand-accent); border-color: var(--brand-accent); background: var(--brand-accent-soft); }

/* ---------- 全局轻量 Toast 提示 ---------- */
.toast {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 90;
  max-width: min(360px, calc(100vw - 32px));
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm);
  background: var(--screen-bg); color: var(--screen-text);
  border: 1px solid var(--screen-line); box-shadow: var(--shadow-hover);
  font-size: var(--text-sm); font-weight: 500;
  animation: toast-in var(--dur-med) var(--ease-out);
}
.toast[hidden] { display: none; }
.toast--success { border-color: var(--screen-green); }
.toast--error { border-color: var(--sem-danger); background: var(--sem-danger); color: #ffffff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 触控热区兜底（移动终端 >= 44px） ---------- */
@media (pointer: coarse) {
  .btn, .tool-tab, .cell-filter, .cell-pill, .sling-reset, .sling-mode__btn, .bot-mail-btn, .back-top, .nav__menu a, .nav__theme, .footer__nav a, .footer__links a {
    min-height: 44px;
  }
  .aa-ch { min-width: 34px; height: 36px; }
}

/* ---------- 响应式断点 ---------- */
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { border-block: 1px solid var(--line); padding-block: 4px; }
}
@media (max-width: 900px) {
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero__grid, .journey-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .br-lg { display: none; }
  .telemetry { grid-template-columns: 1fr; }
  .telemetry__item + .telemetry__item { border-left: 0; border-top: 1px solid var(--line); }
  .cards, .cards--3, .grid3 { grid-template-columns: 1fr; }
  .bot-stage-row { grid-template-columns: 1fr; }
  .bot-mail-bridge { flex-direction: row; padding: 2px 0; }
  .bot-mail-track { max-width: 140px; }
  .cell-lab__grid { grid-template-columns: 1fr; }
  .seq-stats--4 { grid-template-columns: repeat(2, 1fr); }
  .calc-form { grid-template-columns: 1fr; }
  .dil-screen { grid-template-columns: 1fr; }
  .tube-card { flex-direction: row; justify-content: flex-start; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); }
  .tube { width: 42px; height: 74px; }
  .tube-legend { width: auto; flex: 1; }
}
@media (max-width: 768px) {
  .hero__marquee { display: none; }
  .hero__helix { right: -84px; width: 240px; height: 460px; opacity: .16; }
  .hero__helix svg { animation: none !important; transform: none !important; }
  .seq-divider { justify-content: flex-start; font-size: var(--text-xs); letter-spacing: .8px; }
  .seq-divider::before { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 var(--sp-4); }
  .nav__inner { height: 56px; }
  .nav__theme { min-height: 44px; padding: 0 var(--sp-3); }
  .nav__theme-label { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; background: var(--bg-surface);
    border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink-1); cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform .2s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }
  .nav__backdrop {
    position: fixed; inset: 56px 0 0 0; z-index: 55;
    background: rgba(22, 22, 20, .38); backdrop-filter: blur(2px);
  }
  .nav__backdrop:not([hidden]) { display: block; }
  .nav__indicator { display: none !important; }
  .nav__menu {
    display: none; position: absolute; left: var(--sp-4); right: var(--sp-4); top: calc(100% + 8px); z-index: 65;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: var(--sp-3); border-radius: var(--r-md);
    background: var(--bg-surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-hover);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { min-height: 44px; display: flex; align-items: center; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); font-size: var(--text-base); }
  .section { padding: var(--sp-6) 0; }
  .hero__actions .btn, .final-cta__actions .btn { flex: 1 1 140px; min-height: 44px; }
  .btn, .tool-tab, .cell-filter, .cell-pill, .sling-reset, .sling-mode__btn, .bot-mail-btn, .back-top { min-height: 44px; }
  .console__body > div { grid-template-columns: 1fr; gap: 2px; }
  .flow-pipe { grid-template-columns: 1fr; gap: var(--sp-2); padding: var(--sp-4); }
  .flow-pipe__node { justify-content: center; }
  .flow-pipe__link { height: 22px; width: 22px; margin: 0 auto; transform: rotate(90deg); }
  .wf-grid, .skills, .footer__inner { grid-template-columns: 1fr; }
  .bot-stage-row, .cell-lab__grid, .seq-tool__body { padding: var(--sp-3); }
  .cell-lab__bezel, .seq-tool__bezel { padding: var(--sp-3) var(--sp-4); }
  .tool-tabs { width: 100%; }
  .tool-tab { flex: 1 1 calc(50% - 4px); justify-content: center; padding: var(--sp-2); }
  .seq-screen { padding: var(--sp-3); }
  .seq-stats, .seq-stats--4, .dil-stats { grid-template-columns: 1fr; }
  .base-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-item__q { padding: var(--sp-3) var(--sp-4); }
  .faq-item__a { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
  .notice, .final-cta, .method, .bkb-status { padding: var(--sp-5); }
  .phylo { padding-left: var(--sp-3); }
  .phylo__root { margin-left: calc(var(--sp-3) * -1); }
  .phylo__tree { padding-left: var(--sp-4); }
  .phylo__node { padding-left: var(--sp-5); }
  .phylo__node::before { left: -16px; width: 34px; }
  .phylo__node::after { left: 14px; }
  .phylo__node--sub { margin-left: 14px; }
  .phylo__node--sub::before { left: -30px; width: 48px; }
  .links a { grid-template-columns: 1fr auto; gap: 4px var(--sp-3); padding: var(--sp-4); }
  .links__url { grid-column: 1; grid-row: 2; text-align: left; }
  .links__arrow { grid-column: 2; grid-row: 1 / span 2; }
  .footer__right { width: 100%; justify-content: space-between; }
}

/* ---------- 减少动态偏好（无动画无偏移） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js-reveal .reveal, html.js-reveal .reveal .phylo__node { opacity: 1 !important; transform: none !important; }
  .hero__helix svg, .hero__marquee-track { transform: none !important; }
  .flow-packet, .nav__indicator { display: none !important; }
  .card:hover, .wf-card:hover, .cell:hover { transform: none !important; }
}
/* Personal homepage: botanical cover and project catalogue. */
body:has(.folio-cover,.bio-masthead) :is(.bg-grid,.bg-topo,.bg-noise) { display:none; }
.folio-cover { position:relative; isolation:isolate; overflow:hidden; background:#101d17; color:#f8f6e9; }
.folio-plate { position:absolute; top:0; right:0; width:68%; height:100%; object-fit:cover; object-position:62% center; z-index:-2; }
.folio-cover::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#101d17 24%,rgba(16,29,23,.92) 36%,rgba(16,29,23,.30) 57%,transparent 76%); }
.folio-cover-inner { display:flex; align-items:center; min-height:clamp(470px,43vw,650px); padding-block:clamp(48px,5vw,80px); }
.folio-copy { width:48%; }
.folio-byline { color:#cbddaf; font-size:.86rem; letter-spacing:.08em; }
.folio-cover h1 { color:inherit; font-family:"Segoe UI","Microsoft YaHei UI",sans-serif; font-size:clamp(56px,6.15vw,98px); font-weight:650; line-height:1.09; letter-spacing:-.055em; margin:.35em 0 .25em; }
.folio-intro { max-width:27em; color:#d4ddd1; font-size:clamp(.95rem,1.2vw,1.1rem); line-height:1.85; }
.folio-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 24px; margin-top:28px; }
.folio-actions a { display:inline-flex; min-height:44px; align-items:center; gap:14px; color:#eff3de; text-decoration:none; font-weight:600; }
.folio-actions a:first-child { background:#dcf9a8; color:#152416; padding:0 22px; border-radius:4px; }
.folio-actions a:hover { text-decoration:underline; text-underline-offset:4px; }
#selected, #lab { scroll-margin-top:65px; }
#selected { padding-top:clamp(42px,5vw,72px); }
#selected .section__title, #lab .section__title, .instrument-caption h2 { font-size:clamp(30px,3.4vw,50px); letter-spacing:-.045em; font-weight:650; }
.folio-index { border-top:1px solid var(--ink-1); }
.folio-index a { color:var(--ink-1); display:grid; grid-template-columns:6em minmax(0,1fr) minmax(0,.95fr) 4em 2em; align-items:center; gap:1rem; text-decoration:none; padding:26px 0; border-bottom:1px solid var(--line-strong); }
.folio-index a:hover h3, .folio-index a:focus-visible h3 { color:var(--brand-accent); }
.folio-index h3 { font-size:clamp(22px,2.1vw,34px); line-height:1.22; letter-spacing:-.045em; }
.folio-kind,.folio-state { font-size:.8rem; color:var(--ink-2); }
.folio-index p,.instrument-caption p { color:var(--ink-2); line-height:1.7; }
.folio-arrow { justify-self:end; font-size:1.4rem; }
.instrument-caption p { max-width:24em; margin-top:12px; }
@media (max-width:760px) {
  .folio-cover-inner { min-height:0; padding-block:42px clamp(190px,49vw,335px); }
  .folio-copy { width:100%; max-width:28em; }
  .folio-cover h1 { font-size:clamp(49px,9vw,64px); }
  .folio-plate { top:auto; bottom:0; width:100%; height:54%; object-position:60% 55%; }
  .folio-cover::before { background:linear-gradient(to bottom,#101d17 44%,rgba(16,29,23,.86) 55%,transparent 78%); }
  .folio-index a { grid-template-columns:1fr auto; gap:6px 14px; padding:20px 0; }
  .folio-kind { grid-column:1; grid-row:1; }
  .folio-state { grid-column:2; grid-row:1; }
  .folio-index h3 { grid-column:1; grid-row:2; }
  .folio-arrow { grid-column:2; grid-row:2; }
  .folio-index p { grid-column:1/-1; }
}

/* Bioinformatics reference and browser-side data checks */
.bio-home { background: var(--bg-subtle); }
.bio-entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line-strong); }
.bio-entry-grid a { display: grid; gap: 6px; align-content: start; padding: 20px; text-decoration: none; }
.bio-entry-grid a + a { border-inline-start: 1px solid var(--line-strong); }
.bio-entry-grid span { color: var(--brand-accent); font-size: var(--text-sm); }
.bio-entry-grid strong { font-size: 1.22rem; }
.bio-entry-grid p { color: var(--ink-2); font-size: var(--text-sm); }
.bio-entry-grid a:hover { background: var(--bg-surface); }
.bio-masthead { padding: clamp(36px,6vw,76px) 0; background: #101d17; color: #f5f6e9; }
.bio-masthead h1 { color: inherit; font-size: clamp(36px,6vw,76px); letter-spacing: -.05em; }
.bio-masthead p { margin-top: 16px; color: #d2e0ce; }
.bio-jump { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; }
.bio-jump a { display: inline-flex; align-items: center; min-height: 44px; color: #dcf9a8; text-underline-offset: 5px; }
.bio-check,.bio-library,.bio-tabs button { scroll-margin-top: 70px; }
.bio-check { padding-inline: var(--sp-5); }
.bio-tabs { display: flex; gap: 8px; padding-bottom: 12px; }
.bio-tabs button { color: var(--ink-1); background: var(--bg-surface); border: 1px solid var(--line-strong); border-radius: var(--r-xs); cursor: pointer; padding-inline: 18px; min-height: 44px; font: 650 .94rem var(--mono); }
.bio-tabs button[aria-selected="true"] { color: var(--brand-on-accent); background: var(--brand-accent); border-color: var(--brand-accent); }
.bio-panel { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); border: 1px solid var(--line-strong); background: var(--bg-surface); border-radius: var(--r-sm); }
.bio-editor,.bio-results { padding: clamp(16px,3vw,30px); min-width: 0; }
.bio-results { background: var(--bg-subtle); border-inline-start: 1px solid var(--line-strong); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.bio-editor > p,.bio-results > p { margin-block: 8px 16px; color: var(--ink-2); font-size: var(--text-sm); }
.bio-editor > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--text-sm); }
#bio-input { display: block; width: 100%; min-height: 148px; resize: vertical; padding: 12px; background: var(--bg-canvas); color: var(--ink-1); border: 1px solid var(--line-strong); border-radius: var(--r-xs); font: .95rem/1.5 var(--mono); }
#bio-input[aria-invalid="true"] { border-color: var(--sem-danger); }
.bio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.bio-actions .btn { height: auto; padding-inline: 12px; }
.bio-editor .bio-file { margin: 18px 0 0; color: var(--ink-2); }
.bio-file input { display: block; margin-top: 6px; color: var(--ink-1); max-width: 100%; font: inherit; min-height: 44px; }
.bio-file input::file-selector-button { min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); color: var(--ink-1); background: var(--bg-subtle); margin-inline-end: 8px; }
.bio-editor .bio-privacy { margin-block: 5px 0; }
.bio-editor .bio-error { color: var(--sem-danger); margin-block: 8px 0; }
.bio-error:empty { margin: 0; }
.bio-readouts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-xs); overflow: hidden; background: var(--line-strong); }
.bio-readouts[hidden],.bio-extra[hidden] { display: none; }
.bio-readouts > div { background: var(--bg-surface); padding: 14px 12px; }
.bio-readouts dt,.bio-extra dt { color: var(--ink-2); font-size: var(--text-sm); }
.bio-readouts dd { margin: 3px 0 0; font-size: clamp(1.15rem,2vw,1.7rem); font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bio-extra { margin: 15px 0 0; }
.bio-extra div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding-block: 8px; border-bottom: 1px solid var(--line-strong); }
.bio-extra dd { margin: 0; font-size: var(--text-sm); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bio-library { padding: clamp(32px,6vw,76px) 0; background: var(--bg-subtle); }
.bio-resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px clamp(20px,4vw,60px); }
.bio-resource-group { border-top: 1px solid var(--ink-2); padding-top: 15px; }
.bio-resource-group ul { list-style: none; padding: 0; margin: 12px 0 0; }
.bio-resource-group a { display: grid; grid-template-columns: minmax(0,1fr) 16px; padding: 9px 0; border-bottom: 1px solid var(--line-strong); gap: 2px 10px; text-decoration: none; }
.bio-resource-group a::after { content: "↗" / ""; grid-column: 2; grid-row: 1; color: var(--brand-accent); }
.bio-resource-group a:hover strong { color: var(--brand-accent); text-decoration: underline; }
.bio-resource-group a span { color: var(--ink-2); font-size: var(--text-sm); }
@media (max-width: 680px) {
  .bio-entry-grid,.bio-panel,.bio-resource-grid { grid-template-columns: 1fr; }
  .bio-entry-grid a { padding-inline: 0; }
  .bio-entry-grid a + a { border-inline-start: 0; border-top: 1px solid var(--line-strong); }
  .bio-tabs button { flex: 1; padding-inline: 8px; }
  .bio-results { border-inline-start: 0; border-top: 1px solid var(--line-strong); border-radius: 0 0 var(--r-sm) var(--r-sm); }
}
