/* ==========================================================
   多宝登录站 · 共享层 /assets/site.css
   轨道 + 刊头 + 连续画布 + 信息带
   ========================================================== */

/* ---------- 1. Reset 与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #04141C;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h, 160px) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  padding-left: var(--rail-w);
  padding-top: var(--masthead-h, 160px);
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 640px at 82% -12%, rgba(30, 86, 107, 0.5), transparent 66%),
    radial-gradient(760px 520px at 4% 108%, rgba(111, 168, 60, 0.16), transparent 62%),
    linear-gradient(180deg, #04141C 0%, #061A24 52%, #04141C 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(16, 55, 74, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 55, 74, 0.6) 1px, transparent 1px);
  background-size: 80px 80px;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0 0 1.4em; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #04141C;
  --ink-800: #0A2230;
  --line: #10374A;
  --teal-600: #1E566B;
  --mist: #6E93A1;
  --paper: #E9F5F2;
  --lime: #B6FF3C;
  --moss: #6FA83C;
  --amber: #FFB347;
  --alert: #E2564A;
  --glass: rgba(233, 245, 242, 0.08);

  --rail-w: 240px;
  --masthead-h: 160px;

  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", "DejaVu Sans Mono",
    Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 3. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.24s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 4. 外壳：固定层 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---------- 5. 左侧轨道 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 20px 22px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 40% at 20% 0%, rgba(30, 86, 107, 0.55), transparent 70%),
    linear-gradient(180deg, #0A2230 0%, #061A24 60%, #04141C 100%);
  overflow: hidden;
}
.rail__brand {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.rail__mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lime);
  border: 1px solid rgba(182, 255, 60, 0.45);
  background: radial-gradient(62% 62% at 30% 24%, rgba(182, 255, 60, 0.2), transparent 72%);
}
.rail__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.rail__note {
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rail__link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rail__link:hover { color: var(--paper); background: var(--glass); }
.rail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal-600);
}
.rail__label { overflow-wrap: anywhere; }
.rail__link[aria-current="page"] {
  color: var(--paper);
  background: var(--glass);
  box-shadow: inset 2px 0 0 0 var(--lime);
}
.rail__link[aria-current="page"] .rail__num { color: var(--lime); }
.rail__foot {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rail__phase {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.rail__phase b {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 2px;
}
.rail__progress {
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.rail__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--lime));
  transition: width 0.12s linear;
}

/* ---------- 6. 刊头 ---------- */
.masthead {
  position: fixed;
  left: var(--rail-w);
  right: 0;
  top: 0;
  pointer-events: auto;
  background: rgba(4, 20, 28, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 56px;
  padding: 16px clamp(20px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), min-height 0.3s var(--ease);
}
.masthead__brand {
  margin-right: auto;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.brand {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--paper);
  text-decoration: none;
}
.brand__note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mist);
  max-height: 42px;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
}
.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.site-header[data-scrolled] .masthead__bar { padding-block: 6px; }
.site-header[data-scrolled] .brand__note { max-height: 0; opacity: 0; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--solid {
  background: var(--lime);
  color: var(--ink-900);
  font-weight: 700;
}
.btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(182, 255, 60, 0.16);
}
.btn--solid:active { background: var(--moss); transform: none; }
.btn--ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover { border-color: rgba(182, 255, 60, 0.5); color: var(--lime); }

/* ---------- 8. 移动栏目按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 11px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] {
  color: var(--lime);
  border-color: rgba(182, 255, 60, 0.45);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 9. 主导航 ---------- */
.site-nav { padding: 0 clamp(20px, 3.5vw, 48px); }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: baseline;
}
.site-nav__list a {
  display: inline-block;
  padding: 9px 2px;
  text-decoration: none;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.1em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav__list a:hover { color: var(--paper); }
.site-nav__list a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ---------- 10. 信息带 ---------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px clamp(20px, 3.5vw, 48px);
  max-height: 46px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(16, 55, 74, 0.28);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mist);
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease),
    opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ticker__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 255, 60, 0.16);
}
.site-header[data-scrolled] .ticker {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  border-top-color: transparent;
}

/* ---------- 11. 返回顶部 ---------- */
.to-top {
  position: fixed;
  left: 20px;
  bottom: 22px;
  width: calc(var(--rail-w) - 40px);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 34, 48, 0.9);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.to-top[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--lime); border-color: rgba(182, 255, 60, 0.5); }

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(48px, 6vw, 72px) clamp(20px, 3.5vw, 48px) 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 34, 48, 0.62), rgba(4, 20, 28, 0.94));
}
.footer__inner {
  width: min(1220px, 100%);
  margin-inline: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.footer__brand { display: grid; gap: 10px; align-content: start; }
.footer__logo {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.footer__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 40ch;
}
.footer__note--meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal-600);
}
.footer__col { display: grid; gap: 14px; align-content: start; }
.footer__title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mist);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.footer__list a {
  text-decoration: none;
  color: var(--paper);
  opacity: 0.84;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.footer__list a:hover { color: var(--lime); border-bottom-color: var(--lime); opacity: 1; }
.footer__list--plain li {
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}
.footer__contact {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.footer__contact-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.footer__legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.footer__legal-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--teal-600);
}

/* ---------- 13. 正文通用容器 ---------- */
.wrap {
  width: min(1220px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 3.5vw, 48px);
}
.canvas {
  width: min(1220px, 100%);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 68px) clamp(20px, 3.5vw, 48px) 0;
}
.stack { display: grid; gap: 1.4em; }
.stack--tight { gap: 0.8em; }

