/* ============================================================
   博鱼赛场 · 共享样式表 /assets/site.css
   夜间赛场直播控制室 —— 深海墨蓝 / 琥珀橙 / 电光青
   ============================================================ */

/* ---------- 0. 变量 ---------- */
:root {
  --ink: #0B1F33;
  --ink-deep: #07141F;
  --panel: #122E47;
  --panel-lift: #1B3E5C;
  --amber: #F5A623;
  --cyan: #22D3C5;
  --flare: #FF7A3D;
  --frost: #E8EEF3;
  --mist: #8FA6B8;
  --line: #2C4A66;
  --line-soft: rgba(44, 74, 102, 0.55);

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

  --shell: 1440px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --sp-1: 8px;
  --sp-2: 24px;
  --sp-3: 40px;
  --sp-4: 72px;
  --header-h: 68px;
}

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--frost);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(44, 74, 102, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 74, 102, 0.10) 1px, transparent 1px),
    radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 197, 0.10), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(245, 166, 35, 0.09), transparent 62%);
  background-size: 88px 88px, 88px 88px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
hr { border: 0; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: 700; }

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

/* ---------- 2. 无障碍基础 ---------- */
.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;
}

:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  padding: 12px 22px;
  background: var(--amber);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: var(--sp-2); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }

@media (max-width: 980px) {
  .grid--7-5,
  .grid--8-4,
  .grid--5-7 { grid-template-columns: 1fr; }
}

.rule { height: 1px; background: var(--line); }
.pulse-line {
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(34, 211, 197, 0.25) 32%, rgba(44, 74, 102, 0.7) 62%, transparent 100%);
}

/* ---------- 4. 文字系统 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.section-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: #C4D3DF;
  max-width: 68ch;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--cyan);
}

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

.prose { max-width: 68ch; }
.prose p { font-size: 16.5px; line-height: 1.85; color: #C4D3DF; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--frost); }

/* ---------- 5. 面板 / 标签 / 状态点 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: var(--sp-2);
}
.panel--lift { background: var(--panel-lift); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(34, 211, 197, 0.5); }
.tag--amber { color: var(--amber); border-color: rgba(245, 166, 35, 0.5); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--cyan);
}
.dot--amber { background: var(--amber); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--frost);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-deep);
  font-weight: 700;
}
.btn--primary:hover {
  background: #FFB941;
  border-color: #FFB941;
  color: var(--ink-deep);
}

.btn--ghost:hover { background: rgba(34, 211, 197, 0.08); }

.btn--cyan {
  border-color: rgba(34, 211, 197, 0.55);
  color: var(--cyan);
}
.btn--cyan:hover {
  background: var(--cyan);
  color: var(--ink-deep);
  border-color: var(--cyan);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb a { transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--frost); }

/* ---------- 8. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel-lift);
  border: 1px solid var(--line);
}
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(34, 211, 197, 0.28), rgba(11, 31, 51, 0.20) 46%, rgba(245, 166, 35, 0.26) 100%),
    repeating-linear-gradient(0deg, rgba(232, 238, 243, 0.055) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.media__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(7, 20, 31, 0.55), transparent 60%);
}
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media--slant { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 36px)); }

/* ============================================================
   9. 头部 · 赛场命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 20, 31, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--flare) 20%, rgba(245, 166, 35, 0) 62%);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
  min-height: var(--header-h);
}

/* 品牌署名 */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 12px 26px 12px 0;
  border-right: 1px solid var(--line);
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--frost);
  transition: color 0.18s ease;
}
.brand:hover .brand__mark { color: var(--amber); }
.brand__line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__domain { color: var(--cyan); }
.brand__index { color: rgba(143, 166, 184, 0.72); text-transform: none; letter-spacing: 0.06em; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__glyph {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}
.nav-toggle__glyph i {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航条 */
.primary-nav {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-list__item { display: flex; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 0.16s ease;
}
.nav-list a:hover {
  color: var(--frost);
  background: rgba(27, 62, 92, 0.42);
}
.nav-list a[aria-current="page"] {
  color: var(--frost);
  font-weight: 700;
  background: rgba(27, 62, 92, 0.6);
}
.nav-list a[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--cyan);
}
.nav-list a[aria-current="page"]::after { background: var(--cyan); }
.nav-list a[aria-current="page"] .nav-list__idx { color: var(--cyan); }

.nav-list__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(143, 166, 184, 0.55);
  transition: color 0.16s ease;
}
.nav-list__name { display: inline-block; }

/* 状态条 */
.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.status-strip__pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--cyan);
  animation: pulse-scan 2.4s ease-in-out infinite;
}
.status-strip__label { color: var(--frost); }
.status-strip__meta { color: rgba(143, 166, 184, 0.6); text-transform: none; letter-spacing: 0.06em; }

