/* ==========================================================================
   爱体育赛事 · 共享样式 /assets/site.css
   夜场球场灯光 + 数据指挥台：深墨绿打底，青柠标记实时，暖橙标记变化
   ========================================================================== */

:root {
  --c-ink: #0B1F19;
  --c-black: #0A0B0A;
  --c-green: #14342A;
  --c-lime: #C8FF3D;
  --c-orange: #FF7A2F;
  --c-paper: #EEF5EA;
  --c-mist: #93A79B;
  --c-glass: rgba(255, 255, 255, 0.12);
  --c-caramel: #7A3A12;
  --c-lime-soft: #E6FFB0;

  --line-soft: rgba(147, 167, 155, 0.18);
  --line-mid: rgba(147, 167, 155, 0.32);

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

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-panel: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
  --header-h: 72px;
}

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

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

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

ul, ol { list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--c-ink);
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(-25deg, rgba(200, 255, 61, 0.012) 0 1px, transparent 1px 140px);
  color: var(--c-paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; }

strong, b { font-weight: 800; }

::selection {
  background: var(--c-lime);
  color: var(--c-black);
}

/* ---------- 焦点与可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-lime);
  color: var(--c-black);
  font-weight: 800;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

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

main { display: block; }

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

/* ---------- 容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 36px);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-paper);
}

.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.3em; margin-bottom: 0.45em; }
.prose ul, .prose ol { margin-top: 0.9em; padding-left: 1.2em; }
.prose ul li { list-style: none; position: relative; padding-left: 1em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--c-lime);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.62em 1.05em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lime {
  background: var(--c-lime);
  color: var(--c-black);
}
.btn-lime:hover { background: var(--c-lime-soft); }

.btn-orange {
  background: var(--c-orange);
  color: #1B0C03;
}
.btn-orange:hover { background: #FF9257; }

.btn-ghost {
  border-color: var(--line-mid);
  color: var(--c-paper);
}
.btn-ghost:hover {
  border-color: var(--c-lime);
  color: var(--c-lime);
}

.btn-sm {
  padding: 0.45em 0.85em;
  font-size: 0.85rem;
}

/* ---------- 数字 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.unit {
  font-family: var(--font-mono);
  font-size: 0.6em;
  vertical-align: 0.55em;
  color: var(--c-mist);
  margin-left: 0.15em;
}

.num.up { color: var(--c-orange); }
.num.down { color: var(--c-mist); }

/* ---------- 面板 / 标签 / 表格 ---------- */
.panel {
  background: var(--c-green);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow: var(--shadow-panel);
}

.panel-glass {
  background: var(--c-glass);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-solid { background: var(--c-green); }

.panel-accent {
  border-left: 4px solid var(--c-orange);
  background: linear-gradient(90deg, rgba(122, 58, 18, 0.35), var(--c-green) 42%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.6em;
  border: 1px solid rgba(200, 255, 61, 0.35);
  border-radius: 3px;
  background: rgba(200, 255, 61, 0.12);
  color: var(--c-lime);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.tag-warm {
  border-color: rgba(255, 122, 47, 0.42);
  background: rgba(255, 122, 47, 0.14);
  color: var(--c-orange);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 0.55em 0.7em;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-mist);
}

.data-table td.num,
.data-table th.num { text-align: right; }

.data-table tbody tr { transition: background-color 0.16s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9em;
  padding-bottom: 0.5em;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-lime);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-mist);
  margin-top: clamp(14px, 2vw, 22px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5em;
  color: rgba(147, 167, 155, 0.5);
}

.breadcrumb a {
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb a:hover {
  color: var(--c-lime);
  border-bottom-color: var(--c-lime);
}

.breadcrumb [aria-current="page"] { color: var(--c-paper); }

/* ---------- 图片容器 ---------- */
.figure { margin: 0; }

.figure-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background-color: var(--c-green);
  background-image:
    repeating-linear-gradient(90deg, rgba(238, 245, 234, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(238, 245, 234, 0.04) 0 1px, transparent 1px 64px);
}

.figure-media img,
.figure-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-media[data-ratio="3/2"] { aspect-ratio: 3 / 2; }
.figure-media[data-ratio="4/3"] { aspect-ratio: 4 / 3; }
.figure-media[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.figure-media[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.figure-media[data-ratio="21/9"] { aspect-ratio: 21 / 9; }

.figure-media[data-overlay]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 10, 0) 42%, rgba(10, 11, 10, 0.68));
}

.figure-cap {
  margin-top: 0.6em;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-mist);
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 11, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(147, 167, 155, 0.22);
  transition: background-color 0.2s ease;
}

