/* =========================================================
   /assets/site.css — 爱游戏赛场 全站共享样式
   记分板骨架：炭墨底 / 墨绿面板 / 苔绿刻度 / 青柠绿状态 / 橙红序号
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
figure, figcaption, blockquote,
table, caption, thead, tbody, tr, th, td {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0C1410;
  --panel: #16211B;
  --moss: #2E4034;
  --lime: #C7F23C;
  --ember: #F2603C;
  --stone: #B9B2A4;
  --paper: #EDE8DC;
  --legacy: #D9D3C4;
  --clay: #B06B4A;
  --mosslight: #7E8C7C;
  --deep: #0A0F0C;

  --rail-w: clamp(104px, 12vw, 176px);
  --topbar-h: 58px;
  --gap: clamp(16px, 2.4vw, 32px);
  --wrap: 1240px;
  --pad: clamp(16px, 3vw, 40px);

  --font-title: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-arch: "Songti SC", "SimSun", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  letter-spacing: .01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 旧电子记分板颗粒 + 扫描线，总不透明度 <2% */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(237, 232, 220, .055) 0 1px,
    transparent 1px 4px
  );
  opacity: .35;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.012em;
}

h1 { font-size: clamp(28px, 4.4vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(22px, 2.6vw, 34px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }

p { max-width: 40em; }

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

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

/* ---------- 4. 跳转与无障碍 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  transition: top .16s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.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;
}

/* ---------- 5. 头部：窄带 ---------- */
.site-header { position: relative; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-left: calc(var(--rail-w) + clamp(14px, 2vw, 28px));
  padding-right: clamp(14px, 2vw, 28px);
  background: var(--ink);
  border-bottom: 1px solid var(--moss);
}

/* 窄带底边的序号刻度 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    var(--moss) 0 1px,
    transparent 1px 24px
  );
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: auto 4px;
  opacity: .95;
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.topbar__mark {
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  align-self: center;
}

.topbar__name {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--paper);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.topbar__name:hover,
.topbar__name:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.topbar__sub {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.topbar__index {
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .1em;
  padding: 7px 7px 6px;
  color: var(--ember);
  background: var(--panel);
  border: 1px solid var(--moss);
}

/* ---------- 6. 小入口 chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--stone);
  background: var(--panel);
  border: 1px solid var(--moss);
  white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.chip:hover,
.chip:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(199, 242, 60, .07);
}

.chip--tools {
  color: var(--lime);
  border-color: rgba(199, 242, 60, .5);
}

.chip--tools:hover,
.chip--tools:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--moss);
  background: var(--panel);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .08em;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 15px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: width .16s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  border-top-color: var(--lime);
  border-bottom-color: var(--lime);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  width: 15px;
}

.nav-toggle__label { line-height: 1; }

/* ---------- 8. 侧边轨道导航 ---------- */
.rail {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 65;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--moss);
  padding: 16px 0 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--moss) transparent;
}

.rail__head {
  padding: 0 16px 10px;
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--mosslight);
  border-bottom: 1px solid var(--moss);
  max-width: none;
}

.rail__list { display: flex; flex-direction: column; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px 11px 17px;
  color: var(--stone);
  border-left: 3px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.rail__num {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--mosslight);
  transition: color .16s var(--ease);
}

.rail__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--paper);
  transition: color .16s var(--ease);
}

.rail__link:hover,
.rail__link:focus-visible {
  background: rgba(199, 242, 60, .07);
  border-left-color: var(--lime);
}

.rail__link:hover .rail__num,
.rail__link:focus-visible .rail__num { color: var(--lime); }

.rail__link:hover .rail__label,
.rail__link:focus-visible .rail__label { color: #fff; }

.rail__link[aria-current="page"] {
  background: rgba(199, 242, 60, .11);
  border-left-color: var(--lime);
}

.rail__link[aria-current="page"] .rail__num { color: var(--lime); }
.rail__link[aria-current="page"] .rail__label { color: var(--lime); }

.rail__foot {
  margin-top: auto;
  padding: 16px 16px 4px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--mosslight);
  border-top: 1px solid var(--moss);
  max-width: none;
}

/* ---------- 9. 正文骨架 ---------- */
.site-main,
main#main-content {
  margin-left: var(--rail-w);
  padding-top: var(--topbar-h);
  min-height: 62vh;
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(26px, 3.6vw, 52px);
  border-top: 1px solid var(--moss);
}

.section:first-child { border-top: 0; }

.section--band {
  background: var(--panel);
  border-top: 1px solid var(--moss);
  border-bottom: 1px solid var(--moss);
}

