/* ============================================================
   LEYU 移动版 / assets/site.css
   共享外壳：命令栏头部、斜切光带页脚、通用排版与基础组件
   ============================================================ */

:root {
  --ink: #070B14;
  --ink-2: #0A0F1B;
  --panel: #0E1626;
  --panel-2: #121D31;
  --line: #263247;
  --line-soft: rgba(38, 50, 71, 0.62);
  --mist: #8A94A6;
  --ice: #A9D6FF;
  --neon: #B6FF3B;
  --amber: #FF7A1A;
  --alert: #FF4D6D;
  --white: #F5F7FA;
  --text-soft: #C9D2E0;

  --font-display: "Arial Narrow", "Helvetica Neue", Haettenschweiler, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 68px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 3px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 34px -22px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 480px at 84% -6%, rgba(182, 255, 59, 0.09), transparent 62%),
    radial-gradient(640px 420px at 4% 6%, rgba(169, 214, 255, 0.06), transparent 64%),
    linear-gradient(180deg, #070B14 0%, #070B14 58%, #05080F 100%);
}

h1, h2, h3, h4, h5, h6 { margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--white); }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

button { font: inherit; color: inherit; }

hr { border: 0; }

::selection {
  background: var(--neon);
  color: #08110A;
}

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

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 中文排版与标题层级 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--white);
}

h1 { font-size: clamp(2.375rem, 6.2vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.005em; line-height: 1.35; }
h4 { font-size: 1.02rem; line-height: 1.45; }

strong, b { color: var(--white); font-weight: 700; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 容器 / 区块 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1440px; }

.section { position: relative; padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: clamp(20px, 3vw, 36px);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -72px;
  z-index: 130;
  display: inline-block;
  padding: 10px 18px;
  background: var(--neon);
  color: #08110A;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: top 0.16s var(--ease);
}
.skip-link:focus-visible,
.skip-link:focus {
  top: 10px;
  color: #08110A;
}

/* ============================================================
   命令栏头部
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: rgba(7, 11, 20, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(38, 50, 71, 0.9);
}
.brand-mark::before { left: 0; right: 0; bottom: 7px; height: 1px; }
.brand-mark::after { top: 0; bottom: 0; right: 7px; width: 1px; }

.brand-mark-slash {
  display: block;
  width: 2px;
  height: 19px;
  background: var(--neon);
  transform: rotate(24deg);
  box-shadow: 0 0 12px rgba(182, 255, 59, 0.85);
}

.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--white);
}
.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--mist);
}

/* 版本在线提示 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(14, 22, 38, 0.82);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--ice);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.16);
  animation: status-pulse 2.8s var(--ease) infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(182, 255, 59, 0.02); }
}

/* 导航 */
.header-nav { margin: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: navi;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 2px;
  color: var(--mist);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  counter-increment: navi;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-link::before {
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: rgba(138, 148, 166, 0.55);
  transition: color 0.15s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background: rgba(169, 214, 255, 0.07);
}
.nav-link:hover::before { color: var(--ice); }

.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::before { color: var(--neon); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(182, 255, 59, 0.7);
}

/* 右侧动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(182, 255, 59, 0.42);
  border-radius: 2px;
  background: rgba(182, 255, 59, 0.06);
  color: var(--neon);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.2s var(--ease);
}
.cmd-chip::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: rotate(-90deg);
  opacity: 0.75;
}
.cmd-chip:hover,
.cmd-chip:focus-visible {
  background: var(--neon);
  color: #08110A;
  box-shadow: 0 0 24px -6px rgba(182, 255, 59, 0.85);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-toggle:hover { border-color: rgba(169, 214, 255, 0.5); }
.nav-toggle-label { line-height: 1; }

.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--neon);
  transform-origin: center;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

[data-open] .nav-toggle-bars i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
[data-open] .nav-toggle-bars i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
[data-open] .nav-toggle { border-color: rgba(182, 255, 59, 0.55); }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ice), var(--neon));
  box-shadow: 0 0 12px rgba(182, 255, 59, 0.65);
  transition: width 0.1s linear;
}

/* ---------- 移动端底部悬浮胶囊 ---------- */
.dock { display: none; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 112px);
  overflow: hidden;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(46px, 7vw, 96px);
  pointer-events: none;
  background:
    radial-gradient(520px 200px at 16% 0, rgba(182, 255, 59, 0.16), transparent 70%),
    radial-gradient(460px 190px at 86% 0, rgba(255, 122, 26, 0.12), transparent 72%),
    linear-gradient(90deg, rgba(169, 214, 255, 0.07), transparent 62%);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(18px, 2.5vw, 26px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--white);
}
.footer-wordmark span {
  display: inline-block;
  margin-left: 0.55em;
  font-family: var(--font-body);
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--mist);
  vertical-align: 0.5em;
}

.footer-tagline {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ice);
}
.footer-version::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.85);
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--mist);
  text-transform: uppercase;
}

.footer-links { display: grid; gap: 10px; }

.footer-link {
  display: inline-block;
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.footer-link::before {
  content: "›";
  margin-right: 8px;
  color: var(--line);
  transition: color 0.15s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--neon); }
.footer-link:hover::before { color: var(--neon); }

.footer-contact { display: grid; gap: 13px; }
.footer-contact li {
  display: grid;
  gap: 3px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}
