/* ============================================================
   完美体育官网 · 共享站点样式 /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, 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%; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-0: #0B1F1A;
  --ink-1: #111417;
  --ink-2: #15302B;
  --ink-3: #0d2521;
  --lime: #C6FF3D;
  --orange: #FF6A2B;
  --teal: #35E0C8;
  --amber: #FFC53D;
  --red: #FF4D4D;
  --mute: #8C9A96;
  --snow: #F2F7F4;

  --line: rgba(140, 154, 150, 0.20);
  --line-2: rgba(140, 154, 150, 0.38);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.02), 0 16px 36px -26px rgba(0, 0, 0, 0.95);
  --shadow-2: 0 28px 64px -34px rgba(0, 0, 0, 0.96);
  --ring-lime: 0 0 0 1px rgba(198, 255, 61, 0.28), 0 12px 34px -18px rgba(198, 255, 61, 0.5);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --maxw: 1360px;
  --reading: 74ch;
  --gutter: clamp(18px, 4vw, 44px);
  --hdr: 70px;
  --hdr-sm: 56px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1150px 640px at 88% -14%, rgba(53, 224, 200, 0.10), transparent 62%),
    radial-gradient(940px 540px at -8% 2%, rgba(198, 255, 61, 0.07), transparent 60%),
    var(--ink-0);
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 17px; } }

p { line-height: 1.85; }
strong, b { font-weight: 800; color: var(--snow); }
a { transition: color 0.18s var(--ease); }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--snow);
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
body.has-nav-open { overflow: hidden; }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--reading { max-width: 820px; }

.section { position: relative; padding-block: clamp(56px, 8.5vw, 118px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(24px, 3.4vw, 46px);
}
.section__titles {
  border-left: 3px solid var(--lime);
  padding-left: 14px;
  max-width: 62ch;
}
.chapter-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--lime);
  margin-bottom: 8px;
}
.section__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.section__lead {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 15.5px;
  color: var(--mute);
  line-height: 1.85;
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.split {
  display: grid;
  gap: clamp(20px, 3vw, 46px);
  grid-template-columns: 7fr 5fr;
  align-items: start;
}
.split--reverse { grid-template-columns: 5fr 7fr; }

.grid-veil { position: relative; }
.grid-veil::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 154, 150, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 150, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--snow);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lime {
  --btn-bg: var(--lime);
  --btn-fg: #08210f;
  --btn-bd: var(--lime);
  box-shadow: var(--ring-lime);
}
.btn--lime:hover { --btn-bg: #d8ff70; }
.btn--ghost:hover { --btn-bd: var(--teal); --btn-fg: var(--teal); }
.btn--block { width: 100%; }

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--lime);
  color: #08210f;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-solid {
  background: rgba(17, 20, 23, 0.94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--hdr);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  transition: height 0.3s var(--ease);
}
.site-header.is-solid .site-header__inner { height: var(--hdr-sm); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
}
.brand__mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  align-items: end;
  padding: 4px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(198, 255, 61, 0.12), rgba(53, 224, 200, 0.06));
}
.brand__mark i { display: block; height: 40%; background: var(--lime); }
.brand__mark i:nth-child(2) { height: 72%; background: var(--teal); }
.brand__mark i:nth-child(3) { height: 100%; background: var(--lime); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--snow);
  white-space: nowrap;
}
.brand__tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mute);
  white-space: nowrap;
}

/* 导航（桌面） */
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__hint,
.site-nav__note { display: none; }
.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 24px);
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14.5px;
  color: rgba(242, 247, 244, 0.78);
  letter-spacing: 0.02em;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.site-nav__link:hover { color: var(--snow); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--lime); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--teal); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  color: var(--snow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 118px);
  background:
    linear-gradient(180deg, rgba(21, 48, 43, 0.62), rgba(11, 31, 26, 0.98) 46%),
    var(--ink-0);
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14.5px;
}

/* 赛季归档带 */
.season-rail {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #0B1F1A, #15302B);
}
.season-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 68px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(11, 31, 26, 0.95));
}
.season-rail__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.season-rail__inner::-webkit-scrollbar { height: 0; }
.season-rail__inner.is-dragging { cursor: grabbing; }
.season-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  background: rgba(11, 31, 26, 0.6);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mute);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.season-chip--current {
  background: var(--lime);
  border-color: var(--lime);
  color: #08210f;
  font-weight: 700;
}

