/* ============================================================
   盈嘉赛场 · 共享站点样式  /assets/site.css
   夜场指挥中心：玻璃浮岛导航 + 纸白实色内容层 + 荧光青数据色
   ============================================================ */

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

:root {
  --ink: #0B0D10;
  --ink-soft: #12161A;
  --green: #0F2A23;
  --paper: #F3F0EA;
  --brand: #FF3D18;
  --warm: #FF8A2B;
  --neon: #25F2D2;
  --cool: #9AA5AE;
  --line: #252B31;
  --line-soft: rgba(255, 255, 255, .08);
  --glass: rgba(255, 255, 255, .08);
  --alert: #FFC53D;

  --shell: 1240px;
  --gutter: 20px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --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, "Times New Roman", serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-lift: 0 18px 40px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(255, 61, 24, .16), transparent 62%),
    radial-gradient(920px 480px at -12% 14%, rgba(37, 242, 210, .10), transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--brand); color: #0B0D10; }

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

/* ---------- 排版 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  font-stretch: condensed;
  color: var(--paper);
}
h1 { font-size: clamp(32px, 5.6vw, 64px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.25; }
h4 { font-size: 17px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.muted, .text-cool { color: var(--cool); }

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

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

.section { padding: 64px 0; }
.section--tight { padding: 36px 0; }

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

/* ---------- 章节序题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--neon));
}

/* ---------- 面包屑 ---------- */
.breadcrumb { margin: 0 0 26px; font-size: 12.5px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cool);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #46505A; }
.breadcrumb a { color: var(--cool); transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb [aria-current="page"] { color: var(--paper); font-weight: 600; }

/* ---------- 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(243, 240, 234, .86);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(22px, 2.6vw, 32px); }
.prose h3 { margin-top: 1.8em; }
.prose p { margin: 0; }
.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--paper); }
.prose blockquote {
  margin: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--glass);
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--paper);
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--green), #0A1A16 72%);
  aspect-ratio: 16 / 9;
}
.media-frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0) 42%, rgba(11, 13, 16, .68) 100%);
}
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* ---------- 卡片 / 芯片 ---------- */
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.panel--paper { background: var(--paper); border-color: transparent; color: #14181C; }
.panel--paper h2, .panel--paper h3 { color: #14181C; }
.panel--paper p { color: #414A52; }
.panel--green { background: var(--green); border-color: rgba(37, 242, 210, .18); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--cool);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { color: var(--paper); border-color: #3A424A; }
.chip.is-active {
  background: var(--brand);
  border-color: transparent;
  color: #0B0D10;
  font-weight: 800;
}

/* ---------- 章节目录 ---------- */
.toc { position: sticky; top: 104px; display: grid; gap: 4px; }
.toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-left: 2px solid var(--line);
  color: var(--cool);
  font-size: 13.5px;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.toc-link:hover { color: var(--paper); background: var(--glass); }
.toc-link[aria-current] { color: var(--neon); border-color: var(--neon); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--warm));
  color: #0B0D10;
  box-shadow: 0 10px 24px rgba(255, 61, 24, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 61, 24, .36); }
.btn-ghost { background: var(--glass); border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 跳至内容 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #0B0D10;
  font-size: 14px;
  font-weight: 800;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ============================================================
   头部：悬浮玻璃胶囊
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0 0;
}
.header-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-island {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 13, 16, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42);
  transition: min-height .25s var(--ease), padding .25s var(--ease);
}
.site-header[data-scrolled="true"] .nav-island {
  min-height: 52px;
  padding: 4px 8px 4px 14px;
}

/* 品牌 */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { position: relative; display: inline-block; width: 26px; height: 26px; flex: 0 0 auto; }
.brand-mark span { position: absolute; display: block; width: 6px; border-radius: 2px; }
.brand-mark span:first-child {
  left: 0; top: 4px; height: 19px;
  background: var(--brand);
  transform: skewY(-7deg);
}
.brand-mark span:last-child {
  left: 10px; top: 1px; height: 24px;
  background: var(--neon);
  opacity: .92;
  transform: skewY(-7deg);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 16px; font-weight: 900; letter-spacing: .02em; color: var(--paper); }
.brand-line { margin-top: 4px; font-size: 10px; letter-spacing: .22em; color: var(--cool); }
.brand--footer { margin-bottom: 18px; }

/* 导航 */
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--cool);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link:hover { color: var(--paper); background: var(--glass); }
.nav-link:focus-visible { color: var(--paper); }
.nav-link[aria-current="page"] {
  background: linear-gradient(120deg, var(--brand), var(--warm));
  color: #0B0D10;
  font-weight: 800;
}

/* 工具区 */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: 6px; }

.alert-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--cool);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.alert-switch:hover { color: var(--paper); border-color: #3A424A; }
.alert-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cool);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.alert-label { white-space: nowrap; }
.alert-state {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .04em;
  color: #6E7A84;
}
.alert-switch[aria-pressed="true"] {
  color: var(--paper);
  border-color: rgba(37, 242, 210, .5);
  background: rgba(37, 242, 210, .10);
}
.alert-switch[aria-pressed="true"] .alert-dot {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(37, 242, 210, .8);
}
.alert-switch[aria-pressed="true"] .alert-state { color: var(--neon); }

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { border-color: #3A424A; }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-text { font-size: 13px; }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 顶部滚动进度 */
.scroll-progress {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--warm) 55%, var(--neon));
  box-shadow: 0 0 12px rgba(37, 242, 210, .45);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 96px;
  border-top: 1px solid rgba(37, 242, 210, .16);
  background: linear-gradient(180deg, var(--green) 0%, #0A1D18 58%, #071512 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--warm) 45%, var(--neon));
  opacity: .85;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(115deg, rgba(243, 240, 234, .28) 0 2px, transparent 2px 14px);
  opacity: .5;
}
.footer-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
  gap: 36px 28px;
}
.footer-tagline {
  max-width: 34ch;
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(243, 240, 234, .74);
}
.footer-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 18px;
  font-size: 13.5px;
}
.footer-contact dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cool);
  white-space: nowrap;
}
.footer-contact dd { margin: 0; color: rgba(243, 240, 234, .9); }
.footer-service-note {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(37, 242, 210, .4);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(154, 165, 174, .85);
}
.footer-col-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--neon);
}
.footer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-list a {
  font-size: 14px;
  color: rgba(243, 240, 234, .78);
  transition: color .18s var(--ease);
}
.footer-list a:hover { color: var(--neon); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--cool);
}
.footer-legal-line { flex: 1 1 320px; margin: 0; min-width: 0; }
.footer-legal-links { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer-legal-links a { color: var(--cool); transition: color .18s var(--ease); }
.footer-legal-links a:hover { color: var(--neon); }
.footer-copy {
  margin: 0;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 13, 16, .86);
  color: var(--paper);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s, color .18s var(--ease), border-color .18s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--neon); color: var(--neon); }

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

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 10px; font-size: 13px; }
  .brand-line { display: none; }
}

@media (max-width: 980px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-island { position: relative; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(11, 13, 16, .95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .site-header[data-open="true"] .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 16px; border-radius: 14px; font-size: 15px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .alert-label { display: none; }
  .section { padding: 44px 0; }
  .prose { font-size: 16px; }
  .toc { position: static; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .nav-island { min-height: 58px; }
}

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