/* ============================================================
   RevolutionLA · SIGMA INSTRUMENT
   一台测量「信号」的精密仪器的前面板。
   ------------------------------------------------------------
   美术语言
     · 面板：分层暗色 + 1px 内高光 + 角部刻度括号（不是药丸卡片）
     · 字：Archivo 可变宽度（拉宽到 118%）作面板大字；
           JetBrains Mono 作微标签与读数；Noto Sans SC 承载中文；
           Instrument Serif 斜体只用在英文引语与少数拉丁点缀。
     · 色：近黑底盘 + 冷白文字，信号绿 #34f0a0 是唯一「亮着的灯」，
           琥珀 #f2b24c 只留给「可能性」这类人味词。
     · 动：开机校准 → 解码 → 呼吸读数 → 滚动编排，全部可降级。
   ------------------------------------------------------------
   与 tools/check-claims.py 的契约（改动前请先读它）
     · --space-0 / --space-2 必须保持为 #hex：检查器按它们算小字对比度
     · ≤14px 且 color: var(--token) 的规则，需在两种表面上都 ≥4.5:1
     · 窄屏断点（max-width 760 那条）块内必须保留
       `.js .nav-links` 的收起规则与 `.site-header.nav-open .nav-links` 的展开规则；
       本文件任何注释都不得写出 @media 开头的整串，否则会被检查器当成真的媒体块读。
   ============================================================ */

:root {
  /* ---------- 底盘色板 ---------- */
  --space-0: #06080c;      /* 页面底 */
  --space-1: #0a1017;      /* 区块底 */
  --space-2: #101821;      /* 面板底 */
  --space-3: #17222e;      /* 凸起/描边高亮 */
  --ink: #e6ecf4;          /* 主文字 */
  --ink-dim: #9aa7b8;      /* 次级文字 */
  --ink-faint: #8290a2;    /* 微标签 · 6.2:1 on --space-0 */
  --signal: #34f0a0;       /* 信号绿 · 唯一亮色 */
  --amber: #f2b24c;        /* 暖点缀 */
  --cyan: #7dd7ff;         /* 仅用于渐变过渡 */

  --signal-dim: rgba(52, 240, 160, 0.14);
  --signal-glow: rgba(52, 240, 160, 0.38);
  --grid-line: rgba(148, 168, 190, 0.055);
  --stroke: rgba(148, 168, 190, 0.14);
  --stroke-2: rgba(148, 168, 190, 0.26);
  --stroke-hi: rgba(226, 238, 250, 0.07);
  --panel-hi: inset 0 1px 0 rgba(226, 238, 250, 0.05);
  --panel-lo: 0 24px 60px -28px rgba(0, 0, 0, 0.9);

  /* ---------- 字体 ---------- */
  --display: 'Archivo', 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  --cn: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --serif: 'Instrument Serif', 'Noto Serif SC', Georgia, serif;

  /* ---------- 尺度 ---------- */
  --max: 1320px;
  --gut: clamp(20px, 4.4vw, 64px);
  --pad-sec: clamp(76px, 8.6vw, 132px);
  --r: 4px;
  --r-lg: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--cn);
  font-weight: 300;
  background: var(--space-0);
  color: var(--ink);
  line-height: 1.78;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

section[id] { scroll-margin-top: 92px; }

/* ---------- 文字原语 ---------- */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-solid { fill: currentColor; stroke: none; }
/* 高亮词是一个词：中文可以逐字断行，但不许把被强调的词劈成两半 */
.hl { color: var(--amber); font-weight: 500; white-space: nowrap; }
strong { font-weight: 500; color: var(--ink); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: #04120c; }

/* 读数用的 LED */
.led {
  width: 6px; height: 6px; flex: none; border-radius: 50%;
  display: inline-block; background: var(--ink-faint);
  vertical-align: middle;
}
.led-on {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim), 0 0 12px var(--signal-glow);
  animation: led-breathe 2.8s var(--ease-io) infinite;
}
@keyframes led-breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px var(--signal-dim), 0 0 14px var(--signal-glow); }
  50% { opacity: 0.5; box-shadow: 0 0 0 3px rgba(52, 240, 160, 0.07), 0 0 4px rgba(52, 240, 160, 0.2); }
}

/* ============================================================
   背景层：信号粒子场 / 机箱网格 / 颗粒
   ============================================================ */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* 粒子场的「这一层是活的」提示。
   它原先 fixed 在左下角，滚动起来会直接压在卡片标题上——固定元素压正文
   是排版事故，不是氛围。现在把它竖排进右侧那道面板缝里，像机箱侧面的丝印：
   那里在宽屏上是真正的空白沟槽，永远不会和正文抢地方；窄屏沟槽没了，就干脆不出现。 */
