/* ==========================================================================
   AYX官网入口 · 共享样式 /assets/site.css
   夜航索引台：左侧轨道 + 堆叠画板
   ========================================================================== */

:root {
  --ink: #070D16;
  --panel: #0E1A29;
  --rock: #5E6A72;
  --cool: #E8EDF0;
  --cyan: #35E0D0;
  --orange: #FF7A2F;
  --moss: #7C8F6A;
  --clay: #B86B4B;
  --cream: #F2EADF;
  --hover: #1B3440;

  --rail-w: 96px;
  --bar-h: 64px;
  --line: rgba(94, 106, 114, 0.38);
  --line-soft: rgba(94, 106, 114, 0.2);

  --f-display: "Oswald", "Barlow Condensed", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --f-body: "Inter", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-serif: "Source Serif 4", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
}

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

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

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ---------- 中文基础排版 ---------- */
html, body { min-height: 100%; }

body {
  padding-left: var(--rail-w);
  background:
    radial-gradient(1200px 620px at 84% -12%, rgba(53, 224, 208, 0.08), transparent 62%),
    radial-gradient(900px 520px at 6% 108%, rgba(255, 122, 47, 0.07), transparent 64%),
    var(--ink);
  background-attachment: fixed;
  color: var(--cool);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--cool);
}

h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }

p { text-wrap: pretty; }

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--bar-h) + 16px);
}

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1400;
  padding: 10px 18px;
  background: var(--cream);
  color: #0A131F;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-left: 3px solid var(--orange);
  transform: translateY(-160%);
  transition: transform 0.22s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   头部：左侧轨道（桌面） / 顶部条 + 抽屉（移动）
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #08101C 0%, #070D16 46%, #0A1420 100%);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 46px -34px rgba(0, 0, 0, 0.95);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 47, 0));
  pointer-events: none;
}

.header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--cool);
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--cyan);
  display: grid;
  place-items: center;
  transition: border-color 0.22s ease;
}

.brand-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.16);
  transition: background 0.22s ease;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: translate(6px, 6px);
  opacity: 0.4;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--cool);
  transition: color 0.22s ease;
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--rock);
}

.brand:hover .brand-name { color: var(--cyan); }
.brand:hover .brand-mark { border-color: var(--orange); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--cool);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 12px;
}

.nav-toggle-box span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.2s ease;
}

.nav-toggle-text { line-height: 1; }

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 47, 0.08);
}
.site-header[data-open="true"] .nav-toggle-box span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle-box span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- 轨道导航 ---------- */
.rail-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 6px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail-title {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--rock);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
}

.rail-link {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 4px;
  border-left: 2px solid transparent;
  color: rgba(232, 237, 240, 0.82);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.rail-num {
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1;
  color: var(--rock);
  transition: color 0.22s ease;
}

.rail-label {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rail-link:hover {
  background: rgba(27, 52, 64, 0.75);
  border-left-color: var(--cyan);
}
.rail-link:hover .rail-label { color: #FFFFFF; }
.rail-link:hover .rail-num { color: var(--cyan); }

.rail-link[aria-current="page"] {
  background: var(--hover);
  border-left-color: var(--orange);
}
.rail-link[aria-current="page"] .rail-label {
  color: #FFFFFF;
  font-weight: 600;
}
.rail-link[aria-current="page"] .rail-num { color: var(--orange); }

.rail-foot {
  margin-top: auto;
  padding: 14px 8px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rail-foot-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--rock);
  text-align: center;
}

.rail-progress {
  position: relative;
  width: 2px;
  height: 56px;
  flex: 0 0 auto;
  background: rgba(94, 106, 114, 0.28);
  overflow: hidden;
}

.rail-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--cyan), rgba(53, 224, 208, 0.28));
  transition: height 0.15s linear;
}

/* ---------- 右上角固定入口 ---------- */
.fixed-entry {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 1240;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.fixed-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: rgba(7, 13, 22, 0.86);
  border: 1px solid var(--orange);
  box-shadow: 0 0 0 1px rgba(7, 13, 22, 0.9), 0 10px 26px -16px rgba(255, 122, 47, 0.7);
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  animation: entry-pulse 3.8s ease-in-out infinite;
}

