/* ============================================================
   热竞技赛场 · 共享外壳样式  /assets/site.css
   夜间观测屏视觉：左轨导航 + 深墨绿底 + 荧光信号色
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, 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;
}

a { color: inherit; text-decoration: none; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B1F17;
  --carbon: #111417;
  --night: #162A22;
  --signal: #39F5C8;
  --signal-soft: #9BFFE4;
  --ember: #FF8A3D;
  --ember-soft: #FFC49B;
  --mist: #E9F2EC;
  --slate: #8EA6A0;
  --violet: #2B1E44;

  --line: rgba(233, 242, 236, 0.12);
  --line-soft: rgba(233, 242, 236, 0.07);
  --line-signal: rgba(57, 245, 200, 0.28);

  --rail-w: 272px;
  --shell-max: 1180px;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

/* ---------- base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -10%, rgba(57, 245, 200, 0.10), transparent 62%),
    radial-gradient(760px 520px at 8% 108%, rgba(255, 138, 61, 0.07), transparent 66%);
  background-repeat: no-repeat;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--mist);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { max-width: 68ch; }
p + p { margin-top: 0.9em; }

strong { color: var(--signal-soft); font-weight: 700; }

::selection { background: rgba(57, 245, 200, 0.28); color: var(--mist); }

:where(a, button, [tabindex], summary, input, textarea, select):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content:focus { outline: none; }

/* ---------- 通用容器与组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
}

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* 按钮族 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

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

.btn--ember {
  background: var(--ember);
  color: #12140F;
  box-shadow: 0 12px 26px rgba(255, 138, 61, 0.22);
}

.btn--ember:hover { background: var(--ember-soft); }

.btn--signal {
  background: rgba(57, 245, 200, 0.08);
  color: var(--signal);
  border-color: var(--line-signal);
}

.btn--signal:hover {
  background: rgba(57, 245, 200, 0.16);
  color: var(--signal-soft);
}

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

.btn--ghost:hover {
  border-color: var(--line-signal);
  color: var(--signal);
}

.btn--block { width: 100%; }

/* 面板 */
.panel {
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}

.panel--violet {
  background: linear-gradient(158deg, var(--violet) 0%, #161129 72%);
  border-color: rgba(155, 255, 228, 0.18);
}

.panel--signal {
  border-color: var(--line-signal);
  box-shadow:
    0 0 0 1px rgba(57, 245, 200, 0.07),
    0 26px 60px rgba(0, 0, 0, 0.34);
}

/* 图片容器基础规则 */
.figure-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 76% 14%, rgba(57, 245, 200, 0.18), transparent 58%),
    linear-gradient(155deg, #17302A 0%, #0B1F17 74%);
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(57, 245, 200, 0.18);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
  z-index: 2;
}

.figure-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--square { aspect-ratio: 1 / 1; }

.figure-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 23, 0.78);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--signal-soft);
}

/* 面包屑 */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

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

.breadcrumb__item { display: inline-flex; align-items: center; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(142, 166, 160, 0.55);
}

.breadcrumb__link {
  color: var(--slate);
  transition: color 160ms var(--ease);
}

.breadcrumb__link:hover { color: var(--signal); }

.breadcrumb__item[aria-current="page"] { color: var(--mist); }

/* 页内章节目录 */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.toc__link {
  display: block;
  padding: 9px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate);
  font-size: 14.5px;
  line-height: 1.5;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.toc__link:hover {
  color: var(--mist);
  background: rgba(57, 245, 200, 0.06);
}

.toc__link[aria-current="true"] {
  color: var(--signal);
  border-left-color: var(--signal);
  background: rgba(57, 245, 200, 0.09);
}

/* 滚动进度 / 返回顶部 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal-soft) 62%, var(--ember) 100%);
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-signal);
  background: rgba(22, 42, 34, 0.94);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease),
    visibility 200ms var(--ease),
    background-color 160ms var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: rgba(57, 245, 200, 0.12); }

.to-top__arrow {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--signal);
  color: #08140F;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0B1F17 0%, #101C17 100%);
  border-bottom: 1px solid var(--line);
}

.site-header__rail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 24px);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

/* 品牌 */
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: opacity 160ms var(--ease);
}

.site-header__brand:hover { opacity: 0.86; }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line-signal);
  background:
    radial-gradient(circle at 32% 26%, rgba(57, 245, 200, 0.30), rgba(57, 245, 200, 0) 66%),
    var(--night);
}

