/* ============================================================
   ARENA-BO / site.css —— 共享外壳与通用组件
   深空蓝基底 · 霓虹青/电光紫渐变 · 荧光绿数据高亮
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--bar) + 16px); }

/* ---------- tokens ---------- */
:root {
  --c-void: #07111F;
  --c-deep: #0B1B33;
  --c-cyan: #33E6FF;
  --c-violet: #8B5CF6;
  --c-lime: #B6FF3B;
  --c-mist: #A9C4DA;
  --c-ice: #EAF6FF;
  --c-line: #1D2C44;
  --c-warn: #FF9F45;

  --rail: 108px;
  --bar: 64px;
  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
  --bevel: 16px;

  --font-display: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- base / 中文排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar);
  color: var(--c-mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  background-color: var(--c-void);
  background-image:
    radial-gradient(900px 620px at 92% -12%, rgba(139, 92, 246, .26), transparent 62%),
    radial-gradient(760px 520px at 4% 12%, rgba(51, 230, 255, .16), transparent 60%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(51, 230, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 230, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 78%);
}
main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--c-ice);
}
h1 { font-size: clamp(30px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 2.1vw, 24px); }
p { max-width: 60ch; }
strong { color: var(--c-ice); font-weight: 700; }
::selection { background: rgba(51, 230, 255, .32); color: var(--c-ice); }

:focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible { outline-offset: 4px; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--c-lime);
  color: #05131F;
  font: 700 13px/1 var(--font-mono);
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header：桌面左轨道 ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0B1B33 0%, #07111F 55%, #050C16 100%);
  border-right: 1px solid var(--c-line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
}

.header-rail {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 10px 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--c-ice);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #04121C;
  font: 800 15px/1 var(--font-mono);
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-lime) 58%, var(--c-cyan));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 18px rgba(51, 230, 255, .35);
}
.brand-text { display: block; }
.brand-name {
  display: block;
  font: 700 12px/1.3 var(--font-display);
  letter-spacing: .06em;
  color: var(--c-ice);
}
.brand-sub {
  display: block;
  margin-top: 3px;
  font: 600 8px/1 var(--font-mono);
  letter-spacing: .18em;
  color: var(--c-cyan);
  opacity: .85;
}

/* 抽屉开关（桌面隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: rgba(11, 27, 51, .85);
  color: var(--c-ice);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.nav-toggle:hover { border-color: rgba(51, 230, 255, .55); background: rgba(51, 230, 255, .1); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-cyan);
  transition: transform .2s var(--ease), opacity .2s var(--ease), width .2s var(--ease);
}
.nav-toggle-bars span:nth-child(2) { width: 70%; }
.nav-toggle-label { font: 700 11px/1 var(--font-mono); letter-spacing: .14em; }
.site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

/* 遮罩（仅移动端出现） */
.nav-scrim { display: none; }

/* 导航 */
.site-nav {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-note {
  font: 700 9px/1.5 var(--font-mono);
  letter-spacing: .16em;
  text-align: center;
  color: rgba(169, 196, 218, .62);
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: block; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-left: 2px solid transparent;
  border-radius: 3px;
  color: var(--c-mist);
  text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.nav-index {
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .12em;
  color: rgba(51, 230, 255, .7);
  transition: color .16s var(--ease);
}
.nav-label { font: 500 12px/1.2 var(--font-body); letter-spacing: .02em; }
.nav-link:hover {
  background: rgba(51, 230, 255, .08);
  border-left-color: rgba(51, 230, 255, .55);
  color: var(--c-ice);
}
.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(51, 230, 255, .18), rgba(139, 92, 246, .07));
  border-left-color: var(--c-lime);
  color: var(--c-ice);
}
.nav-link[aria-current="page"] .nav-index { color: var(--c-lime); }

.nav-cta {
  margin-top: auto;
  width: 100%;
  padding: 10px 4px;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
}
.nav-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .1em;
  color: rgba(182, 255, 59, .88);
  max-width: none;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-lime);
  box-shadow: 0 0 8px var(--c-lime);
  flex: 0 0 auto;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 700 14px/1.2 var(--font-display);
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #04121C;
  background: linear-gradient(120deg, var(--c-cyan), #7FF3FF 46%, var(--c-lime));
  box-shadow: 0 8px 24px -12px rgba(51, 230, 255, .95);
}
.btn--primary:hover { box-shadow: 0 14px 32px -12px rgba(51, 230, 255, 1); }
.btn--ghost {
  color: var(--c-ice);
  border-color: rgba(51, 230, 255, .45);
  background: rgba(51, 230, 255, .06);
}
.btn--ghost:hover { background: rgba(51, 230, 255, .14); border-color: var(--c-cyan); }

/* ---------- 布局容器与章节 ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}
.section { position: relative; padding: clamp(48px, 7vw, 96px) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.section-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-lime), transparent);
}
.section-title {
  display: inline-block;
  font: 800 clamp(24px, 3.2vw, 40px)/1.14 var(--font-display);
  color: var(--c-ice);
  transform: skewX(-2.5deg);
  transform-origin: left top;
}
.section-lead { max-width: 44ch; font-size: 16px; color: var(--c-mist); }

/* 斜切速度分割带 */
.slash-divider {
  height: clamp(30px, 5vw, 64px);
  background: linear-gradient(90deg, rgba(51, 230, 255, 0), rgba(51, 230, 255, .5), rgba(139, 92, 246, .55), rgba(7, 17, 31, 0));
  clip-path: polygon(0 78%, 100% 0, 100% 26%, 0 100%);
  opacity: .6;
}