.site-header[data-scrolled] { background: rgba(10, 11, 10, 0.97); }

.header-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  max-width: 1400px;
  margin-inline: auto;
  padding: 10px clamp(16px, 3vw, 36px);
  min-height: var(--header-h);
}

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

.brand-mark {
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--c-lime);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

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

.brand-name {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--c-paper);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  white-space: nowrap;
}

/* 走马灯 */
.ticker {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(10px, 1.4vw, 20px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding-right: clamp(18px, 2.4vw, 34px);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.84rem;
  color: var(--c-mist);
  white-space: nowrap;
}

.ticker-tag {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--c-lime);
  color: var(--c-black);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 主导航 */
.site-nav { min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.3vw, 20px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--c-paper);
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--c-mist);
  opacity: 0.3;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.nav-list a:hover {
  color: var(--c-lime-soft);
  transform: translateY(-2px);
}

.nav-list a:hover::after {
  background: var(--c-lime);
  opacity: 1;
}

.nav-list a[aria-current="page"] { color: var(--c-lime); }

.nav-list a[aria-current="page"]::after {
  background: var(--c-lime);
  opacity: 1;
  height: 3px;
}

/* 工具栏 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  color: var(--c-paper);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--c-lime);
  color: var(--c-lime);
  background: rgba(200, 255, 61, 0.08);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  color: var(--c-paper);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover { border-color: var(--c-lime); color: var(--c-lime); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* 搜索提示面板 */
.header-search {
  background: var(--c-green);
  border-top: 1px solid var(--line-soft);
}

.header-search-text {
  max-width: 1400px;
  margin-inline: auto;
  padding: 12px clamp(16px, 3vw, 36px);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-mist);
}

.header-search-text a {
  color: var(--c-lime);
  border-bottom: 1px solid rgba(200, 255, 61, 0.45);
}

.header-search-text a:hover { border-bottom-color: var(--c-lime); }

/* 移动快捷入口 */
.quick-links { display: none; }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--c-black);
  border-top: 1px solid var(--line-soft);
}

.footer-stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--c-lime) 0 22%, var(--c-orange) 22% 30%, var(--c-green) 30% 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 54px) 100%, 0 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 44px);
  padding-top: clamp(34px, 5vw, 60px);
  padding-bottom: clamp(24px, 4vw, 42px);
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-paper);
}

.footer-brand-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-mist);
}

.footer-note {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--c-mist);
  max-width: 34em;
}

.footer-col h2,
.footer-contact h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c-lime);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--c-paper);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.footer-col a:hover {
  color: var(--c-lime);
  transform: translateY(-1px);
  border-bottom-color: rgba(200, 255, 61, 0.5);
}

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--c-paper);
  margin-bottom: 6px;
  word-break: break-all;
}

.footer-contact .footer-note { margin-top: 6px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--c-mist);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .ticker { display: none; }
  .header-rail { grid-template-columns: auto 1fr auto auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .header-rail {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 8px clamp(12px, 3vw, 20px);
  }

  .brand { grid-column: 1; }
  .header-utility { grid-column: 3; justify-self: end; }
  .nav-toggle { display: grid; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(10, 11, 10, 0.98);
    border-bottom: 1px solid var(--line-mid);
    transition: max-height 0.24s ease, visibility 0.24s ease;
  }

  .site-nav[data-open] {
    max-height: 70vh;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 15px clamp(12px, 3vw, 20px);
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list a::after { display: none; }
  .nav-list a:hover { transform: none; }
  .nav-list a[aria-current="page"] {
    background: rgba(200, 255, 61, 0.08);
    box-shadow: inset 3px 0 0 var(--c-lime);
  }

  .quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
    background: rgba(20, 52, 42, 0.55);
  }

  .quick-links a {
    padding: 10px 4px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-paper);
    border-right: 1px solid var(--line-soft);
    transition: color 0.16s ease, background-color 0.16s ease;
  }

  .quick-links a:last-child { border-right: 0; }
  .quick-links a:hover,
  .quick-links a:focus-visible {
    color: var(--c-lime);
    background: rgba(200, 255, 61, 0.08);
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .header-utility .btn { display: none; }

  .brand-sub { display: none; }
  .brand-name { font-size: 1.05rem; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { font-size: 0.72rem; }
}

/* ==========================================================================
   动效偏好
   ========================================================================== */
@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;
  }

  .ticker-track { animation: none; transform: none; }
  .btn:hover,
  .nav-list a:hover,
  .footer-col a:hover { transform: none; }
}
