/* ============================================================
   /assets/site.css — 共享外壳与基础组件
   尊龙凯寸通用 · 夜间控制台视觉系统
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --ink-900: #070D18;
  --ink-800: #0E1728;
  --ink-700: #17233A;
  --line-600: #2A3A57;
  --gold-500: #E5B65C;
  --gold-200: #F6E3B4;
  --teal-400: #3ACBB0;
  --paper-100: #F4EEE2;
  --slate-300: #9FB0C9;
  --clay-500: #C2703F;

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-body: 17px;
  --lh-body: 1.75;

  --radius-s: 3px;
  --radius-m: 6px;
  --header-z: 80;
}

html[data-type-size="s"] { --fs-body: 15.5px; }
html[data-type-size="m"] { --fs-body: 17px; }
html[data-type-size="l"] { --fs-body: 19px; }
html[data-type-size="xl"] { --fs-body: 21.5px; }

html[data-leading="tight"] { --lh-body: 1.6; }
html[data-leading="normal"] { --lh-body: 1.75; }
html[data-leading="loose"] { --lh-body: 1.95; }

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper-100);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 620px at 8% -6%, rgba(229, 182, 92, 0.09), transparent 68%),
    radial-gradient(760px 540px at 96% 4%, rgba(58, 203, 176, 0.07), transparent 70%),
    linear-gradient(to right, rgba(42, 58, 87, 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 58, 87, 0.20) 1px, transparent 1px);
  background-size: auto, auto, 88px 88px, 88px 88px;
  background-attachment: fixed, fixed, fixed, fixed;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.24;
  margin: 0;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line-600); }

::selection {
  background: var(--gold-500);
  color: #0A1220;
}

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

/* ---------- 布局 ---------- */
.shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

.section { padding-block: clamp(56px, 7vw, 104px); }

.section__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 10px;
}

.section__title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  color: var(--paper-100);
  max-width: 30ch;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 跳转与焦点 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 11px 18px;
  background: var(--gold-500);
  color: #0A1220;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: transform 0.18s ease-out;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn--sm { font-size: 12.5px; padding: 9px 14px; letter-spacing: 0.08em; }
.btn--primary {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #0A1220;
  font-weight: 700;
}
.btn--primary:hover { background: var(--gold-200); border-color: var(--gold-200); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-600);
  color: var(--paper-100);
}
.btn--ghost:hover { border-color: var(--teal-400); color: var(--teal-400); }
.btn:active { transform: translateY(1px); }

/* ---------- 状态灯 ---------- */
.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(58, 203, 176, 0.16);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(58, 203, 176, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(58, 203, 176, 0.04); }
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: rgba(7, 13, 24, 0.97);
  border-bottom: 1px solid var(--line-600);
}

.scroll-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(42, 58, 87, 0.55);
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-500), var(--teal-400));
}

.header-top {
  max-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(42, 58, 87, 0.8);
  transition: max-height 0.28s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.site-header[data-scrolled] .header-top {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}

.header-top__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper-100);
  min-width: 0;
}
.brand__seal {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-s);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(150deg, rgba(229, 182, 92, 0.16), rgba(229, 182, 92, 0));
}
.brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.brand__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate-300);
  line-height: 1.4;
  white-space: nowrap;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(229, 182, 92, 0.35);
  border-radius: var(--radius-s);
  background: rgba(229, 182, 92, 0.07);
}
.version-badge__code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gold-500);
}
.version-badge__label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate-300);
}

.header-main { border-top: 1px solid rgba(42, 58, 87, 0.55); }
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 7px;
}

.header-mini {
  display: none;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper-100);
  white-space: nowrap;
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { position: relative; }
.nav__item + .nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 13px;
  background: var(--line-600);
}

.nav__link {
  position: relative;
  display: block;
  padding: 13px 20px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-out, background-color 0.2s ease;
}
.nav__link:hover { color: var(--paper-100); }
.nav__link:hover::after {
  transform: scaleX(1);
  background: var(--teal-400);
}
.nav__link[aria-current="page"] { color: var(--gold-500); }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold-500);
}

.nav__foot { display: none; }
.nav__foot-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-500);
  margin: 0 0 12px;
}
.nav__foot-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--slate-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 58, 87, 0.5);
}
.nav__foot-link:hover { color: var(--teal-400); }

/* ---------- 汉堡按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-s);
  color: var(--paper-100);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--teal-400); color: var(--teal-400); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.16s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

/* ---------- 抽屉遮罩 ---------- */
.nav-scrim { display: none; }

body.is-nav-open { overflow: hidden; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 120px);
  background: var(--ink-800);
  border-top: 1px solid var(--line-600);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 34%, var(--teal-400) 68%, transparent);
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.2vw, 52px);
  padding-block: clamp(40px, 5vw, 72px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-500);
  margin: 0 0 16px;
  line-height: 1.4;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper-100);
}
.footer-brand__seal {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-s);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.footer-note {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--slate-300);
}
.footer-note--sm { font-size: 12.5px; margin-top: 14px; max-width: 32ch; }

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-200);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-list__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.footer-list__link:hover {
  color: var(--paper-100);
  padding-left: 4px;
}

.footer-list--contact { gap: 12px; }
.footer-contact { display: flex; flex-direction: column; gap: 3px; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--slate-300);
  opacity: 0.8;
}
.footer-contact__val {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-100);
  word-break: break-word;
}

