/* ============================================
   FB赛场 · 全站共享样式 /assets/site.css
   暗夜赛场 · 数据驾驶舱 · 荧光绿/电光蓝
   ============================================ */

/* ---------- 1. 变量与重置 ---------- */

:root {
  --bg-deep: #0B0F19;
  --bg-card: #111827;
  --bg-elev: rgba(17, 24, 39, 0.72);
  --bg-drawer: rgba(11, 15, 25, 0.94);
  --accent: #00FF88;
  --accent-blue: #00D4FF;
  --grad-a: #FF6B00;
  --grad-b: #FF9500;
  --text: #F8FAFC;
  --text-dim: #94A3B8;
  --line: #1E293B;
  --header-w: 272px;
  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", "Roboto Mono", Consolas, monospace;
}

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

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

html, body {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(720px 480px at 86% -12%, rgba(0, 212, 255, 0.07), transparent 62%),
    radial-gradient(680px 460px at -8% 112%, rgba(0, 255, 136, 0.05), transparent 62%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

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

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

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: rgba(0, 255, 136, 0.25);
  color: var(--text);
}

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

/* ---------- 2. 辅助与通用 ---------- */

.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 3000;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #04120B;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.12s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 站点页头 · 轨道导航 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--header-w);
  background: var(--bg-elev);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 28px 20px 20px;
}

.header-inner > .brand {
  padding: 0 6px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 28px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.1s, border-color 0.1s, color 0.1s;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.1s var(--ease);
}

.nav-index {
  min-width: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color 0.1s;
}

.nav-label {
  flex: 1;
}

.nav-link:hover {
  border-color: var(--line);
  background-color: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.nav-link:hover .nav-index {
  color: var(--accent-blue);
}

.nav-link:hover::before {
  height: 18px;
}

.nav-link[aria-current="page"] {
  border-color: rgba(0, 255, 136, 0.4);
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.10), rgba(0, 255, 136, 0.02));
  color: var(--text);
}

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

.nav-link[aria-current="page"]::before {
  height: 22px;
}

.nav-aside {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.nav-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.nav-hotline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.1s, background-color 0.1s;
}

.nav-toggle:hover {
  border-color: var(--accent);
  background-color: rgba(0, 255, 136, 0.06);
}

.icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.icon-bar + .icon-bar {
  margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* ---------- 4. 移动端抽屉导航 ---------- */

@media (max-width: 1023px) {
  .site-header {
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--header-h);
    border-right: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg-drawer);
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .header-inner > .brand {
    padding: 0;
    border: none;
  }

  .header-inner > .brand .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: min(78vw, 320px);
    padding: 28px 16px;
    background: rgba(13, 18, 30, 0.96);
    border-right: 1px solid var(--line);
    box-shadow: 20px 0 44px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.22s var(--ease), visibility 0.22s;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-aside {
    padding-top: 16px;
  }

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

/* 桌面端内容偏移：为固定侧边轨道空出宽度 */
@media (min-width: 1024px) {
  body {
    padding-left: var(--header-w);
  }
}

/* ---------- 5. 站点页脚 ---------- */

.site-footer {
  margin-top: 80px;
  padding: 56px 32px 28px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.02) 60%, rgba(0, 212, 255, 0.03)),
    rgba(11, 15, 25, 0.9);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.brand--footer .brand-mark {
  width: 26px;
  height: 26px;
}

.brand--footer .brand-name {
  font-size: 18px;
}

.footer-slogan {
  max-width: 36ch;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.footer-trust {
  max-width: 44ch;
  margin-top: 12px;
  padding-left: 10px;
  border-left: 2px solid rgba(0, 212, 255, 0.6);
  color: rgba(148, 163, 184, 0.8);
  font-size: 12px;
}

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

.footer-heading {
  margin: 0 0 16px;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.1s;
}

.footer-links a:hover {
  color: var(--text);
}

.link-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
}

.contact-key {
  display: inline-block;
  min-width: 34px;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0, 212, 255, 0.9);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
}

.footer-copy,
.footer-icp {
  color: inherit;
}

@media (max-width: 1023px) {
  .site-footer {
    margin-top: 48px;
    padding: 40px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

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

/* ---------- 6. 通用组件 ---------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.1s, border-color 0.1s, color 0.1s, filter 0.1s;
}

.btn--primary {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  color: #0B0F19;
}

.btn--primary:hover {
  filter: brightness(1.08);
}

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

.btn--ghost:hover {
  background-color: rgba(0, 212, 255, 0.06);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.data-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.1s, border-color 0.1s;
}

.data-card:hover {
  background-color: #131B2A;
  border-color: rgba(0, 255, 136, 0.35);
}

.glass-panel {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker::before {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.section-title {
  margin-top: 10px;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
}

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.time-label {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.score-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.index-list {
  display: flex;
  flex-direction: column;
}

.index-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}

.index-item:last-child {
  border-bottom: none;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
}

.index-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.index-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.content-block {
  max-width: 72ch;
}

.content-block h2 {
  margin: 2em 0 0.5em;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.content-block h3 {
  margin: 1.6em 0 0.4em;
  font-size: 18px;
  font-weight: 700;
}

.content-block p {
  margin: 1em 0;
  color: var(--text-dim);
}

.content-block a {
  color: var(--accent-blue);
  border-bottom: 1px solid rgba(0, 212, 255, 0.4);
  transition: border-color 0.1s, color 0.1s;
}

.content-block a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.1s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

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

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

.stream-line {
  height: 2px;
  border: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 212, 255, 0.5) 0, rgba(0, 212, 255, 0.5) 12px, transparent 12px, transparent 24px);
}

[data-scroll-progress] {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1500;
  height: 3px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@media (min-width: 1024px) {
  [data-scroll-progress] {
    left: var(--header-w);
  }
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 255, 136, 0.06), rgba(0, 212, 255, 0.05)),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.tilt {
  transform: rotate(-1.5deg);
}

.tilt--left {
  transform: rotate(-2deg);
}

.tilt--right {
  transform: rotate(2deg);
}

/* ---------- 7. 动效与无障碍 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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