/* ============================================================
   BEPLAY · 共享样式表  /assets/site.css
   夜间数据面板 · 左侧轨道导航 · 玻璃与实色并置
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: rgba(63, 224, 208, .35) rgba(7, 20, 38, .9);
  background-color: #071426;
  background-image:
    radial-gradient(circle at 82% -4%, rgba(139, 92, 255, .18), transparent 55%),
    radial-gradient(circle at 6% 3%, rgba(63, 224, 208, .11), transparent 48%),
    repeating-linear-gradient(0deg, rgba(155, 169, 184, .04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(155, 169, 184, .04) 0 1px, transparent 1px 72px);
  background-attachment: fixed, fixed, fixed, fixed;
  background-repeat: no-repeat;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: rgba(63, 224, 208, .3); color: #ffffff; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #071426;
  --ink-800: #0B1D33;
  --ink-700: #102A44;
  --cyan: #3FE0D0;
  --violet: #8B5CFF;
  --orange: #FF8A3D;
  --paper: #F4F7FB;
  --stone: #9BA9B8;
  --moss: #6FA88C;
  --clay: #C9785A;

  --line: rgba(155, 169, 184, .24);
  --line-soft: rgba(155, 169, 184, .13);
  --glass: rgba(16, 42, 68, .46);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han 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, monospace;

  --track-w: 264px;
  --topbar-h: 62px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --sp: clamp(16px, 2.4vw, 30px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --shadow-1: 0 22px 48px -32px rgba(0, 0, 0, .95);
  --glow-cyan: 0 0 0 1px rgba(63, 224, 208, .38), 0 14px 32px -20px rgba(63, 224, 208, .75);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--topbar-h);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--paper);
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.4vw, 54px); }
h2 { font-size: clamp(24px, 2.9vw, 36px); }
h3 { font-size: clamp(19px, 1.5vw, 23px); }
h4 { font-size: 18px; }
p { line-height: 1.78; }
p + p { margin-top: 14px; }
strong { font-weight: 700; }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .02em;
}

/* ---------- 4. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -80px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: #04202A;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ---------- 5. 头部 / 左侧轨道 ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  width: 100%;
  background: linear-gradient(180deg, rgba(7, 20, 38, .97), rgba(7, 20, 38, .9));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.head-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--topbar-h);
  padding: 8px var(--sp);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 3px;
  border-radius: var(--r-m);
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #06131F;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  box-shadow: var(--glow-cyan);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--paper);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

/* 版本徽章 */
.ver-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(63, 224, 208, .35);
  background: rgba(63, 224, 208, .09);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
  white-space: nowrap;
}
.ver-key { font-size: 10px; letter-spacing: .2em; color: rgba(63, 224, 208, .72); }
.ver-num { font-weight: 700; font-size: 13px; }

/* 移动导航开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 42, 68, .62);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .08em;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(63, 224, 208, .5); }
.nav-toggle-lines { display: grid; gap: 3.5px; width: 17px; }
.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform-origin: center;
  transition: transform .28s var(--ease), width .28s var(--ease), background .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-lines span:nth-child(2) { width: 72%; background: var(--violet); }
.nav-toggle-lines span:nth-child(3) { width: 46%; }
.site-head[data-open] .nav-toggle-lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-head[data-open] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.site-head[data-open] .nav-toggle-lines span:nth-child(3) { width: 100%; transform: translateY(-5.5px) rotate(-45deg); background: var(--cyan); }

/* 抽屉面板（移动端） */
.head-panel {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  z-index: 84;
  width: min(86vw, 332px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border-right: 1px solid var(--line);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s var(--ease);
}
.site-head[data-open] .head-panel { transform: translateX(0); visibility: visible; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 82;
  background: rgba(3, 8, 18, .66);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.site-head[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

/* 导航筛选 */
.nav-filter { position: relative; display: flex; align-items: center; }
.nav-filter::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border: 1.6px solid rgba(63, 224, 208, .85);
  border-radius: 50%;
  pointer-events: none;
}
.nav-filter::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 7px;
  height: 1.6px;
  margin-top: 2px;
  background: rgba(63, 224, 208, .85);
  transform: rotate(45deg);
  pointer-events: none;
}
.nav-filter-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 20, 38, .72);
  color: var(--paper);
  font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-filter-input::placeholder { color: rgba(155, 169, 184, .72); }
