/* ==========================================================================
   cq电游看台 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================================== */

/* ---------- 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%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; }
address { font-style: normal; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #060B18;
  --ink-800: #0B1226;
  --line-700: #1E2A45;
  --teal-900: #062B33;
  --cyan-400: #38E8FF;
  --cyan-700: #0B7F98;
  --gold-400: #F5C46B;
  --violet-500: #8A6BFF;
  --mist-050: #E9F1F7;
  --slate-400: #8CA0B8;
  --coral-500: #FF7A6B;

  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec: clamp(56px, 9vw, 132px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 50% -8%, rgba(11, 127, 152, .20), transparent 62%),
    radial-gradient(880px 520px at 88% 2%, rgba(138, 107, 255, .12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--mist-050);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--mist-050);
}
strong, b { font-weight: 600; color: #fff; }
::selection { background: rgba(56, 232, 255, .28); color: #fff; }

a { color: var(--cyan-400); text-decoration: none; }
a:hover { color: var(--cyan-400); }

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

#main-content { display: block; }

/* ---------- 4. 容器与跳过链接 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 220;
  transform: translate(-50%, -160%);
  padding: 10px 22px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-size: 14px;
  letter-spacing: .08em;
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--ink-900); }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 11, 24, .84);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-700);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 232, 255, .45), rgba(138, 107, 255, .35), transparent);
  pointer-events: none;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: clamp(15px, 2.2vw, 28px) 0 clamp(11px, 1.6vw, 20px);
}
.masthead-meta {
  max-height: 46px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .16em;
  color: var(--slate-400);
  transition: max-height .4s var(--ease), opacity .3s var(--ease);
}
.masthead-meta--left { display: flex; align-items: center; gap: 9px; }
.masthead-meta--right { text-align: right; }
.site-header[data-scrolled="true"] .masthead-meta { max-height: 0; opacity: 0; }

.meta-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 12px rgba(56, 232, 255, .85);
}

.brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--mist-050);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(56, 232, 255, .75);
  transition: box-shadow .3s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--cyan-400);
}
.brand:hover .brand-mark { box-shadow: 0 0 14px rgba(56, 232, 255, .65); }
.brand-name {
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 300;
  letter-spacing: .2em;
  white-space: nowrap;
}

.header-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  padding: 11px 0 13px;
  border-top: 1px solid var(--line-700);
}
.band-index {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--slate-400);
  opacity: .8;
}

/* ---------- 6. 导航 ---------- */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 32px);
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  letter-spacing: .1em;
  color: rgba(233, 241, 247, .8);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.nav-list a::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan-400);
  transition: width .28s var(--ease);
}
.nav-list a:hover { color: var(--cyan-400); }
.nav-list a:hover::before { width: 9px; }
.nav-list a[aria-current="page"] { color: var(--cyan-400); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-400), rgba(56, 232, 255, 0));
}