.brand-mark__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(57, 245, 200, 0.9);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(57, 245, 200, 0.62);
}

.brand-mark::before {
  top: 5px;
  left: 5px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 4px 0 0 0;
}

.brand-mark::after {
  bottom: 5px;
  right: 5px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 4px 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.brand-text__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--signal);
}

/* 移动端开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-signal);
  background: rgba(57, 245, 200, 0.07);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-toggle:hover { background: rgba(57, 245, 200, 0.15); }

.nav-toggle__lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.site-header[data-open] .nav-toggle__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__lines span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 抽屉 / 面板 */
.site-header__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px clamp(14px, 4vw, 24px) 24px;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  background: #0F241C;
  border-bottom: 1px solid var(--line-signal);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.site-header[data-open] .site-header__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 导航 */
.site-header__nav { min-height: 0; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 18px;
  border-radius: 14px;
  color: var(--slate);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(142, 166, 160, 0.72);
  transition: color 160ms var(--ease);
}

.site-nav__label { flex: 1; }

.site-nav__link:hover {
  color: var(--mist);
  background: rgba(57, 245, 200, 0.07);
}

.site-nav__link:hover .site-nav__index { color: var(--signal); }

.site-nav__link[aria-current="page"] {
  color: var(--signal);
  background: rgba(57, 245, 200, 0.11);
  font-weight: 700;
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--signal); }

.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(57, 245, 200, 0.85);
}

/* 状态区 */
.site-header__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-signal);
  border-radius: var(--radius-pill);
  background: rgba(57, 245, 200, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--signal-soft);
}

.status-chip__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  animation: signal-pulse 2.8s ease-in-out infinite;
}

.status-chip__text { line-height: 1.5; }

@keyframes signal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 245, 200, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(57, 245, 200, 0); opacity: 0.72; }
}

.site-header__actions {
  display: grid;
  gap: 8px;
}

.site-header__help {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(142, 166, 160, 0.45);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-header__help:hover {
  color: var(--signal);
  border-color: var(--line-signal);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 7vw, 96px);
  padding: clamp(40px, 6vw, 76px) clamp(18px, 5vw, 44px) 26px;
  background: var(--carbon);
  border-top: 1px solid var(--line-signal);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 245, 200, 0.55), transparent);
}

.site-footer__scope {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 245, 200, 0.15), transparent 66%);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
}

.site-footer__brand { grid-column: 1 / -1; }

.site-footer__brand-line {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--mist);
}

.site-footer__summary {
  margin-top: 12px;
  max-width: 28ch;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.site-footer__cta { margin-top: 20px; }

.site-footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__link {
  display: inline-block;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.6;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.site-footer__link:hover {
  color: var(--signal-soft);
  transform: translateX(2px);
}

.site-footer__contact { min-width: 0; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__item {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(142, 166, 160, 0.9);
}

.footer-contact__value {
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.65;
  word-break: break-word;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.site-footer__legal,
.site-footer__copy { max-width: none; color: var(--slate); }

/* ============================================================
   断点
   ============================================================ */
@media (min-width: 720px) {
  body { font-size: 17.5px; }

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

  .site-footer__brand { grid-column: 1 / -1; }

  html { scroll-padding-top: 104px; }
}

@media (min-width: 1080px) {
  html { scroll-padding-top: 36px; }

  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0B1F17 0%, #111417 58%, #0A1A14 100%);
  }

  .site-header__rail {
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 26px 20px 22px;
  }

  .site-header__top {
    width: auto;
    justify-content: flex-start;
  }

  .nav-toggle { display: none; }

  .site-header__panel {
    position: static;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: none;
    margin-top: 26px;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-header__nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
  }

  .site-header__meta {
    margin-top: auto;
    gap: 11px;
  }

  .site-nav__link { font-size: 15px; }

  .brand-text__line { font-size: 18px; }

  .site-footer { padding-inline: clamp(24px, 4vw, 56px); }
}

@media (min-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.15fr;
    gap: clamp(28px, 3vw, 56px);
  }

  .site-footer__brand { grid-column: auto; }
}

/* ---------- 无障碍动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .status-chip__dot { animation: none; }
  .btn:hover,
  .site-footer__link:hover { transform: none; }
}
