/* /assets/site.css — 博万体育赛事 共享外壳 */

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

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

body {
  margin: 0;
  background-color: var(--deep-night);
  color: var(--cool-white);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

:root {
  --deep-night: #0A1611;
  --panel-green: #12241A;
  --deep-line: #1E3A2A;
  --neon-lime: #C6F24C;
  --neon-dim: #8FBF2E;
  --steal-orange: #FF5C2B;
  --cool-white: #E9F2EC;
  --grey-green: #93A99C;
  --silent-black: #040806;
  --paper-white: #F4F8F4;

  --radius-panel: 28px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --pad-panel: clamp(20px, 3.4vw, 40px);
  --shell: 1160px;

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

  --fs-display: clamp(38px, 7vw, 56px);
  --fs-h1: clamp(30px, 5vw, 44px);
  --fs-h2: clamp(23px, 3.2vw, 32px);
  --fs-h3: clamp(19px, 2.2vw, 22px);
  --fs-body: 17px;
  --fs-label: 12px;
  --fs-note: 13px;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--cool-white);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }

a { color: var(--neon-lime); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--neon-dim); }

ul, ol { padding-left: 1.2em; }

::selection { background: var(--neon-lime); color: #0A1611; }

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

#main-content { display: block; scroll-margin-top: 130px; }

/* ---------- 工具类 ---------- */

.container {
  width: min(var(--shell), 100% - 32px);
  margin-inline: auto;
}

.stack { display: grid; gap: 20px; }
.stack--panel { gap: clamp(20px, 3vw, 36px); }

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

.col-prose { grid-column: span 7; }
.col-aside { grid-column: span 4; }
.col-full { grid-column: 1 / -1; }

.label-caps {
  margin: 0;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-green);
}

.muted { color: var(--grey-green); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.divider { height: 1px; border: 0; margin: 32px 0; background: var(--deep-line); }

.canvas-grid {
  background-image:
    linear-gradient(rgba(198, 242, 76, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 242, 76, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 18px 18px;
  background: var(--neon-lime);
  color: #0A1611;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; color: #0A1611; }

/* ---------- 刊头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--deep-night);
  border-bottom: 1px solid var(--deep-line);
}

.header-inner {
  width: min(var(--shell), 100% - 32px);
  margin-inline: auto;
  padding-bottom: 6px;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px 0 12px;
}

.masthead-kicker {
  margin: 0;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-green);
}

.masthead-center {
  display: grid;
  gap: 4px;
  text-align: center;
}

.masthead-brand {
  display: inline-block;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--cool-white);
  text-decoration: none;
}

.masthead-brand:hover,
.masthead-brand:focus-visible { color: var(--neon-lime); }

.masthead-tagline {
  margin: 0;
  font-size: var(--fs-note);
  letter-spacing: 0.08em;
  color: var(--grey-green);
}

.masthead-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-pill);
  background: var(--panel-green);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey-green);
  white-space: nowrap;
}

.meta-chip b {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--neon-lime);
}

/* ---------- 栏目条 ---------- */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-pill);
  background: var(--panel-green);
  color: var(--cool-white);
  font-family: inherit;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--neon-lime);
  border-color: var(--neon-dim);
}

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

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--grey-green);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--cool-white);
  background: var(--panel-green);
}

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

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon-lime);
}

/* ---------- 阅读进度 ---------- */

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--deep-line);
  overflow: hidden;
}

.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--neon-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 32px;
  background: var(--silent-black);
  border-top: 1px solid var(--deep-line);
  color: var(--grey-green);
}

.footer-inner { display: grid; gap: clamp(26px, 4vw, 46px); }

.footer-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--deep-line);
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  color: var(--cool-white);
  text-decoration: none;
}

.footer-brand:hover { color: var(--neon-lime); }

.footer-tag {
  margin: 0;
  font-size: var(--fs-note);
  letter-spacing: 0.08em;
  color: var(--grey-green);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-dim);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.65;
}

.footer-list a {
  color: var(--cool-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover {
  color: var(--neon-lime);
  border-bottom-color: var(--neon-dim);
}

.footer-list--plain li {
  color: var(--grey-green);
  font-size: var(--fs-note);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--deep-line);
  font-size: var(--fs-note);
  color: var(--grey-green);
}

.footer-bottom p { margin: 0; }
.footer-note { color: var(--grey-green); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--neon-lime);
  border-color: var(--neon-lime);
  color: #0A1611;
}

.btn--primary:hover {
  background: var(--neon-dim);
  border-color: var(--neon-dim);
  color: #0A1611;
}

.btn--ghost {
  background: transparent;
  border-color: var(--deep-line);
  color: var(--cool-white);
}

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

/* ---------- 首栏入口胶囊带 ---------- */

