/* ============================================================
   浩瀚体育赛事 / 夜场数据台 — 共享样式 /assets/site.css
   分段：变量 · Reset · 排版 · 工具类 · 进度 · 头部 · 按钮
         · 容器与布局 · 面包屑 · 媒体容器 · 显现 · 页脚 · 响应式
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #05160F;
  --ink-800: #0A2419;
  --ink-700: #103625;
  --lime-500: #35E27D;
  --lime-300: #8AF7B4;
  --orange: #FF8A3D;
  --white: #F3F8F5;
  --mist: #A9C0B4;
  --line: #1D5A3E;
  --warn: #FFD166;

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

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-card: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 88% -6%, rgba(53, 226, 125, 0.11), transparent 68%),
    radial-gradient(720px 420px at 2% 6%, rgba(255, 138, 61, 0.06), transparent 72%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

main { display: block; }

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

::selection {
  background: var(--lime-500);
  color: #04140D;
}

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

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 7.2vw, 7rem); line-height: 0.94; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.2; }

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

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

/* ---------- 4. 工具类 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime-300);
}

.label::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lime-500);
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

.lede {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.8;
  color: var(--mist);
}

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

.rule {
  height: 1px;
  margin: clamp(20px, 3vw, 34px) 0;
  border: 0;
  background: var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(53, 226, 125, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lime-300);
}

.tag--warm {
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.42);
  color: var(--orange);
}

/* ---------- 5. 跳转链接与阅读进度 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 120;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--lime-500);
  color: #04140D;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translate(-50%, -220%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime-500), var(--lime-300) 46%, var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 6. 头部：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 14px;
  transition: padding-top 0.3s var(--ease);
}

.site-header[data-scrolled="true"] { padding-top: 8px; }

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 36, 25, 0.9);
  box-shadow:
    0 22px 44px -28px #000,
    inset 0 1px 0 rgba(138, 247, 180, 0.1);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header[data-scrolled="true"] .nav-capsule {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(5, 22, 15, 0.96);
  box-shadow:
    0 18px 34px -26px #000,
    inset 0 1px 0 rgba(138, 247, 180, 0.16);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--white);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime-500);
  color: #04140D;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-6deg);
  box-shadow: 0 0 0 1px rgba(5, 22, 15, 0.6) inset;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand__sub {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--mist);
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item { display: flex; }

.nav__link {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(53, 226, 125, 0.09);
}

.nav__link[aria-current="page"] {
  color: #04140D;
  background: var(--lime-500);
  border-color: var(--lime-300);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(53, 226, 125, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(53, 226, 125, 0.18);
  border-color: var(--lime-500);
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--solid {
  background: var(--lime-500);
  color: #04140D;
  box-shadow: 0 12px 26px -14px rgba(53, 226, 125, 0.9);
}

.btn--solid:hover {
  background: var(--lime-300);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--lime-500);
  background: rgba(53, 226, 125, 0.1);
}

.btn--warm {
  background: var(--orange);
  color: #1A0A02;
  box-shadow: 0 12px 26px -14px rgba(255, 138, 61, 0.85);
}

.btn--warm:hover {
  background: #FFA365;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

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

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.layout-split > * { min-width: 0; }

.layout-split--reverse {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.section { margin-bottom: clamp(44px, 7vw, 88px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb { padding-top: clamp(16px, 2.4vw, 26px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumb__link:hover {
  color: var(--lime-300);
  border-bottom-color: var(--lime-500);
}

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

/* ---------- 10. 媒体容器（页面阶段放图占位） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--ink-800);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(53, 226, 125, 0.07) 0 2px,
    transparent 2px 12px
  );
}

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

.media > picture { display: block; }

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--soft { border-radius: 6px; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--mist);
  background: linear-gradient(180deg, transparent, rgba(5, 22, 15, 0.92));
}

/* ---------- 11. 滚动显现（无 JS 时可见） ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
  will-change: opacity, transform;
}

html.js [data-reveal][data-reveal-in] {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 128px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900) 78%);
  color: var(--mist);
}

.footer-scoreline {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--lime-500) 0 18px,
    transparent 18px 36px
  );
  opacity: 0.42;
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 68px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 0;
}

.footer-summary {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime-300);
}

.footer-tagline::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lime-500);
}

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

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--lime-300);
}

.footer-col__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__link {
  display: inline-block;
  padding-block: 2px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-col__link:hover {
  color: var(--white);
  border-bottom-color: var(--lime-500);
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-contact__row {
  display: grid;
  gap: 2px;
  margin: 0;
}

.footer-contact__key {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime-300);
}

.footer-contact__val {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  margin-top: clamp(30px, 4.5vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer-bottom__legal { margin: 0; }

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom__link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-bottom__link:hover {
  color: var(--lime-300);
  border-bottom-color: var(--lime-500);
}

.footer-bottom__icp { margin: 0; color: var(--mist); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .brand__sub { display: none; }
  .nav__link { padding-inline: 10px; font-size: 12.5px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(10, 36, 25, 0.98);
    box-shadow: 0 26px 50px -24px #000;
  }

  .nav[data-open] { display: flex; }

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

  .nav__item { display: block; }

  .nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .nav__link[aria-current="page"] {
    color: var(--lime-300);
    background: rgba(53, 226, 125, 0.16);
    border-color: transparent;
  }

  .layout-split,
  .layout-split--reverse { grid-template-columns: minmax(0, 1fr); }

  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }

  .site-header { padding-top: 10px; }
  .nav-capsule { padding: 7px 8px 7px 10px; gap: 8px; }
  .brand__mark { width: 30px; height: 30px; font-size: 16px; }
  .brand__name { font-size: 13.5px; }
  .btn--sm { padding: 7px 12px; font-size: 12px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 460px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .nav__actions .btn--solid { display: none; }
}

/* ---------- 14. 减少动态 ---------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn--solid:hover,
  .btn--warm:hover { transform: none; }
}
