/* =============================================================
   BY体育主站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   视觉母题：夜场战术板 —— 深底、细线、直角、等宽数字
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 150px;
}

body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { 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; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-ink: #07131F;
  --c-night: #0E2233;
  --c-field: #0B1F1A;
  --c-cyan: #33F2D0;
  --c-cyan-soft: #5FF7DC;
  --c-orange: #FF7A3D;
  --c-orange-soft: #FF9364;
  --c-teal-grey: #6F8F8A;
  --c-smoke: #7891AA;
  --c-paper: #F2F7F5;
  --c-line: #29433D;
  --c-peach: #FFD3B8;
  --c-ink-on-paper: #17332C;

  --f-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --f-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1280px;
  --gutter: 24px;
  --step: clamp(48px, 7vw, 96px);

  --hairline: 1px solid var(--c-line);
  --ease: cubic-bezier(.22, .68, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-bp: 1024px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--c-field);
  color: var(--c-paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--c-paper);
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { text-wrap: pretty; }

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

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

/* ---------- 4. 字体与文字工具 ---------- */
.t-display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.04;
}
.t-serif { font-family: var(--f-serif); }
.t-mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--c-orange);
}

.lead {
  max-width: 62ch;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.8;
  color: rgba(242, 247, 245, .82);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: 28px;
  background: var(--c-line);
}

/* ---------- 5. 布局容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--step); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.section__head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: 32px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.grid-12 > * { grid-column: span 12; }

@media (min-width: 960px) {
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.2;
  letter-spacing: .06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .18s var(--ease);
}

.btn--primary {
  background: var(--c-cyan);
  color: var(--c-ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.btn--primary:hover { background: var(--c-cyan-soft); }

.btn--ghost {
  background: rgba(242, 247, 245, .02);
  border-color: var(--c-line);
  color: var(--c-paper);
}
.btn--ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }

.btn--orange { background: var(--c-orange); color: var(--c-ink); }
.btn--orange:hover { background: var(--c-orange-soft); }

.btn--primary:focus-visible,
.btn--orange:focus-visible {
  outline: 2px solid var(--c-paper);
  outline-offset: -4px;
}

/* ---------- 7. 页头 ---------- */
.skip-link {
  position: fixed;
  top: -110px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--c-teal-grey);
  box-shadow: 0 16px 34px -24px #000;
}

/* 上层：品牌短句 + 版本状态 */
.header-util {
  background: var(--c-night);
  border-bottom: 1px solid var(--c-line);
}
.header-util__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 38px;
  padding-block: 5px;
  font-size: 13px;
}
.header-brandline {
  font-family: var(--f-serif);
  letter-spacing: .05em;
  color: rgba(242, 247, 245, .8);
}
.header-brandline span { color: var(--c-cyan); }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--c-smoke);
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--c-orange);
  animation: status-pulse 2.8s var(--ease) infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 122, 61, .55); }
  50% { opacity: .62; box-shadow: 0 0 0 6px rgba(255, 122, 61, 0); }
}

