/* ============================================================
   德信体育 · 共享样式 /assets/site.css
   深夜体育数据指挥中心 · 展览画册式节奏 · L 形框架导航
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: #0B0F12; }

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0B0F12;
  --ink-2: #12181D;
  --graphite: #1E2A32;
  --green: #39FF88;
  --blue: #00E5FF;
  --orange: #FF8A00;
  --white: #E6F1F5;
  --mist: #8FA3AD;

  --glass-green: rgba(42, 74, 58, .40);
  --glass-blue: rgba(15, 42, 51, .58);
  --line: rgba(230, 241, 245, .14);
  --line-strong: rgba(230, 241, 245, .30);

  --font-head: 'Archivo Narrow', 'Arial Narrow', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --bar-h: 60px;
  --rail-w: 104px;
  --wrap: 1280px;
  --pad: clamp(1.15rem, 4vw, 3.25rem);
}

/* ---------- 3. 基础排版 ---------- */
body {
  padding-top: var(--bar-h);
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(115deg, rgba(230, 241, 245, .030) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(230, 241, 245, .016) 0 1px, transparent 1px 92px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.06; letter-spacing: -.005em; }
strong { color: #fff; font-weight: 600; }
::selection { background: var(--green); color: #04140B; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.muted { color: var(--mist); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 300;
  transform: translateY(-200%);
  padding: .6rem 1rem;
  background: var(--green); color: #04140B;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 框架式页头 ---------- */
.site-header { position: relative; z-index: 90; }

.site-header__bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 92;
  height: var(--bar-h);
  display: flex; align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  padding: 0 var(--pad);
  background: linear-gradient(90deg, rgba(15, 42, 51, .88), rgba(11, 15, 18, .94) 42%, rgba(11, 15, 18, .94));
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  pointer-events: none; opacity: .38;
  background-image: repeating-linear-gradient(90deg, rgba(230, 241, 245, .5) 0 1px, transparent 1px 20px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 82%);
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.brand { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.brand__glyph {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em;
  color: var(--green);
  border: 1px solid rgba(57, 255, 136, .45);
  background: rgba(57, 255, 136, .08);
  box-shadow: inset 0 0 18px rgba(57, 255, 136, .14);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__mark { font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; letter-spacing: .1em; }
.brand__tag { font-family: var(--font-mono); font-size: .6rem; color: var(--mist); letter-spacing: .24em; }

.site-header__coord {
  margin-left: auto;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em;
  color: var(--mist); white-space: nowrap;
}

.site-header__actions { display: flex; align-items: center; gap: .7rem; margin-left: clamp(.5rem, 2vw, 1.5rem); }
.site-header__coord + .site-header__actions { margin-left: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- 6. 按钮 ---------- */
.cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .58rem 1rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  border: 1px solid rgba(57, 255, 136, .5);
  color: var(--green); background: rgba(57, 255, 136, .08);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.cta:hover { background: rgba(57, 255, 136, .2); transform: translateY(-1px); }
.cta--primary { background: var(--green); color: #04140B; border-color: var(--green); }
.cta--primary:hover { background: #66ff9f; border-color: #66ff9f; color: #04140B; }
.cta--ghost { color: var(--white); border-color: var(--line-strong); background: rgba(230, 241, 245, .05); }
.cta--ghost:hover { color: var(--green); border-color: rgba(57, 255, 136, .5); background: rgba(57, 255, 136, .1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--white);
  border: 1px solid var(--line-strong);
  background: rgba(230, 241, 245, .05);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: rgba(230, 241, 245, .12); transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #04140B; border-color: var(--green); }
.btn--primary:hover { background: #66ff9f; border-color: #66ff9f; color: #04140B; }
.btn--blue { color: var(--blue); border-color: rgba(0, 229, 255, .5); background: rgba(0, 229, 255, .07); }
.btn--blue:hover { background: rgba(0, 229, 255, .16); border-color: var(--blue); }

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--white);
  transition: border-color .2s ease, color .2s ease;
}
.nav-toggle:hover { border-color: rgba(57, 255, 136, .5); color: var(--green); }
.nav-toggle__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 16px; height: 16px; }
.nav-toggle__grid i { display: block; background: var(--green); transition: background .2s ease; }
.nav-toggle[aria-expanded="true"] { border-color: rgba(0, 229, 255, .55); color: var(--blue); }
.nav-toggle[aria-expanded="true"] .nav-toggle__grid i:nth-child(2),
.nav-toggle[aria-expanded="true"] .nav-toggle__grid i:nth-child(3) { background: var(--blue); }
.nav-toggle__text { line-height: 1; }

/* ---------- 8. 左侧导轨导航（桌面） ---------- */
.site-nav {
  position: fixed; top: var(--bar-h); left: 0; bottom: 0; z-index: 91;
  width: var(--rail-w);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: 1.5rem .7rem 1.25rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 29, .94), rgba(11, 15, 18, .97));
  backdrop-filter: blur(12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-nav__list { display: flex; flex-direction: column; gap: .12rem; }
.site-nav__link {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .72rem .25rem;
  font-size: .8rem; letter-spacing: .06em; color: var(--mist);
  border-left: 2px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.site-nav__label { font-weight: 400; white-space: nowrap; }
.site-nav__idx { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; color: rgba(143, 163, 173, .7); }
.site-nav__link:hover { color: var(--white); background: rgba(230, 241, 245, .06); }
.site-nav__link:hover .site-nav__idx { color: var(--blue); }
.site-nav__link[aria-current="page"] {
  color: var(--green);
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(57, 255, 136, .16), rgba(57, 255, 136, 0));
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--green); }

.site-nav__meta { padding-top: 1rem; border-top: 1px solid var(--line); }
.legend { display: flex; flex-direction: column; gap: .3rem; }
.legend__item {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em;
  color: var(--mist); white-space: nowrap;
}
.legend__dot { width: 6px; height: 6px; flex: 0 0 auto; background: var(--green); box-shadow: 0 0 8px rgba(57, 255, 136, .75); }
.legend__dot--blue { background: var(--blue); box-shadow: 0 0 8px rgba(0, 229, 255, .75); }
.legend__dot--orange { background: var(--orange); box-shadow: 0 0 8px rgba(255, 138, 0, .75); }

/* ---------- 9. 滚动进度 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95;
  background: rgba(230, 241, 245, .07);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green) 68%, var(--orange));
}

/* ---------- 10. 移动 / 平板导航 ---------- */
@media (max-width: 1023px) {
  .site-header__coord { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }

  .site-nav {
    top: var(--bar-h); left: 0; right: 0; bottom: auto;
    width: auto; max-height: calc(100vh - var(--bar-h));
    padding: 1rem var(--pad) 1.5rem;
    border-right: 0; border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 24, 29, .99), rgba(11, 15, 18, .99));
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .site-header[data-open] .site-nav { opacity: 1; visibility: visible; transform: none; }

  .site-nav__list { gap: .1rem; }
  .site-nav__link {
    flex-direction: row; align-items: baseline; justify-content: flex-start; gap: .9rem;
    padding: .85rem .9rem; font-size: 1rem;
  }
  .site-nav__idx { font-size: .7rem; }
  .site-nav__link[aria-current="page"] { background: linear-gradient(90deg, rgba(57, 255, 136, .18), transparent); }
  .site-nav__meta { margin-top: 1rem; }
  .legend { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.1rem; }
}

@media (max-width: 560px) {
  .cta--primary { display: none; }
  .brand__tag { display: none; }
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative; z-index: 1;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 24, 29, .96), var(--ink) 62%);
}
.site-footer::before {
  content: ""; display: block; height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(57, 255, 136, .55) 0 6px, transparent 6px 18px);
  opacity: .7;
}
.site-footer__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-block: clamp(2.25rem, 5vw, 4rem);
}
.site-footer__brand { display: flex; flex-direction: column; }
.footer-brand { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: .14em; }
.footer-tagline { margin-top: .35rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .3em; color: var(--green); }
.footer-contact { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .55rem; }
.footer-contact__row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-contact__key { min-width: 4.6em; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--mist); }
.footer-contact__val { font-family: var(--font-mono); font-size: .78rem; color: var(--white); word-break: break-all; }
.footer-contact__note { font-family: var(--font-mono); font-size: .62rem; color: rgba(143, 163, 173, .85); letter-spacing: .08em; }

