/* ==========================================================================
   8博体育 · 英超数据实验室 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / header / footer / 通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 20px);
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --carbon: #0B0F0E;
  --panel: #121A1B;
  --panel-2: #16201F;
  --grid: #223033;
  --pitch: #0E5C3A;
  --pitch-deep: #073B26;
  --volt: #C8FF3D;
  --electric: #2FD3F5;
  --amber: #FF7A2F;
  --chalk: #F2F6F2;
  --mist: #9DB2A8;

  --font-display: "Saira Condensed", "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --rail-w: 88px;
  --bar-h: 56px;
  --gap: clamp(14px, 1.8vw, 22px);
  --radius: 12px;
  --radius-lg: 20px;
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t: 240ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  background-color: var(--carbon);
  background-image:
    linear-gradient(to right, rgba(34, 48, 51, .62) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 48, 51, .62) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .012em;
  min-height: 100vh;
  padding-top: var(--bar-h);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(21px, 2.4vw, 27px); }
h3 { font-size: clamp(17px, 1.9vw, 21px); }
h4 { font-size: 15.5px; font-weight: 700; }

p { color: #DBE5DD; }

::selection { background: var(--volt); color: var(--carbon); }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.shell {
  width: min(1280px, calc(100% - clamp(32px, 5vw, 72px)));
  margin-inline: auto;
}

.section { padding-block: clamp(36px, 5.4vw, 76px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--volt);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--volt);
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--volt);
  color: var(--carbon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: transform var(--t-fast);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn:hover { transform: translateY(-1px); }

.btn--volt { background: var(--volt); color: var(--carbon); }
.btn--volt:hover { background: #D9FF74; }

.btn--ghost {
  background: rgba(18, 26, 27, .7);
  border-color: var(--grid);
  color: var(--chalk);
}
.btn--ghost:hover { border-color: var(--volt); color: var(--volt); }

.btn--electric { background: var(--electric); color: #04191F; }
.btn--electric:hover { background: #63E1FA; }

.btn--sm { padding: 8px 15px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--grid);
  background: var(--panel);
  color: var(--mist);
  white-space: nowrap;
}

.tag--volt { background: var(--volt); border-color: var(--volt); color: var(--carbon); }
.tag--pitch { background: rgba(14, 92, 58, .42); border-color: rgba(200, 255, 61, .3); color: var(--volt); }
.tag--amber { background: rgba(255, 122, 47, .16); border-color: rgba(255, 122, 47, .42); color: var(--amber); }

/* ---------- 7. Header：侧边轨道 + 悬浮数据条 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

/* 7.1 轨道 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0 14px;
  background: linear-gradient(180deg, #131C1B 0%, #0A100F 100%);
  border-right: 1px solid var(--grid);
  transition: transform 260ms cubic-bezier(.4, 0, .2, 1);
}

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.nav-list__item { width: 100%; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 4px;
  border-radius: 10px;
  transition: background var(--t-fast);
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
  transition: color var(--t-fast);
}

.nav-link__bar {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--grid);
  transition: width var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.nav-link:hover { background: rgba(200, 255, 61, .08); }
.nav-link:hover .nav-link__idx { color: var(--volt); }
.nav-link:hover .nav-link__bar { background: rgba(200, 255, 61, .5); }

.nav-link[aria-current="page"] { background: rgba(200, 255, 61, .13); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--volt); }
.nav-link[aria-current="page"] .nav-link__bar {
  width: 26px;
  background: var(--volt);
  box-shadow: 0 0 12px rgba(200, 255, 61, .65);
}

.nav-link__label {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translate(-10px, -50%);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: var(--panel);
  border: 1px solid var(--grid);
  color: var(--chalk);
  font-size: 13px;
  line-height: 1.4;
  padding: 7px 13px;
  border-radius: 9px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.nav-link:hover .nav-link__label,
.nav-link:focus-visible .nav-link__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.rail__foot {
  width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail__foot .btn { display: none; }

.rail__foot::before {
  content: "";
  width: 2px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(200, 255, 61, 0), var(--volt));
}

/* 7.2 遮罩 */
.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(5, 8, 7, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.rail-scrim[hidden] { display: none; }

/* 7.3 顶部悬浮数据条 */
.databar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 0 clamp(12px, 2.2vw, 28px);
  background: rgba(11, 15, 14, .84);
  border-bottom: 1px solid var(--grid);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background var(--t), box-shadow var(--t);
}

.databar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--volt), rgba(200, 255, 61, 0) 68%);
  opacity: .45;
  transition: opacity var(--t);
}

.databar.is-condensed {
  background: rgba(9, 13, 12, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
}

.databar.is-condensed::after { opacity: 1; }

.databar__burger {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--grid);
  border-radius: 10px;
  place-items: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.databar__burger:hover { border-color: var(--volt); background: rgba(200, 255, 61, .08); }

.burger {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}

.burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--volt);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 5px; }
.burger i:nth-child(3) { top: 10px; }

