/* =========================================================
   新利看台 — 共享样式表 /assets/site.css
   母版：海报式分层 + 紧凑命令栏 + 夜间赛场屏幕配色
   ========================================================= */

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

html {
  background: var(--ink-900);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }

/* ---------- 02. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #07111F;
  --ink-800: #0B1B2E;
  --panel: #10263D;
  --lime: #B6FF3B;
  --orange: #FF8A2A;
  --ice: #F2F7FB;
  --cool: #A7B4C2;
  --muted: #5E7590;
  --grid: #223A52;
  --ok: #3DDC97;
  --amber: #FFC857;
  --on-lime: #04101C;

  /* 字体 */
  --font-display: "Arial Narrow", "Helvetica Neue Condensed", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺寸与动效 */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --dur: .24s;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 03. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: transparent;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .01em;
}

/* 精密网格底噪 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 58, 82, .38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 58, 82, .38) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .55;
}

a { transition: color var(--dur) var(--ease); }

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

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: -70px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 04. 内容容器与分区 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--ink { background: var(--ink-800); }
.section--panel { background: var(--panel); }

.divider {
  height: 1px;
  border: 0;
  background: var(--grid);
}

/* ---------- 05. 标题系统 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: clamp(22px, 3vw, 38px);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.06;
}
.section-lead { color: var(--cool); font-size: 15px; line-height: 1.85; }
.lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.8; color: var(--cool); }
.hint { font-size: 12px; line-height: 1.7; color: var(--muted); letter-spacing: .04em; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.num-xl {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.tint-lime { color: var(--lime); }
.tint-warm { color: var(--orange); }

/* ---------- 06. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--grid);
  border-radius: 0;
  background: transparent;
  color: var(--ice);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { border-color: var(--lime); color: var(--lime); }

.btn-accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
}
.btn-accent:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-lime);
}

.btn-ghost { background: transparent; border-color: var(--grid); color: var(--ice); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); background: rgba(182, 255, 59, .07); }

.btn-block { width: 100%; }

/* ---------- 07. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 17, 31, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grid);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(7, 17, 31, .98);
  border-bottom-color: var(--muted);
}

.header-rail {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 9px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  min-height: 58px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--dur) var(--ease);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ice);
  transition: color var(--dur) var(--ease);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand:hover .brand-mark { background: var(--orange); }
.brand:hover .brand-name { color: var(--lime); }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cool);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, .18);
}
.status-text { color: var(--cool); }
.status-flag {
  padding-left: 8px;
  border-left: 1px solid var(--grid);
  color: var(--orange);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.site-nav { min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, .9vw, 14px);
  counter-reset: navi;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px 9px;
  border-bottom: 2px solid transparent;
  color: var(--cool);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-link::before {
  counter-increment: navi;
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ice); border-bottom-color: var(--orange); }
.nav-link:hover::before { color: var(--orange); }
.nav-link[aria-current="page"] { color: var(--lime); border-bottom-color: var(--lime); }
.nav-link[aria-current="page"]::before { color: var(--lime); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--grid);
  color: var(--ice);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle-text { display: inline-block; }
.nav-toggle-bars { position: relative; width: 16px; height: 10px; flex: 0 0 16px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { bottom: 4px; transform: rotate(-45deg); }

/* ---------- 08. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--ink-800);
  border-top: 1px solid var(--grid);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(120px, 22vw, 320px);
  height: 3px;
  background: var(--lime);
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, rgba(182, 255, 59, .12), rgba(255, 138, 42, .07));
  transform: rotate(24deg);
  pointer-events: none;
}

.footer-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(38px, 5vw, 64px) var(--gutter) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3vw, 40px);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-left: 18px;
  border-left: 2px solid var(--lime);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .01em;
}
.footer-line { max-width: 34ch; color: var(--cool); font-size: 13px; line-height: 1.8; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  position: relative;
  display: inline-block;
  font-size: 13px;
  color: var(--cool);
  transition: color var(--dur) var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width var(--dur) var(--ease);
}
.footer-link:hover { color: var(--ice); }
.footer-link:hover::after { width: 100%; }

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value { font-size: 13px; line-height: 1.7; color: var(--ice); word-break: break-word; }

.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  padding: 18px 0 22px;
  border-top: 1px solid var(--grid);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 09. 栅格 ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-rail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--grid); }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current="page"] { color: var(--cool); }

/* ---------- 11. 面板 / 标签 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--panel);
  border: 1px solid var(--grid);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.panel:hover { border-color: var(--muted); }
.panel--accent { border-left: 2px solid var(--lime); }
.panel--warm { border-left: 2px solid var(--orange); }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grid);
}
.panel-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
}
.panel-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}
.panel-body { color: var(--cool); font-size: 13.5px; line-height: 1.8; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--grid);
  background: rgba(16, 38, 61, .6);
  color: var(--cool);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tag-live { border-color: rgba(182, 255, 59, .5); background: rgba(182, 255, 59, .08); color: var(--lime); }
.tag-warm { border-color: rgba(255, 138, 42, .5); background: rgba(255, 138, 42, .08); color: var(--orange); }
.tag-soft { border-color: rgba(255, 200, 87, .4); background: rgba(255, 200, 87, .08); color: var(--amber); }

/* ---------- 12. 数据表 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--grid);
  background: rgba(11, 27, 46, .6);
}
.data-table { min-width: 520px; font-size: 13px; }
.data-table th {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(34, 58, 82, .6);
  color: var(--cool);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--dur) var(--ease); }
.data-table tbody tr:hover { background: rgba(16, 38, 61, .75); }
.data-table .num { color: var(--ice); }

/* ---------- 13. 数据概览 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lime);
}
.stat-value--warm { color: var(--orange); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.meter {
  height: 6px;
  background: rgba(34, 58, 82, .8);
  border: 1px solid var(--grid);
  overflow: hidden;
}
.meter-fill { display: block; height: 100%; background: var(--lime); transition: width .6s var(--ease); }
.meter-fill--warm { background: var(--orange); }

/* ---------- 14. 媒体容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grid);
  background: var(--ink-800);
}
.media img,
.media picture,
.media video { width: 100%; height: 100%; }
.media img,
.media video { object-fit: cover; display: block; }
.media picture { display: block; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(182, 255, 59, .12);
}
.media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(7, 17, 31, .94), rgba(7, 17, 31, 0));
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--cool);
}
.cut-corner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

/* ---------- 15. 横向主题带 ---------- */
.rail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
.rail-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}
.rail-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.rail-track > * { flex: 0 0 auto; }

/* ---------- 16. 交互增强 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--grid);
  background: var(--panel);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), visibility var(--dur);
  z-index: 70;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--lime); background: var(--ink-800); }

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-status { display: none; }
}

@media (max-width: 960px) {
  .header-rail {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand actions toggle"
      "nav nav nav";
    gap: 10px;
  }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; justify-content: flex-end; }
  .nav-toggle { grid-area: toggle; display: inline-flex; }
  .site-nav { grid-area: nav; display: none; border-top: 1px solid var(--grid); }
  .site-nav[data-open="true"] { display: block; animation: navDrop .22s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 10px; }
  .nav-link { padding: 13px 4px; border-bottom: 1px solid rgba(34, 58, 82, .6); font-size: 14px; }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link:hover { border-bottom-color: var(--grid); }
  .nav-link[aria-current="page"] { border-bottom-color: var(--lime); }
  .header-actions .btn { padding: 9px 12px; font-size: 12px; }
  .brand-sub { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .grid-3, .grid-4, .grid-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3, .grid-4, .grid-rail { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rail { flex-wrap: wrap; }
  .rail-track { width: 100%; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 18. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .to-top { transition: none; }
}