.field-hint {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 30px;
  z-index: 4;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.9s var(--ease);
}
.field-hint i { font-style: normal; }
.field-hint i:first-child { color: var(--signal); }
.field-hint i + i { margin-top: 11px; }
.js .field-hint.is-armed { display: none; }
.field-hint.is-off { opacity: 0; }
@media (min-width: 1024px) {
  .js .field-hint.is-armed { display: block; }
}

.chassis {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(rgba(148, 168, 190, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 168, 190, 0.028) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 95% 62% at 50% 22%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 62% at 50% 22%, #000 0%, transparent 78%);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.032;
  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='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 顶部与底部的机内光：让页面有「被照亮的面板」而不是纯黑背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 14% -6%, rgba(52, 240, 160, 0.075), transparent 62%),
    radial-gradient(48% 38% at 92% 8%, rgba(125, 215, 255, 0.055), transparent 60%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0.75), transparent 60%);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  position: relative;
}

/* ============================================================
   开机校准序列
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--space-0);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.boot-inner {
  width: min(420px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.boot-id {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--signal);
}
.boot-lines { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.boot-lines li {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateY(4px);
}
.boot.go .boot-lines li { animation: boot-line 0.34s var(--ease) forwards; }
.boot.go .boot-lines li:nth-child(2) { animation-delay: 0.16s; }
.boot.go .boot-lines li:nth-child(3) { animation-delay: 0.32s; }
.boot.go .boot-lines li:nth-child(4) { animation-delay: 0.48s; }
@keyframes boot-line { to { opacity: 1; transform: none; } }
.boot-meter {
  height: 1px;
  background: var(--stroke);
  position: relative;
  overflow: hidden;
}
.boot-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal-glow);
}
.boot.go .boot-fill { animation: boot-fill 1.05s var(--ease-io) forwards; }
@keyframes boot-fill { to { width: 100%; } }
.boot-pct { font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.boot-pct small { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em; }
.boot.is-done { opacity: 0; visibility: hidden; }
/* JS 缺席时绝不挡住页面：只有 .is-booting 且未 done 才可见 */
.boot:not(.is-live) { display: none; }
html.is-booting { overflow: hidden; }

/* ============================================================
   光标 / 滚动进度
   ============================================================ */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor,
html.has-cursor a,
html.has-cursor button { cursor: none; }
.cur-dot, .cur-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
}
.cur-dot { width: 5px; height: 5px; background: var(--signal); }
.cur-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--stroke-2);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
              margin 0.28s var(--ease), border-color 0.28s, background-color 0.28s;
}
html.has-cursor .cur-dot { margin: -2.5px 0 0 -2.5px; }
.cursor.is-hot .cur-ring {
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-color: var(--signal);
  background: rgba(52, 240, 160, 0.06);
}
.cur-label {
  position: fixed;
  top: 0; left: 0;
  z-index: 151;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #04120c;
  background: var(--signal);
  padding: 4px 8px;
  border-radius: 2px;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(0.8);
  transition: opacity 0.2s;
  pointer-events: none;
}
.cursor.is-hot .cur-label { opacity: 1; }

.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 90;
  background: rgba(148, 168, 190, 0.08);
}
.scroll-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(52, 240, 160, 0.35), var(--signal));
  box-shadow: 0 0 10px var(--signal-glow);
}

/* ============================================================
   导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 8, 12, 0.66);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
  transition: background-color 0.4s, border-color 0.4s;
}
.site-header.is-scrolled { background: rgba(6, 8, 12, 0.9); border-color: var(--stroke-2); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-glyph { color: var(--signal); }
.brand-name { font-variation-settings: 'wght' 500; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--signal); }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  border: 1px solid var(--stroke-2);
  padding: 9px 15px;
  border-radius: var(--r);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { color: var(--signal); border-color: var(--signal); box-shadow: 0 0 22px var(--signal-dim); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r);
  padding: 11px 13px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.nt-icon { display: inline-flex; flex-direction: column; gap: 4px; }
.nt-icon i { display: block; width: 15px; height: 1px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s; }
.site-header.nav-open .nt-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nt-icon i:nth-child(2) { opacity: 0; }
.site-header.nav-open .nt-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.btn-primary {
  background: var(--signal);
  color: #04120c;
  font-weight: 500;
  box-shadow: 0 0 0 rgba(52, 240, 160, 0), 0 14px 34px -14px rgba(52, 240, 160, 0.5);
}
.btn-primary:hover { background: #5cf7b6; box-shadow: 0 0 34px var(--signal-dim), 0 16px 40px -14px rgba(52, 240, 160, 0.6); }
.btn-ghost { border-color: var(--stroke-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 26px var(--signal-dim); }

/* ============================================================
   面板通用件
   ============================================================ */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--space-2), var(--space-1));
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--panel-hi), var(--panel-lo);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stroke);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.panel-head .ph-title { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-dim); }
.panel-head .ph-live { display: inline-flex; align-items: center; gap: 8px; }
.panel-foot {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--stroke);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.dotdot {
  display: inline-block;
  width: 18px;
  border-bottom: 1px dotted var(--stroke-2);
  vertical-align: middle;
  margin: 0 4px;
}