.copy-btn {
  padding: .2rem .5rem;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  color: var(--mist);
  border: 1px solid var(--line-strong);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.copy-btn:hover { color: var(--green); border-color: rgba(57, 255, 136, .55); background: rgba(57, 255, 136, .1); }
.copy-btn[data-copied="true"] { background: var(--green); border-color: var(--green); color: #04140B; }

.footer-col__title {
  padding-bottom: .7rem; margin-bottom: .9rem;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 400; letter-spacing: .2em;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
}
.footer-col__list { display: flex; flex-direction: column; gap: .5rem; }
.footer-col__list a {
  display: inline-block;
  font-size: .9rem; color: rgba(230, 241, 245, .82);
  transition: color .2s ease, transform .2s ease;
}
.footer-col__list a:hover { color: var(--green); transform: translateX(3px); }

.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1.5rem;
  padding-block: 1.15rem 2rem;
  border-top: 1px solid var(--line);
}
.footer-note { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--mist); }
.footer-note--icp { color: rgba(143, 163, 173, .78); }
.site-footer__base .footer-note:last-of-type { margin-left: auto; }

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem); z-index: 80;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem .95rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  color: var(--green);
  background: rgba(11, 15, 18, .9);
  border: 1px solid rgba(57, 255, 136, .45);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease, color .2s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); color: #04140B; }

