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

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

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

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

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

a {
  color: inherit;
}

button {
  font: inherit;
}

:root {
  --c-void: #070B14;
  --c-panel: #0E1726;
  --c-panel-2: #131F31;
  --c-cyan: #38E8FF;
  --c-amber: #FF9A3D;
  --c-violet: #8B5CF6;
  --c-white: #EAF2FF;
  --c-mist: #8FA3BF;
  --c-green: #4ADE80;
  --c-red: #FF5C7A;

  --line-soft: rgba(143, 163, 191, 0.18);
  --line-cyan: rgba(56, 232, 255, 0.38);
  --line-amber: rgba(255, 154, 61, 0.4);

  --font-display: "Archivo Narrow", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --rail-w: 272px;
  --mobile-head: 64px;
  --content-max: 1180px;
  --gutter: clamp(18px, 4vw, 54px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--c-white);
  background-color: var(--c-void);
  background-image:
    radial-gradient(1100px 640px at 82% -8%, rgba(56, 232, 255, 0.1), transparent 62%),
    radial-gradient(820px 560px at 4% 104%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(620px 420px at 96% 82%, rgba(255, 154, 61, 0.07), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(234, 242, 255, 0.028) 0,
    rgba(234, 242, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
}

#main-content {
  scroll-margin-top: 84px;
}

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

/* ============ 通用工具 ============ */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #04202A;
  background: var(--c-cyan);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(7, 11, 20, 0.9), 0 12px 30px -18px rgba(56, 232, 255, 0.9);
  transform: translateY(-170%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ============ 按钮 ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  color: var(--c-white);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.btn--primary {
  color: #04202A;
  background: linear-gradient(135deg, #6FF0FF, var(--c-cyan) 55%, #1FB9D8);
  border-color: transparent;
  box-shadow: 0 10px 26px -16px rgba(56, 232, 255, 0.95);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #9DF6FF, #58EEFF 55%, var(--c-cyan));
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--c-cyan);
  background: rgba(56, 232, 255, 0.07);
  border-color: var(--line-cyan);
}

.btn--ghost:hover {
  color: var(--c-white);
  background: rgba(56, 232, 255, 0.16);
  border-color: rgba(56, 232, 255, 0.65);
}

.btn--amber {
  color: var(--c-amber);
  background: rgba(255, 154, 61, 0.1);
  border-color: var(--line-amber);
}

.btn--amber:hover {
  color: var(--c-white);
  background: rgba(255, 154, 61, 0.22);
}

.btn--block {
  display: flex;
  width: 100%;
}

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

/* ============ 头部轨道 ============ */

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--rail-w);
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.96), rgba(7, 11, 20, 0.99));
  border-right: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(56, 232, 255, 0.6) 0%,
    rgba(56, 232, 255, 0) 46%,
    rgba(255, 154, 61, 0.45) 100%
  );
}

.header-rail {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 18px 22px;
  gap: 18px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--c-white);
  transition: opacity 0.2s var(--ease);
}

.brand-mark:hover {
  opacity: 0.85;
}

.brand-glyph {
  display: grid;
  align-content: center;
  gap: 4px;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 7px;
  background: linear-gradient(150deg, rgba(56, 232, 255, 0.2), rgba(255, 154, 61, 0.16));
  box-shadow: inset 0 0 0 1px rgba(56, 232, 255, 0.55);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand-glyph__bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 1px;
  background: var(--c-cyan);
}

.brand-glyph__bar:nth-child(2) {
  width: 68%;
  background: var(--c-amber);
}

.brand-glyph__bar:nth-child(3) {
  width: 42%;
  background: var(--c-mist);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-text__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.brand-text__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(143, 163, 191, 0.9);
}

.rail-rule {
  display: block;
  flex: 0 0 1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 232, 255, 0.5), rgba(56, 232, 255, 0));
}

.rail-note {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(143, 163, 191, 0.72);
}

/* ============ 移动导航按钮 ============ */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--c-cyan);
  background: rgba(56, 232, 255, 0.08);
  border: 1px solid var(--line-cyan);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle:hover {
  color: var(--c-white);
  background: rgba(56, 232, 255, 0.18);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label {
  white-space: nowrap;
}

.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);
}

/* ============ 侧边轨道导航 ============ */

.site-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item {
  display: block;
}

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--c-mist);
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--c-white);
  background: rgba(56, 232, 255, 0.08);
  border-left-color: rgba(56, 232, 255, 0.55);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  color: var(--c-white);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-white);
  background: linear-gradient(90deg, rgba(56, 232, 255, 0.18), rgba(56, 232, 255, 0));
  border-left-color: var(--c-cyan);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--c-cyan);
}

.site-nav__index {
  flex: 0 0 auto;
  min-width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(143, 163, 191, 0.7);
  transition: color 0.18s var(--ease);
}

.site-nav__label {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__foot {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(143, 163, 191, 0.22);
}

/* ============ 滚动进度 ============ */

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(143, 163, 191, 0.16);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-amber));
}