/* ============================================================
   右侧章节标尺
   ============================================================ */
.rail { display: none; }
@media (min-width: 1181px) {
  .rail {
    display: block;
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
  }
  .rail ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
  .rail-track {
    position: absolute;
    left: -14px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--stroke);
  }
  .rail-run {
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    background: var(--signal);
    box-shadow: 0 0 8px var(--signal-glow);
    transition: height 0.25s linear;
  }
  .rl-a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding: 4px 0;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    transition: color 0.3s;
  }
  .rl-n { font-size: 9px; opacity: 0.6; }
  .rl-t {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.5s var(--ease), opacity 0.4s;
  }
  .rl-a:hover { color: var(--ink); }
  .rl-a:hover .rl-t, .rl-a.is-active .rl-t { max-width: 120px; opacity: 1; }
  .rl-a.is-active { color: var(--signal); }
  .rl-a.is-active .rl-n { opacity: 1; }
}

/* ============================================================
   HERO · 主机面板
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(84px, 12vh, 130px) 0 clamp(56px, 8vh, 88px);
}
.hero-inner { width: 100%; }
.hero-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stroke);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}
.hs-item { display: inline-flex; align-items: center; gap: 9px; }
.hs-live { color: var(--signal); }
.hs-item b { color: var(--ink); font-weight: 500; }

/* ---------- 标题 ---------- */
/* 0.92 的行高会把「刘昂」的字面（约 1.08em 高）压进第二行里：
   绿字顶着笔画。行高交给两行各自管，行距用明确的外边距拉开。 */
.hero-title {
  margin: clamp(22px, 3.4vh, 40px) 0 clamp(22px, 3.2vh, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ht-row-1 {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.6vw, 34px);
}
.ht-cn {
  font-family: var(--cn);
  font-weight: 900;
  font-size: clamp(64px, 12.6vw, 168px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(230, 236, 244, 0.08);
  /* 中文能逐字断行：不锁住的话，窄屏上「刘昂」会被 flex 压成一上一下 */
  flex: none;
  white-space: nowrap;
}
/* 名字右边的横贯细线 + 机铭牌：把首屏右上角的空掉填成「面板丝印」 */
.ht-rule {
  flex: 1;
  height: 1px;
  margin-bottom: clamp(16px, 2.4vw, 30px);
  background: linear-gradient(90deg, var(--stroke-2), var(--stroke) 60%, transparent);
}
.ht-mark {
  flex: none;
  text-align: right;
  margin-bottom: clamp(8px, 1.4vw, 18px);
  letter-spacing: 0.2em;
}
.ht-mark b { display: block; font-size: 10px; font-weight: 500; color: var(--ink-dim); }
.ht-mark i { display: block; font-style: normal; font-size: 9px; color: var(--ink-faint); margin-top: 4px; }
.ht-row-2 { display: flex; align-items: baseline; gap: 0.16em; margin-top: clamp(6px, 1.1vh, 14px); }
.ht-slash {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 46px);
  color: var(--stroke-2);
}
.ht-en {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'wdth' 116, 'wght' 700;
  font-size: clamp(28px, 6.1vw, 84px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--signal);
  text-shadow: 0 0 34px rgba(52, 240, 160, 0.28);
}

/* ---------- 下半区：文案 + 状态读数 ---------- */
.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(292px, 0.66fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: end;
}
.hero-motto {
  font-size: clamp(21px, 2.9vw, 34px);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--ink);
  max-width: 24ch;
}
.hero-sub {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(26px, 4vh, 40px); }
/* 右列的「状态告示牌」：示波器删掉后，这块地得靠读数本身立住——
   标签在左、值贴右，虚线分行，跟 SPEC SHEET 用同一套表格语言 */