.nav-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 14px;
  border: 1px solid rgba(56, 232, 255, .32);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan-400);
  white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.nav-cta:hover {
  background: rgba(56, 232, 255, .12);
  border-color: var(--cyan-400);
  transform: translateY(calc(-50% - 2px));
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist-050);
}
.nav-toggle__label { white-space: nowrap; }
.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 10px;
}
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .25s var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 7. 页头响应式 ---------- */
@media (max-width: 1080px) {
  .band-index { display: none; }
  .nav-cta { position: static; transform: none; }
  .nav-cta:hover { transform: translateY(-2px); }
  .header-band { row-gap: 12px; }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }

  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 13px 0 9px;
  }
  .masthead-meta { display: none; }
  .brand { grid-column: 1; }
  .brand-name { font-size: clamp(20px, 6vw, 26px); letter-spacing: .16em; }

  .header-band {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0 10px;
  }
  .nav-toggle { display: inline-flex; order: 1; }
  .nav-cta {
    order: 2;
    margin-left: auto;
    padding: 6px 10px;
    font-size: 11px;
  }
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .site-nav[data-open="true"] { max-height: 60vh; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav-list li { border-top: 1px solid var(--line-700); }
  .nav-list li:first-child { border-top: 0; }
  .nav-list a { display: block; padding: 13px 2px; font-size: 16px; }
  .nav-list a::before { display: none; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-list a[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--cyan-400);
    color: var(--cyan-400);
  }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--sec);
  border-top: 1px solid var(--line-700);
  background: linear-gradient(180deg, rgba(11, 18, 38, .88) 0%, rgba(6, 11, 24, 1) 78%);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 232, 255, .5), rgba(138, 107, 255, .35), transparent);
}
.footer-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 80px);
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(28px, 4vw, 52px);
}
.footer-brand__name {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--mist-050);
}
.footer-brand__tag {
  margin-top: 12px;
  max-width: 24ch;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .14em;
  color: var(--slate-400);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.footer-col__title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan-400);
}
.footer-col__list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.footer-col__list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--slate-400);
  transition: color .22s var(--ease), padding-left .22s var(--ease);
}
.footer-col__list a:hover {
  color: var(--cyan-400);
  padding-left: 6px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 20px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line-700);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--slate-400);
}
.footer-contact__item { display: inline-flex; align-items: baseline; gap: 8px; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan-700);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate-400);
}
.footer-legal__icp { color: var(--slate-400); }
.footer-copyright { color: rgba(140, 160, 184, .82); }
.footer-year { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .footer-wrap { grid-template-columns: 1fr; gap: 30px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-columns { grid-template-columns: 1fr; }
}

/* ---------- 9. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--cyan-400);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.rule {
  position: relative;
  height: 1px;
  background: var(--line-700);
}
.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-400);
}

.section { padding-block: clamp(44px, 7vw, 96px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-700);
}
.section-head__title {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: .04em;
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--slate-400);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .blueprint-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-2, .span-3, .span-4 { grid-column: span 3; }
  .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 6; }
}
@media (max-width: 560px) {
  .blueprint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 2; }
}

.prose { max-width: 38em; }
.prose > * + * { margin-top: 1.05em; }
.prose p { color: rgba(233, 241, 247, .88); }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 2.6vw, 34px); }
.prose h3 { margin-top: 1.6em; font-size: clamp(19px, 2vw, 24px); }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose li { position: relative; padding-left: 20px; color: rgba(233, 241, 247, .88); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 1px;
  background: var(--cyan-700);
}
.prose a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(56, 232, 255, .4);
}
.prose a:hover { text-decoration-color: var(--cyan-400); }

.lede {
  max-width: 36em;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.95;
  color: rgba(233, 241, 247, .82);
}

.note {
  max-width: 34em;
  padding-left: 16px;
  border-left: 1px solid var(--line-700);
  font-size: 14px;
  font-style: italic;
  line-height: 1.85;
  color: var(--slate-400);
}

.panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-700);
  background: linear-gradient(160deg, rgba(11, 18, 38, .94), rgba(6, 11, 24, .94));
}
.panel--accent {
  border-color: rgba(56, 232, 255, .28);
  background: linear-gradient(160deg, rgba(6, 43, 51, .72), rgba(11, 18, 38, .94) 58%, rgba(138, 107, 255, .16));
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--violet-500);
}
.tag--gold { color: var(--gold-400); }
.tag--cyan { color: var(--cyan-400); }
.tag--violet { color: var(--violet-500); }
.tag--warn { color: var(--coral-500); }

.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.data--gold { color: var(--gold-400); }
.data--cyan { color: var(--cyan-400); }
.data--slate { color: var(--slate-400); }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; font-size: 15px; }
.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--slate-400);
}
.data-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-700);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--cyan-400);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(30, 42, 69, .72);
  color: rgba(233, 241, 247, .86);
  vertical-align: top;
}
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: rgba(56, 232, 255, .05); }
.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line-700);
  background: transparent;
  color: var(--mist-050);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
  transform: translateY(-2px);
}
.btn--solid {
  border-color: rgba(56, 232, 255, .4);
  background: linear-gradient(120deg, rgba(56, 232, 255, .16), rgba(138, 107, 255, .16));
  color: var(--mist-050);
}
.btn--solid:hover {
  background: linear-gradient(120deg, rgba(56, 232, 255, .26), rgba(138, 107, 255, .26));
  color: #fff;
}
.btn--ghost {
  padding-inline: 4px;
  border-color: transparent;
  color: var(--cyan-400);
}
.btn--ghost:hover {
  border-color: transparent;
  transform: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--slate-400);
}
.breadcrumb a { color: var(--slate-400); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb__sep { color: rgba(56, 232, 255, .5); }
.breadcrumb [aria-current="page"] { color: var(--mist-050); }

/* ---------- 10. 图片容器基础规则 ---------- */
.figure { margin: 0; }
.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-700);
  background: linear-gradient(150deg, rgba(6, 43, 51, .85), rgba(11, 18, 38, .96) 55%, rgba(138, 107, 255, .18));
}
.figure__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(30, 42, 69, .9) 1px, transparent 1px),
    linear-gradient(rgba(30, 42, 69, .9) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .5;
  pointer-events: none;
}
.figure__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .1em;
  color: var(--slate-400);
}
.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }

/* ---------- 11. 阅读进度刻度 ---------- */
.scroll-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 2px;
  background: rgba(30, 42, 69, .6);
  pointer-events: none;
}
.scroll-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-500));
}

/* ---------- 12. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack > * + * { margin-top: var(--stack, 16px); }

/* ---------- 13. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .site-nav, .nav-list a::before, .masthead-meta { transition: none !important; }
}
