/* ============================================================
   28体育 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: #05080F;
  background-image:
    linear-gradient(rgba(46, 230, 200, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 200, .035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: center top;
  color: #E7ECF3;
  font-family: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; 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; }
table { border-collapse: collapse; width: 100%; }

#main-content { scroll-margin-top: 96px; }

/* ---------- 变量 ---------- */
:root {
  --ink: #05080F;
  --navy: #0B1220;
  --steel: #14263A;
  --cyan: #2EE6C8;
  --gold: #E8A33D;
  --flame: #FF5A2B;
  --barley: #7CC24A;
  --paper: #F0E6D2;
  --paper-ink: #2A2118;
  --snow: #E7ECF3;
  --mist: #8A97A8;
  --line-strong: #2B4A6B;
  --font-body: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "HarmonyOS Sans SC", monospace;
  --shadow-hard: 6px 6px 0 rgba(5, 8, 15, .75);
  --radius: 3px;
  --shell-pad: 24px;
}

/* ---------- 中文排版 ---------- */
h1, .section__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-align: left;
}
h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
p { font-size: 16px; line-height: 1.75; }
p + p { margin-top: 12px; }

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--gold);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   头部 · 命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 15, .94);
  border-bottom: 2px solid var(--steel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-shell {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px var(--shell-pad);
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 品牌 */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(158deg, #0B1220 0%, #14263A 100%);
  border: 2px solid var(--cyan);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(46, 230, 200, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-mark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(46, 230, 200, .28);
}
.brand-mark__num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -.02em;
}
.brand-mark__unit {
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: .18em;
  color: var(--mist);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--snow);
}
.brand-name:hover { color: var(--cyan); }
.brand-tagline {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
}

/* 状态提示 */
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 10px;
  background: var(--navy);
  border: 1px solid var(--steel);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}
.nav-status__label { color: var(--snow); }
.nav-status__meta { color: var(--mist); }
.nav-status__meta .mono { color: var(--gold); }

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 230, 200, .16);
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 230, 200, .16); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(46, 230, 200, .05); opacity: .62; }
}

/* 命令栏导航 */
.command-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.command-nav::-webkit-scrollbar { display: none; }

.command-nav__list {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.command-nav__item { flex: 0 0 auto; }

.command-nav__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--snow);
  opacity: .8;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease, color .18s ease;
}
.command-nav__link:hover {
  opacity: 1;
  border-color: var(--steel);
  background: rgba(46, 230, 200, .07);
}
.command-nav__link[aria-current="page"] {
  opacity: 1;
  color: var(--cyan);
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(46, 230, 200, .16), rgba(46, 230, 200, .04));
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--gold);
  opacity: .85;
}
.command-nav__link[aria-current="page"] .nav-index { color: var(--cyan); }
.nav-label { line-height: 1.3; }

