/* ==========================================================================
   九游体育苹果版 · 共享站点样式 /assets/site.css
   夜幕蓝底 · 日光金强调 · 高原夜赛数据台
   ========================================================================== */

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

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

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

ul, ol { list-style: none; }

img, picture, 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; }

input, textarea, select { font: inherit; color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --night: #0A1430;
  --deep: #101E45;
  --star: #1B2C5C;
  --gold: #F2B633;
  --glow: #FFD98A;
  --barley: #37B67A;
  --flag: #E2453C;
  --snow: #F4F7FF;
  --mist: #9BAACE;
  --ring: #2A6FD6;

  --line-soft: rgba(27, 44, 92, 0.78);
  --surface-1: rgba(16, 30, 69, 0.78);
  --surface-2: rgba(27, 44, 92, 0.42);
  --surface-3: rgba(27, 44, 92, 0.16);

  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;

  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Oswald", Impact, "Arial Narrow",
    "Noto Sans SC", "PingFang SC", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hover-lift: -3px;
  --shell: min(1320px, 100% - 48px);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 86% -10%, rgba(42, 111, 214, 0.24), transparent 62%),
    radial-gradient(720px 460px at 2% 6%, rgba(242, 182, 51, 0.10), transparent 60%),
    var(--night);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 2.9vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }

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

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

::selection {
  background: rgba(242, 182, 51, 0.32);
  color: var(--snow);
}

/* ---------- 4. Layout primitives ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 26px;
  margin-bottom: 32px;
}

.section__title { margin: 0; }
.section__note {
  color: var(--mist);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.prose {
  max-width: 68ch;
  color: var(--snow);
  line-height: 1.85;
}

.prose p + p { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul,
.prose ol {
  margin: 1em 0 0 1.15em;
  list-style: disc;
}
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--ring);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--glow); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: #19130A;
  box-shadow: 0 12px 26px -16px rgba(242, 182, 51, 0.95);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--glow);
  transform: translateY(var(--hover-lift));
}

.btn--ghost {
  background: rgba(27, 44, 92, 0.28);
  color: var(--snow);
  border-color: var(--star);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--glow);
  border-color: rgba(255, 217, 138, 0.7);
  transform: translateY(var(--hover-lift));
}

.btn--quiet {
  padding: 6px 4px;
  color: var(--ring);
  border-radius: 8px;
}
.btn--quiet:hover,
.btn--quiet:focus-visible { color: var(--glow); }

/* ---------- 6. Tags & status ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--star);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(242, 182, 51, 0.5);
  background: rgba(242, 182, 51, 0.1);
}
.tag--green {
  color: var(--barley);
  border-color: rgba(55, 182, 122, 0.5);
  background: rgba(55, 182, 122, 0.1);
}
.tag--red {
  color: var(--flag);
  border-color: rgba(226, 69, 60, 0.5);
  background: rgba(226, 69, 60, 0.1);
}

.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mist);
}
.status-dot--live {
  background: var(--barley);
  box-shadow: 0 0 0 3px rgba(55, 182, 122, 0.18);
}
.status-dot--wait {
  background: var(--flag);
  box-shadow: 0 0 0 3px rgba(226, 69, 60, 0.18);
}
.status-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 182, 51, 0.18);
}

/* ---------- 7. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--gold);
  color: #19130A;
  font-size: 14px;
  font-weight: 700;
  transition: top 180ms var(--ease);
}
.skip-link:focus {
  top: 0;
  outline-color: var(--glow);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 20, 48, 0.94);
  border-bottom: 1px solid var(--star);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  min-height: 78px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
}

.brand__glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--glow), var(--gold) 55%, #C1871B);
  color: #19130A;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(255, 217, 138, 0.45),
    0 12px 26px -14px rgba(242, 182, 51, 0.85);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--snow);
}

.brand__tagline {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.brand__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 13px;
  border: 1px solid var(--star);
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--mist);
  transition:
    color 150ms var(--ease),
    background-color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--snow);
  background: rgba(27, 44, 92, 0.68);
}

.primary-nav__link[aria-current="page"] {
  color: var(--snow);
  background: rgba(27, 44, 92, 0.9);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--star);
  border-radius: var(--radius-sm);
  background: rgba(27, 44, 92, 0.42);
  color: var(--snow);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.nav-toggle:hover { border-color: rgba(255, 217, 138, 0.6); color: var(--glow); }

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ring), var(--gold) 70%, var(--glow));
  pointer-events: none;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  margin-top: 96px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--star);
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(42, 111, 214, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(16, 30, 69, 0.72), rgba(10, 20, 48, 1));
  color: var(--mist);
  font-size: 15px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) 2fr;
  gap: 44px 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--star);
}

.footer-brand__name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--snow);
}

.footer-brand__glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--glow), var(--gold) 58%, #C1871B);
  color: #19130A;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.footer-brand__tagline {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-brand__note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--mist);
}

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

.footer-col__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--snow);
}

.footer-col__list { display: grid; gap: 9px; }

.footer-col__link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color 150ms var(--ease), transform 150ms var(--ease);
}
.footer-col__link:hover,
.footer-col__link:focus-visible {
  color: var(--glow);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--star);
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-contact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-contact__value {
  font-size: 14px;
  line-height: 1.75;
  color: var(--snow);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--mist);
}

.footer-legal__icp { letter-spacing: 0.06em; }

/* ---------- 10. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.breadcrumbs__link {
  color: var(--mist);
  transition: color 150ms var(--ease);
}
.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible { color: var(--glow); }

.breadcrumbs__sep { color: #4A5C8C; }

.breadcrumbs__current {
  color: var(--snow);
  font-weight: 600;
}

/* ---------- 11. Data card & media ---------- */
.data-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--star);
  border-radius: var(--radius-md);
  background: linear-gradient(158deg, rgba(16, 30, 69, 0.94), rgba(10, 20, 48, 0.8));
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.data-card:hover,
.data-card:focus-within {
  transform: translateY(var(--hover-lift));
  border-color: rgba(255, 217, 138, 0.6);
  box-shadow: 0 24px 48px -30px rgba(242, 182, 51, 0.6);
}