.hero-facts {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 1px solid var(--stroke-2);
}
.hero-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--stroke);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.hero-facts span { color: var(--ink-faint); letter-spacing: 0.2em; font-size: 10px; }
.hero-facts b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* 主打通道：首屏就把最重要的那个项目递到眼前，而不是等访客滚到 04 区 */
.hero-prime {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid var(--stroke-2);
  border-radius: 2px;
  background: rgba(52, 240, 160, 0.045);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  transition: border-color 0.35s, background-color 0.35s, color 0.35s;
}
.hero-prime:hover, .hero-prime:focus-visible {
  border-color: rgba(52, 240, 160, 0.5);
  background: rgba(52, 240, 160, 0.085);
  color: var(--ink);
  outline: none;
}
.hp-tag { font-size: 9px; letter-spacing: 0.22em; color: var(--signal); }
.hp-name { font-size: 12px; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.hp-note { color: var(--ink-faint); white-space: nowrap; }
.hero-prime .ico { transition: transform 0.35s var(--ease); }
.hero-prime:hover .ico, .hero-prime:focus-visible .ico { transform: translateX(4px); }

/* ---------- 读数表最后一行：滚动入口 ---------- */
/* 原来那枚浮在左下角的 SCROLL 提示跟 PRINCIPAL 通道抢同一块地，
   视口一矮就压在一起。把它改成读数表的 NEXT 行：在流内，永远撞不上，
   而且「下一站」本来就该长在告示牌上。 */
.hero-facts .hf-next-row { padding: 0; }
.hf-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.hf-next span { color: var(--ink-faint); letter-spacing: 0.2em; font-size: 10px; }
.hf-next b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color 0.3s;
}
.hf-next .ico { width: 13px; height: 13px; transform: rotate(90deg); transition: transform 0.35s var(--ease); }
.hf-next:hover, .hf-next:focus-visible { color: var(--signal); outline: none; }
.hf-next:hover .ico, .hf-next:focus-visible .ico { transform: rotate(90deg) translateX(4px); }

/* ============================================================
   走马灯
   ============================================================ */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(10, 16, 23, 0.6);
  overflow: hidden;
  padding: 13px 0;
}
.mq-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--ink-faint);
  animation: mq-run 42s linear infinite;
}
.mq-track i { color: var(--signal); font-style: normal; opacity: 0.7; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq-run { to { transform: translateX(-50%); } }

/* ============================================================
   区块头
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding-top: var(--pad-sec);
  padding-bottom: var(--pad-sec);
}
.sec-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  padding-bottom: clamp(28px, 4vh, 46px);
  border-bottom: 1px solid var(--stroke);
  margin-bottom: clamp(44px, 6vh, 76px);
}
.sec-idx {
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.16em;
  color: var(--signal);
  padding-bottom: 0.55em;
}
.sec-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--cn);
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
}
.sec-note {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.8;
  max-width: 42ch;
  padding-bottom: 0.3em;
}
/* 排名依据要给出可核对的出处，而不是让访客对着 ★ 猜 */
.sn-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke-2);
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sn-link:hover, .sn-link:focus-visible { color: var(--signal); border-color: var(--signal); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.84fr);
  gap: clamp(34px, 5.4vw, 84px);
  align-items: start;
}
.about-main p { color: var(--ink-dim); margin-bottom: 22px; }
.about-main .lede {
  font-size: clamp(20px, 2.5vw, 29px);
  line-height: 1.56;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 30px;
}
.about-main .body { font-size: 16px; max-width: 58ch; }
.quote {
  margin-top: 40px;
  padding: 22px 0 0 26px;
  border-left: 1px solid var(--signal);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.quote .serif { color: var(--ink); }

.about-side { display: flex; flex-direction: column; gap: 26px; }
.data-grid { padding: 14px; display: flex; flex-direction: column; }
.data-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--stroke);
  font-size: 14px;
}
.data-grid > div:last-child { border-bottom: 0; }
.data-grid dt {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  flex: none;
}
.data-grid dd { color: var(--ink); text-align: right; display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   STACK · 通道条
   ============================================================ */
.stack-strip { display: flex; flex-direction: column; border-top: 1px solid var(--stroke); }
.stack-card {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(160px, 0.82fr) minmax(0, 1.5fr) 128px;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
  padding: 28px 16px;
  border-bottom: 1px solid var(--stroke);
  transition: background-color 0.5s var(--ease), opacity 0.5s var(--ease);
}
.stack-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--signal);
  transform: scaleY(0);
  transition: transform 0.5s var(--ease);
}
.stack-card:hover { background: rgba(16, 24, 33, 0.66); }
.stack-card:hover::before { transform: scaleY(1); }
.stack-card.is-solo { background: rgba(16, 24, 33, 0.9); }
.stack-card.is-solo::before { transform: scaleY(1); }
.stack-card.is-muted { opacity: 0.32; }
.stack-card.is-muted .meter i { background: var(--space-3); box-shadow: none; }