/* 头部动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.header-cta { padding: 10px 16px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--navy);
  border: 2px solid var(--steel);
  border-radius: 2px;
  color: var(--snow);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -5px 0 var(--cyan), 0 5px 0 var(--cyan);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header[data-open="true"] .nav-toggle__bars {
  background: var(--flame);
  box-shadow: 0 -5px 0 var(--flame), 0 5px 0 var(--flame);
}
.nav-toggle__text { letter-spacing: .08em; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 60%, var(--flame) 100%);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: 96px;
  background: linear-gradient(180deg, #05080F 0%, #0B1220 78%, #0B1220 100%);
  border-top: 2px solid var(--steel);
}
.footer-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px var(--shell-pad) 64px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--steel);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand__mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 2px;
  box-shadow: 5px 5px 0 rgba(232, 163, 61, .22);
}
.footer-brand__name {
  display: inline-block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--snow);
}
.footer-brand__name:hover { color: var(--cyan); }
.footer-brand__desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mist);
  max-width: 42ch;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}
.footer-meta .mono { color: var(--gold); }
.footer-meta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--barley);
  box-shadow: 0 0 0 3px rgba(124, 194, 74, .16);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0 44px;
}

.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--cyan);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--steel);
}

.footer-list { display: grid; gap: 10px; }
.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--snow);
  opacity: .84;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease, opacity .16s ease;
}
.footer-link:hover {
  color: var(--cyan);
  opacity: 1;
  border-bottom-color: var(--cyan);
}

.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.contact-item__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--mist);
  border: 1px solid var(--steel);
  border-radius: 2px;
  padding: 2px 7px;
}
.contact-item__val {
  color: var(--snow);
  word-break: break-all;
  line-height: 1.5;
}
.contact-item--wide .contact-item__val { color: #C3CDDA; }

.copy-btn {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 3px 9px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: 2px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.copy-btn:hover { background: var(--cyan); color: var(--ink); }
.copy-btn[data-copied="true"] {
  background: var(--barley);
  border-color: var(--barley);
  color: var(--ink);
}
.footer-cta { margin-top: 20px; }

/* 米白档案区块 · 全站唯一大面积浅色 */
.footer-archive {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 33, 24, .14) 1px, transparent 1px);
  background-size: 6px 6px;
  border: 3px solid var(--paper-ink);
  border-radius: 2px;
  box-shadow: 8px 8px 0 rgba(232, 163, 61, .34);
}
.footer-archive__stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 14px;
  border: 2px dashed var(--paper-ink);
  border-radius: 2px;
}
.footer-archive__num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .04em;
}
.footer-archive__label {
  font-size: 10px;
  letter-spacing: .2em;
}
.footer-legal {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-copyright {
  margin-top: 4px;
  font-size: 13.5px;
  opacity: .84;
}
.footer-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.65;
  opacity: .74;
  max-width: 68ch;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(11, 18, 32, .94);
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s, background .18s ease, color .18s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(46, 230, 200, .3);
}
.to-top__glyph { font-size: 14px; line-height: 1; }

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  color: var(--snow);
  background: var(--navy);
  border: 2px solid var(--steel);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--steel);
  border-color: var(--line-strong);
}
.btn:active { transform: none; box-shadow: none; }

.btn--primary {
  color: var(--ink);
  background: var(--flame);
  border-color: var(--flame);
}
.btn--primary:hover {
  border-color: #FF7A52;
  box-shadow: 5px 5px 0 rgba(255, 90, 43, .34);
}

.btn--ghost {
  color: var(--cyan);
  background: transparent;
  border-color: var(--cyan);
}
.btn--ghost:hover { box-shadow: 4px 4px 0 rgba(46, 230, 200, .24); }

.btn--gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.btn--gold:hover { border-color: #F5B958; box-shadow: 5px 5px 0 rgba(232, 163, 61, .3); }

.btn--small { padding: 8px 13px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }

/* ============================================================
   容器 / 章节 / 网格
   ============================================================ */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.section { padding: 76px 0; }
.section--tight { padding: 44px 0; }

.section__head {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--steel);
}
.section__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
  padding-top: 8px;
}
.section__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 66ch;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold);
  text-transform: uppercase;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 横向主题带 */
.band {
  width: 100%;
  padding: 36px 0;
  background: var(--ink);
  border-top: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
}
.band--navy { background: var(--navy); }
.band--paper {
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 33, 24, .13) 1px, transparent 1px);
  background-size: 6px 6px;
  border-color: var(--paper-ink);
}
.band--paper .section__title,
.band--paper h1,
.band--paper h2,
.band--paper h3 { color: var(--paper-ink); }
.band--paper .section__note,
.band--paper .card__text,
.band--paper .media-caption { color: #4A3B2A; }
.band--paper .eyebrow { color: #8A5A16; }
.band--paper .section__index { color: #0F7A66; }
.band--paper .section__head { border-bottom-color: rgba(42, 33, 24, .35); }

/* ============================================================
   面包屑
   ============================================================ */
.crumbs { padding: 22px 0 0; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--line-strong);
}
.crumbs__link { color: var(--mist); transition: color .16s ease; }
.crumbs__link:hover { color: var(--cyan); }
.crumbs__current { color: var(--snow); }

/* ============================================================
   基础组件
   ============================================================ */
.card {
  padding: 20px;
  background: var(--navy);
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--cyan);
  box-shadow: 8px 8px 0 rgba(46, 230, 200, .18);
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.card__meta {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}
.card__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #C3CDDA;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
  background: rgba(20, 38, 58, .5);
  border: 1px solid var(--steel);
  border-radius: 2px;
}
.tag--live { color: var(--cyan); border-color: rgba(46, 230, 200, .5); }
.tag--warn { color: var(--flame); border-color: rgba(255, 90, 43, .5); }
.tag--ok { color: var(--barley); border-color: rgba(124, 194, 74, .5); }
.tag--gold { color: var(--gold); border-color: rgba(232, 163, 61, .5); }

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(11, 18, 32, .86);
  border: 2px solid var(--steel);
  border-left: 4px solid var(--cyan);
  border-radius: 2px;
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
}
.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.metric__delta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}

