/* =========================================================
   手机看赛 · 共享样式表 /assets/site.css
   夜场转播室 + 记分牌数据面板
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #071C15;
  --panel: #0C2A20;
  --band: #0A231A;
  --deep: #030B07;

  --cyan: #2FF2C4;
  --cyan-dim: #17B08C;
  --orange: #FF7A2F;
  --signal: #FFD166;

  --paper: #F2F7F4;
  --text-soft: #C9DAD2;
  --muted: #8FA79C;
  --line: #1E3A2F;
  --line-soft: rgba(30, 58, 47, .6);

  --gutter: clamp(20px, 4.5vw, 60px);
  --shell: 1360px;

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

  --shadow-1: 0 4px 12px rgba(0, 0, 0, .28);
  --shadow-2: 0 10px 26px rgba(0, 0, 0, .46);
  --ease: 160ms cubic-bezier(.2, .6, .3, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
table { width: 100%; border-collapse: collapse; }

#main-content { display: block; }
#main-content:focus { outline: none; }

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

::selection { background: rgba(47, 242, 196, .28); color: var(--paper); }

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -90px;
  z-index: 140;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04140F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: rgba(7, 28, 21, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: "brand status cta toggle";
  align-items: center;
  gap: 10px 26px;
  padding: 13px 0 12px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan-dim);
  background:
    linear-gradient(135deg, rgba(47, 242, 196, .16), rgba(7, 28, 21, 0) 70%),
    repeating-linear-gradient(115deg, rgba(47, 242, 196, .09) 0 1px, transparent 1px 6px);
}
.brand-mark-core {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 242, 196, .8);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand-sub {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

.header-status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(47, 242, 196, .9);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.header-cta {
  grid-area: cta;
  white-space: nowrap;
}

.nav-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: .16em;
  transition: border-color var(--ease), color var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 200ms ease;
}
.nav-toggle-text { line-height: 1; }

.site-header[data-open="true"] .nav-toggle { border-color: var(--cyan); color: var(--cyan); }
.site-header[data-open="true"] .nav-toggle-bar:first-child { transform: translateY(2.75px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* --- 第二栏：主导航 + 固定入口 --- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.nav-list { display: flex; flex-wrap: wrap; gap: 2px 26px; padding: 8px 0; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--muted);
  transition: color var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(47, 242, 196, .6);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--cyan-dim);
}

.header-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.sub-label { color: var(--muted); }
.sub-sep { color: var(--line); }
.sub-link {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
  transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}
.sub-link:hover,
.sub-link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(47, 242, 196, .06);
}

/* --- 滚动进度条 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(47, 242, 196, .65);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 140px);
  background-color: var(--deep);
  border-top: 1px solid var(--line);
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 84px) var(--gutter) clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 52px);
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--paper);
}
.footer-brand-text {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-version {
  margin-top: 16px;
  max-width: 44ch;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--cyan-dim);
}
.footer-col-title::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan-dim);
}

.footer-list { display: grid; gap: 9px; }
.footer-list a {
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan-dim);
}

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

.footer-base {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
}
.footer-icp {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--muted);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan-dim);
}

/* ---------- 6. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 880px; }

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

.section { padding-block: clamp(56px, 8vw, 118px); }

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

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--band);
  background-image: repeating-linear-gradient(115deg, rgba(47, 242, 196, .05) 0 1px, transparent 1px 16px);
}
.band-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* ---------- 7. 文字 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--text-soft);
}

.prose {
  max-width: 70ch;
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.8;
  color: var(--text-soft);
}
.prose p + p { margin-top: 1em; }
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dim);
}
.prose a:hover { border-bottom-color: var(--cyan); }
.prose strong { font-weight: 700; color: var(--paper); }

.num {
  font-family: var(--font-mono);
  font-size: 1.4em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--cyan);
}
.num-orange { color: var(--orange); }

.muted-text {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.status-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--signal);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-cta {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0C03;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 122, 47, .18);
}
.btn-cta:hover {
  background: #FF9154;
  border-color: #FF9154;
  color: #1A0C03;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 122, 47, .3);
}

.btn-ghost {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(47, 242, 196, .08);
  color: var(--cyan);
}

/* ---------- 9. 标签 / 卡片 / 数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.tag-cyan { color: var(--cyan); border-color: rgba(47, 242, 196, .38); }
.tag-orange { color: var(--orange); border-color: rgba(255, 122, 47, .42); }

.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2vw, 26px);
  background-color: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-2);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--paper);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}
.card-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.stat {
  padding-left: 14px;
  border-left: 2px solid var(--cyan-dim);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--cyan);
}
.stat-label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}

.callout {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--orange);
  background: rgba(12, 42, 32, .72);
}
.callout-title {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--orange);
}

/* ---------- 10. 索引列表 ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
  transition: border-color var(--ease), color var(--ease);
}
.index-item:hover { border-bottom-color: var(--cyan-dim); color: var(--paper); }
.index-key {
  flex: none;
  min-width: 4.5em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

/* ---------- 11. 图片容器 ---------- */
.figure { margin: 0; }
.figure-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--panel);
  background-image:
    linear-gradient(135deg, rgba(47, 242, 196, .13), rgba(7, 28, 21, 0) 58%),
    repeating-linear-gradient(115deg, rgba(47, 242, 196, .06) 0 1px, transparent 1px 14px);
  box-shadow: var(--shadow-1);
}
.figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(47, 242, 196, .16);
  pointer-events: none;
}
.figure-media--portrait { aspect-ratio: 9 / 16; max-width: 360px; }
.figure-media--wide { aspect-ratio: 21 / 9; }
.figure-cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--line);
}
.breadcrumb-item a { transition: color var(--ease); }
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-item [aria-current="page"] { color: var(--paper); }

/* ---------- 13. 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 240ms ease, transform 240ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (min-width: 720px) {
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-shell { grid-template-columns: 1.7fr 1fr 1.15fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 1080px) {
  .header-top { gap: 10px 18px; }
  .header-status { font-size: 11px; letter-spacing: .04em; }
  .nav-list { gap: 2px 16px; }
  .nav-link { font-size: 13px; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 118px; }

  .header-top {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "status cta";
    gap: 8px 14px;
    padding: 12px 0 10px;
  }
  .header-status {
    font-size: 10.5px;
    letter-spacing: .04em;
    white-space: normal;
    line-height: 1.5;
  }
  .header-cta {
    justify-self: end;
    padding: 7px 13px;
    font-size: 11px;
    letter-spacing: .1em;
  }

  .header-bar {
    position: static;
    display: flex;
    justify-content: flex-end;
    padding: 0;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    background-color: var(--deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 240ms ease, visibility 240ms ease;
  }
  .site-header[data-open="true"] .site-nav {
    max-height: min(72vh, 480px);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list { display: block; padding: 4px 0; }
  .nav-item + .nav-item { border-top: 1px solid var(--line); }
  .nav-link {
    display: flex;
    gap: 16px;
    padding: 14px var(--gutter);
    font-size: 15px;
    color: var(--text-soft);
  }
  .nav-link[aria-current="page"] {
    background: rgba(47, 242, 196, .07);
    color: var(--cyan);
  }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-index { font-size: 11px; align-self: center; }

  .header-sub { padding: 9px 0; }
}

@media (max-width: 560px) {
  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; letter-spacing: .1em; }
  .header-status { font-size: 10px; }
  .header-sub { font-size: 11px; gap: 8px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { transition: none; }
}