/* ============ 页脚 ============ */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.92), rgba(7, 11, 20, 1));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(56, 232, 255, 0) 0%,
    rgba(56, 232, 255, 0.6) 32%,
    rgba(255, 154, 61, 0.5) 68%,
    rgba(255, 154, 61, 0) 100%
  );
}

.footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 58px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
}

.footer-brand__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.footer-brand__summary {
  margin: 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--c-mist);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-tag {
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-mist);
  background: rgba(143, 163, 191, 0.05);
  border: 1px solid rgba(143, 163, 191, 0.28);
  border-radius: 2px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.footer-col__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

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

.footer-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

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

.footer-list a:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  color: var(--c-white);
}

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

.footer-contact__list {
  display: grid;
  gap: 0;
}

.footer-contact__item {
  display: grid;
  gap: 2px;
  padding-block: 8px;
  border-bottom: 1px dashed rgba(143, 163, 191, 0.16);
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(143, 163, 191, 0.8);
}

.footer-contact__val {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-white);
  word-break: break-word;
}

.footer-contact__link {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.footer-contact__link:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(143, 163, 191, 0.16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.footer-legal {
  margin: 0;
  color: rgba(143, 163, 191, 0.92);
}

.footer-meta {
  margin: 0;
  color: rgba(143, 163, 191, 0.6);
}

/* ============ 面包屑 ============ */

.breadcrumbs {
  margin-bottom: 26px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-mist);
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(143, 163, 191, 0.4);
}

.breadcrumbs__link {
  color: var(--c-mist);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--c-cyan);
}

.breadcrumbs__current {
  color: var(--c-white);
}

/* ============ 章节骨架 ============ */

.section {
  padding-block: clamp(34px, 5vw, 72px);
}

.section__head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--c-cyan);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.lead {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.72;
  color: var(--c-mist);
}

/* ============ 切角卡片 ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 22px;
  background: linear-gradient(160deg, rgba(19, 31, 49, 0.94), rgba(10, 17, 28, 0.94));
  box-shadow: inset 0 0 0 1px rgba(143, 163, 191, 0.2);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(56, 232, 255, 0.55);
}

/* ============ 标签与状态点 ============ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-mist);
  background: rgba(143, 163, 191, 0.06);
  border: 1px solid rgba(143, 163, 191, 0.3);
  border-radius: 999px;
}

.chip--cyan {
  color: var(--c-cyan);
  background: rgba(56, 232, 255, 0.1);
  border-color: rgba(56, 232, 255, 0.42);
}

.chip--amber {
  color: var(--c-amber);
  background: rgba(255, 154, 61, 0.1);
  border-color: rgba(255, 154, 61, 0.42);
}

.chip--violet {
  color: #B79CFF;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.45);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-mist);
  vertical-align: middle;
}

.status-dot--stay {
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

.status-dot--risk {
  background: var(--c-red);
  box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.16);
}

/* ============ 图片容器基础规则 ============ */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  background-color: var(--c-panel-2);
  background-image:
    linear-gradient(140deg, rgba(56, 232, 255, 0.16), rgba(139, 92, 246, 0.12) 48%, rgba(255, 154, 61, 0.14)),
    repeating-linear-gradient(135deg, rgba(234, 242, 255, 0.05) 0 1px, transparent 1px 9px);
  box-shadow: inset 0 0 0 1px rgba(143, 163, 191, 0.22);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.78), rgba(7, 11, 20, 0) 58%);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

/* ============ 长文 ============ */

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--c-mist);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--c-white);
}

.prose h2 {
  margin: 34px 0 14px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: clamp(18px, 1.8vw, 22px);
}

.prose p {
  margin: 0 0 16px;
}

.prose a {
  color: var(--c-cyan);
  text-decoration-color: rgba(56, 232, 255, 0.45);
  text-underline-offset: 3px;
}

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

.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin: 0 0 18px;
}

.prose li {
  margin: 0.35em 0;
}

/* ============ 滚动显现（需 JS 打上 .has-reveal） ============ */

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

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

/* ============ 响应式：桌面 ============ */

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
  }
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .footer-top {
    grid-template-columns: 1.1fr 1.6fr 0.95fr;
    align-items: start;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* ============ 响应式：移动与平板 ============ */

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    inset: 0 0 auto 0;
    top: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-header::after {
    display: none;
  }

  .header-rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: var(--mobile-head);
    padding: 0 16px;
    gap: 12px;
  }

  .rail-rule {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: var(--mobile-head);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 65;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 34px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1420 0%, #070B14 100%);
    border-top: 1px solid var(--line-cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__link {
    padding: 13px 12px;
    font-size: 16px;
  }

  .site-nav__index {
    font-size: 11.5px;
  }

  .site-nav__foot {
    margin-top: auto;
    padding-top: 24px;
  }

  #main-content {
    scroll-margin-top: calc(var(--mobile-head) + 16px);
  }
}

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

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-text__meta {
    display: none;
  }

  .brand-text__name {
    font-size: 17px;
  }

  .nav-toggle__label {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ============ 减少动态 ============ */

@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;
  }

  .has-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card:hover,
  .btn--primary:hover {
    transform: none;
  }

  .site-nav {
    transition: none;
  }
}