/* ============================================================
   图片容器基础规则（页面阶段放置占位图）
   ============================================================ */
.media-figure { margin: 0; }
.media-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #0B1220 0%, #14263A 100%);
  border: 2px solid var(--steel);
  border-radius: 2px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(5, 8, 15, .26) 0 1px, transparent 1px 4px);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 2px;
}
.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ============================================================
   章节索引（滚动跟随）
   ============================================================ */
.side-index {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 2px;
  padding-left: 6px;
  border-left: 2px solid var(--steel);
}
.side-index__label {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--mist);
}
.side-index__link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 10px;
  margin-left: -8px;
  font-size: 13.5px;
  color: var(--mist);
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.side-index__link:hover { color: var(--snow); }
.side-index__link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(46, 230, 200, .07);
}
.side-index__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

/* ============================================================
   跑动热图
   ============================================================ */
.heatmap {
  position: relative;
  width: 100%;
  background: rgba(5, 8, 15, .7);
  border: 2px solid var(--steel);
  border-radius: 2px;
  overflow: hidden;
}
.heatmap__grid {
  stroke: rgba(46, 230, 200, .14);
  stroke-width: 1;
  fill: none;
}
.heatmap__trace {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: heatmap-dash 1200ms ease-out 1 forwards;
}
@keyframes heatmap-dash {
  to { stroke-dashoffset: 0; }
}

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1279px) {
  .nav-status { display: none; }
}

@media (max-width: 1023px) {
  :root { --shell-pad: 18px; }

  .header-shell {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand-tagline { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .command-nav {
    order: 3;
    flex: 1 0 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid var(--steel);
    transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
  }
  .site-header[data-open="true"] .command-nav {
    max-height: 72vh;
    overflow-y: auto;
    opacity: 1;
    padding-top: 6px;
  }
  .command-nav__list { flex-direction: column; gap: 0; }
  .command-nav__link {
    padding: 14px 10px;
    border-width: 0 0 1px 0;
    border-color: var(--steel);
    border-radius: 0;
    font-size: 15px;
  }
  .command-nav__link[aria-current="page"] { border-width: 0 0 1px 0; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-archive { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-archive__stamp { flex-direction: row; justify-content: center; gap: 10px; }

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

  .side-index {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border-left: 0;
    border-top: 2px solid var(--steel);
    padding: 12px 0 0;
    margin-bottom: 24px;
  }
  .section { padding: 56px 0; }
}

@media (max-width: 719px) {
  body { font-size: 15.5px; }
  .section { padding: 44px 0; }
  .section__head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .section__index { padding-top: 0; }
  .header-cta { padding: 9px 12px; font-size: 13px; }
  .nav-toggle__text { display: none; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-top { flex-direction: column; }
  .footer-archive { padding: 18px 16px; box-shadow: 6px 6px 0 rgba(232, 163, 61, .3); }
  .to-top { right: 14px; bottom: 14px; padding: 9px 12px; }
  .to-top__text { display: none; }
  .contact-item__val { font-size: 13.5px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .heatmap__trace { stroke-dashoffset: 0; animation: none; }
  .status-dot { animation: none; }
}
