/* ==========================================================================
   8868赛事 · 共享站点样式 /assets/site.css
   夜战深蓝底板 + 战术板蓝面板 + 荧光青索引 + 信号橙行动
   ========================================================================== */

:root {
  --ink-950: #060C16;
  --ink-900: #0E1A2B;
  --ink-850: #0A1422;
  --line: #1C2E45;
  --line-soft: rgba(28, 46, 69, 0.72);
  --cyan: #24E0D1;
  --orange: #FF7A1A;
  --orange-hi: #FF9645;
  --turf: #7BD44B;
  --warn: #FFC53D;
  --danger: #FF5A5F;
  --text: #F2F6FA;
  --muted: #9FB0C4;

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

  --maxw: 1280px;
  --gutter: 24px;
  --radius: 2px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shell-h: 64px;
  --shell-h-compact: 56px;
  --header-top: 20px;
}

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

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

body {
  margin: 0;
  padding: 92px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-950);
  background-image:
    linear-gradient(rgba(159, 176, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 176, 196, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--orange); }

::selection { background: rgba(36, 224, 209, 0.28); color: #FFFFFF; }

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

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

/* ---------- 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--cyan);
  flex: none;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04070D;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.16s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #04070D;
}

/* ---------- 悬浮胶囊头部 ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 90;
  transition: top 0.28s var(--ease), width 0.28s var(--ease);
}
.site-header[data-compact] { top: 10px; }

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--shell-h);
  padding: 0 10px 0 18px;
  background: rgba(6, 12, 22, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: min-height 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}
.site-header[data-compact] .nav-shell {
  min-height: var(--shell-h-compact);
  background: rgba(6, 12, 22, 0.95);
  border-color: #24384F;
}

/* 品牌浮岛 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}
.brand-mark:hover { color: var(--text); }

.brand-mark__tile {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1px solid var(--cyan);
  background-image: radial-gradient(var(--cyan) 1px, transparent 1.1px);
  background-size: 3.5px 3.5px;
  background-position: 0.5px 0.5px;
  opacity: 0.9;
}

.brand-name { line-height: 1; }

.brand-glyph {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -1px;
  color: var(--cyan);
  transform: translateY(-1px);
}

/* 导航 */
.nav-dock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  justify-self: end;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--pill);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(36, 224, 209, 0.07);
}
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(36, 224, 209, 0.08);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin-left: 10px;
  padding: 0 17px;
  border-radius: var(--pill);
  background: var(--orange);
  color: #060C16;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.nav-cta:hover {
  background: var(--orange-hi);
  color: #060C16;
}
.nav-cta:active { transform: translateY(1px); }
.nav-cta__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