/* ---------- 13. 通用布局容器 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1480px; }

.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section--flush { padding-block: 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.5rem;
  padding-bottom: 1.1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .28em;
  color: var(--green); text-transform: uppercase;
}
.title-xl { font-size: clamp(2.6rem, 7.5vw, 5.6rem); font-weight: 300; line-height: .98; letter-spacing: -.02em; }
.title-lg { font-size: clamp(1.85rem, 4.4vw, 3.1rem); font-weight: 300; line-height: 1.06; letter-spacing: -.01em; }
.title-md { font-size: clamp(1.22rem, 2.3vw, 1.7rem); font-weight: 500; line-height: 1.25; }
.lede { max-width: 62ch; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.8; color: rgba(230, 241, 245, .78); }
.divider { height: 1px; margin-block: clamp(2rem, 4vw, 3.5rem); background: var(--line); border: 0; }

/* ---------- 14. 网格 ---------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }
.grid--sidebar { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .grid--sidebar { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- 15. 卡片与面板 ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  background: linear-gradient(160deg, rgba(30, 42, 50, .82), rgba(18, 24, 29, .94));
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: rgba(57, 255, 136, .5);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -30px rgba(57, 255, 136, .75);
}
.card--accent { border-color: rgba(0, 229, 255, .35); }
.card__meta { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .16em; color: var(--mist); }
.card__title { font-family: var(--font-head); font-size: 1.14rem; font-weight: 500; line-height: 1.32; }
.card__text { font-size: .92rem; color: rgba(230, 241, 245, .72); }

.panel {
  padding: clamp(1.2rem, 2.6vw, 2rem);
  background: var(--glass-blue);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.panel--solid { background: linear-gradient(160deg, rgba(30, 42, 50, .92), rgba(18, 24, 29, .97)); backdrop-filter: none; }

/* ---------- 16. 指标 ---------- */
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat__value {
  font-family: var(--font-mono); font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1; color: var(--green); font-variant-numeric: tabular-nums;
}
.stat__label { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .18em; color: var(--mist); }