.ch-left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ch-solo {
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 2px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 5px 8px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.ch-solo:hover { color: var(--ink); border-color: var(--stroke-2); }
.ch-solo[aria-pressed="true"] {
  color: var(--space-0);
  background: var(--signal);
  border-color: var(--signal);
}
.stack-card.is-solo .ch-left .led {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim), 0 0 12px var(--signal-glow);
}

.card-head { display: flex; flex-direction: column; gap: 6px; }
.ch-id { font-size: 10px; letter-spacing: 0.2em; color: var(--signal); }
.card-title {
  font-family: var(--cn);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.ch-en { font-size: 9px; letter-spacing: 0.26em; color: var(--ink-faint); }
.card-body p { font-size: 15px; color: var(--ink-dim); line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin-top: 12px; }
.tags li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border: 1px solid var(--stroke);
  border-radius: 2px;
  padding: 3px 9px;
  transition: color 0.3s, border-color 0.3s;
}
.stack-card:hover .tags li { border-color: var(--stroke-2); color: var(--ink-dim); }
.tags li:hover { border-color: var(--signal); color: var(--signal); }

/* 电平表 */
.meter { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.meter i {
  flex: 1;
  height: 12%;
  background: var(--space-3);
  border-radius: 1px;
  transition: height 0.42s var(--ease), background-color 0.4s, box-shadow 0.4s;
}
.stack-card.in-view .meter i { background: rgba(52, 240, 160, 0.2); }
.stack-card.in-view .meter i:nth-child(n+10) { background: rgba(242, 178, 76, 0.32); }
.stack-card:hover .meter i, .stack-card.is-solo .meter i {
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal-dim);
}
.stack-card:hover .meter i:nth-child(n+10),
.stack-card.is-solo .meter i:nth-child(n+10) { background: var(--amber); }

/* ============================================================
   PROJECTS
   ============================================================ */
/* 分类开关是 JS 功能：没有脚本时它们必须整排消失，
   而不是留下六个按下去什么都不会发生的按钮。卡片本身不受影响，全都在。 */
.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(30px, 4vh, 48px); }
.js .filters { display: flex; }
.filt-status { display: none; margin-top: 14px; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-faint); }
.js .filt-status { display: block; }
.filt-status b { font-weight: 400; color: var(--signal); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 2px;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.28s, border-color 0.28s, background-color 0.28s;
}
.chip b { font-weight: 400; opacity: 0.55; }
.chip:hover { color: var(--ink); border-color: var(--stroke-2); }
.chip.is-on { color: var(--signal); border-color: rgba(52, 240, 160, 0.45); background: rgba(52, 240, 160, 0.06); }

.proj-group { margin-top: clamp(34px, 5vh, 56px); transition: opacity 0.4s var(--ease); }
.proj-group:first-of-type { margin-top: 0; }
.proj-group.is-hidden { display: none; }
.pg-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}
.pg-label { white-space: nowrap; color: var(--ink-dim); }
.pg-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke), transparent); }
.pg-count { color: var(--signal); }

/* 其余项目：筛选开关只作用于这一区，主打卡永远留在上面 */
.proj-rest { margin-top: clamp(46px, 6.5vh, 84px); }
.proj-rest-head .pg-head { margin-bottom: 22px; }
.proj-rest-head .filters { margin-bottom: 0; }
.proj-rest .projects-grid { margin-top: clamp(26px, 3.6vh, 42px); }
/* 筛选是卡片级隐藏：被藏起来的卡不参与网格，也不会留下空槽 */
.project-card.is-hidden { display: none; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 26px 26px 22px;
  background: linear-gradient(170deg, var(--space-2) 0%, var(--space-1) 62%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--panel-hi);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.project-card[data-size="wide"] { grid-column: span 12; min-height: 300px; }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 90% at 100% 0%, rgba(52, 240, 160, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--stroke-2);
  box-shadow: var(--panel-hi), 0 30px 60px -34px rgba(0, 0, 0, 0.95), 0 0 30px var(--signal-dim);
  outline: none;
}
/* 键盘焦点必须和鼠标悬停看得出区别：整张卡片的悬停态是「抬起来」，
   焦点额外给一圈信号绿描边，只用键盘的人才知道自己在哪一格。 */
.project-card:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 4px;
}
.project-card:hover::after, .project-card:focus-visible::after { opacity: 1; }
.project-card > * { position: relative; z-index: 1; }