.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- 10. 文本组件 ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--lime);
  text-transform: uppercase;
}

.sec-title {
  display: flex;
  align-items: baseline;
  gap: .5em;
  margin-bottom: .7em;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--paper);
}

.sec-title__num {
  flex: none;
  font-family: var(--font-data);
  font-size: .6em;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ember);
}

.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin-top: .9em; display: flex; flex-direction: column; gap: .45em; }
.prose li { padding-left: 1.1em; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--mosslight);
}
.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(199, 242, 60, .45);
  transition: border-color .16s var(--ease);
}
.prose a:hover,
.prose a:focus-visible { border-bottom-color: var(--lime); }

.note {
  font-family: var(--font-data);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--stone);
  max-width: 46em;
}

/* 刻度分隔线 */
.rule-scale {
  height: 9px;
  border-top: 1px solid var(--moss);
  background-image: repeating-linear-gradient(
    90deg,
    var(--moss) 0 1px,
    transparent 1px 28px
  );
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: auto 5px;
}

/* ---------- 11. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .74em 1.2em;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--moss);
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(199, 242, 60, .07);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
}

.btn--ghost {
  background: transparent;
  border-color: var(--moss);
  color: var(--stone);
}

/* ---------- 12. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
  max-width: none;
}

.crumb a {
  color: var(--stone);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.crumb__sep { color: var(--moss); }

/* ---------- 13. 网格 ---------- */
.grid { display: grid; gap: var(--gap); }

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 双栏错位：左窄右宽，右栏下沉 24px */
.grid--rail { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.grid--rail > .col-late { margin-top: 24px; }

/* ---------- 14. 图片容器（页面阶段放置占位/图片） ---------- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--moss);
}

.figure img,
.figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--16x10 { aspect-ratio: 16 / 10; }
.figure--4x3 { aspect-ratio: 4 / 3; }

.figure--cut {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.figure__ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background-color: #101A15;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(46, 64, 52, .85) 0 1px,
    transparent 1px 14px
  );
}

.figure__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid var(--moss);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--stone);
  max-width: none;
}

.figure__tag { color: var(--ember); letter-spacing: .1em; }

/* ---------- 15. 数据表 ---------- */
.data-table {
  width: 100%;
  font-family: var(--font-data);
  font-size: 13.5px;
  border-top: 1px solid var(--moss);
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--paper);
  background: var(--moss);
}

.data-table td {
  padding: 9px 12px;
  color: var(--paper);
  border-bottom: 1px solid rgba(46, 64, 52, .75);
  vertical-align: top;
}

.data-table tbody tr:nth-child(even) { background: rgba(22, 33, 27, .65); }

.data-table tbody tr:hover { background: var(--panel); }

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 16. 序号 / 时间码 / 状态标记 ---------- */
.seq {
  display: inline-block;
  min-width: 3.4em;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ember);
}

.seq[data-full]:hover::after {
  content: " (" attr(data-full) ")";
  color: var(--stone);
}

.ts {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

.ts--fresh { animation: fadeOnce .6s var(--ease) .15s both; }

@keyframes fadeOnce {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ember);
  border: 1px solid rgba(242, 96, 60, .5);
}

.tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ember);
}

/* ---------- 17. 折叠抽屉（页脚 / 移动导航 / 字段释义共用） ---------- */
.drawer__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 0;
  text-align: left;
  color: inherit;
  border-top: 1px solid rgba(176, 107, 74, .55);
  border-bottom: 1px solid rgba(176, 107, 74, .55);
  transition: color .16s var(--ease);
}

.drawer__toggle:hover,
.drawer__toggle:focus-visible { color: #5E3A26; }

.drawer__num {
  flex: none;
  font-family: var(--font-arch);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--clay);
}

.drawer__title {
  font-family: var(--font-arch);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .12em;
}

.drawer__range {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--clay);
  white-space: nowrap;
}

.drawer__sign {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
}

.drawer__sign::before,
.drawer__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}

.drawer__sign::before {
  width: 8px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.drawer__sign::after {
  width: 1px;
  height: 8px;
  transform: translate(-50%, -50%);
  transition: transform .22s var(--ease);
}

[aria-expanded="true"] .drawer__sign::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.drawer__panel {
  position: relative;
  overflow: hidden;
}

.drawer__panel.is-open {
  animation: drawerIn .22s var(--ease) both;
}

.drawer__panel.is-open::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--lime);
  animation: drawerScan .22s ease-out both;
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@keyframes drawerScan {
  from { transform: translateY(0); }
  to { transform: translateY(220px); }
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  margin-left: var(--rail-w);
  background: var(--deep);
  border-top: 1px solid var(--moss);
  color: var(--paper);
  position: relative;
  z-index: 1;
}

.footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.foot-zone { position: relative; padding-block: clamp(22px, 3vw, 36px); }

.foot-zone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.foot-zone__title {
  display: flex;
  align-items: baseline;
  gap: .6em;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--paper);
}

.foot-zone__num {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--stone);
  border: 1px solid var(--moss);
  padding: 2px 5px;
}

.foot-zone__note {
  font-size: 12.5px;
  color: var(--mosslight);
  max-width: none;
}

/* T 编号入口对照 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--moss);
  border-left: 1px solid var(--moss);
}

.entry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 12px;
  font-size: 14px;
  border-right: 1px solid var(--moss);
  border-bottom: 1px solid var(--moss);
  transition: background-color .16s var(--ease);
}

.entry:hover { background: var(--panel); }

.entry__id {
  flex: none;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--stone);
}

.entry__link {
  font-weight: 600;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.entry__link:hover,
.entry__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.entry__path {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--mosslight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 旧版对照区：米灰 + 陶土 */
.foot-zone--legacy {
  background: var(--legacy);
  color: var(--ink);
  border-top: 1px solid var(--clay);
  border-bottom: 1px solid var(--clay);
}

.legacy-table {
  width: 100%;
  font-size: 13px;
  border-top: 1px solid var(--clay);
  margin-top: 12px;
}

.legacy-table caption { text-align: left; }

.legacy-table th {
  padding: 9px 10px;
  text-align: left;
  font-family: var(--font-arch);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--clay);
  border-bottom: 1px solid rgba(176, 107, 74, .55);
}

.legacy-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid rgba(12, 20, 16, .14);
  color: #1A120D;
}

.legacy-table td:first-child {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--clay);
  white-space: nowrap;
}

.legacy-table tbody tr:hover { background: rgba(255, 255, 255, .32); }

/* 底部信息带 */
.foot-zone--meta {
  border-top: 1px solid var(--moss);
  padding-bottom: 26px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 18px;
}

.meta-list li { display: flex; align-items: baseline; gap: 2px; }

.meta-list__k {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--mosslight);
  margin-right: 6px;
  white-space: nowrap;
}

.meta-list__v { color: var(--paper); }

.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 16px;
}

.meta-links a {
  font-size: 13px;
  color: var(--stone);
  border-bottom: 1px solid var(--moss);
  padding-bottom: 2px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.meta-links a:hover,
.meta-links a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.meta-copy {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mosslight);
  max-width: none;
}

/* ---------- 19. 滚动进度（由 JS 注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: transparent;
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1180px) {
  .topbar__sub { display: none; }
}

@media (max-width: 1024px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root {
    --topbar-h: 54px;
    --rail-w: 0px;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  .topbar__mark { width: 12px; height: 12px; }
  .topbar__name { font-size: 15.5px; }
  .topbar__index { font-size: 11px; padding: 6px 6px 5px; }

  .nav-toggle { display: inline-flex; }

  .rail {
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-height: calc(100dvh - var(--topbar-h));
    border-right: 0;
    border-bottom: 1px solid var(--moss);
    padding: 10px 0 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    box-shadow: 0 26px 44px rgba(0, 0, 0, .6);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
  }

  .rail[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .rail__head { padding: 0 18px 10px; }

  .rail__link {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 12px 18px;
    border-left-width: 4px;
  }

  .rail__label { font-size: 15.5px; }

  .rail__foot { margin-top: 12px; padding: 12px 18px 0; }

  .site-main,
  main#main-content,
  .site-footer {
    margin-left: 0;
  }

  .grid--rail,
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--rail > .col-late { margin-top: 0; }

  .legacy-table { font-size: 12px; }
  .legacy-table th:nth-child(4),
  .legacy-table td:nth-child(4) { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .entry-grid { grid-template-columns: minmax(0, 1fr); }
  .entry__path { display: none; }

  .topbar__index { display: none; }

  .drawer__range { display: none; }

  .meta-list { flex-direction: column; gap: 8px; }

  .legacy-table th:nth-child(3),
  .legacy-table td:nth-child(3) { display: none; }

  .figure__cap { flex-wrap: wrap; }
}

/* ---------- 21. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .ts--fresh { animation: none; opacity: 1; }
  .drawer__panel.is-open { animation: none; }
  .drawer__panel.is-open::before { animation: none; opacity: 0; }
}