[data-nav-toggle][aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
[data-nav-toggle][aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.databar__brand {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--volt);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.databar__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.databar__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.databar__v { font-size: 13px; color: var(--chalk); }

.databar__meta--round .databar__v {
  color: var(--volt);
  position: relative;
  padding-left: 14px;
}

.databar__meta--round .databar__v::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 122, 47, .16);
}

.databar__spacer { flex: 1 1 auto; }

.databar__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--grid);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.databar__search:hover { border-color: var(--electric); color: var(--electric); }

.databar__search-icon {
  position: relative;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.databar__search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.databar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--pitch), var(--volt));
  transition: width 90ms linear;
}

/* 7.4 移动端抽屉 */
@media (max-width: 1023px) {
  .databar { left: 0; }
  .databar__burger { display: grid; }
  .databar__brand { display: inline-flex; }
  .databar__cta { display: none; }

  .rail {
    width: min(304px, 84vw);
    align-items: stretch;
    padding: 16px 0 18px;
    transform: translateX(-102%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, .6);
  }

  .rail[data-open="true"] { transform: translateX(0); }

  .rail .brand {
    flex-direction: row;
    gap: 12px;
    padding: 6px 18px 14px;
    border-bottom: 1px solid var(--grid);
  }

  .rail__nav { align-items: flex-start; padding-top: 10px; }

  .nav-list { gap: 4px; padding: 0 12px; }

  .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 10px;
  }

  .nav-link__bar { display: none; }

  .nav-link__idx { font-size: 12px; min-width: 20px; }

  .nav-link__label {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    font-size: 15.5px;
    color: var(--chalk);
    font-family: var(--font-body);
    letter-spacing: .02em;
    white-space: normal;
  }

  .nav-link[aria-current="page"] .nav-link__label { color: var(--volt); }

  .rail__foot { padding: 14px 16px 0; }
  .rail__foot::before { display: none; }
  .rail__foot .btn { display: inline-flex; }
}

@media (max-width: 639px) {
  .databar__k { display: none; }
  .databar__meta--round { display: none; }
  .databar__search { padding: 0 11px; }
  .databar__search-text { display: none; }
}

body.nav-open { overflow: hidden; }

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(52px, 8vw, 116px);
  padding: clamp(34px, 4.6vw, 62px) clamp(16px, 3.2vw, 54px) 0;
  background: linear-gradient(180deg, #0A1211 0%, var(--carbon) 100%);
  border-top: 1px solid var(--grid);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(120px, 26vw, 380px);
  height: 2px;
  background: linear-gradient(90deg, var(--volt), rgba(200, 255, 61, 0));
}

.footer-shell {
  width: min(1320px, 100%);
  margin-inline: auto;
}

/* 8.1 赛季时间轴 */
.season-track {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(28px, 4vw, 50px);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  background: linear-gradient(118deg, rgba(14, 92, 58, .34) 0%, rgba(7, 59, 38, .3) 44%, rgba(11, 15, 14, .8) 100%);
}

.season-track__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.season-track__link {
  font-size: 13px;
  color: var(--electric);
  border-bottom: 1px dashed currentColor;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}

.season-track__link:hover { color: var(--volt); }

.track {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--grid) 0 6px, transparent 6px 13px);
}

.track__node {
  position: relative;
  flex: 1 0 auto;
  min-width: 108px;
  padding-top: 26px;
}

.track__node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pitch);
  background: var(--carbon);
}

.track__node--latest::before {
  border-color: var(--volt);
  background: var(--volt);
  box-shadow: 0 0 0 5px rgba(200, 255, 61, .14);
}

.track__year {
  display: block;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}

.track__node--latest .track__year { color: var(--volt); }

.track__note {
  display: block;
  margin-top: 2px;
  max-width: 96px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(157, 178, 168, .7);
}

/* 8.2 页脚主网格 */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--grid);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.6fr .8fr .8fr .9fr 1.2fr; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: var(--volt);
  color: var(--carbon);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--chalk);
  white-space: nowrap;
}

.brand__suffix {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.brand--footer .brand__mark { width: 34px; height: 34px; font-size: 20px; }
.brand--footer .brand__name { font-size: 16px; }

.footer-brand__line {
  margin: 16px 0 18px;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--volt);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  color: var(--chalk);
  transition: color var(--t-fast);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--volt);
  transition: width var(--t-fast);
}

.footer-link:hover { color: var(--volt); }
.footer-link:hover::after { width: 100%; }

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-contact__val {
  font-size: 14px;
  line-height: 1.55;
  color: var(--chalk);
  word-break: break-word;
}

/* 8.3 法务行 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  padding: 20px 0 28px;
  font-size: 12.5px;
  color: var(--mist);
}

.footer-legal p { color: var(--mist); font-size: 12.5px; }

.footer-legal__icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* ---------- 9. 通用内容组件 ---------- */
/* 9.1 面板 */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--panel) 0%, #0D1514 100%);
}