.pc-art {
  position: absolute;
  right: 18px; top: 16px;
  z-index: 0;
  width: 92px;
  color: var(--signal);
  opacity: 0.34;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.pc-art svg {
  display: block; width: 100%; height: auto;
  fill: none; stroke: currentColor; stroke-width: 1.15;
  stroke-linecap: round; stroke-linejoin: round;
}
.project-card:hover .pc-art, .project-card:focus-visible .pc-art { opacity: 0.9; transform: translateY(-2px); }
.project-card[data-size="wide"] .pc-art { width: clamp(140px, 22vw, 260px); right: clamp(20px, 4vw, 68px); top: 50%; transform: translateY(-50%); opacity: 0.2; }
.project-card[data-size="wide"]:hover .pc-art { opacity: 0.72; transform: translateY(-52%); }

.pc-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 16px;
}
/* 名次：star 数从高到低的序号，跟着卡走，筛选时不会错位 */
.pc-rank {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--signal);
  border: 1px solid rgba(52, 240, 160, 0.3);
  border-radius: 2px;
  padding: 1px 5px;
  background: rgba(52, 240, 160, 0.06);
}
/* npm 安装量：页面上唯一一个「别人到底在用不用」的硬读数，用琥珀色和 star 区分开 */
.pc-dl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.pc-dl b {
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.pc-dl-k {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--amber);
  border: 1px solid rgba(242, 178, 76, 0.34);
  border-radius: 2px;
  padding: 1px 5px;
}
.pc-name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 31px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
  word-break: break-word;
}
.project-card[data-size="wide"] .pc-name { font-size: clamp(28px, 4.4vw, 54px); }
/* 通栏卡最宽：正文若仍按 62ch 收着，左半栏和右侧装饰图之间会裂开一大片空 */
.project-card[data-size="wide"] .pc-desc { max-width: min(58%, 680px); }
.pc-desc {
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--ink-dim);
  margin-bottom: 20px;
  flex: 1;
  max-width: 62ch;
}
.pc-meta { display: flex; gap: 8px; margin-bottom: 16px; }
.pc-meta i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  border: 1px solid var(--stroke);
  border-radius: 2px;
  padding: 2px 7px;
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  transition: color 0.3s;
  word-break: break-all;
}
.pc-link .ico { transition: transform 0.4s var(--ease); }
.project-card:hover .pc-link { color: var(--signal); }
.project-card:hover .pc-link .ico { transform: translateX(5px); }

/* ---------- 主通道：dsh-dream-skin ----------
   它不参与筛选，也必须在分量上压过其余卡：更大的名字、更亮的边框、
   左缘一条从信号色褪到透明的竖边，读作「这一路是通的」。
   选择器一律带 .project-card：通栏卡本就有 (0,2,0) 的字号规则，
   只写 .flagship .pc-name 会被它压掉。 */
.flagship { margin-top: clamp(26px, 3.6vh, 42px); }
.flagship .pg-label { color: var(--ink-dim); }
.flagship .project-card {
  min-height: clamp(330px, 42vh, 430px);
  padding: clamp(30px, 3.2vw, 50px) clamp(28px, 3.6vw, 56px) clamp(26px, 2.8vw, 44px);
  padding-left: clamp(36px, 3.8vw, 60px);
  border-color: rgba(52, 240, 160, 0.26);
  background:
    linear-gradient(150deg, rgba(52, 240, 160, 0.07) 0%, transparent 42%),
    linear-gradient(170deg, var(--space-2) 0%, var(--space-1) 62%);
  box-shadow: var(--panel-hi), 0 0 46px rgba(52, 240, 160, 0.05);
}
.flagship .project-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--signal), rgba(52, 240, 160, 0.06));
}
.flagship .project-card:hover, .flagship .project-card:focus-visible {
  border-color: rgba(52, 240, 160, 0.5);
  box-shadow: var(--panel-hi), 0 30px 60px -34px rgba(0, 0, 0, 0.95), 0 0 40px var(--signal-dim);
}
.flagship .pc-status { font-size: 11px; letter-spacing: 0.2em; }
.flagship .project-card[data-size="wide"] .pc-name { font-size: clamp(34px, 4.9vw, 66px); }
.flagship .project-card[data-size="wide"] .pc-desc {
  font-size: 15.5px;
  max-width: min(52%, 640px);
}
.flagship .project-card[data-size="wide"] .pc-art { opacity: 0.26; }

/* ============================================================
   TRACE · 轨迹
   ============================================================ */
