/* ==========================================================================
   伟德指南 · 矩阵状态中枢
   共享样式表 /assets/site.css
   深海军蓝基底 + 电光青交互 + 暖金批次 + 品红切换
   ========================================================================== */

/* ---------------------------------------------------------------
   1. 设计令牌
   --------------------------------------------------------------- */
:root {
  /* 品牌色 */
  --navy: #0A1F44;
  --navy-2: #102A56;
  --navy-3: #081C3E;
  --navy-deep: #061430;
  --cyan: #00E5FF;
  --cyan-deep: #0090A6;
  --gold: #FFB800;
  --magenta: #FF2E93;
  --graphite: #1C2B3A;
  --mist: #E8EDF5;
  --white: #FFFFFF;
  --green: #00C48C;
  --red: #FF4D4F;

  /* 文本 */
  --ink: #12233D;
  --ink-strong: #0A1F44;
  --ink-soft: rgba(10, 31, 68, .66);
  --ink-faint: rgba(10, 31, 68, .42);
  --on-dark: #E8EDF5;
  --on-dark-soft: rgba(232, 237, 245, .7);
  --on-dark-faint: rgba(255, 255, 255, .5);

  /* 线 */
  --line: rgba(10, 31, 68, .12);
  --line-strong: rgba(10, 31, 68, .22);
  --line-dark: rgba(255, 255, 255, .1);
  --line-cyan: rgba(0, 229, 255, .24);

  /* 面 */
  --page-bg: #F4F7FC;
  --panel-bg: #FFFFFF;

  /* 尺度 */
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 74px;

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo,
    Consolas, "Liberation Mono", "Courier New", monospace;

  /* 圆角与投影 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-card: 0 20px 40px -34px rgba(10, 31, 68, .55);
  --shadow-lift: 0 24px 56px -30px rgba(10, 31, 68, .55);
}

/* ---------------------------------------------------------------
   2. Reset
   --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink-strong);
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl, dt, dd { margin: 0; }

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

button { font: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------------------------------------------------------------
   3. 焦点与可访问性
   --------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--gold);
  color: #2B1D00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .22s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------------------------------------------------------------
   4. 排版与通用文本
   --------------------------------------------------------------- */
.mono,
[data-clock],
.telemetry-item,
.badge,
.nav-index,
.brand-sub,
.section-kicker,
.breadcrumb,
.footer-col-title,
.footer-status,
.footer-contact-list dt,
.footer-copy { font-family: var(--font-mono); }

.text-sm { font-size: 14px; line-height: 1.7; }
.text-xs { font-size: 12.5px; line-height: 1.65; }
.text-muted { color: var(--ink-soft); }
.text-cyan { color: var(--cyan-deep); }
.text-gold { color: #8A6000; }
.text-magenta { color: #C4006B; }
.on-dark { color: var(--on-dark); }
.on-dark-soft { color: var(--on-dark-soft); }

/* ---------------------------------------------------------------
   5. 布局容器
   --------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.container-narrow {
  width: 100%;
  max-width: 76ch;
}

.section {
  padding: clamp(48px, 7vw, 96px) 0;
  position: relative;
}

.section--mist { background: var(--mist); }
.section--panel { background: var(--panel-bg); }

.section--dark {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(24px, 3.2vw, 44px);
}

.section-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan-deep);
  margin-bottom: 10px;
}

.section--dark .section-kicker { color: var(--cyan); }

.section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -.015em;
}

.section-desc {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section--dark .section-desc { color: var(--on-dark-soft); }

/* ---------------------------------------------------------------
   6. 面包屑
   --------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .18s ease;
}

.breadcrumb a:hover { color: var(--ink-strong); }

.breadcrumb [aria-current="page"] { color: var(--ink-strong); }

.section--dark .breadcrumb a,
.section--dark .breadcrumb li + li::before { color: var(--on-dark-faint); }

.section--dark .breadcrumb [aria-current="page"] { color: var(--cyan); }

/* ---------------------------------------------------------------
   7. 按钮
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
    border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn--primary {
  background: linear-gradient(120deg, var(--cyan) 0%, #52EEFF 100%);
  color: #04162E;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .4),
    0 14px 30px -16px rgba(0, 229, 255, .95);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .7),
    0 18px 34px -14px rgba(0, 229, 255, 1);
}

.btn--gold {
  background: var(--gold);
  color: #2B1D00;
  box-shadow: 0 14px 30px -18px rgba(255, 184, 0, .95);
}

.btn--gold:hover {
  background: #FFC93D;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .88);
}

.btn--ghost:hover {
  background: rgba(0, 229, 255, .14);
  border-color: rgba(0, 229, 255, .55);
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-strong);
}

.btn--outline:hover {
  background: rgba(0, 229, 255, .1);
  border-color: var(--cyan);
  color: var(--ink-strong);
}

/* ---------------------------------------------------------------
   8. 状态灯
   --------------------------------------------------------------- */
.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  color: var(--green);
  box-shadow: 0 0 10px currentColor;
}

.dot--live {
  background: var(--green);
  color: var(--green);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.dot--cyan { background: var(--cyan); color: var(--cyan); }
.dot--gold { background: var(--gold); color: var(--gold); }
.dot--alert { background: var(--red); color: var(--red); }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor; }
  50% { opacity: .45; box-shadow: 0 0 4px currentColor; }
}

/* ---------------------------------------------------------------
   9. 页头 · 指令条
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: #FFFFFF;
  background: linear-gradient(180deg, #0A1F44 0%, #0C2450 68%, #0B2149 100%);
  border-bottom: 1px solid var(--line-cyan);
  box-shadow: 0 18px 44px -32px rgba(4, 16, 36, .95);
}

.scroll-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 100%);
  box-shadow: 0 0 10px rgba(0, 229, 255, .85);
}

/* 遥测带 */
.header-telemetry {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .022);
}