/* 下层：品牌 + 主导航 */
.header-main {
  position: relative;
  background: var(--c-ink);
}
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--c-line);
  background: var(--c-night);
  color: var(--c-cyan);
}
.brand__text { display: block; min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: .05em;
  color: var(--c-paper);
}
.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .16em;
  color: var(--c-teal-grey);
  white-space: nowrap;
}

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1 1 auto;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.nav-list > li > a {
  display: block;
  padding: 11px 9px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .01em;
  color: rgba(242, 247, 245, .76);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-list > li > a:hover {
  color: var(--c-paper);
  border-bottom-color: var(--c-orange);
}
.nav-list > li > a[aria-current="page"] {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}
.nav-actions {
  display: flex;
  align-items: center;
  flex: none;
}

/* 移动导航开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 14px;
  border: 1px solid var(--c-line);
  background: var(--c-night);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--c-paper);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars > span {
  display: block;
  height: 2px;
  background: var(--c-cyan);
  transition: transform .22s var(--ease), opacity .22s var(--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); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--c-ink);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 26px 42px -30px #000;
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
  }
  .primary-nav[data-open="true"] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .nav-list > li > a {
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--c-line);
    border-left: 2px solid transparent;
  }
  .nav-list > li > a:hover {
    border-bottom-color: var(--c-line);
    border-left-color: var(--c-orange);
    background: rgba(255, 122, 61, .06);
  }
  .nav-list > li > a[aria-current="page"] {
    border-bottom-color: var(--c-line);
    border-left-color: var(--c-cyan);
    background: rgba(51, 242, 208, .09);
    color: var(--c-cyan);
  }

  .nav-actions { margin-top: 18px; }
  .nav-actions .btn { width: 100%; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: var(--c-ink);
  border-top: 1px solid var(--c-line);
}

.footer-slab {
  position: relative;
  overflow: hidden;
  background: var(--c-night);
  border-bottom: 1px solid var(--c-line);
}
.footer-slab::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -70px;
  width: min(560px, 62%);
  height: 190px;
  background: linear-gradient(115deg, rgba(51, 242, 208, .18), rgba(51, 242, 208, 0) 66%);
  transform: skewY(-7deg);
  pointer-events: none;
}
.footer-slab__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 30px;
}
.footer-lead {
  max-width: 58ch;
  font-family: var(--f-serif);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--c-paper);
}
.footer-lead::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--c-orange);
}
.footer-cta { flex: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 44px 48px;
  padding-block: 56px;
}

.footer-brand { min-width: 0; }
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand__mark { width: 36px; height: 36px; }
.brand--footer .brand__name { font-size: 18px; }

.footer-summary {
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(242, 247, 245, .7);
}

.footer-contact {
  display: grid;
  gap: 2px;
  margin-top: 22px;
}
.footer-contact dt {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--c-teal-grey);
}
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-paper);
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--f-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
}
.footer-col ul { display: grid; gap: 2px; }
.footer-col a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: rgba(242, 247, 245, .74);
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--c-cyan); }

.footer-base {
  background: var(--c-ink);
  border-top: 1px solid var(--c-line);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px;
  font-size: 12.5px;
  color: var(--c-teal-grey);
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-legal a {
  color: var(--c-smoke);
  transition: color .18s var(--ease);
}
.footer-legal a:hover { color: var(--c-cyan); }

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; padding-block: 40px; }
  .footer-slab__inner { padding-block: 26px; }
  .footer-cta { width: 100%; }
  .footer-base__inner { justify-content: flex-start; }
}

/* ---------- 9. 内容组件 ---------- */
.breadcrumbs {
  padding-block: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-teal-grey);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line); }
.breadcrumbs a { color: var(--c-smoke); transition: color .18s var(--ease); }
.breadcrumbs a:hover { color: var(--c-cyan); }
.breadcrumbs a[aria-current="page"] { color: var(--c-paper); }

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(242, 247, 245, .86);
}
.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; margin-bottom: .5em; font-size: clamp(23px, 2.8vw, 30px); }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--c-night);
  border: 1px solid var(--c-line);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 20px solid var(--c-ink);
  border-left: 20px solid transparent;
  pointer-events: none;
}
.card--paper {
  background: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-ink-on-paper);
}
.card--paper h3, .card--paper .card__title { color: var(--c-ink); }
.card--paper .card__kicker { color: #4A6A64; }
.card--paper::after { border-top-color: var(--c-field); }

.card__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--c-teal-grey);
}
.card__title {
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--c-paper);
}
.card__body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 247, 245, .76);
}
.card--paper .card__body { color: #33514A; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(242, 247, 245, .03);
  border: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--c-teal-grey);
  white-space: nowrap;
}
.tag--cyan { background: var(--c-cyan); border-color: var(--c-cyan); color: var(--c-ink); font-weight: 700; }
.tag--orange { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-ink); font-weight: 700; }
.tag--league-a { border-color: var(--c-teal-grey); color: var(--c-teal-grey); }
.tag--league-b { border-color: var(--c-smoke); color: var(--c-smoke); }

.stat-panel {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--c-ink);
  border: 1px solid var(--c-line);
}
.stat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--c-cyan);
}
.stat-panel__value {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--c-cyan);
}
.stat-panel__label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--c-teal-grey);
}
.stat-panel__meta {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 247, 245, .72);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--c-line);
  background-color: var(--c-night);
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame > img,
.media-frame > video,
.media-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(7, 19, 31, .94), rgba(7, 19, 31, 0));
}
.media-frame__caption {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: var(--c-paper);
}
.media-frame__caption .tag { position: static; }

/* ---------- 11. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 12. 响应式与无障碍降级 ---------- */
@media (max-width: 639px) {
  :root { --gutter: 18px; --step: clamp(36px, 9vw, 56px); }
  body { font-size: 16px; line-height: 1.72; }
  .header-util__inner { font-size: 12px; }
  .header-status { font-size: 10.5px; letter-spacing: .04em; }
  .header-main__inner { min-height: 66px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 10px; letter-spacing: .12em; }
  .card { padding: 18px; }
  .stat-panel { padding: 18px; }
}

@media (min-width: 1440px) {
  :root { --wrap: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .status-dot { animation: none; }
  .site-header[data-scrolled="true"] { box-shadow: none; }
}
