/* ==========================================================================
   九游体育CN官网 · 共享站点样式 /assets/site.css
   夜间球场 × 电子记分牌：炭黑底、电光蓝结构、荧光绿数据、暖橙状态
   ========================================================================== */

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

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

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

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

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

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

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

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

/* ---------- 变量 ---------- */
:root {
  --ink: #0B0E13;
  --panel: #141922;
  --line: #232B38;
  --navy: #0D2140;
  --blue: #1F6BFF;
  --blue-soft: #6FA8FF;
  --lime: #C6FF3D;
  --orange: #FF7A29;
  --white: #F2F5F9;
  --muted: #8C97A8;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: "Archivo Black", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "DIN Alternate", "DIN Condensed", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;

  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
}

/* ---------- 基础排版 ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main-content { flex: 1 1 auto; }
#main-content { scroll-margin-top: 120px; }

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

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

/* ---------- 排版原子 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}

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

.score {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--lime);
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.u-muted { color: var(--muted); }
.u-lime { color: var(--lime); }
.u-orange { color: var(--orange); }
.u-blue { color: var(--blue-soft); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:hover { background: #3C80FF; border-color: #3C80FF; }
.btn:active { transform: translateY(1px); }

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.btn--lime:hover { background: #D6FF6E; border-color: #D6FF6E; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover { background: transparent; border-color: var(--blue); color: var(--blue-soft); }

.btn--sm { padding: 6px 12px; font-size: 12px; }

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 9px 16px;
  border-radius: 2px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* 情报条 */
.utility-bar {
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.utility-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--blue-soft);
}

.pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
  animation: pulseBeat 2.6s var(--ease) infinite;
}

@keyframes pulseBeat {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.utility-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.search-trigger:hover { border-color: var(--blue); color: var(--white); }

.kbd {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--blue-soft);
}

/* 品牌栏 */
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--white);
}

.brand__tag {
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* 导航 */
.nav { margin-left: auto; }

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

.nav__item { display: block; }

.nav__item--extra { display: none; }

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 10px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover { color: var(--white); background: rgba(31, 107, 255, .1); }

.nav__idx {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: .04em;
  color: #4A5567;
  transition: color var(--dur) var(--ease);
}

.nav__label { font-weight: 600; letter-spacing: .01em; }

.nav__link[aria-current="page"] { color: var(--white); }

.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--lime);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
}

.nav__link[aria-current="page"] .nav__idx { color: var(--lime); }

/* 头部 CTA 与汉堡 */
.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--blue); }

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 -5px 0 var(--lime), 0 5px 0 var(--lime);
}

.nav-toggle__text { line-height: 1; }

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.read-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

/* 检索面板 */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 8vh, 96px) var(--gutter);
  background: rgba(11, 14, 19, .84);
}
.search-panel[hidden] { display: none; }

.search-panel__box {
  width: 100%;
  max-width: 620px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--lime);
  border-radius: 2px;
  background: var(--panel);
  padding: 20px;
}

.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.search-panel__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
}

.search-panel__close {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 4px 8px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.search-panel__close:hover { border-color: var(--blue); color: var(--white); }

.search-panel__input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
}
.search-panel__input::placeholder { color: #5C6779; }
.search-panel__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: inset 2px 0 0 var(--lime);
}

.search-panel__list {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  max-height: 46vh;
  overflow-y: auto;
}

.search-panel__list li[hidden] { display: none; }

.search-panel__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.search-panel__list a:hover {
  background: rgba(31, 107, 255, .12);
  border-left-color: var(--blue);
  color: var(--white);
}

.search-panel__list .num {
  min-width: 22px;
  font-size: 11px;
  color: #4A5567;
}

.search-panel__empty {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.search-panel__empty[hidden] { display: none; }

/* ==========================================================================
   通用内容组件（供各页面使用）
   ========================================================================== */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumb__list li { display: flex; align-items: center; gap: 10px; }
.breadcrumb__list li + li::before { content: "/"; color: var(--line); }
.breadcrumb a:hover { color: var(--blue-soft); }

.section {
  position: relative;
  padding: clamp(44px, 6vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 24px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section__index {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--lime);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -.02em;
}

.section__lead {
  flex: 1 1 260px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  padding: clamp(18px, 2.6vw, 32px);
}

.panel--navy { background: var(--navy); }
.panel--bare { background: transparent; }
.panel--shift { margin-left: clamp(0px, 4vw, 48px); }

.panel__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-strip {
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.split {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .split--4-8 { grid-template-columns: 4fr 8fr; }
  .split--3-9 { grid-template-columns: 3fr 9fr; }
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--8-4 { grid-template-columns: 8fr 4fr; }
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  padding: 20px;
}

.card__meta {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.card__title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.tag--live { color: var(--orange); border-color: rgba(255, 122, 41, .45); }
.tag--done { color: var(--lime); border-color: rgba(198, 255, 61, .35); }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  aspect-ratio: 16 / 10;
}

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

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

.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 9px;
  background: rgba(11, 14, 19, .88);
  color: var(--lime);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: .06em;
}

/* 正文 */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-top: 1.9em;
}

.prose h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.prose p { color: #C6CEDB; }

.prose a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul { display: grid; gap: 8px; }

.prose li {
  position: relative;
  padding-left: 18px;
  color: #C6CEDB;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--lime);
}

/* 滚动显现 */
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(8px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer-top {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3vw, 36px);
}

@media (min-width: 860px) {
  .footer-top { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); }
}

.footer-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--white);
}

.footer-brand__tag {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

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

.footer-col__title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-col__list a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.footer-col__list a:hover { color: var(--blue-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom__contact {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--muted);
}

.footer-bottom__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
}

.footer-bottom__note {
  flex: 1 0 100%;
  font-size: 12px;
  color: #5C6779;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__label { font-size: 12px; }
  .nav__link { padding: 13px 8px; }
}

@media (max-width: 1023px) {
  .utility-bar { display: none; }
  .header-cta { display: none; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin-left: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    padding: 6px 0 14px;
  }

  .nav[data-open] { display: block; }
  .nav[data-open] .nav__link { animation: navIn 180ms var(--ease) both; }

  .nav__list {
    display: block;
    padding: 0 var(--gutter);
  }

  .nav__item {
    display: block;
    border-bottom: 1px solid var(--line);
  }
  .nav__item:last-child { border-bottom: 0; }

  .nav__item--extra { display: block; }

  .nav__link {
    padding: 15px 4px;
    font-size: 15px;
    color: var(--white);
  }

  .nav__link:hover { background: transparent; color: var(--lime); }

  .nav__link[aria-current="page"]::before { top: 15px; bottom: 15px; left: 0; }
  .nav__link[aria-current="page"]::after { display: none; }

  .nav__idx { font-size: 11px; }
}

@media (max-width: 560px) {
  .masthead__inner { gap: 10px; min-height: 60px; }
  .brand__mark { width: 32px; height: 32px; font-size: 18px; }
  .brand__tag { display: none; }
  .nav-toggle__text { display: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { justify-content: flex-start; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal].is-pending { opacity: 1; transform: none; }
  .read-progress__fill { transition: none; }
}
