/* =========================================================
   b体育网页版 — /assets/site.css
   夜间球场数据舱 · 共享外壳样式
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 76px) + 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%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }

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

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

/* ---------- tokens ---------- */
:root {
  --ink: #07211C;
  --rail: #0D100F;
  --panel: #10312A;
  --neon: #3DF0B4;
  --amber: #FF9040;
  --body-text: #CFE6DD;
  --muted: #8FA8A0;
  --white: #F5FFFB;
  --line: #1F5A4C;
  --sand: #C8A96A;

  --font-display: 'Oswald', 'Barlow Condensed', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --wrap: 1240px;
  --header-h: 76px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(115% 70% at 8% -6%, rgba(31, 90, 76, .34), transparent 58%),
    radial-gradient(90% 60% at 100% 0%, rgba(13, 16, 15, .9), transparent 62%);
  background-repeat: no-repeat;
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
}

strong { color: var(--white); font-weight: 600; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--neon);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--t-base) var(--ease);
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--rail);
  border-bottom: 1px solid rgba(31, 90, 76, .7);
}

.header-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--neon) 0%,
    var(--neon) 26%,
    var(--line) 26%,
    var(--line) 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px 0 28px;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px 10px 10px 18px;
  background: var(--neon);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--white);
  transition: color var(--t-fast) var(--ease);
}

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

.brand-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 49, 42, .6);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

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

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: var(--neon);
  transition: background-color var(--t-base) var(--ease);
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--neon);
  transition: transform var(--t-base) var(--ease);
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

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

/* nav */
.site-nav {
  margin-left: auto;
  min-width: 0;
}

.nav-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

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

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

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(61, 240, 180, .06);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link:focus-visible {
  color: var(--white);
  outline: 1px solid var(--neon);
  outline-offset: 2px;
}

.nav-link[aria-current="page"] { color: var(--neon); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 80px;
  background: var(--rail);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(31, 90, 76, .6);
}

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

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--white);
}

.footer-tagline {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-note {
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-note [data-year] {
  font-family: var(--font-mono);
  color: var(--body-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 44px;
  padding: 36px 0 32px;
}

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

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--neon);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-text);
  transition: color var(--t-fast) var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease);
}

.footer-link:hover { color: var(--neon); }
.footer-link:hover::after { transform: scaleX(1); }

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

.footer-contact-item {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-text);
}

.footer-contact-item:last-child { margin-bottom: 0; }

.footer-icp {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(31, 90, 76, .6);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-bottom-links .footer-link { font-size: 14px; }

.footer-bottom .footer-note { max-width: none; }

/* ---------- layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 68px 0; }

.section + .section { border-top: 1px solid rgba(31, 90, 76, .45); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--sand);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.015em;
}

.lede {
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--body-text);
}

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

.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

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

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

.btn-neon:hover {
  background: #66f6c7;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--neon);
  color: var(--neon);
  background-color: rgba(61, 240, 180, .07);
  transform: translateY(-1px);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid rgba(61, 240, 180, .42);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--neon);
}

.tag-amber {
  border-color: rgba(255, 144, 64, .46);
  color: var(--amber);
}

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 24px 0 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-item a {
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}

.breadcrumb-item a:hover { color: var(--neon); }

.breadcrumb-item [aria-current="page"] { color: var(--body-text); }

/* ---------- cards & data ---------- */
.card {
  padding: 24px;
  border: 1px solid rgba(31, 90, 76, .72);
  border-radius: var(--r-md);
  background: var(--panel);
}

.data-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(31, 90, 76, .5);
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast) var(--ease);
}

.data-row:hover { background-color: rgba(61, 240, 180, .06); }
.data-row:focus-within { background-color: rgba(61, 240, 180, .09); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--neon);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--muted);
}

.stat-amber .stat-value { color: var(--amber); }

/* ---------- media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 90, 76, .7);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 56px;
  background-color: var(--panel);
  background-image: linear-gradient(152deg, rgba(16, 49, 42, .95), rgba(7, 33, 28, .98));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 92% at 16% 0%, rgba(61, 240, 180, .16), transparent 58%);
}

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

.media-frame-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--muted);
}

.media-frame-16x9 { aspect-ratio: 16 / 9; }
.media-frame-4x5 { aspect-ratio: 4 / 5; }

.media-frame-tilt { transform: rotate(-1.6deg); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 130;
  width: 0;
  height: 2px;
  pointer-events: none;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(61, 240, 180, .55);
  transition: width 90ms linear;
}

/* ---------- collapse protocol ---------- */
[data-collapse] { cursor: pointer; }

[data-collapse-panel] {
  padding: 16px 18px 20px;
  border-left: 2px solid var(--neon);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(16, 49, 42, .72);
  font-size: 15px;
  line-height: 1.8;
  color: var(--body-text);
}

/* ---------- reveal ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 1100px) {
  .header-inner { padding: 0 20px 0 24px; }
  .nav-link { padding: 10px 11px; font-size: 14px; }
  .nav-link::after { left: 10px; right: 10px; }
  .footer-grid { gap: 32px; }
}

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

  .header-inner { padding: 0 16px 0 20px; gap: 12px; }

  .brand-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 9px 9px 9px 16px; }
  .brand-name { font-size: 17px; }

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 125;
    max-height: calc(100vh - var(--header-h));
    margin-left: 0;
    overflow-y: auto;
    padding: 8px 0 20px;
    background: var(--rail);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--t-base) var(--ease),
      transform var(--t-base) var(--ease),
      visibility var(--t-base) var(--ease);
  }

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

  .nav-scroll {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

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

  .nav-link {
    padding: 15px 26px;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-size: 17px;
    color: var(--body-text);
  }

  .nav-link::after { display: none; }

  .nav-link:hover { background-color: rgba(61, 240, 180, .05); }

  .nav-link[aria-current="page"] {
    border-left-color: var(--neon);
    background-color: rgba(61, 240, 180, .07);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 32px 0 28px;
  }

  .section { padding: 54px 0; }
}

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

  .header-inner { padding: 0 14px 0 16px; gap: 10px; }
  .brand-meta { font-size: 9px; letter-spacing: 0.1em; }

  .wrap { padding: 0 18px; }

  .footer-inner { padding: 42px 18px 24px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-brand-name { font-size: 22px; }

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

  .section { padding: 44px 0; }
  .eyebrow { font-size: 11px; }
}

/* =========================================================
   reduced motion
   ========================================================= */
@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-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .media-frame-tilt { transform: none; }

  .scroll-progress { transition: none; }
}
