/* ==========================================================================
   6688体育 · Site Kit
   /assets/site.css — reset / tokens / typography / shell / shared components
   ========================================================================== */

:root {
  --arena: #071A2F;
  --arena-mid: #0E2A47;
  --arena-deep: #04101D;
  --cyan: #20E3D2;
  --cyan-deep: #12B7AB;
  --amber: #F5B942;
  --coral: #FF5F57;
  --fog: #EAF4F6;
  --slate: #8CA3B8;
  --cream: #F4E9D8;
  --green: #5BE38A;
  --ink: #03101E;

  --font-display: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Roboto Mono", "DIN Alternate", SFMono-Regular, ui-monospace, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --line: rgba(140, 163, 184, 0.22);
  --shadow-float: 0 24px 60px -32px #03101E;
  --ease: cubic-bezier(0.2, 0.8, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--arena);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fog);
  background-color: var(--arena);
  background-image:
    radial-gradient(120% 85% at 82% -12%, rgba(32, 227, 210, 0.10), transparent 62%),
    radial-gradient(95% 70% at -6% 6%, rgba(245, 185, 66, 0.07), transparent 58%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; min-height: 50vh; }

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

ul,
ol { margin: 0; padding: 0; }

button { font: inherit; }

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

/* ---------- typography ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--fog);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); }

strong { color: var(--fog); font-weight: 700; }

::selection { background: var(--cyan); color: #04121f; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- layout helpers ---------- */
.container {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cyan);
  color: #04121f;
  box-shadow: 0 12px 28px -16px rgba(32, 227, 210, 0.95);
}
.btn--primary:hover { background: #3cf0e1; }

.btn--amber { background: var(--amber); color: #26190a; }
.btn--amber:hover { background: #ffcb63; }

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(32, 227, 210, 0.45);
}
.btn--ghost:hover { background: rgba(32, 227, 210, 0.12); }

.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(140, 163, 184, 0.12);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.chip--cyan { color: var(--cyan); border-color: rgba(32, 227, 210, 0.42); background: rgba(32, 227, 210, 0.10); }
.chip--amber { color: var(--amber); border-color: rgba(245, 185, 66, 0.42); background: rgba(245, 185, 66, 0.10); }
.chip--coral { color: var(--coral); border-color: rgba(255, 95, 87, 0.42); background: rgba(255, 95, 87, 0.10); }
.chip--green { color: var(--green); border-color: rgba(91, 227, 138, 0.42); background: rgba(91, 227, 138, 0.10); }

/* ---------- eyebrow / panel / stat ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.panel {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 42, 71, 0.94), rgba(7, 26, 47, 0.96));
  box-shadow: var(--shadow-float);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { opacity: 0.45; }
.breadcrumb [aria-current="page"] { color: var(--fog); }

/* ---------- media frame (image container base) ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(32, 227, 210, 0.14), transparent 44%),
    linear-gradient(160deg, #0E2A47, #071A2F 72%);
}
.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(234, 244, 246, 0.05) 0 1px,
    transparent 1px 4px
  );
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 4 / 5; }

.media-frame__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 11px;
  border: 1px solid rgba(32, 227, 210, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(7, 26, 47, 0.82);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.media-frame__caption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  color: rgba(234, 244, 246, 0.84);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ---------- reveal ---------- */
html[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s var(--ease);
  will-change: opacity, transform;
}
html[data-motion="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   HEADER — 悬浮胶囊浮岛 + 顶部阅读进度
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04121f;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(8, 28, 50, 0.82);
  box-shadow: 0 20px 46px -28px var(--ink), inset 0 1px 0 rgba(234, 244, 246, 0.06);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  pointer-events: auto;
}

/* brand */
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--cyan), var(--cyan-deep));
  color: #04121f;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  box-shadow: 0 8px 20px -12px var(--cyan);
}
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--fog);
}
.brand__tagline {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* nav */
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.primary-nav__item { flex: 0 0 auto; }
.primary-nav__link {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: rgba(234, 244, 246, 0.78);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.primary-nav__link:hover {
  color: var(--fog);
  background: rgba(234, 244, 246, 0.07);
}
.primary-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(32, 227, 210, 0.13);
  border-color: rgba(32, 227, 210, 0.42);
}

/* cta */
.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04121f;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(32, 227, 210, 0.95);
  transition: background-color 0.18s ease, transform 0.18s var(--ease);
}
.header-cta:hover {
  background: #3cf0e1;
  transform: translateY(-1px);
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(32, 227, 210, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(32, 227, 210, 0.12);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.nav-toggle__label { display: inline-block; line-height: 1; }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.18s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  background: rgba(140, 163, 184, 0.14);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(32, 227, 210, 0.6);
  transition: width 0.1s linear;
}

/* ==========================================================================
   FOOTER — 转播控制台
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 112px);
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(32, 227, 210, 0.24);
  background:
    radial-gradient(140% 90% at 10% 0%, rgba(32, 227, 210, 0.10), transparent 56%),
    radial-gradient(120% 80% at 94% 6%, rgba(245, 185, 66, 0.08), transparent 60%),
    linear-gradient(180deg, #0A2038 0%, #071A2F 56%, var(--arena-deep) 100%);
  color: var(--fog);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell), 100%);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand .brand__name { font-size: 17px; }

.footer-summary {
  max-width: 30ch;
  margin: 16px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 6px 13px;
  border: 1px solid rgba(91, 227, 138, 0.34);
  border-radius: var(--radius-pill);
  background: rgba(91, 227, 138, 0.10);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 227, 138, 0.20);
}

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

.footer-col__title {
  margin: 0 0 14px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-col__list {
  display: grid;
  gap: 10px;
  list-style: none;
}
.footer-col__link {
  display: inline-block;
  color: rgba(234, 244, 246, 0.80);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s var(--ease);
}
.footer-col__link:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(140, 163, 184, 0.18);
}
.footer-contact__item {
  padding: 16px 20px;
  background: rgba(9, 31, 54, 0.92);
}
.footer-contact__label {
  display: block;
  margin-bottom: 6px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-contact__value {
  display: block;
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(140, 163, 184, 0.16);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-legal__copy { margin: 0; }
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}
.footer-legal__link {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal__link:hover { color: var(--cyan); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .site-header { padding: 10px 10px 0; }
  .site-header__inner {
    gap: 10px;
    padding: 8px 10px 8px 12px;
    justify-content: space-between;
  }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .primary-nav {
    position: fixed;
    right: clamp(12px, 4vw, 24px);
    bottom: clamp(12px, 4vw, 24px);
    left: clamp(12px, 4vw, 24px);
    z-index: 150;
    display: block;
    max-height: 72vh;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(32, 227, 210, 0.26);
    border-radius: 26px;
    background: rgba(9, 31, 54, 0.97);
    box-shadow: 0 34px 70px -34px var(--ink);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + 46px));
    transition: transform 0.34s var(--ease), opacity 0.24s ease, visibility 0.34s linear;
  }
  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav__link {
    display: block;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-summary { max-width: none; }
}

@media (max-width: 640px) {
  .brand__tagline { display: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { font-size: 11px; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }
  html[data-motion="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
