/* ============================================================
   华体会赛场 · 共享样式 /assets/site.css
   夜场深墨绿 + 夜场蓝分区 · 荧光黄绿即时数据 · 切角面板
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, 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%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-green: #071A14;
  --night-blue: #081426;
  --pitch: #0F3D2E;
  --paper: #F2EAD8;
  --ink: #0B0F0D;
  --accent: #C8FF2E;
  --alert: #FF6B35;
  --cyan: #4CD7E8;
  --muted: #6E7F79;
  --muted-lift: #9BB0A9;
  --white: #F7FBF9;

  --line: rgba(247, 251, 249, 0.14);
  --line-soft: rgba(247, 251, 249, 0.08);
  --line-accent: rgba(200, 255, 46, 0.32);

  --cut: 16px;
  --cut-lg: 26px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 66px;

  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono CJK SC", "Courier New", monospace;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", Georgia, "SimSun", serif;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-green);
  background-image: repeating-linear-gradient(-45deg, rgba(200, 255, 46, 0.035) 0 1px, transparent 1px 96px);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 800; line-height: 1.22; letter-spacing: 0.005em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 4. 跳转与容器 ---------- */
.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 200;
  padding: 10px 18px; background: var(--accent); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}
.site-header[data-scrolled="true"] {
  background: rgba(8, 20, 38, 0.94);
  border-bottom-color: var(--line-accent);
  backdrop-filter: blur(10px);
}
.header-grid {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  min-height: var(--header-h);
  padding: 8px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.05em; color: var(--white); }
.brand-tagline {
  margin-top: 2px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted-lift);
}

.site-nav { flex: 1 1 auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: block;
  padding: 10px 12px;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(247, 251, 249, 0.86);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-link:hover { color: var(--accent); background: rgba(200, 255, 46, 0.06); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px;
  height: 2px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-accent); background: rgba(200, 255, 46, 0.05);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--accent);
  white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(247, 251, 249, 0.32);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--white);
  cursor: pointer;
}
.nav-toggle[data-open="true"], .nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.nav-toggle-icon { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 5px; transform: rotate(-45deg); }
.nav-toggle-text { line-height: 1; }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--line-soft);
}
.scroll-progress-bar {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.12s linear;
}

/* ---------- 6. 通用按钮与标签 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #DAFF63; }
.btn-ghost { border-color: rgba(247, 251, 249, 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-accent); background: rgba(200, 255, 46, 0.06);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent);
}
.chip-alert { border-color: rgba(255, 107, 53, 0.5); background: rgba(255, 107, 53, 0.08); color: var(--alert); }
.chip-muted { border-color: var(--line); background: transparent; color: var(--muted-lift); }

/* ---------- 7. 文字层级 ---------- */
.t-display { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; }
.t-h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; }
.t-h3 { font-size: clamp(1.05rem, 1.6vw, 1.32rem); font-weight: 700; }
.t-score {
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.6rem); line-height: 0.84; letter-spacing: -0.04em;
  color: var(--accent);
}
.t-lede { font-size: clamp(0.95rem, 1.3vw, 1.06rem); line-height: 1.9; color: rgba(247, 251, 249, 0.8); }
.t-body { font-size: 0.95rem; line-height: 1.9; color: rgba(247, 251, 249, 0.78); }
.t-note { font-size: 0.78rem; line-height: 1.7; color: var(--muted-lift); }
.t-mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.link-inline { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.link-inline:hover { color: var(--accent); }

/* ---------- 8. 分区与面板 ---------- */
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-blue { background: var(--night-blue); }
.section-pitch { background: var(--pitch); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .t-body, .section-paper .t-lede { color: rgba(11, 15, 13, 0.78); }
.section-paper .t-note { color: #5A6A64; }
.section-paper .eyebrow { color: var(--pitch); }
.section-paper .eyebrow::before { background: var(--pitch); }
.section-paper .t-score, .section-paper .stat-value { color: #0A5C3E; }

.panel { background: var(--pitch); padding: clamp(18px, 2.4vw, 28px); }
.panel-cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.panel-cut-lg { clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg))); }
.panel-paper { background: var(--paper); color: var(--ink); }
.panel-paper .t-body, .panel-paper .t-note { color: rgba(11, 15, 13, 0.75); }
.panel-blue { background: var(--night-blue); }
.panel-accent { background: var(--accent); color: var(--ink); }

/* ---------- 9. 网格与分屏 ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.split { display: grid; gap: clamp(20px, 3vw, 42px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

/* ---------- 10. 装饰语言 ---------- */
.tick-rule { height: 9px; background-image: repeating-linear-gradient(90deg, var(--line-accent) 0 1px, transparent 1px 14px); }
.diag-band { height: 5px; background-image: repeating-linear-gradient(-45deg, var(--accent) 0 8px, transparent 8px 18px); }
.frame-ticked {
  position: relative;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line-accent);
  background: linear-gradient(155deg, rgba(15, 61, 46, 0.55), rgba(7, 26, 20, 0.2));
}
.frame-ticked::before, .frame-ticked::after { content: ""; position: absolute; background: var(--accent); }
.frame-ticked::before { left: -1px; top: -1px; width: 30px; height: 3px; }
.frame-ticked::after { right: -1px; bottom: -1px; width: 30px; height: 3px; }

