/* ============================================================
   九游体育 · 全站共享样式 /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,
p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

img {
  height: auto;
  display: block;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #060F1E;
  --navy: #0B2B5B;
  --mid: #123A73;
  --orange: #FF7A1A;
  --orange-light: #FFB347;
  --orange-deep: #FF6A00;
  --cyan: #2BE3C7;
  --cyan-deep: #0E8E86;
  --paper: #F7F4EE;
  --white: #F4F7FB;
  --mist: #8FA3BF;
  --alert: #E5484D;

  --grad-rank: linear-gradient(90deg, #FFB347, #FF6A00);
  --grad-pass: linear-gradient(90deg, #17D6C0, #0E8E86);

  --hairline: rgba(143, 163, 191, .22);
  --hairline-strong: rgba(143, 163, 191, .42);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --header-h: 78px;
  --shell: 1280px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-label: "Barlow Semi Condensed", "Oswald", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .68, .34, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

main {
  display: block;
}

/* ---------- 4. 通用容器 / 章节 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
}

.section {
  position: relative;
  padding-block: 96px;
}

.section--tight {
  padding-block: 64px;
}

.section--navy {
  background: var(--navy);
}

.section--paper {
  background: var(--paper);
  color: #101A2B;
}

.section--paper .prose { color: #3A4658; }
.section--paper .label { color: #6B7A90; }
.section--paper .num { color: var(--navy); }
.section--paper .lede { color: #26334A; }
.section--paper .rule { background: rgba(11, 43, 91, .16); }
.section--paper .link-underline { color: var(--navy); }

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + 72px) 72px;
}

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

.stack > * + * {
  margin-top: var(--stack-gap, 24px);
}

/* ---------- 5. 标题 / 数字 / 正文 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--white);
}

.section--paper .display { color: #0B1424; }

.display-1 { font-size: clamp(30px, 4.6vw, 68px); }
.display-2 { font-size: clamp(24px, 2.6vw, 40px); }

.label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -.01em;
  color: var(--white);
  line-height: 1.05;
}

.num--xl {
  display: block;
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 700;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.72;
  color: #C9D7EA;
  max-width: 54ch;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.78;
  color: #D3DDEC;
}

.prose > * + * { margin-top: 1em; }
.prose h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.35; }
.prose ul { list-style: none; padding-left: 0; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(43, 227, 199, .4); }

/* ---------- 6. 按钮 / 链接 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease),
              color .25s var(--ease),
              border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #06101F;
  box-shadow: 0 0 0 0 rgba(255, 122, 26, 0);
}

.btn--primary:hover {
  background: #FF9243;
  box-shadow: 0 6px 22px -8px rgba(255, 122, 26, .85);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(43, 227, 199, .08);
}

.header-cta { padding: 10px 20px; font-size: 13px; }

.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  padding-bottom: 3px;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- 7. 胶囊标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}

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

.chip--live {
  border-color: rgba(43, 227, 199, .55);
  color: var(--cyan);
  background: rgba(43, 227, 199, .08);
}

.chip--alert {
  border-color: rgba(229, 72, 77, .6);
  color: var(--alert);
}

.chip--rank {
  border-color: transparent;
  background: var(--grad-rank);
  color: #1A0C00;
  font-weight: 700;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color .25s var(--ease);
}

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

.breadcrumb__sep { color: rgba(143, 163, 191, .5); }

.breadcrumb__current { color: var(--white); }

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

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

/* ---------- 10. 图片容器（页面阶段放置图片占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: linear-gradient(158deg, var(--navy) 0%, var(--mid) 54%, var(--ink) 100%);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

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

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

.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(6, 15, 30, .74);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- 11. 跳至主内容 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #06101F;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top .22s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 12. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header[data-scrolled] {
  background: var(--navy);
  box-shadow: 0 1px 0 var(--hairline), 0 14px 40px -30px rgba(0, 0, 0, .95);
}

.header-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
  transition: height .3s var(--ease);
}

.site-header[data-scrolled] .header-inner { height: 62px; }

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-right: auto;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
  line-height: 1.2;
}

.brand__meta {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
}

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

.nav__link {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: #C4D2E6;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: color .25s var(--ease),
              background-color .25s var(--ease),
              border-color .25s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
  border-color: rgba(43, 227, 199, .55);
  background: rgba(43, 227, 199, .08);
}

.nav__link[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #06101F;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  color: var(--mist);
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.icon-link__icon { display: block; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .26s var(--ease), top .26s 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 { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(143, 163, 191, .14);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.site-header[data-scrolled] .scroll-meter { opacity: 1; }

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0 16%,
    var(--cyan) 16% 30%,
    transparent 30%);
}

.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 76px 28px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px 40px;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.footer-lede {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.8;
  color: #BCCBE0;
}

.footer-domain {
  margin-top: 16px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--cyan);
}

.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-list {
  display: grid;
  gap: 11px;
  font-size: 14px;
  color: #C4D2E6;
}

.footer-list a {
  color: #C4D2E6;
  text-decoration: none;
  transition: color .25s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible { color: var(--cyan); }

.footer-list--contact span {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: #A6B8D2;
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--mist);
}

.footer-copy { line-height: 1.7; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a {
  color: var(--mist);
  text-decoration: none;
  transition: color .25s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--orange); }

/* ---------- 14. 入视口显现与数字上翻 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.js .num[data-reveal] {
  transform: translateY(.34em);
  transition-duration: .4s, .4s;
}

.js .num[data-reveal].is-inview {
  transform: none;
}

/* ---------- 15. 响应式 ---------- */
@media (min-width: 901px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
}

@media (max-width: 1024px) {
  .header-inner { gap: 18px; }
  .nav__link { padding: 8px 11px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

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

  .section { padding-block: 64px; }
  .section--tight { padding-block: 44px; }
  .page-hero { padding-block: calc(var(--header-h) + 48px) 48px; }
  .container { padding-inline: 20px; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px 20px 24px;
    background: var(--navy);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .95);
  }

  .site-header[data-open] { background: var(--navy); }
  .site-header[data-open] .nav { display: block; }

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

  .nav__link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 16px;
  }

  .footer-inner { padding: 56px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-base { margin-top: 40px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }

  .brand__meta { display: none; }
  .icon-link { display: none; }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .header-cta { padding: 9px 16px; font-size: 12px; }
  .header-inner { padding-inline: 16px; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 14px; }
}

/* ---------- 16. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal],
  .js .num[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .link-underline::after { transform: scaleX(0); }
}