.fixed-entry-link:hover,
.fixed-entry-link:focus-visible {
  background: var(--orange);
  color: #0A0F16;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 122, 47, 0.45), 0 14px 32px -14px rgba(255, 122, 47, 0.85);
}

.fixed-entry-dot {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transition: background 0.22s ease;
}

.fixed-entry-link:hover .fixed-entry-dot,
.fixed-entry-link:focus-visible .fixed-entry-dot { background: #0A0F16; }

.fixed-entry-text { line-height: 1; }

@keyframes entry-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(7, 13, 22, 0.9), 0 10px 26px -16px rgba(255, 122, 47, 0.55); }
  50% { box-shadow: 0 0 0 1px rgba(255, 122, 47, 0.38), 0 12px 28px -12px rgba(255, 122, 47, 0.9); }
}

/* ---------- 抽屉遮罩 ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 8, 14, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* ==========================================================================
   通用内容组件
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.section { padding-block: clamp(36px, 6vw, 84px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(24px, 4vw, 48px);
}

/* ---------- 栏目索引头 ---------- */
.index-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.index-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.index-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.04em;
  color: var(--cool);
}

/* ---------- 画板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 7px 7px 0 -1px rgba(27, 52, 64, 0.55), 0 22px 44px -38px #000000;
}

.panel--paper {
  background: var(--cream);
  color: #101A24;
  border-color: #D9CDBD;
  box-shadow: 7px 7px 0 -1px rgba(94, 106, 114, 0.35), 0 22px 44px -40px #000000;
}

.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: #0D1721; }

.panel--paper .tag {
  background: rgba(16, 26, 36, 0.07);
  color: #16303C;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 9px;
  border-left: 3px solid var(--rock);
  background: rgba(27, 52, 64, 0.6);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--cool);
}

.tag--cyan {
  border-left-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 208, 0.08);
}

.tag--orange {
  border-left-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 122, 47, 0.08);
}

.tag--moss {
  border-left-color: var(--moss);
  color: #C3D6B0;
  background: rgba(124, 143, 106, 0.16);
}

.tag--clay {
  border-left-color: var(--clay);
  color: #E9B098;
  background: rgba(184, 107, 75, 0.16);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cool);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn--primary {
  border-color: var(--orange);
  color: var(--cream);
  background: rgba(255, 122, 47, 0.1);
}
.btn--primary:hover {
  background: var(--orange);
  color: #0A0F16;
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 208, 0.07);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--rock);
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(94, 106, 114, 0.6);
}

.breadcrumbs a { color: rgba(232, 237, 240, 0.75); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- 正文排版 ---------- */
.prose {
  max-width: 72ch;
  color: rgba(232, 237, 240, 0.84);
  font-size: 17px;
  line-height: 1.8;
}

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

.prose h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: 0.03em;
  color: var(--cool);
  margin-top: 1.9em;
}

.prose h3 {
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--cool);
  margin-top: 1.5em;
}

.prose strong { color: #FFFFFF; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(53, 224, 208, 0.4);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { padding-left: 1.25em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }

.prose blockquote {
  border-left: 3px solid var(--clay);
  padding-left: 16px;
  font-family: var(--f-serif);
  font-size: 19px;
  color: var(--cream);
}

.quote-serif {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--cream);
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

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

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #0E1A29, #0A1320);
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(53, 224, 208, 0.14);
  pointer-events: none;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--paper {
  background: var(--cream);
  border-color: #D9CDBD;
}
.media-frame--paper::after { box-shadow: inset 0 0 0 1px rgba(16, 26, 36, 0.12); }

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 0.8, 0.28, 1);
}

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

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 26, 41, 0.96), rgba(7, 13, 22, 0.99));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 224, 208, 0));
}

.footer-shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) clamp(18px, 4vw, 56px) 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(28px, 4vw, 64px);
}

.footer-brand {
  border-left: 2px solid var(--cyan);
  padding-left: clamp(14px, 2vw, 22px);
}

.footer-brand-link {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.04em;
  color: var(--cool);
  transition: color 0.2s ease;
}
.footer-brand-link:hover { color: var(--cyan); }