/* ---------- 14. 章节与标题 ---------- */
.section {
  padding-block: clamp(38px, 5.5vw, 78px);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; padding-top: 0; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 36px); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--lime);
}
.display {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 104px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.85;
  color: var(--paper);
  opacity: 0.86;
}
.meta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.divider { height: 1px; border: 0; margin: 0; background: var(--line); }

/* ---------- 15. 网格 ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 16. 数据组件 ---------- */
.stat { display: grid; gap: 6px; align-content: start; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}
.stat--lime .stat__value { color: var(--lime); }
.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}
.badge--lime {
  color: var(--lime);
  border-color: rgba(182, 255, 60, 0.42);
  background: rgba(182, 255, 60, 0.08);
}
.badge--amber {
  color: var(--amber);
  border-color: rgba(255, 179, 71, 0.42);
  background: rgba(255, 179, 71, 0.08);
}
.badge--alert {
  color: var(--alert);
  border-color: rgba(226, 86, 74, 0.45);
  background: rgba(226, 86, 74, 0.1);
}
.note {
  margin: 0;
  padding: 14px 18px;
  border-left: 2px solid var(--lime);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--glass);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.92;
}
.note--amber { border-left-color: var(--amber); }
.note--alert { border-left-color: var(--alert); }

/* ---------- 17. 表格 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.table caption {
  text-align: left;
  padding: 12px 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.table th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mist);
}
.table tbody tr { transition: background-color 0.2s var(--ease); }
.table tbody tr:hover { background: var(--glass); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-family: var(--font-mono); color: var(--amber); }

/* ---------- 18. 图像容器 ---------- */
.media { margin: 0; display: grid; gap: 10px; }
.media__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(30, 86, 107, 0.55), transparent 62%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
}
.media__frame img,
.media__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media--tall .media__frame { aspect-ratio: 4 / 5; }
.media__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.pitch {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 84% 0%, rgba(30, 86, 107, 0.55), transparent 60%),
    rgba(10, 34, 48, 0.65);
}
.pitch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(233, 245, 242, 0.14);
}
.pitch::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -70%;
  height: 150%;
  border-radius: 50%;
  border: 1px solid rgba(182, 255, 60, 0.22);
}

/* ---------- 19. 面包屑 ---------- */
.breadcrumb { margin: 0 0 24px; }
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.breadcrumb__list a { color: var(--mist); text-decoration: none; }
.breadcrumb__list a:hover { color: var(--lime); }
.breadcrumb__sep { color: var(--teal-600); }
.breadcrumb__list [aria-current="page"] { color: var(--paper); }

/* ---------- 20. 标签页 / 面板 / 复制 ---------- */
.tablist {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tab:hover { color: var(--paper); border-color: var(--teal-600); }
.tab[aria-selected="true"] {
  color: var(--lime);
  border-color: rgba(182, 255, 60, 0.5);
  background: rgba(182, 255, 60, 0.1);
}
.panel[hidden] { display: none; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px dashed var(--teal-600);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy-btn:hover { color: var(--paper); border-color: var(--lime); }
.copy-btn[data-copied] {
  color: var(--lime);
  border-color: var(--lime);
  border-style: solid;
}

/* ---------- 21. 显现 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1100px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: 0;
  }
  html { scroll-padding-top: 132px; }
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    pointer-events: auto;
    background: rgba(4, 20, 28, 0.94);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .rail { display: none; }
  .masthead {
    position: static;
    left: auto;
    right: auto;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
  }
  .masthead__bar {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px clamp(16px, 4vw, 28px);
  }
  .masthead__brand { flex: 1 1 100%; }
  .brand { font-size: 18px; letter-spacing: 0.14em; }
  .brand__note { font-size: 11.5px; line-height: 1.6; }
  .masthead__actions { margin-left: 0; }
  .btn { padding: 9px 15px; font-size: 12.5px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; padding: 0; }
  .site-nav[data-open] {
    display: block;
    padding: 4px clamp(16px, 4vw, 28px) 14px;
    border-top: 1px solid var(--line);
  }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block;
    padding: 12px 8px 12px 14px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }
  .site-nav__list a[aria-current="page"] {
    color: var(--lime);
    border-bottom-color: var(--line);
    border-left-color: var(--lime);
    background: var(--glass);
  }
  .ticker {
    padding-inline: clamp(16px, 4vw, 28px);
    font-size: 11px;
    letter-spacing: 0.04em;
    max-height: 60px;
  }
  .site-header[data-scrolled] .ticker { max-height: 0; }
  .site-header[data-scrolled] .masthead__bar { padding-block: 10px; }
  .site-header[data-scrolled] .brand__note { max-height: 42px; opacity: 1; }
  .to-top {
    left: auto;
    right: 16px;
    bottom: 18px;
    width: auto;
    padding: 11px 16px;
    box-shadow: 0 8px 24px rgba(4, 20, 28, 0.6);
  }
  .grid--halves,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .canvas { padding-top: 30px; }
}
@media (max-width: 560px) {
  .masthead__actions .btn--ghost { display: none; }
  .display { font-size: clamp(34px, 12vw, 52px); letter-spacing: 0.03em; }
  .footer__legal { flex-direction: column; gap: 8px; }
}

/* ---------- 23. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .to-top { transform: none; }
}