.contact-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: rgba(138, 148, 166, 0.75);
}
.contact-val {
  display: block;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--white);
  word-break: break-word;
}
.contact-note {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 122, 26, 0.55);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: clamp(16px, 2.4vw, 22px);
  font-size: 0.78rem;
  color: var(--mist);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-links a {
  color: var(--mist);
  font-size: 0.78rem;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--ice);
}
.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.footer-meta {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(138, 148, 166, 0.8);
}

/* ============================================================
   通用组件
   ============================================================ */

/* 栏目编号 / 导语 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--neon { color: var(--neon); }

.lede {
  max-width: 56ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.9;
  color: var(--text-soft);
}

/* 正文流 */
.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.prose > * + * { margin-top: 0.9em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.prose h3 { margin-top: 1.6em; color: var(--white); }
.prose ul,
.prose ol { padding-left: 1.2em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -0.95em;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--neon);
}
.prose ol { counter-reset: proseol; }
.prose ol li { list-style: none; counter-increment: proseol; position: relative; }
.prose ol li::before {
  content: counter(proseol, decimal-leading-zero);
  position: absolute;
  left: -1.9em;
  top: 0.18em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ice);
}
.prose li { margin-bottom: 0.45em; }
.prose a { color: var(--ice); border-bottom: 1px solid rgba(169, 214, 255, 0.35); }
.prose a:hover { color: var(--neon); border-bottom-color: var(--neon); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--neon);
  font-family: var(--font-serif);
  color: var(--white);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--ice); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--neon);
  color: #08110A;
  box-shadow: 0 12px 30px -16px rgba(182, 255, 59, 0.95);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: #C9FF62;
  color: #08110A;
  box-shadow: 0 16px 36px -14px rgba(182, 255, 59, 0.95);
}

.btn--amber {
  background: var(--amber);
  color: #160B02;
  box-shadow: 0 12px 30px -18px rgba(255, 122, 26, 1);
}
.btn--amber:hover,
.btn--amber:focus-visible { background: #FF9040; color: #160B02; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--ice); color: var(--ice); }

.btn--sm { padding: 9px 16px; font-size: 0.8rem; }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 22, 38, 0.72);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--mist);
  white-space: nowrap;
}
.tag--live {
  color: var(--alert);
  border-color: rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.08);
}
.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.08);
}
.tag--neon {
  color: var(--neon);
  border-color: rgba(182, 255, 59, 0.42);
  background: rgba(182, 255, 59, 0.07);
}

/* 面板与卡片 */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 49, 0.92), rgba(14, 22, 38, 0.92));
  box-shadow: var(--shadow-1);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card:hover {
  border-color: rgba(169, 214, 255, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.95);
}

/* 网格 */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--editorial {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* 数字锚点 */
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--neon);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* 图片容器基础规则（页面阶段放入 <img> 即可） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 78% 0, rgba(182, 255, 59, 0.14), transparent 58%),
    radial-gradient(90% 90% at 6% 96%, rgba(169, 214, 255, 0.12), transparent 62%),
    linear-gradient(150deg, #101A2C, #070B14 72%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(192deg, rgba(7, 11, 20, 0.06) 42%, rgba(7, 11, 20, 0.55));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--mist);
}

/* 可展开内容组的基础握手样式（详细布局由页面 CSS 补充） */
[data-expand] { cursor: pointer; }
[data-expandable][hidden] { display: none; }
[data-expand][aria-expanded="true"] .expand-icon { transform: rotate(45deg); }
.expand-icon { transition: transform 0.18s var(--ease); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .header-status { display: none; }
  .nav-link { padding: 9px 9px; font-size: 0.82rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .header-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    margin: 0;
    padding: 12px var(--gutter) 22px;
    max-height: calc(100vh - var(--header-h) - 96px);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(14, 22, 38, 0.99), rgba(7, 11, 20, 0.99));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 44px -26px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
  }
  [data-open] .header-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 1rem;
  }
  .nav-link::before { font-size: 0.7rem; }
  .nav-link[aria-current="page"]::after {
    left: 4px;
    right: auto;
    width: 26px;
    bottom: -1px;
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-meta { margin-left: 0; }

  /* 移动端常驻胶囊 */
  .dock {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 105;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    width: min(430px, calc(100% - 26px));
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(14, 22, 38, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(169, 214, 255, 0.05);
    transform: translateX(-50%);
  }
  .dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 999px;
    color: var(--mist);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
  }
  .dock-key {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    color: rgba(138, 148, 166, 0.55);
  }
  .dock-link:hover,
  .dock-link:focus-visible { color: var(--white); background: rgba(255, 255, 255, 0.05); }
  .dock-link[aria-current="page"] { background: var(--neon); color: #08110A; }
  .dock-link[aria-current="page"] .dock-key { color: rgba(7, 11, 20, 0.55); }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 780px) {
  .grid--2,
  .grid--3,
  .grid--editorial { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 640px) {
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.1em; }
  .brand-mark { width: 28px; height: 28px; }
  .cmd-chip { padding: 7px 11px; font-size: 0.74rem; }
  .cmd-chip::after { display: none; }
  .nav-toggle { padding: 7px 10px; font-size: 0.74rem; }
  .nav-toggle-label { display: none; }
  .footer-wordmark span { letter-spacing: 0.2em; }
  .footer-legal { gap: 10px 18px; }
}

@media (max-width: 420px) {
  .cmd-chip { display: none; }
}

/* 减少动效 */
@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;
    scroll-behavior: auto !important;
  }
  .status-dot { animation: none; }
  .card:hover { transform: none; }
}
