/* ==========================================================================
   NG 赛场 · 共享样式 /assets/site.css
   夜场竞技 + 数据仪表盘体系：深墨绿底、荧光青锚点、脉冲橙红行动色
   ========================================================================== */

/* ---------- 01. 重置 ---------- */
*,
*::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, blockquote, dl, dd { margin: 0; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

main { display: block; }

/* ---------- 02. 变量 ---------- */
:root {
  --ink-950: #06110E;
  --ink-900: #0B1F19;
  --ink-880: #0E2720;
  --ink-850: #0F2A22;
  --ink-800: #12352B;

  --cyan: #2BF5C8;
  --cyan-soft: #9BFFE8;
  --pulse: #FF5A36;
  --pulse-soft: #FF9C7A;

  --ice: #D7E6EA;
  --ice-dim: #A9C2C6;
  --muted: #6F8A85;
  --paper: #F4F7F6;
  --paper-ink: #06110E;

  --line: rgba(43, 245, 200, 0.16);
  --line-strong: rgba(43, 245, 200, 0.42);
  --hair: rgba(215, 230, 234, 0.14);

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

  --shell: 1280px;
  --gutter: 48px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --header-h: 66px;
}

/* ---------- 03. 基础排版 ---------- */
body {
  min-height: 100%;
  background:
    radial-gradient(1100px 560px at 84% -8%, rgba(43, 245, 200, 0.10), transparent 62%),
    radial-gradient(900px 480px at -6% 4%, rgba(255, 90, 54, 0.07), transparent 58%),
    linear-gradient(rgba(43, 245, 200, 0.030) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(43, 245, 200, 0.030) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--ink-950);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: #FFFFFF;
}

h1 { font-size: clamp(32px, 4.4vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
h4 { font-size: 18px; }

p + p { margin-top: 1em; }

a {
  color: var(--cyan-soft);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover { color: var(--cyan); }

strong, b { font-weight: 700; color: #FFFFFF; }

::selection {
  background: var(--cyan);
  color: var(--ink-950);
}

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

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.prose {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ice);
}

.prose h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }

/* ---------- 05. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--ink-950);
}

/* ---------- 06. 品牌标记 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ice);
}

.brand:hover { color: var(--ice); }

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 5px;
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 8px var(--radius);
  transform: skewX(-6deg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.brand__mark i {
  display: block;
  border-radius: 1px;
  background: rgba(43, 245, 200, 0.22);
}

.brand__mark i:nth-child(1),
.brand__mark i:nth-child(9) { background: var(--pulse); }

.brand__mark i:nth-child(5) {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(43, 245, 200, 0.75);
}

.brand:hover .brand__mark {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(43, 245, 200, 0.28);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #FFFFFF;
}

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

.brand--footer .brand__mark { width: 38px; height: 38px; }
.brand--footer .brand__name { font-size: 21px; }

/* ---------- 07. 页头命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 17, 14, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 13px;
  position: relative;
}

/* 导航 */
.primary-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-list__item { display: block; }

.nav-list a {
  display: inline-block;
  position: relative;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ice-dim);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav-list a:hover {
  color: var(--cyan-soft);
  background: rgba(43, 245, 200, 0.07);
}

.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--ink-950);
  background: var(--cyan);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after { display: none; }

/* 右侧状态与 CTA */
.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.header-status__led {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  animation: led-pulse 2.6s ease-out infinite;
}

@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 245, 200, 0.55); }
  55% { box-shadow: 0 0 0 7px rgba(43, 245, 200, 0); }
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: rgba(11, 31, 25, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  order: 3;
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan-soft); }

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle__label { line-height: 1; }

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度脉冲 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(43, 245, 200, 0.10);
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pulse));
  transition: width 0.1s linear;
}

/* ---------- 08. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius) var(--radius) 10px var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--pulse {
  background: var(--pulse);
  color: #1B0600;
  border-color: var(--pulse);
}

.btn--pulse:hover {
  background: var(--pulse-soft);
  border-color: var(--pulse-soft);
  color: #1B0600;
  box-shadow: 0 10px 26px rgba(255, 90, 54, 0.30);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--ink-950);
  border-color: var(--cyan);
}

.btn--cyan:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  color: var(--ink-950);
  box-shadow: 0 10px 26px rgba(43, 245, 200, 0.26);
}

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

.btn--ghost:hover {
  background: rgba(43, 245, 200, 0.10);
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

/* ---------- 09. 索引标记与标签 ---------- */
.section-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-marker::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 2px;
  background: var(--cyan);
}