/* 汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(36, 224, 209, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--cyan);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-toggle:hover {
  background: rgba(36, 224, 209, 0.16);
  border-color: rgba(36, 224, 209, 0.45);
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.16s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度线 */
.scan-progress {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}
.scan-progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--turf));
  transition: width 0.12s linear;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover {
  border-color: rgba(36, 224, 209, 0.55);
  color: var(--cyan);
}
.btn--signal {
  background: var(--orange);
  border-color: var(--orange);
  color: #060C16;
}
.btn--signal:hover {
  background: var(--orange-hi);
  border-color: var(--orange-hi);
  color: #060C16;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(36, 224, 209, 0.45);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(36, 224, 209, 0.08);
  color: var(--cyan);
}
.btn--mini {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

/* ---------- 筛选标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 26, 43, 0.8);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.chip:hover {
  color: var(--text);
  border-color: rgba(36, 224, 209, 0.5);
}
.chip[aria-pressed="true"],
.chip.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(36, 224, 209, 0.1);
}

/* ---------- 状态标签 ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  flex: none;
}
.status--ok { color: var(--turf); }
.status--doubt { color: var(--warn); }
.status--out { color: var(--danger); }
.status--live { color: var(--cyan); }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--flush {
  padding: 0;
  overflow: hidden;
}

/* ---------- 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line);
  font-family: var(--font-mono);
}
.breadcrumbs a {
  color: var(--muted);
  transition: color 0.16s var(--ease);
}
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 74ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  margin-top: 2em;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 20px;
  color: var(--text);
}
.prose h2 + p,
.prose h3 + p { margin-top: 0.7em; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--orange); }
.prose ul,
.prose ol {
  padding-left: 1.4em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: #FFFFFF; font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--cyan);
  color: var(--muted);
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(36, 224, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 224, 209, 0.06) 1px, transparent 1px),
    linear-gradient(160deg, #0E1A2B 0%, #060C16 78%);
  background-size: 24px 24px, 24px 24px, cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0) 42%, rgba(6, 12, 22, 0.86) 100%);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.data-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid rgba(36, 224, 209, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 26, 43, 0.92) 0%, rgba(6, 12, 22, 1) 72%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 240px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(36, 224, 209, 0));
}

.footer-grid {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.1fr;
  padding-top: 46px;
}

.footer-col {
  padding: 0 22px 34px;
  border-left: 1px solid var(--line);
}
.footer-col:first-child {
  border-left: 0;
  padding-left: 0;
}
.footer-col:last-child { padding-right: 0; }

.footer-brand { display: block; }

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

.footer-brandline {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.4;
}

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

.footer-lamps {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.lamp {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 1px;
}
.lamp--cyan { background: var(--cyan); }
.lamp--turf { background: var(--turf); }
.lamp--orange { background: var(--orange); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(36, 224, 209, 0.5);
}

.footer-contact {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  word-break: break-all;
}

.footer-base {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 26, 43, 0.94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s, border-color 0.16s var(--ease);
}
.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--cyan);
  background: rgba(36, 224, 209, 0.12);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .brand-mark { font-size: 18px; }
  .nav-link { padding: 0 10px; font-size: 13.5px; }
  .nav-link::after { left: 10px; right: 10px; }
  .nav-cta { padding: 0 14px; font-size: 13.5px; }
}

@media (max-width: 920px) {
  body { padding-top: 84px; }
  .site-header { top: 14px; width: calc(100% - 24px); }
  .site-header[data-compact] { top: 8px; }
  .nav-shell { grid-template-columns: auto 1fr auto; padding: 0 8px 0 14px; }

  .nav-toggle { display: inline-flex; justify-self: end; }

  .nav-dock {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(10, 20, 34, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }
  .site-header[data-open] .nav-dock {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    height: 46px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 15px;
  }
  .nav-link::after { display: none; }

  .nav-cta {
    height: 46px;
    margin: 8px 0 0;
    padding: 0 16px;
    justify-content: center;
    border-radius: 6px;
    font-size: 15px;
  }

  .scan-progress { left: 16px; right: 16px; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 36px; }
  .footer-brand {
    grid-column: 1 / -1;
    padding: 0 0 26px;
    border-left: 0;
  }
  .footer-col {
    padding: 0 18px 28px;
  }
  .footer-col:nth-child(2) {
    border-left: 0;
    padding-left: 0;
  }
  .footer-col:nth-child(4) { padding-right: 0; }
}

@media (max-width: 620px) {
  body { padding-top: 80px; font-size: 15.5px; }
  .brand-mark { font-size: 16.5px; gap: 7px; }
  .brand-mark__tile { width: 9px; height: 9px; background-size: 3px 3px; }
  .nav-shell { min-height: 58px; }
  .site-header[data-compact] .nav-shell { min-height: 52px; }

  .wrap { width: calc(100% - 32px); }
  .footer-grid,
  .footer-base { width: calc(100% - 32px); }

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

  .panel { padding: 18px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col {
    padding: 0 0 26px;
    border-left: 0;
  }
  .footer-col + .footer-col {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .back-top { right: 14px; bottom: 14px; }
}

/* ---------- 动效降级 ---------- */
@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;
  }
}