.trace { position: relative; padding-top: 30px; }
.trace-line {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%; height: 8px;
  overflow: visible;
}
.trace-line path { fill: none; stroke-width: 1; }
.tl-track { stroke: var(--stroke); }
.tl-run {
  stroke: var(--signal);
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0 0 6px var(--signal-glow));
  transition: stroke-dashoffset 1.6s var(--ease);
}
.trace.in-view .tl-run { stroke-dashoffset: 0; }
/* 轴末端的方向箭头：线跑到 NOW 之后仍继续向右，读作「还在往前」 */
.tl-tip {
  stroke: var(--signal);
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--signal-glow));
  transition: opacity 0.5s ease 1.35s;
}
.trace.in-view .tl-tip { opacity: 1; }
.trace-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.tl-item { position: relative; padding-top: 26px; }
.tl-node {
  position: absolute;
  top: -34px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--space-0);
  border: 1px solid var(--signal);
  box-shadow: 0 0 12px var(--signal-dim);
}
.tl-node::after {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 1px; height: 14px;
  background: var(--stroke-2);
}
.tl-node-live { animation: node-live 2.9s var(--ease-io) infinite; }
@keyframes node-live {
  0%, 100% { box-shadow: 0 0 12px var(--signal-dim); }
  50% { box-shadow: 0 0 0 5px rgba(52, 240, 160, 0.07), 0 0 20px var(--signal-glow); }
}
.tl-meta { font-size: 10px; letter-spacing: 0.2em; color: var(--signal); margin-bottom: 12px; }
.tl-item h3 {
  font-family: var(--cn);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.tl-item p { font-size: 14.5px; color: var(--ink-dim); max-width: 40ch; }

/* ============================================================
   SIGNAL · 副载波
   ============================================================ */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stroke);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.sig-card {
  background: var(--space-0);
  padding: clamp(26px, 3.4vw, 44px) clamp(22px, 2.6vw, 34px) clamp(30px, 4vw, 48px);
  transition: background-color 0.5s var(--ease);
}
.sig-card:hover { background: var(--space-1); }
.sig-icon {
  display: block;
  width: 54px;
  color: var(--amber);
  opacity: 0.8;
  margin-bottom: 26px;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.sig-icon svg {
  display: block; width: 100%; height: auto;
  fill: none; stroke: currentColor; stroke-width: 1.1;
  stroke-linecap: round; stroke-linejoin: round;
}
.sig-card:hover .sig-icon { transform: translateY(-3px); opacity: 1; }
.sig-card h3 {
  font-family: var(--cn);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.sig-card p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.8; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 88% -30%, rgba(52, 240, 160, 0.1), transparent 62%),
    linear-gradient(180deg, var(--space-2), var(--space-1));
}
.contact-body { padding: clamp(30px, 5vw, 64px); }
.contact-body .sec-idx { display: block; margin-bottom: 18px; padding: 0; font-size: 11px; }
.contact-title {
  font-family: var(--cn);
  font-weight: 900;
  font-size: clamp(38px, 8vw, 104px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.24em;
}
.ct-en {
  font-family: var(--display);
  font-variation-settings: 'wdth' 118, 'wght' 400;
  font-size: clamp(14px, 2.2vw, 26px);
  letter-spacing: 0.16em;
  color: var(--signal);
  opacity: 0.85;
}
.contact-note {
  max-width: 46ch;
  margin: 22px 0 34px;
  font-size: 16px;
  color: var(--ink-dim);
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.mail-btn { text-align: left; }
.mail-btn .mail-hint { font-size: 9px; letter-spacing: 0.16em; opacity: 0.6; white-space: nowrap; }
.mail-btn.is-copied .mail-hint::before { content: ""; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke);
  padding: 30px 0 34px;
  background: rgba(6, 8, 12, 0.6);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.footer-row b { color: var(--ink-dim); font-weight: 500; }
.fr-mid { color: var(--ink-faint); }
.fr-top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); transition: color 0.3s; }
.fr-top:hover { color: var(--signal); }
.fr-top .ico { transform: rotate(-90deg); transition: transform 0.4s var(--ease); }
.fr-top:hover .ico { transform: rotate(-90deg) translateX(4px); }

