/* ============================================================
   环球体育赛事 · 共享站点样式 /assets/site.css
   夜间看台 × 技术蓝图
   ============================================================ */

:root {
  --night: #050E1A;
  --depth: #0B1F35;
  --stand: #12395C;
  --white: #F4F7FA;
  --orange: #FF5A1F;
  --mint: #00E3B0;
  --mist: #7FA6C8;
  --amber: #FFB03A;
  --orange-deep: #E23B0B;
  --line: rgba(201, 214, 226, 0.16);
  --line-strong: rgba(201, 214, 226, 0.28);

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

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--night);
  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%; height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--white);
}

p { margin: 0; }

ul, ol { margin: 0; }

::selection { background: var(--orange); color: #08121F; }

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

.visually-hidden {
  position: absolute !important;
  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);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--mint);
}

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

.tick-rule {
  height: 9px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 32px);
}

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 48px); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--stand);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover {
  border-color: var(--orange);
  background: rgba(255, 90, 31, 0.1);
  color: var(--white);
}

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #08121F;
  font-weight: 800;
}

.btn--accent:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #08121F;
}

.btn--accent:active {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--white);
}

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

.btn--ghost:hover {
  border-color: var(--mint);
  background: rgba(0, 227, 176, 0.08);
}

.btn--block { width: 100%; }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--depth);
  border: 1px solid rgba(18, 57, 92, 0.95);
  border-radius: 0;
}

.panel--flush { padding: 0; }

.panel-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(215, 225, 235, 0.92);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { margin-top: 1.6em; font-size: 18px; }
.prose strong { color: var(--white); }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 227, 176, 0.4);
}
.prose a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/ ";
  color: rgba(127, 166, 200, 0.45);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 图片容器基础（页面阶段放置占位图） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, var(--depth) 0%, var(--night) 100%);
  border: 1px solid rgba(18, 57, 92, 0.95);
  border-radius: 0;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 1;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 滚动显现协议 ---------- */
[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}

[data-reveal="shown"] {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* ---------- 滚动进度细条（脚本注入） ---------- */
.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--orange) 0%, var(--amber) 58%, var(--mint) 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.scroll-meter[data-active="true"] { opacity: 1; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--orange);
  color: #08121F;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

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

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-block: 10px 8px;
  background: linear-gradient(180deg, rgba(5, 14, 26, 0.96) 0%, rgba(5, 14, 26, 0.78) 58%, rgba(5, 14, 26, 0) 100%);
}

.header-shell { position: relative; }

.header-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 16px;
  background: rgba(11, 31, 53, 0.74);
  border: 1px solid rgba(18, 57, 92, 0.92);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(201, 214, 226, 0.06);
  transition: background-color 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}

.site-header[data-scrolled="true"] .header-pill {
  background: rgba(7, 21, 36, 0.95);
  border-color: rgba(255, 90, 31, 0.32);
  box-shadow: 0 22px 46px -32px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(201, 214, 226, 0.08);
}

/* 站标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 26px;
  height: 22px;
}

.brand-bar {
  display: block;
  width: 5px;
  background: var(--orange);
}

.brand-bar:nth-child(1) { height: 11px; background: var(--mist); }
.brand-bar:nth-child(2) { height: 22px; background: var(--orange); }
.brand-bar:nth-child(3) { height: 15px; background: var(--mint); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--mist);
}

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

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(127, 166, 200, 0.5);
  transition: color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(201, 214, 226, 0.07);
  border-color: rgba(201, 214, 226, 0.2);
}

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

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 90, 31, 0.14);
  border-color: rgba(255, 90, 31, 0.5);
}

.nav-link[aria-current="page"]::before { color: var(--orange); }

.header-cta {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(201, 214, 226, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 90, 31, 0.1);
}

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

.nav-toggle-bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

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

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 96px);
  background: linear-gradient(180deg, #071528 0%, #050E1A 72%);
  border-top: 1px solid rgba(18, 57, 92, 0.9);
  color: var(--mist);
  font-size: 14px;
  line-height: 1.75;
}

.footer-rule {
  height: 10px;
  border-bottom: 1px solid rgba(201, 214, 226, 0.08);
  background-image: repeating-linear-gradient(90deg, rgba(201, 214, 226, 0.26) 0 1px, transparent 1px 40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(40px, 5vw, 68px) clamp(28px, 4vw, 48px);
}

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

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand--footer { min-height: 0; }

.footer-note {
  max-width: 30ch;
  color: rgba(201, 214, 226, 0.72);
  font-size: 14px;
}

.footer-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.footer-heading {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 57, 92, 0.92);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-left: 0;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.footer-list a::before {
  content: "›";
  font-family: var(--font-mono);
  color: rgba(127, 166, 200, 0.4);
  transition: color 0.16s var(--ease);
}

.footer-list a:hover {
  padding-left: 8px;
  color: var(--white);
}

.footer-list a:hover::before { color: var(--orange); }

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  font-style: normal;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  color: rgba(201, 214, 226, 0.86);
}

.footer-label {
  flex: 0 0 auto;
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer-line--note {
  display: block;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 90, 31, 0.42);
  color: rgba(127, 166, 200, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(18, 57, 92, 0.92);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(127, 166, 200, 0.8);
}

.footer-copy,
.footer-icp { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(201, 214, 226, 0.78);
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-legal a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .nav-link { padding: 0 9px; font-size: 13.5px; }
  .header-cta { padding: 0 14px; font-size: 13.5px; }
}

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

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    padding: 10px;
    background: rgba(11, 31, 53, 0.98);
    border: 1px solid rgba(18, 57, 92, 0.95);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 28px 60px -34px rgba(0, 0, 0, 1);
  }

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

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

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .nav-link::before { font-size: 10px; }

  .site-header { padding-block: 8px 6px; }
  .header-pill { padding: 8px 8px 8px 14px; }
}

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-note { max-width: none; }
  .footer-legal { gap: 16px; }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
}

/* ---------- 动效偏好 ---------- */
@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-meter { transition: none; }
  [data-reveal="pending"],
  [data-reveal="shown"] { opacity: 1; transform: none; }
}
