/* =========================================================
   678体育 · 共享 Site Kit  |  /assets/site.css
   深空黑 × 电光青 × 高原赭红 × 经幡点缀
   堆叠面板 / 锐利直角 / 精密网格 / 窄体大数字
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #070B0F;
}

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

ul, ol { padding: 0; list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070B0F;
  --panel: #101820;
  --panel-2: #0C1218;
  --cyan: #36E0D0;
  --cyan-soft: #8FF5EA;
  --ochre: #B4512E;
  --flag-yellow: #E8B44A;
  --flag-green: #3E8F6E;
  --flag-blue: #2F6FA3;
  --rock: #6E7A84;
  --paper: #F2EDE4;
  --grid: #24313A;
  --grid-soft: rgba(36, 49, 58, .55);
  --paper-dim: rgba(242, 237, 228, .74);

  --header-h: 76px;
  --content-max: 1440px;
  --gutter: clamp(1rem, 4vw, 3rem);

  --font-display: "Barlow Condensed", "DIN Condensed", "Arial Narrow",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Barlow Condensed", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;

  --dur: .28s;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 90% at 82% -12%, rgba(47, 111, 163, .18), transparent 62%),
    radial-gradient(90% 70% at -8% 4%, rgba(54, 224, 208, .09), transparent 58%),
    linear-gradient(to right, var(--grid-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-soft) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 96px 96px, 96px 96px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
}

p { max-width: 74ch; }

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

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

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

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 900px; }

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--grid);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid > * { grid-column: span 12; }

.grid--2 > * { grid-column: span 6; }
.grid--3 > * { grid-column: span 4; }
.grid--side { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.grid--side > * { grid-column: auto; }

/* ---------- 5. Type components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: .92;
  letter-spacing: -.012em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: .02em;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.85;
  color: var(--paper-dim);
  max-width: 68ch;
}

/* ---------- 6. Panels & data ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid);
  padding: clamp(1.1rem, 2.8vw, 2rem);
}

.panel--flush { padding: 0; }

.panel__title {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rock);
  margin-bottom: .8rem;
}

.data-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  background: rgba(16, 24, 32, .72);
}

.stat {
  padding: 1rem clamp(.9rem, 2vw, 1.4rem) 1.1rem;
  border-left: 1px solid var(--grid);
}

.stat:first-child { border-left: 0; }

.stat__label {
  display: block;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rock);
  margin-bottom: .35rem;
}

.stat__value {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.stat__value--cyan { color: var(--cyan); }

/* ---------- 7. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .16rem .55rem;
  border: 1px solid var(--grid);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--rock);
  white-space: nowrap;
}

.tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag--live { color: var(--cyan); border-color: rgba(54, 224, 208, .45); }
.tag--warn { color: var(--flag-yellow); border-color: rgba(232, 180, 74, .42); }
.tag--alert { color: var(--ochre); border-color: rgba(180, 81, 46, .5); }
.tag--ok { color: var(--flag-green); border-color: rgba(62, 143, 110, .5); }

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .5rem 1.15rem;
  border: 1px solid var(--grid);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--paper);
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--grid);
  color: var(--paper-dim);
}

.btn--sm {
  min-height: 34px;
  padding: .3rem .8rem;
  font-size: .74rem;
}

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 1.3rem var(--gutter) 0;
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--rock);
}

.breadcrumbs a { color: var(--rock); transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--grid); }
.breadcrumbs [aria-current="page"] { color: var(--cyan-soft); }

/* ---------- 10. Media frames ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grid);
  background-color: var(--panel-2);
  background-image:
    linear-gradient(135deg, rgba(47, 111, 163, .18), rgba(7, 11, 15, 0) 62%),
    repeating-linear-gradient(90deg, var(--grid-soft) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, var(--grid-soft) 0 1px, transparent 1px 52px);
}

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

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--4x5 { aspect-ratio: 4 / 5; }
.media-frame--21x9 { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: .55rem .8rem;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--rock);
  background: linear-gradient(to top, rgba(7, 11, 15, .92), rgba(7, 11, 15, 0));
}

.media-frame__badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  padding: .12rem .5rem;
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--ink);
  background: var(--cyan);
}

/* ---------- 11. Page-level filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

.filter-btn {
  padding: .34rem .85rem;
  border: 1px solid var(--grid);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--paper-dim);
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.filter-btn:hover { color: var(--cyan); border-color: var(--cyan); }

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 12. Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
  background: linear-gradient(90deg, var(--flag-blue), var(--cyan), var(--cyan-soft));
}

/* ---------- 13. Header ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 200;
  padding: .55rem 1rem;
  background: var(--cyan);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: .7rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(7, 11, 15, .78), rgba(7, 11, 15, 0));
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(12, 18, 24, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--grid);
  box-shadow: 0 22px 46px -36px #000;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 2rem);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}

.brand__mark {
  font-family: var(--font-num);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
  padding: .34rem .42rem;
  background: var(--cyan);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .18em;
  line-height: 1.15;
  color: var(--paper);
}

.brand__tag {
  display: block;
  font-size: .62rem;
  letter-spacing: .26em;
  line-height: 1.35;
  color: var(--rock);
  text-transform: uppercase;
}

.brand:hover .brand__name { color: var(--cyan-soft); }

/* nav */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.5vw, 1.5rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: .45rem .1rem;
  font-size: .84rem;
  letter-spacing: .08em;
  white-space: nowrap;
  color: rgba(242, 237, 228, .74);
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover { color: var(--cyan-soft); }
.nav__link:hover::after { transform: scaleX(1); }

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