/* ---------- 17. 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .55rem;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em;
  color: var(--green); border: 1px solid rgba(57, 255, 136, .4); background: rgba(57, 255, 136, .08);
}
.tag--blue { color: var(--blue); border-color: rgba(0, 229, 255, .4); background: rgba(0, 229, 255, .09); }
.tag--orange { color: var(--orange); border-color: rgba(255, 138, 0, .45); background: rgba(255, 138, 0, .1); }

/* ---------- 18. 数据表 ---------- */
.table-wrap {
  width: 100%; overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(18, 24, 29, .72);
}
.table { min-width: 560px; font-size: .88rem; }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th {
  font-family: var(--font-mono); font-size: .63rem; font-weight: 400; letter-spacing: .16em;
  color: var(--mist); text-transform: uppercase; background: rgba(30, 42, 50, .65);
}
.table tbody tr:nth-child(even) { background: rgba(30, 42, 50, .34); }
.table tbody tr:hover { background: rgba(57, 255, 136, .07); }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--green); }

/* ---------- 19. 面包屑 ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em; color: var(--mist);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb a { color: rgba(230, 241, 245, .8); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li::after { content: "/"; margin-left: .45rem; color: rgba(143, 163, 173, .5); }
.breadcrumb li:last-child::after { content: ""; }

/* ---------- 20. 正文 ---------- */
.prose { max-width: 72ch; font-size: 1.04rem; color: rgba(230, 241, 245, .84); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.prose h3 { margin-top: 1.8rem; font-size: 1.14rem; font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.25rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(0, 229, 255, .35); }
.prose a:hover { color: var(--green); border-bottom-color: var(--green); }
.prose code {
  padding: .12em .4em; font-family: var(--font-mono); font-size: .86em;
  color: var(--green); background: rgba(30, 42, 50, .85);
}
.prose blockquote { padding-left: 1.1rem; color: var(--mist); border-left: 2px solid var(--green); }

/* ---------- 21. 图片容器 ---------- */
.media {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 42, 51, .9), rgba(11, 15, 18, .96));
}
.media__inner { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.media__inner--tall { aspect-ratio: 4 / 5; }
.media__inner--wide { aspect-ratio: 21 / 9; }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.06) brightness(.92);
}
.media__tag {
  position: absolute; left: .85rem; top: .85rem; z-index: 2;
  padding: .25rem .5rem;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em;
  color: var(--green); background: rgba(11, 15, 18, .78);
  border: 1px solid rgba(57, 255, 136, .4);
}
.media__caption {
  padding: .7rem .9rem;
  font-family: var(--font-mono); font-size: .67rem; color: var(--mist);
  border-top: 1px solid var(--line);
}
.media--diagonal { clip-path: polygon(0 0, 100% 3.5%, 100% 100%, 0 96.5%); }

/* ---------- 22. 索引列表 ---------- */
.index-list { display: flex; flex-direction: column; }
.index-list__item {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: .75rem 1.25rem; align-items: baseline;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, padding-left .2s ease;
}
.index-list__item:hover { padding-left: .8rem; background: rgba(57, 255, 136, .06); }
.index-list__num { font-family: var(--font-mono); font-size: .67rem; color: var(--green); letter-spacing: .1em; }
.index-list__title { font-size: 1rem; }
.index-list__meta { font-family: var(--font-mono); font-size: .65rem; color: var(--mist); letter-spacing: .1em; }

/* ---------- 23. 标签页 ---------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding-bottom: .8rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: .5rem .85rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  color: var(--mist); border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.tab:hover { color: var(--white); border-color: var(--line-strong); }
.tab[aria-selected="true"] {
  color: var(--green); border-color: rgba(57, 255, 136, .45); background: rgba(57, 255, 136, .09);
}
.tab-panel[hidden] { display: none; }

/* ---------- 24. 入场显现 ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 25. 桌面框架偏移 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

/* ---------- 26. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .cta:hover, .btn:hover, .card:hover, .footer-col__list a:hover { transform: none; }
}
