/* ============================================================
   美博体育 · 共享站点样式 /assets/site.css
   夜间球场记分牌：炭黑底 + 深墨绿分区 + 青柠数据高亮
   ============================================================ */

:root {
  --ink: #080D0B;
  --pitch: #071A14;
  --card: #0C2A20;
  --line: #1E3B31;
  --lime: #B8FF3C;
  --lime-dim: #7FBF2A;
  --orange: #FF9A3C;
  --orange-dim: #C96A1E;
  --fg: #E9F2EC;
  --muted: #9FB3A8;
  --white: #FFFFFF;
  --danger: #FF5C5C;

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

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --pill: 999px;

  --header-room: 92px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  padding-top: var(--header-room);
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

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

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

/* ---------- 中文排版基础 ---------- */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  max-width: 38em;
  overflow-wrap: break-word;
}

code, kbd, samp, .is-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 999;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 3px;
}

/* ============================================================
   页头：悬浮胶囊浮岛
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 18px clamp(12px, 3vw, 32px) 0;
  pointer-events: none;
  transition: padding 180ms ease;
}

.header-shell {
  position: relative;
  pointer-events: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 26px);
  padding: 10px 14px 10px 18px;
  background: rgba(12, 42, 32, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: 0 22px 44px -28px #000, inset 0 1px 0 rgba(184, 255, 60, 0.08);
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.site-header[data-compact="true"] .header-shell {
  padding-top: 5px;
  padding-bottom: 5px;
  background: rgba(8, 13, 11, 0.94);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.brand-mark i {
  display: block;
  height: 2px;
  background: var(--lime);
  border-radius: 1px;
  transition: width 180ms ease;
}

.brand-mark i:nth-child(1) { width: 22px; }
.brand-mark i:nth-child(2) { width: 13px; background: var(--orange); }
.brand-mark i:nth-child(3) { width: 18px; }

.brand:hover .brand-mark i:nth-child(2) { width: 22px; }

.brand-name {
  font-size: 17px;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-left: 8px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 6px;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: var(--lime);
  border-radius: 1px;
}

/* 右侧入口 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.action-btn--lime {
  background: var(--lime);
  color: #07120B;
}

.action-btn--lime:hover,
.action-btn--lime:focus-visible {
  background: var(--lime-dim);
  color: #040906;
}

.action-btn--orange {
  background: transparent;
  color: var(--orange);
  border-color: rgba(255, 154, 60, 0.45);
}

.action-btn--orange:hover,
.action-btn--orange:focus-visible {
  background: var(--orange);
  color: #160A02;
  border-color: var(--orange);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--fg);
  background: rgba(7, 26, 20, 0.9);
  transition: border-color 160ms ease, background 160ms ease;
}

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

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-box span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 160ms ease;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(64px, 9vw, 128px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) 0;
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.footer-lead {
  max-width: 34em;
}

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 28em;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.footer-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 60, 0.14);
}

.footer-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg);
  text-transform: none;
  margin-bottom: 16px;
  padding-left: 10px;
  position: relative;
}

.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 3px;
  background: var(--lime);
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 160ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--lime);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--line);
  color: #587A69;
}

.footer-info-value {
  font-size: 14px;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 52px);
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6E8A7C;
  max-width: none;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.footer-legal .footer-link {
  font-size: 12px;
}

/* ============================================================
   通用内容组件
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(48px, 7vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 44px);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--lime {
  background: var(--lime);
  color: #06110A;
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: var(--lime-dim);
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }

/* 卡片与标签 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 28px);
}

.card--data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 60, 0.34);
  border-radius: var(--radius);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 154, 60, 0.4);
}

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

/* 面包屑 */
.breadcrumb {
  padding: 20px 0 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line);
}

.breadcrumb-link {
  color: var(--muted);
  transition: color 160ms ease;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--lime);
}

/* 图片容器（页面阶段放 <img>） */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(184, 255, 60, 0.07), transparent 58%),
    var(--pitch);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.img-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 59, 49, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 59, 49, 0.55) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

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

.img-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: none;
}

/* 滚动显现（无 JS 时保持可见） */
.reveal {
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.is-hidden {
  opacity: 0;
  transform: translateY(12px);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .nav-link { padding: 8px 7px 10px; font-size: 12.5px; }
  .nav-link[aria-current="page"]::after { left: 7px; right: 7px; }
}

@media (max-width: 1024px) {
  .action-btn { padding: 0 12px; font-size: 12.5px; }
  .brand-sub { display: none; }
}

@media (max-width: 960px) {
  :root { --header-room: 80px; }

  .site-header { padding-top: 12px; }
  .header-shell { padding: 9px 10px 9px 14px; gap: 8px; }

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 28px 50px -30px #000;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: flex;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .nav-link:hover {
    background: rgba(184, 255, 60, 0.08);
  }

  .nav-link[aria-current="page"]::after {
    left: 4px;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
  }

  .site-header[data-open="true"] .nav-toggle-box span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header[data-open="true"] .nav-toggle-box span:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open="true"] .nav-toggle-box span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .grid--7-5,
  .grid--8-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { align-items: flex-start; }
}

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

  .brand-name { font-size: 15px; }
  .action-btn { height: 33px; padding: 0 10px; font-size: 12px; }
  .nav-toggle { width: 33px; height: 33px; }

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

@media (max-width: 520px) {
  :root { --header-room: 76px; }

  .header-shell { padding: 8px 8px 8px 12px; gap: 6px; }
  .brand { gap: 6px; }
  .brand-mark { width: 18px; }
  .brand-mark i:nth-child(1) { width: 18px; }
  .brand-mark i:nth-child(3) { width: 14px; }
  .brand-name { font-size: 14px; }

  .action-btn { height: 30px; padding: 0 8px; font-size: 11px; letter-spacing: 0; }
  .nav-toggle { width: 30px; height: 30px; }
  .nav-toggle-box, .nav-toggle-box span { width: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-shell { padding-bottom: 0; }
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-hidden {
    opacity: 1 !important;
    transform: none !important;
  }

  .skip-link { transition: none; }
}