.footer-tagline {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-lead {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232, 237, 240, 0.72);
}

.footer-tag {
  margin-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}

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

.footer-col-title {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rock);
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(232, 237, 240, 0.84);
  transition: color 0.2s ease;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--rock);
  transform: translateY(-50%);
  transition: width 0.2s ease, background 0.2s ease;
}

.footer-links a:hover { color: var(--cyan); }
.footer-links a:hover::before { width: 10px; background: var(--cyan); }

.footer-contact { display: block; }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(94, 106, 114, 0.28);
}
.contact-row:first-child { padding-top: 0; }

.contact-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--rock);
}

.contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cool);
  overflow-wrap: anywhere;
}

.contact-value--mono {
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.footer-legal {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--rock);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a {
  font-size: 12.5px;
  color: rgba(232, 237, 240, 0.7);
  transition: color 0.2s ease;
}
.footer-legal-links a:hover { color: var(--orange); }

.footer-note {
  flex: 1 1 100%;
  max-width: 74ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(94, 106, 114, 0.95);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand {
    border-left: 0;
    padding-left: 0;
    border-top: 2px solid var(--cyan);
    padding-top: 16px;
  }
  .footer-lead { max-width: 52ch; }
}

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
  }

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

  .site-header {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--bar-h);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 13, 22, 0.94);
    box-shadow: 0 18px 40px -34px #000000;
  }

  .site-header::before {
    background: linear-gradient(90deg, var(--orange), var(--cyan) 55%, rgba(53, 224, 208, 0));
  }

  .header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    padding: 0 clamp(12px, 3vw, 20px);
    border-bottom: 0;
    background: rgba(7, 13, 22, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .brand {
    flex-direction: row;
    gap: 10px;
  }

  .brand-mark { width: 22px; height: 22px; }

  .brand-mark::before { width: 7px; height: 7px; }

  .brand-mark::after { transform: translate(5px, 5px); }

  .brand-text {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .brand-name { font-size: 18px; letter-spacing: 0.06em; }

  .brand-sub { font-size: 10px; letter-spacing: 0.14em; }

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

  .rail-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    width: min(86vw, 340px);
    height: calc(100dvh - var(--bar-h));
    padding: 20px 14px 26px;
    background: linear-gradient(160deg, #0B1522, #070D16 72%);
    border-right: 1px solid var(--line);
    box-shadow: 34px 0 70px -44px #000000;
    overflow-y: auto;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1), visibility 0.3s ease;
    z-index: 1;
  }

  .site-header[data-open="true"] .rail-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .rail-title {
    text-align: left;
    font-size: 10px;
    padding-bottom: 12px;
  }

  .rail-list { gap: 2px; margin-top: 14px; }

  .rail-link {
    padding: 13px 12px;
    gap: 12px;
    border-left-width: 3px;
  }

  .rail-num { font-size: 11px; }
  .rail-label { font-size: 15px; font-style: normal; }

  .rail-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 12px 0;
    gap: 14px;
  }

  .rail-foot-label { text-align: left; font-size: 10px; }

  .rail-progress {
    width: 84px;
    height: 2px;
  }

  .rail-progress-bar {
    bottom: auto;
    top: 0;
    height: 100%;
    width: var(--p, 0%);
    background: linear-gradient(90deg, var(--cyan), rgba(53, 224, 208, 0.28));
    transition: width 0.15s linear;
  }

  .site-header[data-open="true"] + .nav-scrim {
    opacity: 1;
    visibility: visible;
  }

  .fixed-entry {
    top: auto;
    right: 12px;
    bottom: 14px;
  }

  .fixed-entry-link {
    padding: 8px 13px;
    gap: 7px;
    font-size: 12px;
    letter-spacing: 0.06em;
    animation: none;
    box-shadow: 0 0 0 1px rgba(7, 13, 22, 0.9), 0 12px 26px -16px rgba(255, 122, 47, 0.8);
  }

  body.is-nav-open .fixed-entry {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal-links { gap: 14px; }
  .grid--12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .index-head { flex-wrap: wrap; gap: 6px 12px; }
  .btn { width: 100%; justify-content: center; }
}

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

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

  .fixed-entry-link { animation: none; }
}
