/* ==========================================================================
   云开体育看台 · 共享样式表 /assets/site.css
   深空底 + 面板蓝黑 + 精密网格 · 破晓橙 / 信号绿 / 电光蓝 状态强调
   ========================================================================== */

/* ---------- 1. 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, figcaption, blockquote,
dl, dt, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #05070F;
  --panel: #0C1424;
  --panel-deep: #0A1120;
  --grid: #1B2740;
  --grid-soft: rgba(27, 39, 64, 0.55);
  --white: #F2F5FA;
  --muted: #93A3BC;
  --orange: #FF6A1A;
  --orange-soft: #FF7D38;
  --green: #22E39B;
  --blue: #3D7BFF;
  --purple: #A85CFF;
  --amber: #FFC24B;
  --red: #FF4D5E;
  --noise: #E6EAF2;

  --font-display: "Archivo Black", "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-row: 78px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 3. Base ---------- */
body {
  position: relative;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 全站精密网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-soft) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 39, 64, 0.35) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.5;
}

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

main { display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(38px, 6.4vw, 92px); }
h2 { font-size: clamp(27px, 3.8vw, 50px); }
h3 { font-size: clamp(19px, 2.2vw, 29px); }

p { line-height: 1.75; }

strong, b { font-weight: 700; }

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

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

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--orange { color: var(--orange); }
.label--green { color: var(--green); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--orange);
  color: #060810;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

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

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grid);
}

.progress-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(27, 39, 64, 0.7);
  z-index: 2;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.12s linear;
}

.status-strip {
  border-bottom: 1px solid var(--grid);
  background: rgba(12, 20, 36, 0.62);
  max-height: 36px;
  overflow: hidden;
  transition: max-height 0.28s var(--ease), opacity 0.2s ease;
}

.site-header[data-condensed] .status-strip {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.status-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-strip__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-strip__item--right { justify-content: flex-end; }

.pulse {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 227, 155, 0.16);
  animation: pulse-fade 2.4s ease-in-out infinite;
}

@keyframes pulse-fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 46px);
  min-height: var(--header-row);
  transition: min-height 0.28s var(--ease);
}

.site-header[data-condensed] .header-main__inner {
  min-height: 58px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  gap: 3px;
  height: 22px;
}

.brand__mark span {
  display: block;
  width: 3px;
}

.brand__mark span:nth-child(1) { height: 10px; background: var(--blue); }
.brand__mark span:nth-child(2) { height: 16px; background: var(--green); }
.brand__mark span:nth-child(3) { height: 22px; background: var(--orange); }

.brand__text { display: block; }

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

.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 导航：左右分置 */
.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.18s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--orange);
  transition: right 0.22s var(--ease), background-color 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  right: 0;
}

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

.nav__link[aria-current="page"]::after {
  right: 0;
  height: 2px;
  background: var(--green);
}

/* CTA / 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

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

.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  color: #07090F;
}

.btn--ghost {
  border-color: var(--grid);
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.header-cta { flex: 0 0 auto; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover { border-color: var(--orange); color: var(--white); }

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] { border-color: var(--orange); color: var(--white); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4px) 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(-4px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 132px);
  background: var(--panel-deep);
  border-top: 1px solid var(--grid);
  color: var(--muted);
}

.footer-top {
  padding: clamp(46px, 6vw, 84px) 0 clamp(30px, 4vw, 52px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--white);
}

.footer-brand__line {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-brand__meta {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-col__list li + li { margin-top: 9px; }

.footer-col__list a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-col__list a:hover { color: var(--white); }

.footer-contact {
  display: grid;
  gap: 6px;
  padding: clamp(20px, 2.6vw, 30px) var(--gutter);
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: var(--muted);
}

.footer-contact__line { max-width: none; }
.footer-contact__line--muted { color: var(--muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 20px var(--gutter) 30px;
  border-top: 1px solid var(--grid);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom__copy { max-width: none; }

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

.footer-legal a {
  border-bottom: 1px solid transparent;
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease;
}

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

/* ---------- 7. 通用内容组件 ---------- */
.section {
  position: relative;
  padding: clamp(46px, 7vw, 112px) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 24px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.section__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grid);
  transition: color 0.3s ease;
}

.section[data-active="true"] .section__num { color: var(--orange); }

.section__title { margin: 0; }
.section__note { max-width: 46ch; font-size: 14px; color: var(--muted); }

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--grid);
}

.panel__body { padding: 18px; }
.panel__body > * + * { margin-top: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tag--live { color: var(--green); border-color: rgba(34, 227, 155, 0.42); }
.tag--warn { color: var(--amber); border-color: rgba(255, 194, 75, 0.42); }
.tag--alert { color: var(--red); border-color: rgba(255, 77, 94, 0.42); }
.tag--accent { color: var(--purple); border-color: rgba(168, 92, 255, 0.42); }

.data-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-bar__value {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--white);
}

.data-bar__track {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  background: var(--grid);
  overflow: hidden;
  border-radius: 1px;
}

.data-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.6s var(--ease);
}

.data-bar__fill--green { background: var(--green); }
.data-bar__fill--blue { background: var(--blue); }

/* 图片容器 —— 页面阶段放置 <img> */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

.media::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.media--tall::before { padding-top: 125%; }
.media--square::before { padding-top: 100%; }

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.94);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(118% 96% at 50% 42%, rgba(5, 7, 15, 0) 42%, rgba(5, 7, 15, 0.58) 100%);
}

.media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(5, 7, 15, 0.84);
  border-top: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs a { transition: color 0.16s ease; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs__sep { color: var(--grid); }

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #C9D3E3;
}

.prose p { margin-bottom: 1.15em; max-width: 42ch; }
.prose p:last-child { margin-bottom: 0; }

.prose h2,
.prose h3 {
  margin: 1.7em 0 0.7em;
  color: var(--white);
}

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose ul,
.prose ol { margin: 0 0 1.2em; }

.prose li {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 20px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 1px;
  background: var(--orange);
}

.prose strong { color: var(--white); }

/* 显现动效基础（页面阶段给元素加 data-reveal） */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1020px) {
  :root { --header-row: 64px; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 26px;
    background: var(--panel);
    border-bottom: 1px solid var(--grid);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s var(--ease), visibility 0.22s;
    white-space: normal;
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

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

  .nav__list + .nav__list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--grid);
  }

  .nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(27, 39, 64, 0.65);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    color: var(--orange);
    border-bottom-color: rgba(255, 106, 26, 0.5);
  }

  .brand { margin-right: auto; }
  .header-cta { margin-left: 4px; }
}

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

  .status-strip__inner {
    justify-content: flex-start;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

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

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }

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

  .prose { font-size: 15.5px; }
  .prose p { max-width: none; }
}

@media (max-width: 560px) {
  .brand__name { font-size: 15px; }
  .brand__sub { display: none; }

  .header-cta {
    padding: 9px 12px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .nav-toggle__label { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand__meta { max-width: none; }
}

/* ---------- 9. 动效降级 ---------- */
@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;
    transition-delay: 0ms !important;
  }

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

  .pulse { animation: none; }
  .progress-fill { transition: none; }
}
