/* ==========================================================================
   万能真人 · 共享样式表 /assets/site.css
   视觉体系：深海蓝数据场 + 霓虹青扫描线 + 珊瑚橙警示
   骨架：框架式导航合围 Bento 信息板
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 矿物色体系 */
  --c-abyss: #071C33;
  --c-deep: #0D2B45;
  --c-deep-2: #0A2337;
  --c-neon: #2DE2D2;
  --c-coral: #FF6B4A;
  --c-tide: #1C8C8C;
  --c-slate: #5C6A73;
  --c-moss: #7FA37A;
  --c-clay: #C97B5A;
  --c-sand: #F4EFE4;
  --c-ink: #050A10;

  /* 边界与面板 */
  --line: rgba(92, 106, 115, 0.42);
  --line-soft: rgba(92, 106, 115, 0.22);
  --line-neon: rgba(45, 226, 210, 0.34);
  --panel-bg: linear-gradient(180deg, rgba(13, 43, 69, 0.94), rgba(7, 28, 51, 0.9));
  --shadow-soft: 0 1px 0 rgba(5, 10, 16, 0.55), 0 20px 42px -32px rgba(5, 10, 16, 0.95);

  /* 字体 */
  --font-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --w-shell: 1280px;
  --w-prose: 68ch;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 3. 全局与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-abyss);
  background-image:
    radial-gradient(1100px 640px at 88% -10%, rgba(45, 226, 210, 0.13), transparent 62%),
    radial-gradient(780px 540px at -8% 32%, rgba(28, 140, 140, 0.15), transparent 66%),
    radial-gradient(640px 440px at 72% 108%, rgba(255, 107, 74, 0.09), transparent 64%);
  background-attachment: fixed;
  color: var(--c-sand);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.0625rem);
  line-height: 1.8;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全站数据网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 226, 210, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 226, 210, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.28) 42%, transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.28) 42%, transparent 88%);
}

body > main { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, .h-section {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.004em;
  color: var(--c-sand);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; }

.h-section { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }

strong { font-weight: 700; color: #fff; }

::selection { background: var(--c-neon); color: var(--c-abyss); }

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

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

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--w-shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 6.5vw, 4.75rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 2.75rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

.bento > * { grid-column: span 12; min-width: 0; }

@media (min-width: 760px) {
  .bento .col-3 { grid-column: span 3; }
  .bento .col-4 { grid-column: span 4; }
  .bento .col-5 { grid-column: span 5; }
  .bento .col-6 { grid-column: span 6; }
  .bento .col-7 { grid-column: span 7; }
  .bento .col-8 { grid-column: span 8; }
  .bento .col-9 { grid-column: span 9; }
  .bento .col-12 { grid-column: span 12; }
}

/* ---------- 5. 头部：版本条 + 框架导航 ---------- */
.skip-link {
  position: fixed;
  left: var(--gutter);
  top: -5rem;
  z-index: 90;
  padding: 0.65rem 1.1rem;
  background: var(--c-neon);
  color: var(--c-abyss);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
}

.version-bar {
  background: var(--c-ink);
  border-bottom: 1px solid rgba(45, 226, 210, 0.24);
}

.version-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 34px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.version-bar__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.18);
  animation: vb-pulse 2.8s var(--ease) infinite;
}

.version-bar__text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(45, 226, 210, 0.94);
}

.version-bar__icp {
  margin-left: auto;
  color: rgba(244, 239, 228, 0.5);
  font-size: 0.7rem;
  white-space: nowrap;
}

@keyframes vb-pulse {
  0%, 70%, 100% { opacity: 1; transform: scale(1); }
  35% { opacity: 0.5; transform: scale(0.78); }
}

.header-frame {
  position: relative;
  background: rgba(7, 28, 51, 0.95);
  border-bottom: 1px solid var(--line-neon);
  box-shadow: 0 12px 32px -24px rgba(5, 10, 16, 0.95);
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .header-frame {
    background: rgba(7, 28, 51, 0.82);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }
}

.header-frame__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: 68px;
  padding-block: 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--c-neon);
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 22%, rgba(45, 226, 210, 0.3), rgba(45, 226, 210, 0.05));
  color: var(--c-neon);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.brand:hover .brand__mark { border-color: var(--c-coral); color: var(--c-coral); }