.section-marker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hair);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  background: rgba(43, 245, 200, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.tag--pulse {
  color: #260800;
  background: var(--pulse-soft);
  border-color: var(--pulse);
}

/* ---------- 10. 记分牌 ---------- */
.scoreboard {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
  border: 2px solid var(--ink-800);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius) var(--radius) 14px var(--radius);
}

.scoreboard__value {
  font-family: var(--font-mono);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

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

/* ---------- 11. 卡片 ---------- */
.card {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-880));
  border: 2px solid var(--ink-800);
  border-radius: var(--radius) var(--radius) 16px var(--radius);
}

.card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.card--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: #D3DFDD;
}

.card--paper .card__title,
.card--paper strong { color: var(--ink-950); }

.card--paper a { color: #0B6455; }
.card--paper a:hover { color: var(--pulse); }

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(111, 138, 133, 0.6);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb [aria-current="page"] { color: var(--cyan-soft); }

/* ---------- 13. 图片容器基础 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(43, 245, 200, 0.10), transparent 55%),
    var(--ink-850);
  border: 2px solid var(--ink-800);
  border-radius: var(--radius) var(--radius) 18px var(--radius);
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  background: rgba(6, 17, 14, 0.78);
  border-left: 2px solid var(--cyan);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background:
    radial-gradient(720px 320px at 10% 0%, rgba(43, 245, 200, 0.09), transparent 70%),
    radial-gradient(640px 300px at 92% 100%, rgba(255, 90, 54, 0.08), transparent 70%),
    var(--ink-900);
  border-top: 1px solid var(--line-strong);
  color: var(--ice);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 20%,
    transparent 20% 24%,
    var(--pulse) 24% 33%,
    transparent 33% 100%
  );
  opacity: 0.9;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  padding-block: 64px 48px;
}

.footer-tagline {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ice-dim);
  max-width: 24em;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-tag {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

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

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

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

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

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ice);
  text-decoration: none;
}

.footer-list a::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 2px;
  background: var(--cyan);
  opacity: 0.55;
  transition: width 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer-list a:hover { color: var(--cyan-soft); }
.footer-list a:hover::before { width: 16px; opacity: 1; }

.footer-list--plain li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ice-dim);
  word-break: break-word;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 18px 40px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal__links a { color: var(--muted); }
.footer-legal__links a:hover { color: var(--cyan); }

/* ---------- 15. 滚动显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .header-shell {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .brand { order: 1; }

  .header-meta {
    order: 2;
    margin-left: auto;
    justify-self: auto;
  }

  .nav-toggle { order: 3; margin-left: 4px; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-self: stretch;
    padding: 16px var(--gutter) 24px;
    background: var(--ink-900);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 28px 44px rgba(0, 0, 0, 0.55);
  }

  .site-header[data-open="true"] .primary-nav { display: flex; }

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

  .nav-list a {
    display: flex;
    align-items: center;
    padding: 13px 10px;
    font-size: 15px;
    border-bottom: 1px dashed var(--hair);
    border-radius: 0;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    padding-inline: 10px;
    border-radius: var(--radius);
    margin-block: 4px;
  }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

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

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 48px 36px;
  }

  .footer-cols { gap: 24px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }

  .header-status { display: none; }

  .site-footer { margin-top: 64px; }

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

@media (max-width: 560px) {
  .header-shell { padding-block: 10px; }

  .brand__name { font-size: 17px; }
  .brand__sub { letter-spacing: 0.1em; }

  .header-meta .btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: var(--radius) var(--radius) 8px var(--radius);
  }

  .nav-toggle { padding: 8px 10px; }
  .nav-toggle__label { display: none; }

  .footer-cols { grid-template-columns: 1fr; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .prose { font-size: 16px; }
}

/* ---------- 17. 减少动态偏好 ---------- */
@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;
  }

  .header-status__led { animation: none; }
  .btn:hover { transform: none; }
  .scroll-meter__bar { transition: none; }
}
