/* =========================================================
   爱体育赛事 · 共享站点样式 / assets/site.css
   夜战转播框架：深蓝底 + 电光青指路 + 信号橙点火
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --navy-900: #07111F;
  --navy-800: #0D1D30;
  --ink-900: #03070D;
  --cyan: #00E5FF;
  --orange: #FF6A1A;
  --green: #2EE59D;
  --silver: #B9C7D8;
  --paper: #F4F8FC;
  --white: #FFFFFF;
  --line: #24425F;

  --text: #D6E3F0;
  --text-strong: #F4F8FC;
  --muted: #B9C7D8;
  --muted-dim: #8299B2;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "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, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  --shell-max: 1520px;
  --content-max: 1280px;
  --header-h: 70px;
  --radius: 2px;

  --space-gutter: clamp(16px, 3vw, 32px);
  --space-block: clamp(48px, 7vw, 96px);
}

/* ---------- 2. Reset 与基础排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, 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 { font: inherit; color: inherit; background: none; border: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 84% -8%, rgba(0, 229, 255, 0.10), transparent 62%),
    radial-gradient(820px 480px at -6% 6%, rgba(46, 229, 157, 0.07), transparent 60%),
    var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--text-strong);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }

strong { color: var(--text-strong); font-weight: 700; }
em { font-style: normal; color: var(--cyan); }

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: clamp(28px, 4vw, 48px) 0;
}

#main-content { display: block; }
#main-content:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }

::selection { background: var(--cyan); color: #04121C; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121C;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translateY(0);
  color: #04121C;
}

/* ---------- 4. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  background-image: linear-gradient(180deg, rgba(13, 29, 48, 0.92) 0%, rgba(7, 17, 31, 0.99) 100%);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.85) 0%, rgba(0, 229, 255, 0.18) 24%, rgba(36, 66, 95, 0.6) 52%, rgba(36, 66, 95, 0) 100%);
  pointer-events: none;
}

.header-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--space-gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--white); }

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cyan);
  background: rgba(0, 229, 255, 0.09);
  color: var(--cyan);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--silver);
  white-space: nowrap;
}

/* 通道导航 */
.primary-nav { justify-self: center; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(0, 229, 255, 0.07);
}
.nav-link:hover .nav-num { color: var(--cyan); }

.nav-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #4A6C8C;
  transition: color 0.16s ease;
}

.nav-link[aria-current="page"] {
  color: var(--white);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
}
.nav-link[aria-current="page"] .nav-num { color: var(--cyan); }

/* 工具区 */
.header-utility {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 16px);
  justify-self: end;
}

.util-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--silver);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.util-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.nav-toggle-box {
  display: grid;
  gap: 3px;
  width: 16px;
}
.nav-toggle-box span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-header[data-open="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-label { line-height: 1; }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  color: var(--silver);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 26%, var(--line) 26%, var(--line) 100%);
  pointer-events: none;
}

.footer-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--space-gutter) clamp(20px, 3vw, 32px);
}

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

.footer-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0.01em;
  color: var(--paper);
  margin-bottom: 6px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
  max-width: 34ch;
  margin-bottom: 22px;
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.footer-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #6E86A3;
}

.footer-value {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(8px, 2vw, 20px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #7E93AC;
}

.footer-note {
  flex: 1 1 320px;
  max-width: 62ch;
  line-height: 1.75;
  color: #7E93AC;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--silver);
}

.footer-meta {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: #7E93AC;
}

/* ---------- 6. 容器与章节节奏 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--space-gutter);
}

.section { padding-block: var(--space-block); }

.section--alt {
  background: linear-gradient(180deg, rgba(13, 29, 48, 0.92), rgba(13, 29, 48, 0.55));
  border-block: 1px solid var(--line);
}

/* 滚动章节高亮（由 data-section 驱动） */
[data-section] {
  position: relative;
  transition: background-color 0.35s ease;
}
[data-section].is-current {
  background-color: rgba(0, 229, 255, 0.035);
}

/* ---------- 7. 文字模块 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.page-title {
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.06;
  margin-bottom: 0.45em;
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  margin-bottom: 0.5em;
}

.lede {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--silver);
  max-width: 60ch;
}

.vert-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-dim);
  user-select: none;
}

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

.prose {
  max-width: 68ch;
  color: var(--text);
  line-height: 1.85;
}
.prose > * + * { margin-top: 1em; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.35em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--cyan); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { border-bottom: 1px solid rgba(0, 229, 255, 0.4); }
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #0A1420;
}
.btn--primary:hover {
  background: #FF8340;
  border-color: #FF8340;
  color: #0A1420;
}

.btn--ghost {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.12);
  color: var(--white);
}

.btn--inline {
  padding: 0;
  background: none;
  border: 0;
  color: var(--cyan);
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 0;
}
.btn--inline:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---------- 9. 标签与卡片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid currentColor;
  background: rgba(0, 229, 255, 0.06);
}

.tag--live { color: var(--orange); background: rgba(255, 106, 26, 0.10); }
.tag--v4 { color: var(--orange); border-color: var(--orange); background: rgba(255, 106, 26, 0.14); }
.tag--data { color: var(--green); background: rgba(46, 229, 157, 0.10); }
.tag--paper {
  color: var(--navy-900);
  background: var(--paper);
  border-color: var(--paper);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: #0B1725;
}
.panel--paper .panel__title { color: #07111F; }

.panel__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text-strong);
  margin-bottom: 0.5em;
}

/* ---------- 10. 图片容器（页面阶段填充占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.10), rgba(255, 106, 26, 0.08)),
    var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: rgba(3, 7, 13, 0.78);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- 11. 网格、面包屑、数据件 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--line);
}
.crumbs__link {
  color: var(--muted);
  text-decoration: none;
}
.crumbs__link:hover { color: var(--cyan); }
.crumbs__item[aria-current="page"] { color: var(--cyan); }

.stat {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-left: 2px solid var(--line);
  background: rgba(13, 29, 48, 0.5);
}
.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.03em;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  padding-bottom: 10px;
}
.data-table th,
.data-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(13, 29, 48, 0.72);
  white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(0, 229, 255, 0.05); }

/* ---------- 12. 平板 ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .util-link { font-size: 12px; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .nav-num { display: none; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer-frame { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 52ch; }
}

/* ---------- 13. 移动端：导航折叠 ---------- */
@media (max-width: 899px) {
  :root { --header-h: auto; }

  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 9px;
  }

  .brand-sub { display: none; }
  .util-link { display: none; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .site-header[data-open="true"] .primary-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 12px;
    font-size: 15px;
  }

  .nav-num { display: inline; font-size: 11px; }

  .footer-frame { padding-top: 32px; }
}

@media (max-width: 560px) {
  .footer-frame { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-contact-item { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .brand-mark { width: 32px; height: 32px; font-size: 15px; }
  .brand-name { font-size: 16px; }
  .btn { width: 100%; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .skip-link { transition: none; }
  .scroll-progress__bar { transition: none; }
}
