/* ===========================================================
   环球体育主站 · 共享样式 /assets/site.css
   夜墨绿底 + 蓝图网格 + 荧光青/电光橙强调
   =========================================================== */

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

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

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

ul, ol { list-style: none; }

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

img { height: auto; }

button { font: inherit; }

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --ink: #0B1F1A;
  --charcoal: #14161A;
  --slate: #1E2A28;
  --cyan: #19F0C8;
  --orange: #FF6A1F;
  --gold: #E7B44A;
  --white: #F2F6F4;
  --muted: #8FA39D;
  --line: #243B36;
  --coral: #FF3B57;

  --shell-w: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 66px;
  --radius: 2px;

  --font-display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- 页面基底 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(25, 240, 200, .10), transparent 62%),
    radial-gradient(880px 520px at -6% 104%, rgba(255, 106, 31, .08), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

/* 12 列蓝图网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(36, 59, 54, .85) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .25));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .25));
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--cyan);
  color: #04201A;
}

/* ---------- 中文排版与通用标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--white);
}

h1 { font-size: clamp(34px, 5.6vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 22px; }

p { text-wrap: pretty; }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--white);
}

.lead {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(242, 246, 244, .84);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(242, 246, 244, .86);
}

.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; margin-bottom: .5em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; margin-bottom: .4em; }
.prose p + p { margin-top: 1.05em; }
.prose ul { margin-top: .9em; display: grid; gap: .45em; }
.prose li { padding-left: 1.15em; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

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

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04201A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .16s var(--ease);
}

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

/* ---------- 命令栏头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 31, 26, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  min-height: var(--header-h);
  padding-block: 8px;
  transition: min-height .18s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 4px;
  gap: 3px;
  width: 30px;
  height: 30px;
  flex: none;
  transition: width .18s var(--ease), height .18s var(--ease);
}

.brand-mark i { display: block; background: var(--cyan); }
.brand-mark i:nth-child(2) { background: var(--orange); }
.brand-mark i:nth-child(3) {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: font-size .18s var(--ease);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.brand-version {
  flex: none;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
  border: 1px solid rgba(231, 180, 74, .42);
  border-radius: var(--radius);
  white-space: nowrap;
}

.brand-version b { color: var(--gold); font-weight: 700; }

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

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

.nav-item { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}

.nav-label { white-space: nowrap; }

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(143, 163, 157, .55);
  transition: color .16s var(--ease);
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .16s var(--ease), box-shadow .16s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  border-color: var(--line);
  background: rgba(30, 42, 40, .62);
}

.nav-link:hover .nav-dot { background: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--white);
  border-color: rgba(25, 240, 200, .5);
  background: rgba(25, 240, 200, .08);
}

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

.nav-link[aria-current="page"] .nav-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 240, 200, .16);
}

.nav-foot { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: 4px;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: width .16s var(--ease), background-color .16s var(--ease);
}

.nav-toggle-bars i:nth-child(2) { width: 70%; background: var(--white); }

.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { width: 100%; }

/* 阅读进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
}

/* 压缩细条 */
.site-header[data-compact] { background: rgba(11, 31, 26, .98); }
.site-header[data-compact] .header-inner { min-height: 50px; }
.site-header[data-compact] .brand-sub { display: none; }
.site-header[data-compact] .brand-name { font-size: 16px; }
.site-header[data-compact] .brand-mark { width: 22px; height: 22px; }
.site-header[data-compact] .nav-link { padding: 6px 10px; font-size: 13px; }
.site-header[data-compact] .header-actions .btn { padding: 7px 14px; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-hot {
  background: var(--orange);
  color: #180B04;
  border-color: var(--orange);
}

.btn-hot:hover {
  background: #FF8143;
  border-color: #FF8143;
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 面板 / 卡片 / 标签 ---------- */
.panel {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}

.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 240, 200, .55);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag--cyan { color: var(--cyan); border-color: rgba(25, 240, 200, .5); }
.tag--orange { color: var(--orange); border-color: rgba(255, 106, 31, .5); }
.tag--gold { color: var(--gold); border-color: rgba(231, 180, 74, .5); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 240, 200, .18);
}

.status-dot--live {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 59, 87, .18);
}

.status-dot--idle {
  background: var(--line);
  box-shadow: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

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

.breadcrumb a:hover { color: var(--cyan); }

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

.breadcrumb .sep { color: var(--line); }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0E211C;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.08) brightness(.84);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 31, 26, 0) 42%, rgba(11, 31, 26, .74));
}

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

.media-frame__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan);
  background: rgba(11, 31, 26, .78);
  border: 1px solid rgba(25, 240, 200, .5);
  border-radius: var(--radius);
}

.media-frame__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 246, 244, .88);
}

/* ---------- 滚动显现协议 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--charcoal);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(36px, 5vw, 64px);
}

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

.footer-brand {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}

.footer-note {
  max-width: 34ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-version {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer-version b { color: var(--gold); }

.footer-stamp {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(143, 163, 157, .75);
}

.footer-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}

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

.footer-list--plain li { display: grid; gap: 2px; }

.footer-label {
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(143, 163, 157, .7);
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(143, 163, 157, .85);
}

.footer-copy { margin: 0; }

.footer-stage {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(231, 180, 74, .85);
}

/* ---------- 响应式：平板与手机 ---------- */
@media (max-width: 1240px) {
  .nav-idx { display: none; }
}

@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .nav-link { padding: 9px 9px; font-size: 13px; }
  .header-actions .btn { padding: 9px 13px; font-size: 13px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .brand-version { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .header-actions { display: none; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    padding: 18px var(--gutter) 26px;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    justify-content: flex-start;
    padding: 14px 6px;
    font-size: 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-link .nav-idx { display: inline; font-size: 11px; }
  .nav-link .nav-dot { margin-left: auto; }

  .nav-link[aria-current="page"] {
    background: transparent;
    border-color: transparent;
    border-bottom-color: rgba(25, 240, 200, .5);
  }

  .nav-foot {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-version { display: none; }
  .site-header[data-compact] .brand-version { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .btn { padding: 11px 16px; }
}

/* ---------- 降低动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .header-progress { transition: none; }
  .panel:hover,
  .btn:hover { transform: none; }
}