.telemetry-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 34px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--on-dark-faint);
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telemetry-item--batch { color: rgba(232, 237, 245, .85); }

.telemetry-item--time {
  margin-left: auto;
  color: var(--cyan);
  letter-spacing: .14em;
}

/* 主命令栏 */
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: #FFFFFF;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: #04162E;
  background: linear-gradient(135deg, var(--cyan) 0%, #5BF0FF 55%, var(--gold) 100%);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .5),
    0 12px 26px -14px rgba(0, 229, 255, .95);
}

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

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .03em;
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--cyan);
  margin-top: 2px;
}

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(0, 229, 255, .09);
}

.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(0, 229, 255, .13);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.nav-index {
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--cyan);
  opacity: .78;
}

.nav-label {
  font-size: 15px;
  line-height: 1.2;
}

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

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 移动端索引导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, .35);
  background: rgba(0, 229, 255, .08);
  color: #EAF3FF;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.nav-toggle:hover { background: rgba(0, 229, 255, .18); }

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 184, 0, .16);
  border-color: rgba(255, 184, 0, .6);
  color: #FFE7B0;
}

.nav-toggle-bars {
  display: inline-grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

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

/* ---------------------------------------------------------------
   10. 页脚 · 数据底座
   --------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0B2149 0%, #081A38 55%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, .66);
  border-top: 1px solid rgba(0, 229, 255, .22);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 229, 255, .9) 28%,
    rgba(255, 184, 0, .75) 62%,
    transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr .9fr .9fr 1.25fr;
  gap: 44px 32px;
  padding: clamp(44px, 5vw, 62px) 0 clamp(36px, 4vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; }

.brand--footer .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 15px;
  border-radius: 9px;
}

.brand--footer .brand-name { font-size: 16px; }
.brand--footer .brand-sub { font-size: 10px; }

.footer-note {
  margin-top: 18px;
  max-width: 34rem;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--on-dark-faint);
}

.footer-status {
  margin-top: 20px;
  display: grid;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .62);
}

.footer-status li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--cyan);
  line-height: 1.4;
}

.footer-links-list {
  display: grid;
  gap: 11px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .68);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .18s ease;
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: rgba(0, 229, 255, .5);
  transform: rotate(45deg);
  transition: background-color .18s ease;
}

.footer-link:hover { color: #FFFFFF; }
.footer-link:hover::before { background: var(--gold); }

.footer-contact-list {
  display: grid;
  font-size: 14px;
}

.footer-contact-list dt {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(0, 229, 255, .72);
  margin-top: 14px;
}

.footer-contact-list dt:first-of-type { margin-top: 0; }

.footer-contact-list dd {
  margin-top: 3px;
  color: rgba(255, 255, 255, .74);
  line-height: 1.65;
  word-break: break-word;
}

.footer-base {
  border-top: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, .2);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--on-dark-faint);
}

.footer-copy {
  font-size: 12.5px;
  letter-spacing: .05em;
}

.footer-copy [data-year] { color: var(--cyan); }

.footer-base-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.footer-base-links a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .18s ease;
}

.footer-base-links a:hover { color: var(--cyan); }

.footer-sep { color: rgba(255, 255, 255, .26); }

/* ---------------------------------------------------------------
   11. 通用卡片与网格
   --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 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)); }

.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  background: var(--panel-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.panel--dark {
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
  border-color: var(--line-cyan);
  color: var(--on-dark);
  box-shadow: 0 26px 50px -34px rgba(4, 16, 36, .95);
}

.panel--dark h2,
.panel--dark h3,
.panel--dark h4 { color: #FFFFFF; }

.panel--glass {
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  box-shadow: none;
}

.panel--glass h2,
.panel--glass h3 { color: #FFFFFF; }

/* ---------------------------------------------------------------
   12. 标签
   --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.5;
  border: 1px solid rgba(0, 229, 255, .38);
  background: rgba(0, 229, 255, .1);
  color: var(--cyan-deep);
}

.badge--gold {
  border-color: rgba(255, 184, 0, .48);
  background: rgba(255, 184, 0, .15);
  color: #8A6000;
}

.badge--magenta {
  border-color: rgba(255, 46, 147, .42);
  background: rgba(255, 46, 147, .1);
  color: #C4006B;
}

.badge--green {
  border-color: rgba(0, 196, 140, .48);
  background: rgba(0, 196, 140, .12);
  color: #00785A;
}

.badge--on-dark {
  border-color: rgba(0, 229, 255, .42);
  background: rgba(0, 229, 255, .14);
  color: #7FF2FF;
}

/* ---------------------------------------------------------------
   13. 图片容器（页面阶段放置图片）
   --------------------------------------------------------------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-cyan);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .16) 0%, rgba(255, 46, 147, .1) 100%),
    #0B2149;
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.media-frame img,
.media-frame picture,
.media-frame picture > img,
.media-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
}

.media-frame__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.section--dark .media-frame__caption { color: var(--on-dark-soft); }

/* ---------------------------------------------------------------
   14. 正文排版
   --------------------------------------------------------------- */
.prose {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(10, 31, 68, .8);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 1.8em;
}

.prose h3 { font-size: 19px; }

.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }

.prose a {
  color: #00707F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--cyan-deep); }

.prose strong { color: var(--ink-strong); }

.section--dark .prose { color: var(--on-dark-soft); }
.section--dark .prose a { color: var(--cyan); }
.section--dark .prose strong { color: #FFFFFF; }

/* ---------------------------------------------------------------
   15. 显现动效
   --------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease,
    transform .62s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible { will-change: auto; }

/* ---------------------------------------------------------------
   16. 响应式
   --------------------------------------------------------------- */
@media (max-width: 1360px) and (min-width: 1201px) {
  .nav-link {
    padding: 10px 9px;
    gap: 6px;
    font-size: 14px;
  }
  .nav-index { font-size: 10px; }
  .nav-label { font-size: 14px; }
  .header-actions .btn--ghost { display: none; }
  .header-bar { gap: 14px; }
}

@media (max-width: 1200px) {
  .header-bar {
    height: 66px;
    gap: 14px;
  }

  .header-actions { display: none; }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin-left: 0;
    z-index: 5;
    background: var(--navy-3);
    border-top: 1px solid rgba(0, 229, 255, .18);
    border-bottom: 1px solid rgba(0, 229, 255, .18);
    box-shadow: 0 26px 52px -22px rgba(0, 0, 0, .9);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s cubic-bezier(.22, .61, .36, 1);
  }

  .primary-nav[data-open] {
    max-height: min(74vh, 560px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .nav-link {
    padding: 15px var(--gutter);
    border-radius: 0;
    font-size: 15.5px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
  }

  .nav-link:hover { background: rgba(0, 229, 255, .08); }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .telemetry-item--version { display: none; }
  .telemetry-inner { gap: 14px; font-size: 11.5px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

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

  .footer-base-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 26px;
  }

  .footer-base-links { margin-left: 0; }

  .brand-sub { display: none; }

  .brand-mark { width: 38px; height: 38px; font-size: 15px; }
}

@media (max-width: 420px) {
  .telemetry-item--time { display: none; }
  .nav-toggle-text { display: none; }
}

/* ---------------------------------------------------------------
   17. 减少动效
   --------------------------------------------------------------- */
@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;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