.panel--cut::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: var(--grid);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.panel--focus {
  border-color: rgba(200, 255, 61, .32);
  box-shadow: inset 3px 0 0 var(--volt);
}

/* 9.2 补时牌 */
.stoppage-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 16px;
  border: 1px solid rgba(200, 255, 61, .2);
  border-radius: 14px;
  background: linear-gradient(170deg, var(--pitch-deep) 0%, #052218 100%);
}

.stoppage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--volt));
}

/* 9.3 数字锚点 */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  margin-left: 4px;
  font-size: .4em;
  letter-spacing: .02em;
  color: var(--mist);
}

.stat__label {
  font-size: 13px;
  color: var(--mist);
}

/* 9.4 Bento 网格 */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.bento__cell { grid-column: span 4; min-width: 0; }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento__cell--3 { grid-column: span 3; }
  .bento__cell--4 { grid-column: span 4; }
  .bento__cell--5 { grid-column: span 5; }
  .bento__cell--6 { grid-column: span 6; }
  .bento__cell--7 { grid-column: span 7; }
  .bento__cell--8 { grid-column: span 8; }
  .bento__cell--12 { grid-column: span 12; }
}

/* 9.5 对比条 */
.meter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meter__row {
  display: grid;
  grid-template-columns: 62px 1fr 58px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.meter__label { color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.meter__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 48, 51, .95);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--volt);
  transition: width 700ms cubic-bezier(.4, 0, .2, 1);
}

.meter__fill--electric { background: var(--electric); }
.meter__fill--amber { background: var(--amber); }

.meter__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--chalk);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 9.6 折叠面板 */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-group__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accordion {
  border: 1px solid var(--grid);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.accordion__item + .accordion__item { border-top: 1px solid var(--grid); }

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-align: left;
  transition: background var(--t-fast);
}

.accordion__head:hover { background: rgba(200, 255, 61, .06); }

.accordion__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

.accordion__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--chalk);
}

.accordion__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--volt);
  font-variant-numeric: tabular-nums;
}

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--grid);
  border-radius: 6px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--volt);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.accordion__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.accordion__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }

.accordion__head[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 240ms cubic-bezier(.4, 0, .2, 1), opacity 220ms ease;
}

.accordion__body > * { overflow: hidden; min-height: 0; }

.accordion__body[data-open="true"] {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion__inner {
  padding: 0 20px 20px 46px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #CFDCD4;
}

/* 9.7 筛选 chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--grid);
  background: rgba(18, 26, 27, .78);
  color: var(--mist);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.chip:hover { border-color: rgba(200, 255, 61, .5); color: var(--chalk); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--carbon);
}

/* 9.8 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist);
}

.breadcrumbs a { color: var(--mist); transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--volt); }
.breadcrumbs__sep { color: var(--grid); }
.breadcrumbs [aria-current="page"] { color: var(--chalk); }

/* 9.9 全宽斜切主题带 */
.section-band {
  position: relative;
  padding: clamp(30px, 4.4vw, 58px) clamp(20px, 3.2vw, 56px);
  margin-block: clamp(40px, 6vw, 80px);
  background: linear-gradient(100deg, var(--pitch) 0%, var(--pitch-deep) 58%, #0A100F 100%);
  clip-path: polygon(0 0, 100% 2.6%, 100% 100%, 0 97.4%);
}

/* 9.10 正文 */
.prose {
  max-width: 38em;
  font-size: 16px;
  line-height: 1.8;
  color: #D5E0D8;
}

.prose > * + * { margin-top: 1.05em; }

.prose strong { color: var(--volt); font-weight: 600; }

.prose a {
  color: var(--electric);
  border-bottom: 1px dashed currentColor;
}

.prose ul { display: flex; flex-direction: column; gap: 8px; }

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 2px;
  background: var(--volt);
}

/* 9.11 图片容器 */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(14, 92, 58, .55) 0%, rgba(11, 15, 14, .92) 100%),
    var(--panel);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--square { aspect-ratio: 1 / 1; }

.img-frame--hot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 28% 38%, rgba(200, 255, 61, .3), transparent 54%),
    radial-gradient(circle at 72% 66%, rgba(47, 211, 245, .24), transparent 50%),
    radial-gradient(circle at 52% 82%, rgba(255, 122, 47, .2), transparent 46%);
}

.img-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--chalk);
  background: linear-gradient(180deg, rgba(11, 15, 14, 0), rgba(11, 15, 14, .92));
}

/* 9.12 旁注 */
.aside-note {
  max-width: 34ch;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--electric);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 10. 入场动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.chip:focus-visible,
.nav-link:focus-visible,
.accordion__head:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

/* ---------- 12. 降低动效 ---------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .meter__fill { transition: none; }
  .nav-link:hover .nav-link__label,
  .nav-link:focus-visible .nav-link__label { transform: translate(0, -50%); }
}