@keyframes pulse-scan {
  0%, 100% { opacity: 0.35; }
  45% { opacity: 1; }
}

/* 阅读进度 */
.progress-rail {
  height: 2px;
  background: rgba(44, 74, 102, 0.45);
  overflow: hidden;
}
.progress-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.08s linear;
}

/* 头部响应式 */
@media (max-width: 1180px) {
  .site-header__inner { gap: 18px; }
  .nav-list a { padding: 0 10px; font-size: 12.5px; }
  .status-strip__meta { display: none; }
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    column-gap: 14px;
    padding-inline: 20px;
    min-height: 64px;
  }
  .brand {
    flex: 1 1 auto;
    padding: 12px 0;
    border-right: 0;
  }
  .nav-toggle { display: inline-flex; }
  .status-strip { display: none; }
  .primary-nav {
    display: none;
    flex: 1 0 100%;
    order: 10;
    margin: 0 -20px;
    padding-bottom: 6px;
    background: var(--ink-deep);
    border-top: 1px solid var(--line);
  }
  .site-header[data-open] .primary-nav { display: block; }
  .nav-list {
    flex-direction: column;
    overflow: visible;
  }
  .nav-list__item { border-bottom: 1px solid rgba(44, 74, 102, 0.5); }
  .nav-list__item:last-child { border-bottom: 0; }
  .nav-list a {
    padding: 14px 20px;
    font-size: 14px;
  }
  .nav-list a::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .nav-list a:hover { background: rgba(27, 62, 92, 0.35); }
}

/* ============================================================
   10. 页脚
   ============================================================ */
.site-footer {
  margin-top: var(--sp-4);
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  color: var(--frost);
}

.footer-top {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px 24px 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px 36px;
  align-items: start;
}

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

.footer-col--brand { padding-right: 12px; }

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--frost);
  transition: color 0.18s ease;
}
.footer-brand:hover { color: var(--amber); }

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

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(34, 211, 197, 0.35);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-list li { margin-bottom: 11px; }
.footer-list li:last-child { margin-bottom: 0; }

.footer-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--frost);
  transition: color 0.16s ease;
}
.footer-list a:hover { color: var(--cyan); }

.footer-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(143, 166, 184, 0.55);
}

.footer-list--meta li {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--frost);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-hours {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(143, 166, 184, 0.88);
}

.footer-legal {
  background: #050F17;
  border-top: 1px solid var(--line);
}
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-legal__sep { color: rgba(44, 74, 102, 0.95); }
.footer-legal__right {
  margin-left: auto;
  color: rgba(143, 166, 184, 0.62);
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-col--brand .footer-note { max-width: 56ch; }
}

@media (max-width: 720px) {
  .footer-top { padding: 40px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-legal__inner { padding: 14px 20px; font-size: 10.5px; }
  .footer-legal__right { margin-left: 0; width: 100%; }
}

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

/* ============================================================
   11. 动效降级
   ============================================================ */
@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-behavior: auto !important;
  }
  .status-strip__pulse { animation: none; opacity: 1; }
  .progress-rail__fill { transition: none; }
  body { background-attachment: scroll, scroll, scroll, scroll; }
}

@media (max-width: 980px) {
  body { background-attachment: scroll, scroll, scroll, scroll; }
}