.nav-filter-input:focus {
  outline: none;
  border-color: rgba(63, 224, 208, .55);
  box-shadow: 0 0 0 3px rgba(63, 224, 208, .14);
}

/* 导航 */
.nav { display: flex; flex-direction: column; gap: 10px; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.5;
  transition: color .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 58%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: translateY(-50%) scaleY(0);
  transition: transform .26s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(16, 42, 68, .66);
  border-color: var(--line-soft);
}
.nav-link[aria-current="page"] {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(63, 224, 208, .17), rgba(139, 92, 255, .1));
  border-color: rgba(63, 224, 208, .32);
}
.nav-link[aria-current="page"]::before { transform: translateY(-50%) scaleY(1); }
.nav-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(139, 92, 255, .92);
}
.nav-link[aria-current="page"] .nav-num { color: var(--cyan); }
.nav-name { flex: 1 1 auto; min-width: 0; }
.nav-empty {
  padding: 10px 4px;
  font-size: 13px;
  color: var(--stone);
}

.head-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* 阅读进度 */
.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topbar-h);
  z-index: 95;
  height: 2px;
  background: rgba(155, 169, 184, .14);
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 68%, var(--orange));
  transition: width .1s linear;
}

/* ---------- 6. 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 8vw, 104px);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border-top: 1px solid var(--line);
}
.site-foot::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 46%, rgba(255, 138, 61, .6) 72%, transparent);
  opacity: .8;
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px var(--sp) 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-note {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--stone);
  max-width: 34ch;
}
.foot-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.foot-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}
.foot-list { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.foot-link {
  display: inline-block;
  padding: 2px 0;
  color: rgba(244, 247, 251, .84);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.foot-link:hover { color: var(--cyan); transform: translateX(3px); }
.foot-list--plain { font-size: 14px; color: var(--stone); }
.foot-strong {
  font-family: var(--font-mono);
  color: var(--paper);
  word-break: break-word;
}

.foot-base {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px var(--sp) 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--stone);
}
.foot-copy { line-height: 1.7; }
.foot-copy--muted { color: rgba(155, 169, 184, .78); }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(63, 224, 208, .4);
  background: rgba(11, 29, 51, .88);
  color: var(--cyan);
  font-size: 17px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), border-color .2s var(--ease);
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--cyan); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 1.4;
  text-align: center;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid {
  background: var(--orange);
  color: #20100A;
  box-shadow: 0 12px 30px -18px rgba(255, 138, 61, .95);
}
.btn--solid:hover { background: #FF9C5C; }
.btn--ghost {
  border-color: rgba(63, 224, 208, .42);
  background: rgba(63, 224, 208, .08);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(63, 224, 208, .16); border-color: var(--cyan); }
.btn--quiet {
  border-color: var(--line);
  color: var(--stone);
}
.btn--quiet:hover { color: var(--paper); border-color: rgba(155, 169, 184, .45); }
.btn--block { width: 100%; }

/* ---------- 8. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}
.crumb-link { color: var(--stone); transition: color .2s var(--ease); }
.crumb-link:hover { color: var(--cyan); }
.crumb-current { color: var(--cyan); }
.crumb > li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(155, 169, 184, .5);
}

/* ---------- 9. 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--sp);
}
.wrap--narrow { max-width: 820px; }

.section {
  padding-block: clamp(44px, 6vw, 86px);
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--stone);
  transition: color .28s var(--ease);
}
[data-section].is-current .section-num { color: var(--cyan); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 26px);
}

/* ---------- 10. 基础组件 ---------- */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(16, 42, 68, .88), rgba(11, 29, 51, .74));
  box-shadow: var(--shadow-1);
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(122deg, rgba(63, 224, 208, .08), transparent 44%);
}
.panel--glass {
  background: var(--glass);
  border-color: rgba(63, 224, 208, .24);
  backdrop-filter: blur(14px);
  box-shadow: none;
}
.panel-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--violet);
}
.panel-title {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
}
.panel-body { margin-top: 12px; color: rgba(244, 247, 251, .86); font-size: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 42, 68, .55);
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.tag--cyan { border-color: rgba(63, 224, 208, .42); background: rgba(63, 224, 208, .1); color: var(--cyan); }
.tag--violet { border-color: rgba(139, 92, 255, .45); background: rgba(139, 92, 255, .13); color: #B79BFF; }
.tag--orange { border-color: rgba(255, 138, 61, .45); background: rgba(255, 138, 61, .13); color: var(--orange); }
.tag--moss { border-color: rgba(111, 168, 140, .45); background: rgba(111, 168, 140, .15); color: #9CCBB3; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.data-table tbody tr:hover { background: rgba(63, 224, 208, .06); }

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 62%, transparent);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--cyan);
}
.timeline-item:nth-child(even)::before { border-color: var(--clay); }
.timeline-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--violet);
}

