/* ============ 变量与重置 ============ */
:root {
  --bg: #0A192F;
  --bg-deep: #060F1F;
  --bg-card: #112240;
  --bg-card-soft: rgba(17, 34, 64, .6);
  --accent: #FF6B00;
  --accent-soft: rgba(255, 107, 0, .14);
  --data: #00C9A7;
  --data-soft: rgba(0, 201, 167, .16);
  --text: #FFFFFF;
  --muted: #A8B2D1;
  --border: #1D2D50;
  --yellow: #FFD700;
  --red: #FF3366;
  --font-display: 'Archivo Black', Archivo, 'Arial Narrow Bold', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-data: 'JetBrains Mono', 'Cascadia Code', SFMono-Regular, Consolas, 'Courier New', monospace;
  --sidebar-w: 272px;
  --rail-w: 216px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 16px 40px rgba(2, 8, 20, .42);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { text-decoration: none; color: inherit; }

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

::selection { background: var(--accent); color: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  padding: 0 var(--rail-w) 0 var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(38px, 5vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { line-height: 1.75; }

/* ============ 全局头部 ============ */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -220%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  z-index: 999;
  pointer-events: auto;
  transition: transform .25s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(168, 178, 209, .15);
  z-index: 400;
  pointer-events: none;
}

.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--data) 100%);
  transition: width .12s linear;
}

.header-side {
  pointer-events: auto;
  position: relative;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-right: 1px solid var(--border);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  padding: 9px 16px 8px;
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  letter-spacing: .02em;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-type-cn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
}

.brand-type-en {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--data);
  text-transform: uppercase;
}

.sidebar-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 4px 12px;
}

.sidebar-index {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  white-space: nowrap;
}

.sidebar-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--border), transparent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 230;
  transition: border-color .2s;
}

.nav-toggle:hover { border-color: var(--accent); }

.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: top .25s, bottom .25s, transform .25s, box-shadow .25s;
}

.nav-toggle-icon::before {
  top: 0;
  box-shadow: 0 6px 0 currentColor;
}

.nav-toggle-icon::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 6px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: 6px;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.site-nav { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item { line-height: 1.2; }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: color .2s, background .2s, border-left-color .2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
  border-left-color: var(--data);
}

.nav-link[aria-current="page"] {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 107, 0, .14), transparent 85%);
  border-left-color: var(--accent);
  font-weight: 600;
}

.nav-link[aria-current="page"] .nav-index { color: var(--accent); opacity: 1; }

.nav-index {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--data);
  opacity: .65;
  letter-spacing: .08em;
}

.nav-label { display: block; }

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 16px 4px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}

.header-rail {
  pointer-events: auto;
  width: var(--rail-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 16px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 25, 47, .6) 100%);
  border-left: 1px solid var(--border);
}

.rail-search { position: relative; }

.search-input {
  width: 100%;
  padding: 11px 38px 11px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}

.search-input::placeholder { color: var(--muted); }

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.search-glyph {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%) rotate(-45deg);
  border: 2px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.search-glyph::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: calc(100% - 1px);
  width: 7px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
}

.rail-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--data);
  box-shadow: 0 0 0 3px var(--data-soft);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}

.status-text {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--data);
}

.rail-score {
  font-family: var(--font-data);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .04em;
}

.rail-note { font-size: 11px; color: var(--muted); }

/* ============ 全局页脚 ============ */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 34, 64, .55), var(--bg-deep));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -40%;
  right: 8%;
  width: 30%;
  height: 180%;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 14px, rgba(0, 201, 167, .05) 14px, rgba(0, 201, 167, .05) 28px);
  transform: skewX(-8deg);
  pointer-events: none;
}

.footer-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .brand-lockup { margin-bottom: 14px; }

.footer-statement {
  max-width: 44ch;
  font-size: 14px;
  color: var(--muted);
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--data);
}

.footer-list li { margin-bottom: 6px; }

.footer-list a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s, padding-left .2s;
}

.footer-list a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-list {
  color: var(--muted);
  font-size: 14px;
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  opacity: .8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.footer-copy { font-family: var(--font-data); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal a {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s;
}

.footer-legal a:hover { color: var(--accent); }

.footer-icp {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 12px;
}

/* ============ 正文容器与基础组件 ============ */
.container-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 48px 96px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }

.sep {
  color: var(--border);
  font-family: var(--font-data);
}

.breadcrumb-current { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #ff7f1f;
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(255, 107, 0, .28);
}

.card-panel {
  position: relative;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform .25s var(--ease), border-color .25s;
}

.card-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, .45);
}

.frame-panel {
  position: relative;
  padding: 36px;
  margin-top: 4px;
  background: linear-gradient(160deg, var(--bg-card-soft), rgba(10, 25, 47, .4));
  border: 1px solid var(--border);
}

.frame-panel::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 26px;
  height: 26px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}

.frame-panel::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border-right: 3px solid var(--data);
  border-bottom: 3px solid var(--data);
}

.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  color: var(--data);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
}

.chip--yellow { color: var(--yellow); border-color: rgba(255, 215, 0, .35); }
.chip--red { color: var(--red); border-color: rgba(255, 51, 102, .35); }
.chip--green { color: var(--data); border-color: rgba(0, 201, 167, .35); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--data);
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.section-title { margin-bottom: 8px; }
.section-sub { margin-bottom: 20px; color: var(--muted); }

.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)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.deco-line {
  position: relative;
  overflow: hidden;
}

.deco-line::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -12%;
  width: 45%;
  height: 160%;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 12px, rgba(255, 107, 0, .06) 12px, rgba(255, 107, 0, .06) 24px);
  transform: skewX(-10deg);
  pointer-events: none;
}

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  aspect-ratio: 16 / 9;
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 4 / 5; }

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 1px, transparent 1px, transparent 12px), linear-gradient(135deg, rgba(255, 107, 0, .12), transparent 50%);
  opacity: .75;
  pointer-events: none;
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-section] { scroll-margin-top: 24px; }
[data-section].is-in-view { box-shadow: inset 3px 0 0 var(--accent); }

/* ============ 响应式断点 ============ */
@media (max-width: 1279.98px) {
  :root { --sidebar-w: 224px; }
  body { padding-right: 0; }
  .header-rail { display: none; }
  .header-side { padding: 24px 20px 20px; }
}

@media (max-width: 1023.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  body { padding: var(--header-h) 0 0; }
  .site-header { display: block; }
  .header-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: rgba(6, 15, 31, .96);
    border-right: 0;
    border-bottom: 1px solid var(--border);
    z-index: 240;
  }
  .brand-lockup { gap: 10px; }
  .brand-mark { font-size: 24px; padding: 6px 12px 6px; }
  .brand-type-en { display: none; }
  .brand-type-cn { font-size: 13px; }
  .sidebar-divider,
  .sidebar-foot { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px 14px 24px;
    background: rgba(6, 15, 31, .98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
  }
  .site-nav[data-open] { display: block; }
  .nav-link { padding: 13px 14px; font-size: 16px; }
  .header-rail { display: none; }
  .container-page { padding: 32px 20px 80px; }
  .footer-wrap { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-icp { margin-left: 0; }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .frame-panel { padding: 24px 20px; }
}

/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .status-dot { animation: none; }
  .reading-progress__bar { transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