/* ---------- 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(155deg, rgba(11, 27, 51, .96), rgba(7, 17, 31, .94));
  border: 1px solid var(--c-line);
  clip-path: polygon(var(--bevel) 0, 100% 0, 100% calc(100% - var(--bevel)),
                     calc(100% - var(--bevel)) 100%, 0 100%, 0 var(--bevel));
}
.panel--glow { border-color: rgba(51, 230, 255, .35); }
.panel--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at 100% 0%, rgba(139, 92, 246, .22), transparent 70%);
}

/* ---------- 原子组件 ---------- */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: var(--c-lime);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(51, 230, 255, .35);
  border-radius: 2px;
  background: rgba(51, 230, 255, .08);
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: .1em;
  color: var(--c-cyan);
}
.tag--violet {
  border-color: rgba(139, 92, 246, .45);
  background: rgba(139, 92, 246, .14);
  color: #C9B6FF;
}
.tag--lime {
  border-color: rgba(182, 255, 59, .42);
  background: rgba(182, 255, 59, .1);
  color: var(--c-lime);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0 0;
  font: 600 12px/1.6 var(--font-mono);
  letter-spacing: .06em;
  color: rgba(169, 196, 218, .72);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(51, 230, 255, .55); }
.breadcrumb a { color: var(--c-mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb [aria-current="page"] { color: var(--c-ice); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- 图片容器（页面阶段放置占位） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(51, 230, 255, .18), transparent 60%),
    linear-gradient(160deg, #0B1B33, #07111F 70%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(51, 230, 255, .16), transparent 46%, rgba(139, 92, 246, .2));
  mix-blend-mode: screen;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-cap {
  margin-top: 8px;
  font: 500 11px/1.6 var(--font-mono);
  letter-spacing: .06em;
  color: rgba(169, 196, 218, .72);
}

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

/* ---------- 阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-lime));
  box-shadow: 0 0 12px rgba(51, 230, 255, .7);
  transition: width .1s linear;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 6vw, 72px) var(--gutter) 26px;
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  background: linear-gradient(180deg, rgba(11, 27, 51, .92), rgba(5, 12, 22, .98));
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(51, 230, 255, .16), transparent 70%),
    radial-gradient(520px 240px at 82% 10%, rgba(139, 92, 246, .2), transparent 70%);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  opacity: .6;
  background: linear-gradient(90deg, transparent, var(--c-cyan), var(--c-violet), transparent);
}
.footer-inner {
  position: relative;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 44px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 64px);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.brand--footer {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.brand--footer .brand-mark { width: 46px; height: 46px; }
.brand--footer .brand-name { font-size: 14px; }
.footer-tagline {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(169, 196, 218, .88);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--c-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-link:hover { color: var(--c-ice); border-bottom-color: var(--c-cyan); }

.footer-contact { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.65;
  max-width: none;
}
.contact-key {
  min-width: 4.6em;
  font: 700 10px/1.7 var(--font-mono);
  letter-spacing: .16em;
  color: rgba(51, 230, 255, .82);
}
.contact-val { color: rgba(234, 246, 255, .84); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(29, 44, 68, .9);
}
.legal-line {
  font: 500 11.5px/1.7 var(--font-mono);
  letter-spacing: .04em;
  color: rgba(169, 196, 218, .66);
  max-width: none;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-link {
  font: 500 11.5px/1.7 var(--font-mono);
  letter-spacing: .06em;
  color: rgba(169, 196, 218, .8);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.legal-link:hover { color: var(--c-cyan); }

/* ---------- 平板 / 移动：顶栏 + 抽屉 ---------- */
@media (max-width: 1023px) {
  .site-header {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--bar);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(14px, 4vw, 24px);
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
    background: linear-gradient(180deg, #0B1B33, #07111F);
  }
  .site-header::before { height: 2px; }
  .header-rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0;
  }
  .brand { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 7.5px; letter-spacing: .16em; }
  .nav-toggle { display: inline-flex; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(4, 10, 18, .72);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease);
  }
  .site-header[data-open="true"] .nav-scrim { opacity: 1; pointer-events: auto; }

  .site-nav {
    position: fixed;
    top: var(--bar);
    bottom: 0;
    left: 0;
    z-index: 2;
    width: min(320px, 86vw);
    gap: 14px;
    padding: 22px clamp(16px, 4vw, 24px) 28px;
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .24s var(--ease);
    border-right: 1px solid var(--c-line);
    background: linear-gradient(180deg, #0B1B33, #050C16);
  }
  .site-header[data-open="true"] .site-nav { transform: translateX(0); }
  html.nav-open { overflow: hidden; }

  .nav-note { text-align: left; font-size: 10px; }
  .nav-list { gap: 4px; }
  .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 10px;
  }
  .nav-index { font-size: 10px; min-width: 2ch; }
  .nav-label { font-size: 14px; letter-spacing: .06em; }
  .nav-cta { margin-top: 8px; padding: 13px 10px; font-size: 13px; }
  .nav-status { justify-content: flex-start; font-size: 11px; }

  .scroll-progress { top: var(--bar); }
}

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-key { min-width: 4.2em; }
}

/* ---------- 桌面：内容让出轨道 ---------- */
@media (min-width: 1024px) {
  body { padding-top: 0; padding-left: var(--rail); }
  .scroll-progress { left: var(--rail); }
}

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