/* ==========================================================================
   YOBO体育 · 共享样式表  /assets/site.css
   深空黑战术板底色 + 荧光绿通电色 + 编辑部非对称版式
   ========================================================================== */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05070A;
  --panel: #0F1319;
  --line: #232A33;
  --neon: #C6FF2E;
  --neon-deep: #7FCC00;
  --electric: #2E7DFF;
  --alert: #FF6A1A;
  --chalk: #F2F6EF;
  --muted: #98A3AD;
  --neon-pale: #E9FBB0;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --header-h: 62px;

  --fs-display: clamp(44px, 7vw, 96px);
  --fs-h2: clamp(26px, 3.6vw, 40px);
  --fs-h3: clamp(20px, 2vw, 22px);
  --fs-body: 17px;
  --fs-note: 13px;
}

@media (min-width: 961px) {
  :root { --header-h: 70px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(35, 42, 51, 0.3) 0 1px,
    transparent 1px 96px
  );
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 17px; }

p { margin-bottom: 0; }
p + p { margin-top: 1.1em; }

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

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

body.nav-open { overflow: hidden; }

/* ---------- 4. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.section { padding-block: clamp(48px, 8vw, 96px); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.section-title { margin-bottom: 0.5em; }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  color: var(--chalk);
}

.note {
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.rule {
  display: block;
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 40px);
}

.rule--neon {
  width: 64px;
  height: 2px;
  background: var(--neon);
  margin-block: 0 20px;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--ghost { background: transparent; }

.btn--ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.btn--neon {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  font-weight: 900;
}

.btn--neon:hover { background: var(--neon-deep); border-color: var(--neon-deep); }

/* ---------- 6. 标签 / 徽记 ---------- */
.label {
  display: inline-block;
  padding: 5px 9px;
  background: var(--neon-pale);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--live { color: var(--neon); border-color: rgba(198, 255, 46, 0.42); }
.tag--alert { color: var(--alert); border-color: rgba(255, 106, 26, 0.45); }

/* ---------- 7. 网格与编辑部主轴 ---------- */
.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.editorial__aside { position: relative; }
.editorial__main { min-width: 0; }

@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .col-4, .col-5, .col-7, .col-8 { grid-column: span 12; }
  .editorial { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 8. 面板与数据块 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}

.stack { position: relative; isolation: isolate; }

.stack::before {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--line);
  z-index: -1;
}

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
}

.stat__value--neon { color: var(--neon); }

.stat__unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
}

.stat__label { font-size: var(--fs-note); color: var(--muted); }

/* ---------- 9. 图片容器（页面阶段直接复用） ---------- */
.figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

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

.figure__media img,
.figure__media svg,
.figure__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.04);
}

.figure__media--empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(35, 42, 51, 0.9) 0 10px,
    rgba(15, 19, 25, 0.9) 10px 20px
  );
}

.figure__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-note);
  color: var(--muted);
}

.figure__cap-index { font-family: var(--font-mono); color: var(--neon); }

.visual-band {
  position: relative;
  height: clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--panel) 0 38px,
    var(--line) 38px 39px
  );
  overflow: hidden;
}

.visual-band::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22%;
  height: 3px;
  background: var(--neon);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { margin-bottom: 18px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb__item { display: flex; align-items: center; gap: 8px; }

.breadcrumb__link { color: var(--muted); text-decoration: none; }
.breadcrumb__link:hover { color: var(--neon); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb__current { color: var(--chalk); }

/* ---------- 11. 章节索引 ---------- */
.section-index { position: sticky; top: calc(var(--header-h) + 26px); }

.section-index__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-index__list {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.section-index__link {
  display: block;
  padding: 8px 0 8px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.section-index__link:hover { color: var(--chalk); }
.section-index__link.is-active {
  color: var(--neon);
  border-left-color: var(--neon);
  font-weight: 900;
}

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--neon);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

/* ---------- 13. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-solid {
  background: rgba(15, 19, 25, 0.95);
  border-bottom-color: var(--line);
}

body.nav-open .site-header { background: var(--panel); }

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--chalk);
  white-space: nowrap;
}

.brand__pulse {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
}

.brand__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--neon);
  border-radius: 50%;
  opacity: 0.6;
  animation: brandPulse 2.4s ease-out infinite;
}

@keyframes brandPulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.brand--footer .brand__mark { font-size: 17px; }

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  counter-reset: navidx;
}

.nav__item { position: relative; }
.nav__item::before { display: none; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav__link:hover { color: var(--chalk); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--chalk); font-weight: 900; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.drawer-meta { display: none; }

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

.header-cta { padding: 9px 16px; font-size: 14px; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--chalk);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* 阅读进度 */
.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress-rail__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--neon);
  transition: width 0.1s linear;
}

/* 移动端抽屉 */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(20px, 6vw, 40px) var(--gutter) 40px;
    background: var(--ink);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s linear;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__item::before {
    display: block;
    counter-increment: navidx;
    content: "0" counter(navidx);
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon);
  }

  .nav__link {
    padding: 0;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 900;
    color: var(--chalk);
  }

  .nav__link::after { display: none; }

  .drawer-meta {
    display: block;
    margin-top: auto;
    padding-top: 30px;
    width: 100%;
  }

  .drawer-meta__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
  }

  .drawer-meta__value {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--neon);
  }

  .drawer-meta__note {
    margin-top: 6px;
    font-size: var(--fs-note);
    color: var(--muted);
  }
}

@media (max-width: 480px) {
  .header-cta { padding: 8px 12px; font-size: 13px; }
  .brand__mark { font-size: 17px; }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 10vw, 120px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(80px, 18%, 220px);
  height: 2px;
  background: var(--neon);
}

.footer-shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3vw, 44px);
}

.footer-col { min-width: 0; }

.footer-tagline {
  margin-top: 16px;
  max-width: 26em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--chalk);
}

.footer-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--neon-pale);
}

.footer-list { display: grid; gap: 9px; }

.footer-list a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-list a:hover { color: var(--neon); }

.footer-contact { display: grid; gap: 12px; }

.footer-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-contact__val {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--chalk);
  word-break: break-word;
}

.footer-note {
  margin-top: 16px;
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--muted);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer-bar__icp { color: var(--chalk); }
.footer-bar__region { color: var(--neon-deep); }
.footer-bar__copy { margin-left: auto; }

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

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bar__copy { margin-left: 0; width: 100%; }
}

/* ---------- 15. 进入动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 16. 无障碍与减弱动效 ---------- */
@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;
  }

  .reveal { opacity: 1; transform: none; }
  .progress-rail__bar { transition: none; }
}