.pill-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  flex-direction: column;
  padding: 11px 20px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-pill);
  background: var(--panel-green);
  color: var(--cool-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pill:hover,
.pill:focus-visible {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
}

.pill-note {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--grey-green);
  transition: max-height 0.24s ease, opacity 0.24s ease, margin-top 0.24s ease;
}

.pill:hover .pill-note,
.pill:focus-visible .pill-note {
  max-height: 44px;
  opacity: 1;
  margin-top: 3px;
}

/* ---------- 联赛筛选标签 ---------- */

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-tag {
  padding: 8px 16px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--grey-green);
  font-family: inherit;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-tag:hover { color: var(--cool-white); border-color: var(--neon-dim); }

.filter-tag[aria-pressed="true"] {
  background: var(--neon-lime);
  border-color: var(--neon-lime);
  color: #0A1611;
}

/* ---------- 堆叠面板 ---------- */

.panel {
  padding: clamp(24px, 4vw, 48px) var(--pad-panel);
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background: var(--panel-green);
  transition: border-color 0.24s ease;
}

.panel.is-active { border-color: var(--neon-dim); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-title { margin: 0; font-size: var(--fs-h2); }

.panel-note {
  margin: 0;
  font-size: var(--fs-note);
  letter-spacing: 0.04em;
  color: var(--grey-green);
}

/* ---------- 正文排版 ---------- */

.prose { max-width: 36em; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--neon-lime); font-weight: 700; }

/* ---------- 面包屑 ---------- */

.breadcrumb {
  font-size: var(--fs-note);
  color: var(--grey-green);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--deep-line);
}

.breadcrumb-list a {
  color: var(--grey-green);
  text-decoration: none;
}

.breadcrumb-list a:hover { color: var(--neon-lime); }
.breadcrumb-list [aria-current="page"] { color: var(--cool-white); }

/* ---------- 数据图形 ---------- */

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

.stat-figure__value {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cool-white);
}

.stat-figure__label {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-green);
}

.stat-figure--anchor .stat-figure__value {
  color: var(--neon-lime);
  border-bottom: 2px solid var(--neon-lime);
  padding-bottom: 6px;
}

.stat-figure--peak .stat-figure__value { color: var(--steal-orange); }

.stat-figure--peak.is-pulsing .stat-figure__value {
  animation: peak-pulse 0.6s ease-in-out 1;
}

@keyframes peak-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--panel-green), var(--deep-night) 72%);
}

.media-frame img,
.media-frame picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

.media-frame__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(4, 8, 6, 0.74);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--cool-white);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* ---------- 章节索引 ---------- */

.section-index {
  padding-top: 20px;
  border-top: 1px solid var(--deep-line);
}

.section-index__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-index__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--cool-white);
  text-decoration: none;
}

.section-index__list a:hover { color: var(--neon-lime); }

/* ---------- 浅底阅读模式 ---------- */

.reading-light {
  background: var(--paper-white);
  color: #16241C;
}

.reading-light h1,
.reading-light h2,
.reading-light h3 { color: #0E1A13; }

.reading-light .muted,
.reading-light .label-caps,
.reading-light .panel-note,
.reading-light .breadcrumb,
.reading-light .breadcrumb-list a { color: #55665C; }

.reading-light .panel {
  background: #FFFFFF;
  border-color: #DBE4DC;
}

.reading-light .panel.is-active { border-color: var(--neon-dim); }

.reading-light a { color: #1F5C33; }
.reading-light a:hover { color: #12401F; }
.reading-light .divider { background: #DBE4DC; }

/* ---------- 响应式 ---------- */

@media (max-width: 899px) {
  .masthead { padding: 16px 0 10px; gap: 10px; }
  .masthead-kicker { display: none; }
  .masthead-center { grid-column: 1 / -1; }
  .masthead-meta { grid-column: 1 / -1; justify-content: center; }

  .nav-bar { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-list { justify-content: flex-start; padding-bottom: 6px; }

  .site-nav[data-open="true"] {
    display: block;
    flex: 1 1 100%;
  }

  .site-nav[data-open="true"] .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 14px;
  }

  .site-nav[data-open="true"] .nav-list a {
    background: var(--panel-green);
    border: 1px solid var(--deep-line);
  }

  .col-prose,
  .col-aside { grid-column: 1 / -1; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (max-width: 599px) {
  .container { width: min(var(--shell), 100% - 24px); }
  .header-inner { width: min(var(--shell), 100% - 24px); }

  .masthead { grid-template-columns: 1fr; }
  .masthead-tagline { display: none; }

  .panel { border-radius: 20px; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .nav-bar { flex-wrap: wrap; }
}

@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;
  }

  .read-progress-bar { transition: none; }
}