/* header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.league-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .45rem .8rem;
  border: 1px solid var(--grid);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--paper-dim);
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.league-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.league-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(54, 224, 208, .1);
}

.league-toggle__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(54, 224, 208, .16);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(54, 224, 208, .16); }
  50% { box-shadow: 0 0 0 6px rgba(54, 224, 208, .04); }
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--grid);
  color: var(--paper);
}

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

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__bars { position: relative; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

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

/* league panel */
.league-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0A1015;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  box-shadow: 0 34px 64px -46px #000;
}

.league-panel__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 1rem var(--gutter) 1.1rem;
}

.league-panel__label {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rock);
  margin-right: .35rem;
}

.league-chip {
  padding: .34rem .82rem;
  border: 1px solid var(--grid);
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(242, 237, 228, .8);
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.league-chip:hover { color: var(--cyan); border-color: var(--cyan); }

.league-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.league-panel__status {
  flex: 1 1 100%;
  max-width: none;
  min-height: 1.3em;
  margin-top: .4rem;
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--rock);
}

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: #0A1015;
  border-top: 1px solid var(--grid);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: .8;
  background: linear-gradient(90deg,
    var(--cyan) 0 16%,
    var(--flag-yellow) 16% 27%,
    var(--ochre) 27% 45%,
    var(--flag-green) 45% 60%,
    var(--flag-blue) 60% 78%,
    var(--cyan-soft) 78% 100%);
}

.footer__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.4rem) var(--gutter) clamp(1.2rem, 3vw, 2rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(110px, .7fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}

.brand--footer { margin-bottom: .9rem; }

.footer__brandline {
  max-width: 40ch;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--paper-dim);
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.footer__title {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rock);
  margin-bottom: .9rem;
}

.footer__links { display: grid; gap: .55rem; }

.footer__link {
  font-size: .88rem;
  color: rgba(242, 237, 228, .74);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover { color: var(--cyan); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.6rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--grid);
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--rock);
}

.footer__contact,
.footer__refresh { max-width: none; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  max-width: none;
  color: var(--paper-dim);
}

.footer__icp {
  padding-left: .9rem;
  border-left: 1px solid var(--grid);
  color: var(--rock);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 66px; }

  .grid--side,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--side > *,
  .grid--2 > *,
  .grid--3 > * { grid-column: span 12; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: .6rem var(--gutter) 1.4rem;
    background: #0A1015;
    border-bottom: 1px solid var(--grid);
    box-shadow: 0 40px 70px -50px #000;
  }

  .nav[data-open="true"] { display: flex; }

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

  .nav__link {
    display: block;
    padding: .85rem .1rem;
    border-bottom: 1px solid var(--grid);
    font-size: .95rem;
    letter-spacing: .12em;
  }

  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] {
    color: var(--cyan);
    border-bottom-color: rgba(54, 224, 208, .4);
  }

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

  .header-cta { display: none; }

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

  .footer__brand { grid-column: span 2; }
}

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

  .league-toggle__text { display: none; }
  .league-toggle { padding-inline: .7rem; }

  .brand__tag { letter-spacing: .18em; font-size: .58rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__brand { grid-column: span 1; }

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

  .footer__icp { padding-left: 0; border-left: 0; }

  .data-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat { border-top: 1px solid var(--grid); }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- 16. Motion & a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .league-toggle__dot { animation: none; }
}
