/* ==========================================================================
   南宫赛事 · 共享样式表  /assets/site.css
   夜间球场大屏：暗场基底 + 玻璃状态层 + 实色阅读层
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(198, 255, 61, .18);
}

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

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

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

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

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --night:      #06150E;  /* 深夜球场墨绿 · 全站基底 */
  --night-2:    #0C2618;  /* 看台下层深绿 · 分区色带 */
  --glass:      #12402A;  /* 战术板玻璃层 */
  --lime:       #C6FF3D;  /* 荧光青柠 · 订阅与主行动 */
  --orange:     #FF8A2B;  /* 暖橙 · 伤停与提醒 */
  --white:      #FFFFFF;  /* 比分白 */
  --text:       #D3E2DA;  /* 冷灰绿正文 */
  --muted:      #96B3A5;  /* 次要说明灰 */
  --rule:       #1E5A3C;  /* 刻度线绿 */
  --focus:      #46F0C8;  /* 焦点冷青 */

  --shell:      1280px;
  --gutter:     24px;
  --radius:     3px;
  --measure:    72ch;

  --font-display: "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:    "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body:    "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

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

/* ---------- 3. 中文排版与页面底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(198, 255, 61, .07), transparent 68%),
    radial-gradient(900px 480px at 2% 6%, rgba(70, 240, 200, .055), transparent 66%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--white);
}

h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 17px; }

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

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

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

/* 滚动条：暗场刻度感 */
* { scrollbar-color: var(--rule) var(--night); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--night); }
*::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: #2b7550; }

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.1em; list-style: none; }
.prose li { position: relative; margin: 0 0 .5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .72em;
  width: 8px;
  height: 2px;
  background: var(--rule);
}
.prose a { color: var(--lime); border-bottom: 1px solid rgba(198, 255, 61, .35); }
.prose a:hover { border-bottom-color: var(--focus); color: var(--white); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

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

/* ---------- 5. 按钮与状态标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: var(--night);
  box-shadow: 0 0 0 rgba(198, 255, 61, 0);
}
.btn--primary:hover {
  background: #d7ff6b;
  color: var(--night);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(198, 255, 61, .22);
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 15px; font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.tag--live {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--night);
  font-weight: 700;
}
.tag--alert {
  background: rgba(255, 138, 43, .14);
  border-color: rgba(255, 138, 43, .55);
  color: var(--orange);
}
.tag--ghost { background: transparent; }

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 6px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--night);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

/* 顶部刻度状态条 */
.status-strip {
  height: 28px;
  background: var(--night-2);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.status-strip__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}
.status-strip__item { display: inline-flex; align-items: center; gap: 7px; }

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, .16);
}
.dot--warn {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 43, .18);
}

/* 导航主体 */
.site-header__bar {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: padding .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck .site-header__bar {
  padding: 7px 0;
  background: rgba(6, 21, 14, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex: none;
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--night);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(198, 255, 61, .45), 0 0 22px rgba(198, 255, 61, .22);
}
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--white);
}
.brand__tagline {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .1em;
  color: var(--muted);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 2px;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.site-nav__list a:hover {
  color: var(--white);
  background: rgba(198, 255, 61, .08);
}
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--white); }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__cta { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }
.nav-toggle__box { display: grid; gap: 4px; width: 16px; }
.nav-toggle__box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度光带 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, var(--lime) 0%, var(--focus) 55%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 60px 0 26px;
  background: var(--night-2);
  border-top: 1px solid var(--rule);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime) 0%, rgba(198, 255, 61, 0) 42%, rgba(255, 138, 43, .9) 100%);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(320px, 1.7fr) minmax(250px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.footer-brand .brand { margin-right: 0; }
.footer-brand .brand__name { font-size: 22px; }
.footer-brand__signature {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.footer-col__heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a {
  font-size: 14px;
  color: var(--text);
  transition: color .18s var(--ease);
}
.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--focus);
}

.footer-contact {
  padding: 20px;
  background: rgba(18, 64, 42, .42);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.footer-contact__label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-contact__item {
  display: flex;
  gap: 10px;
  margin: 0 0 7px;
  font-size: 13.5px;
  color: var(--text);
  word-break: break-word;
}
.footer-contact__key {
  flex: none;
  min-width: 34px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--lime);
}
.footer-contact__note {
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px dashed var(--rule);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 8. 通用区块与卡片 ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }

.band {
  background: var(--night-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band--glass {
  background: linear-gradient(180deg, rgba(18, 64, 42, .34), rgba(6, 21, 14, 0) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--lime);
}
.section-title { margin: 0; }

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

.panel {
  padding: 22px;
  background: var(--night-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.panel--glass {
  background: rgba(18, 64, 42, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(30, 90, 60, .95);
}
.panel--lift {
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              border-color .24s var(--ease), background-color .24s var(--ease);
}
.panel--lift:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 255, 61, .45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .42);
}

/* ---------- 9. 媒体容器（页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--night-2);
  background-image:
    repeating-linear-gradient(0deg, rgba(30, 90, 60, .45) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(30, 90, 60, .45) 0 1px, transparent 1px 40px),
    radial-gradient(120% 90% at 80% 0%, rgba(198, 255, 61, .1), transparent 62%);
}
.media::after {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.media--wide::after { padding-top: 42%; }
.media--tall::after { padding-top: 120%; }
.media--square::after { padding-top: 100%; }

.media > img,
.media > picture,
.media > video,
.media > .media__graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(6, 21, 14, .88), rgba(6, 21, 14, 0));
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs__sep { color: var(--rule); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 11. 渐显协议 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-footer__top {
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.6fr);
  }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .brand__tagline { display: none; }
  .site-nav__list a { padding: 8px 10px; font-size: 13.5px; }
  .site-nav__list a::after { left: 10px; right: 10px; }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(6, 21, 14, .98);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 26px 46px rgba(0, 0, 0, .5);
  }
  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 18px;
  }
  .site-nav__list li { border-bottom: 1px solid rgba(30, 90, 60, .55); }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-nav__list a {
    display: block;
    padding: 15px 22px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 0;
  }
  .site-nav__list a::after {
    left: 0;
    right: auto;
    top: 14px;
    bottom: 14px;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }
  .site-nav__list a:hover { background: rgba(198, 255, 61, .07); }
  .site-nav__list a:hover::after { transform: scaleY(1); }
  .site-nav__list a[aria-current="page"]::after { transform: scaleY(1); }

  .site-nav__cta { display: block; border-bottom: 0; padding: 16px 22px 6px; }
  .site-nav__cta a { width: 100%; }

  .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }

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

@media (max-width: 680px) {
  :root { --gutter: 16px; }

  .status-strip__item--optional { display: none; }

  .brand__tagline { display: none; }
  .brand__mark { width: 34px; height: 34px; font-size: 13px; }
  .brand__name { font-size: 18px; }

  .site-footer { margin-top: 56px; padding-top: 46px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .site-footer__bottom { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 13. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .panel--lift:hover,
  .btn:hover { transform: none; }
}