.brand__text { display: flex; flex-direction: column; gap: 0.1rem; }

.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.brand__line {
  font-size: 0.6875rem;
  line-height: 1.2;
  color: rgba(244, 239, 228, 0.52);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav__list a {
  display: block;
  padding: 0.5rem 0.72rem;
  font-size: 0.9375rem;
  color: rgba(244, 239, 228, 0.8);
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav__list a:hover {
  color: var(--c-neon);
  background: rgba(45, 226, 210, 0.09);
  border-color: rgba(45, 226, 210, 0.32);
}

.site-nav__list a[aria-current="page"] {
  color: var(--c-neon);
  border-color: var(--c-neon);
  background: rgba(45, 226, 210, 0.12);
}

.site-nav__list a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--c-coral);
  vertical-align: middle;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-neon);
  border-radius: var(--radius);
  background: rgba(45, 226, 210, 0.07);
  color: var(--c-neon);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta::after { content: "→"; font-family: var(--font-mono); font-size: 0.95em; }

.nav-cta:hover {
  background: var(--c-neon);
  color: var(--c-abyss);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 43, 69, 0.72);
  color: var(--c-sand);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--c-neon);
  color: var(--c-neon);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--c-neon), var(--c-tide) 55%, var(--c-coral));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 6. 页脚：档案索引区 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--c-ink), #04080d);
  border-top: 1px solid var(--line-neon);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 42vw);
  height: 2px;
  background: linear-gradient(90deg, var(--c-neon), transparent);
}

.footer-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.footer-lead { max-width: 34ch; }

.footer-kicker {
  font-size: 0.72rem;
  color: var(--c-clay);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-title {
  margin-top: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.22;
  color: var(--c-sand);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.55rem 1rem;
  border: 1px dashed rgba(45, 226, 210, 0.6);
  border-radius: var(--radius);
  color: var(--c-neon);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s var(--ease), border-style 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-cta::after { content: "↗"; font-family: var(--font-mono); }

.footer-cta:hover {
  background: rgba(45, 226, 210, 0.12);
  border-style: solid;
  transform: translateY(-2px);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-col__title {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-neon);
}

.footer-col__list {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  color: rgba(244, 239, 228, 0.74);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-col__list a::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-slate);
  transition: background-color 0.2s var(--ease);
}

.footer-col__list a:hover { color: var(--c-neon); transform: translateX(3px); }
.footer-col__list a:hover::before { background: var(--c-coral); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.6);
}

.footer-meta__legal {
  color: var(--c-clay);
  font-size: 0.78rem;
}

.footer-meta__contact { color: rgba(244, 239, 228, 0.68); }
.footer-meta__addr { color: rgba(244, 239, 228, 0.52); }
.footer-meta__copy { color: rgba(244, 239, 228, 0.45); }

.footer-meta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-meta__links a {
  color: rgba(45, 226, 210, 0.88);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-meta__links a:hover {
  color: var(--c-coral);
  border-bottom-color: var(--c-coral);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(244, 239, 228, 0.75);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.to-top::before { content: "↑"; }

.to-top:hover {
  border-color: var(--c-neon);
  color: var(--c-neon);
  transform: translateY(-2px);
}

.to-top.is-visible {
  border-color: var(--c-neon);
  color: var(--c-neon);
}

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--c-neon);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-neon);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  background: var(--c-neon);
  color: var(--c-abyss);
  transform: translateY(-2px);
}

.btn--solid { background: var(--c-neon); color: var(--c-abyss); }
.btn--solid:hover { background: transparent; color: var(--c-neon); }

.btn--alert { border-color: var(--c-coral); color: var(--c-coral); }
.btn--alert:hover { background: var(--c-coral); color: var(--c-ink); }

.btn--quiet { border-color: var(--line); color: rgba(244, 239, 228, 0.86); }
.btn--quiet:hover { background: rgba(244, 239, 228, 0.08); border-color: rgba(244, 239, 228, 0.5); color: var(--c-sand); }

.panel,
.card {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  box-shadow: var(--shadow-soft);
}