/* 页脚栅格 */
.footer-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  gap: clamp(26px, 3.4vw, 48px);
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand__line {
  max-width: 36ch;
  color: var(--mute);
  line-height: 1.85;
}
.footer-brand__stat {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.footer-col__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--lime);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-link {
  color: rgba(242, 247, 244, 0.72);
  font-size: 14.5px;
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer-link:hover { color: var(--lime); padding-left: 5px; }

/* 页脚底部 */
.footer-bottom {
  border-top: 1px solid var(--line);
  background: rgba(11, 31, 26, 0.6);
}
.footer-bottom__main {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}
.footer-legal {
  font-size: 12.5px;
  color: rgba(140, 154, 150, 0.9);
  line-height: 1.8;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.footer-meta__item { display: inline-flex; align-items: center; gap: 7px; }
.footer-meta__value { color: var(--snow); }
.footer-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  flex: 0 0 auto;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: clamp(12px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  background: rgba(17, 20, 23, 0.92);
  color: var(--snow);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- 8. 面包屑 / 长文 ---------- */
.breadcrumbs { padding-top: calc(var(--hdr) + 20px); }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.breadcrumbs__item { display: inline-flex; align-items: center; }
.breadcrumbs__item::after {
  content: "/";
  margin-left: 8px;
  color: rgba(140, 154, 150, 0.5);
}
.breadcrumbs__item:last-child::after { display: none; }
.breadcrumbs__link { color: var(--mute); }
.breadcrumbs__link:hover { color: var(--lime); }
.breadcrumbs__current { color: var(--snow); }

.reading { max-width: var(--reading); }
.reading p { margin-top: 1em; color: rgba(242, 247, 244, 0.88); }
.reading h2 {
  margin-top: 2.1em;
  padding-left: 14px;
  border-left: 3px solid var(--lime);
  font-size: clamp(22px, 2.6vw, 28px);
}
.reading h3 { margin-top: 1.7em; font-size: 19px; }
.reading ul, .reading ol { display: grid; gap: 10px; margin-top: 1em; }
.reading li {
  position: relative;
  padding-left: 20px;
  color: rgba(242, 247, 244, 0.86);
}
.reading li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 8px;
  height: 1px;
  background: var(--lime);
}
.reading a { color: var(--teal); border-bottom: 1px solid rgba(53, 224, 200, 0.4); }
.reading a:hover { color: var(--lime); border-bottom-color: var(--lime); }

/* ---------- 9. 卡片 / 数据组件 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 48, 43, 0.5), rgba(17, 20, 23, 0.74));
  box-shadow: var(--shadow-1);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--lime), transparent 88%);
}
.card--quiet::before { display: none; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
}
.card__title { margin-top: 8px; font-size: 19px; font-weight: 800; }
.card__body { margin-top: 10px; color: var(--mute); line-height: 1.82; }

.stat { display: flex; flex-direction: column; gap: 7px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--lime);
}
.stat__label { font-size: 13px; color: var(--mute); letter-spacing: 0.04em; }
.stat--teal .stat__value { color: var(--teal); }
.stat--orange .stat__value { color: var(--orange); }
.stat--amber .stat__value { color: var(--amber); }
.stat--red .stat__value { color: var(--red); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.tag--teal { border-color: rgba(53, 224, 200, 0.5); color: var(--teal); }
.tag--orange { border-color: rgba(255, 106, 43, 0.5); color: var(--orange); }
.tag--amber { border-color: rgba(255, 197, 61, 0.5); color: var(--amber); }
.tag--red { border-color: rgba(255, 77, 77, 0.5); color: var(--red); }

/* 表格 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(17, 20, 23, 0.58);
  -webkit-overflow-scrolling: touch;
}
.data-table { min-width: 640px; font-size: 14.5px; }
.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table thead th {
  background: rgba(21, 48, 43, 0.62);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.data-table tbody tr:nth-child(odd) { background: rgba(21, 48, 43, 0.26); }
.data-table tbody tr:hover { background: rgba(198, 255, 61, 0.06); }
.data-table .num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--snow);
}

/* ---------- 10. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0B1F1A, #15302B 55%, #0d2220);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-1);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.media-frame--grid {
  background-image:
    linear-gradient(rgba(140, 154, 150, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 150, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
}
.media-frame__glow {
  position: absolute;
  inset: auto -20% -48% -20%;
  height: 72%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.28), transparent 72%);
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--snow);
  background: linear-gradient(0deg, rgba(11, 31, 26, 0.94), transparent);
}
.media-grid {
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---------- 11. 横向轨道 / 标签页 / 章节索引 ---------- */
.rail { position: relative; overflow: hidden; }
.rail__track {
  display: flex;
  gap: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.rail__track > * { flex: 0 0 auto; scroll-snap-align: start; }
.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-thumb { background: var(--line-2); }
.rail--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(11, 31, 26, 0.92));
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  background: rgba(17, 20, 23, 0.62);
}
.tabs__tab {
  padding: 9px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mute);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.tabs__tab:hover { color: var(--snow); }
.tabs__tab[aria-selected="true"] { background: var(--lime); color: #08210f; }
.tabs__panel { padding-top: 20px; }

.chapter-index { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.chapter-index__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-left: -1px;
  padding: 10px 14px;
  border-left: 2px solid transparent;
  font-size: 14.5px;
  color: var(--mute);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chapter-index__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(140, 154, 150, 0.78);
}
.chapter-index__link:hover { color: var(--snow); }
.chapter-index__link.is-active,
.chapter-index__link[aria-current="true"] {
  color: var(--snow);
  border-left-color: var(--lime);
  background: linear-gradient(90deg, rgba(198, 255, 61, 0.09), transparent);
}
.chapter-index__link.is-active .chapter-index__no,
.chapter-index__link[aria-current="true"] .chapter-index__no { color: var(--lime); }

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 1024px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .col-3, .col-4 { grid-column: span 6; }
  .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 899px) {
  .site-header__inner { height: 58px; }
  .site-header.is-solid .site-header__inner { height: 54px; }
  .nav-toggle { display: inline-flex; }
  .btn--login { padding: 9px 13px; font-size: 13px; }

  .site-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 120;
    max-height: min(76vh, 560px);
    overflow-y: auto;
    padding: 16px 14px 20px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: linear-gradient(180deg, #111417, #0d211c 92%);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 34px));
    transition: transform 0.26s var(--ease), opacity 0.22s var(--ease), visibility 0.26s;
  }
  .site-nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav__hint {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--teal);
  }
  .site-nav__list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .site-nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 16.5px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { background: linear-gradient(90deg, rgba(198, 255, 61, 0.1), transparent); }
  .site-nav__note {
    display: block;
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--mute);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
  }
  .back-to-top { bottom: 14px; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom__main { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
  .brand__tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .section__titles { padding-left: 11px; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .site-nav { transition: none; }
}