.footer-legal {
  border-top: 1px solid rgba(42, 58, 87, 0.85);
  background: var(--ink-900);
}
.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}
.footer-legal__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--slate-300);
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}
.footer-legal__link {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-legal__link:hover { color: var(--teal-400); }

/* ============================================================
   阅读适配面板
   ============================================================ */
.type-panel {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 220;
  width: min(262px, calc(100vw - 24px));
  background: rgba(14, 23, 40, 0.98);
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  font-size: 13px;
  overflow: hidden;
}
.type-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--teal-400));
}
.type-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px 11px;
}
.type-panel__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold-500);
}
.type-panel__fold {
  padding: 4px 9px;
  background: transparent;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-s);
  color: var(--slate-300);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.type-panel__fold:hover { color: var(--teal-400); border-color: var(--teal-400); }
.type-panel__body {
  padding: 0 13px 13px;
  border-top: 1px solid rgba(42, 58, 87, 0.7);
}
.type-panel[data-collapsed] .type-panel__body { display: none; }
.type-panel__group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
}
.type-panel__label {
  flex: none;
  width: 30px;
  padding-top: 5px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate-300);
}
.type-panel__btns { display: flex; flex-wrap: wrap; gap: 5px; }
.type-chip {
  padding: 5px 9px;
  background: transparent;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-s);
  color: var(--slate-300);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.type-chip:hover { color: var(--paper-100); border-color: var(--slate-300); }
.type-chip[aria-pressed="true"] {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #0A1220;
  font-weight: 700;
}

/* ============================================================
   返回顶部
   ============================================================ */
.to-top {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 210;
  padding: 10px 15px;
  background: var(--ink-700);
  border: 1px solid var(--line-600);
  border-radius: var(--radius-s);
  color: var(--gold-200);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.16s ease, color 0.16s ease;
}
.to-top:hover { border-color: var(--gold-500); color: var(--gold-500); }
.to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================================================
   页面通用组件
   ============================================================ */
.prose { max-width: 64ch; }
.prose p {
  margin: 0 0 1.1em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--paper-100);
}
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin: 1.8em 0 0.7em;
  color: var(--paper-100);
}
.prose h3 {
  font-size: 1.08rem;
  margin: 1.6em 0 0.6em;
  color: var(--gold-200);
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}
.prose li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: 0.4em;
}
.prose a { color: var(--teal-400); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--gold-200); }

.lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.72;
  color: var(--slate-300);
  margin: 0 0 1.2em;
}

/* 面包屑 */
.breadcrumb { margin-bottom: clamp(20px, 2.6vw, 32px); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-300);
}
.breadcrumb__link {
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.16s ease;
}
.breadcrumb__link:hover { color: var(--teal-400); }
.breadcrumb__sep { color: var(--line-600); }
.breadcrumb__current { color: var(--gold-500); }

/* 面板 */
.panel {
  background: var(--ink-700);
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  padding: clamp(18px, 2.4vw, 28px);
}
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(42, 58, 87, 0.85);
}
.panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper-100);
}

/* 图片容器 */
.figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-600);
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, rgba(23, 35, 58, 0.92), rgba(7, 13, 24, 0.96));
}
.figure__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.figure__frame img,
.figure__frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure__caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-600);
  background: rgba(7, 13, 24, 0.6);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--slate-300);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-600);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--slate-300);
  line-height: 1.4;
}
.tag--gold { color: var(--gold-500); border-color: rgba(229, 182, 92, 0.45); }
.tag--teal { color: var(--teal-400); border-color: rgba(58, 203, 176, 0.45); }

/* 数据指标 */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-500);
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--slate-300);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .header-top { max-height: 240px; }
  .header-top__inner { gap: 14px; flex-wrap: wrap; }
  .header-top__meta { gap: 8px; }
  .brand__desc { white-space: normal; }

  .header-mini { display: inline-flex; }
  .header-rail { gap: 8px; }
  .version-badge--rail { display: none; }
  .header-rail .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    display: block;
    width: min(84vw, 360px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 96px 24px 36px;
    background: var(--ink-800);
    border-right: 1px solid var(--line-600);
    box-shadow: 28px 0 64px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 0.26s ease-out;
  }
  .nav[data-open] { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { border-bottom: 1px solid rgba(42, 58, 87, 0.55); }
  .nav__item + .nav__item::before { display: none; }
  .nav__link {
    padding: 16px 6px 16px 20px;
    font-size: 17px;
    letter-spacing: 0.03em;
  }
  .nav__link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    border-radius: 2px;
    background: var(--gold-500);
  }
  .nav__link:hover::after {
    transform: translateY(-50%) scaleY(1);
    background: var(--teal-400);
  }
  .nav__link[aria-current="page"]::after {
    transform: translateY(-50%) scaleY(1);
    background: var(--gold-500);
  }

  .nav__foot {
    display: block;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(42, 58, 87, 0.6);
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(3, 6, 12, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .nav-scrim[data-open] { opacity: 1; pointer-events: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

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

@media (max-width: 680px) {
  .header-top__meta .btn { font-size: 12px; padding: 8px 11px; }
  .brand__seal { width: 34px; height: 34px; font-size: 16px; }
  .brand__name { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col--brand { grid-column: auto; }
  .footer-legal__inner { justify-content: flex-start; }

  .type-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; }
  .to-top { bottom: 12px; left: 12px; }
}

/* ============================================================
   无动效偏好
   ============================================================ */
@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;
  }
  .to-top { transform: none; }
}