.stat { display: grid; gap: 6px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}
.stat-label { font-size: 14px; color: var(--stone); }

.fold {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: rgba(16, 42, 68, .45);
  overflow: hidden;
}
.fold + .fold { margin-top: 12px; }
.fold-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  transition: background .2s var(--ease);
}
.fold-toggle:hover { background: rgba(63, 224, 208, .07); }
.fold-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .28s var(--ease);
}
.fold-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.fold-body { padding: 0 18px 18px; color: var(--stone); font-size: 15.5px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--stone);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--paper); border-color: rgba(155, 169, 184, .48); }
.tab[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04202A;
}
.tab-panel { padding-top: 22px; }

/* 图片容器（页面阶段放置占位图） */
.figure { margin: 0; display: grid; gap: 12px; }
.figure-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(63, 224, 208, .15), transparent 48%),
    linear-gradient(320deg, rgba(139, 92, 255, .2), transparent 52%),
    var(--ink-700);
}
.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(7, 20, 38, .28) 0 1px, transparent 1px 6px);
  opacity: .5;
}
.figure-media img { width: 100%; height: 100%; object-fit: cover; }
.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-media--tall { aspect-ratio: 4 / 5; }
.figure-note { font-size: 13px; line-height: 1.65; color: var(--stone); }

/* ---------- 11. 滚动显现 ---------- */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 12. 响应式 ---------- */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 30px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  body { padding: 0 0 0 var(--track-w); }

  .site-head {
    width: var(--track-w);
    height: 100vh;
    height: 100dvh;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--ink-800), var(--ink-900) 72%);
    backdrop-filter: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .head-inner { min-height: 100dvh; }

  .head-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    min-height: 0;
    padding: 26px 22px 16px;
  }
  .head-tools { justify-content: space-between; }
  .nav-toggle { display: none; }

  .head-panel {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    height: auto;
    padding: 0 22px 24px;
    overflow: visible;
    background: none;
    border: 0;
    flex: 1 1 auto;
    min-height: 0;
  }
  .nav-scrim { display: none; }
  .read-progress { left: var(--track-w); right: 0; top: 0; height: 3px; }

  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--aside { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
  .section { scroll-margin-top: 28px; }
  .foot-inner { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
  .foot-brand { grid-column: auto; }
}

@media (min-width: 1280px) {
  .wrap { max-width: 1240px; }
}

/* ---------- 13. 动效与可访问性偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-on [data-reveal] { opacity: 1; transform: none; }
  .to-top { transform: none; }
}