/* ---------- 11. 数据锚点 ---------- */
.stat { display: block; }
.stat-value {
  display: block;
  font-family: var(--font-mono); font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted-lift);
}

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--night-blue) 0%, var(--pitch) 62%, #123C2D 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 20, 0) 45%, rgba(7, 26, 20, 0.82) 100%);
}
.media-frame-4x3 { aspect-ratio: 4 / 3; }
.media-frame-3x4 { aspect-ratio: 3 / 4; }
.media-frame-1x1 { aspect-ratio: 1 / 1; }
.media-frame-wide { aspect-ratio: 21 / 9; }
.media-caption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--white);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumbs {
  padding: 14px 0;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted-lift);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(200, 255, 46, 0.5); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--white); }

/* ---------- 14. 标签页（联赛切换） ---------- */
.tabs { display: block; }
.tab-list {
  display: flex; gap: 6px; overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.tab {
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted-lift); cursor: pointer; white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] {
  color: var(--accent); border-bottom-color: var(--accent); background: rgba(200, 255, 46, 0.06);
}
.tab-panel { display: none; padding-top: 18px; }
.tab-panel[data-active="true"] { display: block; }

/* ---------- 15. 展开组（问答 / 适配清单） ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  width: 100%; padding: 16px 0 16px 14px;
  border-left: 3px solid transparent;
  font-size: 0.98rem; font-weight: 700; text-align: left; cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.acc-trigger:hover { background: rgba(200, 255, 46, 0.05); }
.acc-trigger[aria-expanded="true"] { border-left-color: var(--accent); color: var(--accent); }
.acc-icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 6px; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform 0.22s ease;
}
.acc-icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.acc-icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { display: none; padding: 0 0 18px 14px; }
.acc-panel[data-open="true"] { display: block; }

/* ---------- 16. 显现动效 ---------- */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 17. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--line-accent);
  color: var(--white);
}
.footer-inner {
  display: grid; gap: clamp(28px, 4vw, 56px);
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(24px, 4vw, 40px);
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.6fr); }
}
.footer-brand { display: block; }
.footer-brand-name { font-size: 1.24rem; font-weight: 800; letter-spacing: 0.06em; }
.footer-brand-note {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--accent);
}
.footer-contact-line {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem; line-height: 1.8; color: rgba(247, 251, 249, 0.84);
}
.footer-address { margin-top: 6px; font-size: 0.78rem; line-height: 1.8; color: var(--muted-lift); }
.footer-columns { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.footer-col { display: block; }
.footer-col-title {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent);
}
.footer-col-title::before { content: ""; width: 14px; height: 2px; background: var(--accent); }
.footer-list { display: block; }
.footer-link {
  display: inline-block; padding: 7px 0;
  font-size: 0.9rem; color: rgba(247, 251, 249, 0.82);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-link:hover { color: var(--accent); transform: translateX(3px); }
.footer-link[aria-current="page"] { color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 16px var(--gutter) 30px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted-lift);
}
.footer-icp { display: block; }
.footer-copy { display: block; }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1240px) {
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 1023px) {
  .site-header { background: rgba(7, 26, 20, 0.92); }
  .nav-toggle { display: inline-flex; }
  .header-grid { position: relative; flex-wrap: nowrap; }
  .brand-tagline { display: none; }
  .live-pill { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: block;
    padding: 6px var(--gutter) 18px;
    background: rgba(7, 26, 20, 0.985);
    border-top: 1px solid var(--line-accent);
    border-bottom: 1px solid var(--line-accent);
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }
  .site-nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 15px 0 15px 13px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav-link[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .brand-mark { width: 38px; height: 38px; font-size: 0.7rem; }
  .brand-name { font-size: 0.94rem; }
  .header-actions .btn-accent { padding: 10px 13px; font-size: 0.8rem; }
  .footer-base { justify-content: flex-start; }
}

/* ---------- 19. 降低动态效果 ---------- */
@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;
  }
  .live-dot { animation: none; }
  html.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