.panel--neon { border-color: var(--line-neon); }
.panel--alert { border-color: rgba(255, 107, 74, 0.45); }

.panel--sand {
  background: var(--c-sand);
  border-color: rgba(7, 28, 51, 0.2);
  color: var(--c-abyss);
}

.panel--sand h1,
.panel--sand h2,
.panel--sand h3,
.panel--sand h4,
.panel--sand strong { color: var(--c-abyss); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(13, 43, 69, 0.75);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 228, 0.78);
  white-space: nowrap;
}

.tag--neon { border-color: rgba(45, 226, 210, 0.55); color: var(--c-neon); background: rgba(45, 226, 210, 0.1); }
.tag--alert { border-color: rgba(255, 107, 74, 0.55); color: var(--c-coral); background: rgba(255, 107, 74, 0.1); }
.tag--moss { border-color: rgba(127, 163, 122, 0.55); color: var(--c-moss); background: rgba(127, 163, 122, 0.12); }
.tag--clay { border-color: rgba(201, 123, 90, 0.55); color: var(--c-clay); background: rgba(201, 123, 90, 0.1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-clay);
}

.eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }

.lede {
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  line-height: 1.78;
  color: rgba(244, 239, 228, 0.85);
}

.prose {
  max-width: var(--w-prose);
  color: rgba(244, 239, 228, 0.86);
}

.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
.prose h3 { margin-top: 1.8rem; }

.prose a {
  color: var(--c-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--c-coral); }

.prose ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 1px;
  background: var(--c-neon);
}

.prose blockquote {
  padding-left: 1.1rem;
  border-left: 2px solid var(--c-tide);
  color: rgba(244, 239, 228, 0.72);
}

.breadcrumb {
  padding-block: 0.75rem 0;
  font-size: 0.8125rem;
  color: rgba(244, 239, 228, 0.62);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb li { display: flex; align-items: center; gap: 0.45rem; }

.breadcrumb li + li::before {
  content: "›";
  font-family: var(--font-mono);
  color: var(--c-slate);
}

.breadcrumb a { color: rgba(244, 239, 228, 0.75); }
.breadcrumb a:hover { color: var(--c-neon); }
.breadcrumb [aria-current="page"] { color: var(--c-neon); }

/* 响应式图片占位容器 */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(28, 140, 140, 0.34), rgba(13, 43, 69, 0.94) 52%, rgba(201, 123, 90, 0.22));
}

.media > img,
.media > picture,
.media > picture > img,
.media > video,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(90deg, rgba(45, 226, 210, 0.1) 0 1px, transparent 1px 26px);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 228, 0.86);
  background: linear-gradient(0deg, rgba(5, 10, 16, 0.88), transparent);
}

/* 数据与工具 */
.data-figure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--c-neon);
}

.data-figure--coral { color: var(--c-coral); }

.data-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-clay);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.text-neon { color: var(--c-neon); }
.text-coral { color: var(--c-coral); }
.text-muted { color: rgba(244, 239, 228, 0.62); }

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

.stack > * + * { margin-top: var(--flow, 1rem); }

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

/* 显现动效（仅在 JS 就绪时隐藏初始态） */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 0.75rem var(--gutter) 1.35rem;
    background: var(--c-abyss);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-neon);
    box-shadow: 0 26px 44px -28px rgba(5, 10, 16, 0.98);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    padding: 0.85rem 0.75rem;
    border: 0;
    border-left: 2px solid transparent;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 1rem;
  }

  .site-nav__list a:hover {
    background: rgba(45, 226, 210, 0.08);
    border-left-color: rgba(45, 226, 210, 0.4);
  }

  .site-nav__list a[aria-current="page"] {
    background: rgba(45, 226, 210, 0.1);
    border-left-color: var(--c-neon);
    border-bottom-color: var(--line-soft);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
  }

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

@media (max-width: 640px) {
  .version-bar__icp { display: none; }
  .brand__line { display: none; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .to-top { margin-left: 0; margin-top: 0.4rem; }
}

@media (min-width: 600px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .footer-frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 9. 动效偏好 ---------- */
@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; }
  .scroll-progress { display: none; }
}