.data-card--gold { border-color: rgba(242, 182, 51, 0.5); }

.data-card__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.data-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.data-card__meta {
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--star);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(27, 44, 92, 0.92), rgba(16, 30, 69, 0.92));
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--snow);
  background: linear-gradient(transparent, rgba(10, 20, 48, 0.9));
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1080px) {
  :root { --shell: min(1320px, 100% - 36px); }

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

  .primary-nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 4px 0 10px;
    padding: 18px;
    border: 1px solid var(--star);
    border-radius: var(--radius-md);
    background: var(--deep);
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .primary-nav__link {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .primary-nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--star);
  }

  .header-actions .btn { width: 100%; }
}

@media (max-width: 900px) {
  .brand__status { display: none; }
}

@media (max-width: 720px) {
  :root { --shell: min(1320px, 100% - 28px); }

  body { font-size: 15.5px; }

  .section { padding: 52px 0; }
  .section--tight { padding: 34px 0; }

  .site-footer {
    margin-top: 64px;
    padding: 48px 0 26px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

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

  .brand__tagline { letter-spacing: 0.1em; }
}

@media (max-width: 460px) {
  .footer-columns { grid-template-columns: 1fr; }
  .brand__glyph { width: 38px; height: 38px; font-size: 18px; }
  .brand__name { font-size: 15.5px; }
  .nav-toggle__label { display: none; }
}

/* ---------- 13. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --hover-lift: 0px; }

  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }

  .skip-link { transition: none; }
  .footer-col__link:hover { transform: none; }
  .nav-toggle__icon span { transition: opacity 120ms linear; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1),
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
    transform: none;
  }
}

/* ---------- 14. Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .skip-link { display: none !important; }
  body { background: #fff; color: #111; }
}