/* ============================================================
   显现编排
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-line {
  clip-path: inset(0 0 108% 0);
  transition: clip-path 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal-line.in-view { clip-path: inset(0 0 -12% 0); }

/* ============================================================
   无障碍
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 210;
  background: var(--signal);
  color: #04120c;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-lg) 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .hero-lower { grid-template-columns: 1fr; align-items: start; }
  .sec-head { grid-template-columns: 54px minmax(0, 1fr); }
  .sec-note { grid-column: 2; padding-bottom: 0; }
  .project-card, .project-card[data-size="wide"] { grid-column: span 12; }
  .stack-card { grid-template-columns: 74px minmax(150px, 0.9fr) minmax(0, 1.4fr) 104px; }
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: 1fr; }
  .trace-items { grid-template-columns: 1fr; gap: 34px; }
  .trace-line { display: none; }
  .tl-item { padding: 4px 0 0 26px; border-left: 1px solid var(--stroke); }
  .tl-node { top: 8px; left: -5px; }
  .tl-node::after { display: none; }
  .stack-card {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    padding: 24px 10px;
  }
  .ch-left { grid-column: 1; flex-direction: row; align-items: center; }
  .card-head { grid-column: 1; }
  .meter { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .card-body { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav { height: 62px; }
  /* 抽屉是「收起」而不是「删掉」：无 JS 的访客仍然看得见 6 个锚点，
     所以隐藏这条挂在 .js 上，而不是无条件 display:none。 */
  .js .nav-links { display: none; }
  .js .site-header.nav-open .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--gut) 20px;
    background: rgba(6, 8, 12, 0.98);
    border-bottom: 1px solid var(--stroke-2);
  }
  .js .site-header.nav-open .nav-links li { list-style: none; }
  .js .site-header.nav-open .nav-links a {
    display: block;
    padding: 12px 2px;
    font-size: 12px;
    color: var(--ink);
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .hero { padding-top: 96px; min-height: auto; }
  .ht-cn { font-size: clamp(58px, 20vw, 96px); }
  /* 首屏那根横贯线与铭牌在 390 宽下会把名字挤成两行：线让位，铭牌缩小 */
  .ht-rule { display: none; }
  .ht-mark { letter-spacing: 0.12em; margin-bottom: 10px; }
  .ht-mark b { font-size: 8px; }
  .ht-mark i { font-size: 7px; }
  .hero-motto { max-width: none; font-size: 22px; }
  /* 主打入口那条在 390 宽里排不下整行：备注允许换到第二行，项目名仍不折断 */
  .hero-prime { width: 100%; flex-wrap: wrap; gap: 6px 11px; }
  .hp-note { white-space: normal; }
  .sec-head { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .contact-body { padding: 26px 20px; }
  .btn { width: 100%; justify-content: center; }
  .contact-actions { flex-direction: column; }
  /* 邮箱 + 「点击复制」要在 310px 里排成一排，缩一号比折行体面 */
  .mail-btn { font-size: 11.5px; gap: 7px; }
  /* 窄屏没有右半区的空白给装饰图：让它退到文字背后当水印，别压在字上 */
  .pc-art { width: 64px; opacity: 0.1; z-index: 0; }
  /* 通栏卡那条得写得一样重才压得住：.flagship .project-card[data-size=wide] .pc-art
     是 (0,4,0)，只写 .pc-art 会被它顶回去，装饰图于是又骑回正文上——
     窄屏没有右侧留白，就把它收到右下角那一小块真空里。 */
  .project-card[data-size="wide"] .pc-art,
  .flagship .project-card[data-size="wide"] .pc-art {
    width: 72px; top: auto; right: 14px; bottom: 14px;
    transform: none; opacity: 0.11;
  }
  .project-card[data-size="wide"]:hover .pc-art,
  .flagship .project-card[data-size="wide"]:hover .pc-art {
    opacity: 0.16; transform: none;
  }
  .project-card { min-height: 0; padding: 22px 20px 20px; }
  /* 主打卡在窄屏收回普通卡的分量，只留左边那条主通道标和更大的名字 */
  .flagship .project-card { min-height: 0; padding: 24px 20px 22px 28px; }
  /* 窄屏没有右半区：通栏卡的正文不必再为装饰图让出 58% */
  .project-card[data-size="wide"] .pc-desc { max-width: none; }
  .flagship .project-card[data-size="wide"] .pc-desc { max-width: none; }
  /* 链接不许在词中间折断；缩一号让它整条待在一行 */
  .pc-link { font-size: 9.5px; word-break: normal; }
  .marquee { padding: 10px 0; }
}

@media (max-width: 420px) {
  .filters { gap: 6px; }
  .chip { padding: 7px 10px; letter-spacing: 0.1em; }
  .hero-strip { gap: 12px; }
}

/* 悬停能力不存在时，不加载自定义光标 */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led-on, .mq-track, .boot.go .boot-fill, .boot.go .boot-lines li { animation: none; }
  .reveal, .reveal-line { opacity: 1; transform: none; clip-path: none; transition: none; }
  .tl-run { stroke-dashoffset: 0; transition: none; }
  .tl-tip { opacity: 1; transition: none; }
  .tl-node-live { animation: none; }
  .project-card:hover, .stack-card:hover { transform: none; }
  .cursor { display: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
