/* ==========================================================================
   杏运平台主页 · 共享外壳样式 /assets/site.css
   暖纸 + 墨字 + 杏果橙编号体系
   ========================================================================== */

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

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

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

ul, ol { margin: 0; padding: 0; }

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

img { height: auto; }

button { font: inherit; color: inherit; }

/* ---------- 设计变量 ---------- */
:root {
  --apricot: #E8842B;
  --apricot-soft: #F6C89A;
  --apricot-deep: #B85A18;
  --leaf: #7FA84A;
  --leaf-soft: #C7DCA6;
  --leaf-ink: #3E5A20;
  --paper: #FBF5EA;
  --paper-2: #F3E9D8;
  --card: #FFFDF8;
  --ink: #1E2A3A;
  --ink-mute: #4B5A6B;
  --print-red: #D9452F;
  --print-red-ink: #A62E1C;

  --line: rgba(30, 42, 58, 0.14);
  --line-strong: rgba(30, 42, 58, 0.28);

  --radius-lg: 24px;
  --radius: 20px;
  --radius-sm: 12px;

  --maxw: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --header-h-condensed: 52px;

  --scroll-progress: 0;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
}

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { line-height: 1.8; }

a { color: var(--apricot-deep); }

strong { font-weight: 700; }

small { font-size: 13px; }

::selection {
  background: var(--apricot-soft);
  color: var(--ink);
}

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

#main-content { display: block; }

#main-content:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: -3px;
}

/* ---------- 通用文字组件 ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.headline {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--apricot);
  display: block;
}

.label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.meta {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.prose {
  max-width: 38em;
  color: var(--ink);
}

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

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2em;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin-top: 1.8em;
}

.prose p { max-width: 36em; }

.prose ul, .prose ol {
  padding-left: 1.4em;
  max-width: 34em;
}

.prose li + li { margin-top: 0.45em; }

.prose a {
  color: var(--apricot-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

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

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tint {
  background: var(--paper-2);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 24px;
  padding-top: 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line-strong);
}

.section-index {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--apricot);
  flex: 0 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}

.section-lead {
  flex: 1 1 100%;
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-mute);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid-asym {
  grid-template-columns: minmax(0, 1.94fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.btn-primary {
  background: var(--apricot);
  border-color: var(--apricot);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--apricot-deep);
  border-color: var(--apricot-deep);
  color: #FFF7EC;
}

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

.btn-ghost:hover {
  background: var(--apricot-soft);
  border-color: var(--apricot-soft);
}

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

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  background: var(--apricot-soft);
  color: var(--apricot-deep);
}

.tag--leaf {
  background: var(--leaf-soft);
  color: var(--leaf-ink);
}

.tag--red {
  background: rgba(217, 69, 47, 0.12);
  color: var(--print-red-ink);
}

.tag--ink {
  background: rgba(30, 42, 58, 0.08);
  color: var(--ink);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 20px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--apricot);
  transition: width 0.2s ease;
}

.card--leaf::before { background: var(--leaf); }

.card--ink::before { background: var(--ink); }

.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--apricot-deep);
}

.card--leaf .card-num { color: var(--leaf-ink); }

.card--ink .card-num { color: var(--ink-mute); }

.card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink);
}

.card-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--apricot-deep);
}

.card--leaf .card-link { color: var(--leaf-ink); }

.card--ink .card-link { color: var(--ink); }

@media (hover: hover) {
  .card:hover { border-color: var(--apricot-soft); }

  .card:hover::before { width: 12px; }

  .card:hover .card-link { text-decoration: underline; }
}

/* ---------- 图像容器（页面阶段填充） ---------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  background: var(--paper-2);
  border-radius: 22px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}

.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

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

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

.media-frame--organic { border-radius: 24px 24px 24px 96px; }

.figure-caption {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

@media (hover: hover) {
  a:hover > .media-frame img { transform: scale(1.03); }
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 16px 0;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

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

.breadcrumb li + li::before {
  content: "›";
  font-size: 15px;
  line-height: 1;
  color: var(--apricot-deep);
}

.breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb a:hover {
  color: var(--apricot-deep);
  border-bottom-color: currentColor;
}

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

/* ---------- 下一步指引条 ---------- */
.next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 18px 24px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.next-step-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--apricot-deep);
  text-decoration: none;
}

.next-step-link:hover { text-decoration: underline; }

/* ---------- 固定更新记录入口 ---------- */
.update-rail {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateX(-50%);
  box-shadow: 0 14px 30px -20px rgba(30, 42, 58, 0.95);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.update-rail:hover {
  background: var(--apricot);
  color: var(--ink);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--paper);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 245, 234, 0.95);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--scroll-progress) * 100%);
  max-width: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--apricot), var(--leaf));
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 10px var(--gutter);
  min-height: var(--header-h);
  transition: min-height 0.22s ease, padding 0.22s ease;
}

.site-header[data-condensed="true"] .header-inner {
  min-height: var(--header-h-condensed);
  padding-block: 6px;
}

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

.brand-glyph {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50% 50% 46% 54% / 54% 46% 50% 50%;
  background: var(--apricot);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 46% 54% / 46% 54% 50% 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

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

.brand-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  max-height: 18px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  white-space: nowrap;
  transition: max-height 0.22s ease, opacity 0.22s ease;
}

.site-header[data-condensed="true"] .brand-tagline {
  max-height: 0;
  opacity: 0;
}

/* 命令栏导航 */
.nav-command {
  flex: 1 1 auto;
  min-width: 0;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.66;
}

.nav-label { line-height: 1.4; }

.nav-link:hover {
  background: var(--apricot-soft);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--apricot);
  color: var(--ink);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before { opacity: 1; }

.nav-link[aria-current="page"] .nav-num { opacity: 1; }

/* 页头右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-cta { white-space: nowrap; }

.cta-short { display: none; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover { background: var(--apricot-soft); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before { top: 0; }

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

.site-header[data-open="true"] .nav-toggle-bars::before {
  transform: translateY(4px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  padding-top: clamp(8px, 2vw, 20px);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(30, 42, 58, 0.18) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 58%);
}

.site-footer > .container { position: relative; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(36px, 6vw, 60px) clamp(28px, 4vw, 40px);
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.footer-brand-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50% 50% 46% 54% / 54% 46% 50% 50%;
  background: var(--apricot);
}

.footer-brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 46% 54% / 46% 54% 50% 50%;
  background: var(--paper-2);
  transform: translate(-50%, -50%);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.footer-brand-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.footer-motto {
  max-width: 14em;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.footer-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--apricot-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.footer-update:hover { background: var(--apricot); }

.footer-update-go {
  border-bottom: 1px solid currentColor;
  line-height: 1.4;
}

.footer-update-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-update:hover .footer-update-arrow { transform: translateX(4px); }

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

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

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--apricot-deep);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--apricot-deep);
  text-decoration: underline;
}

.footer-contact {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-contact-lead {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}

.footer-contact-line {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-contact-tel {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-contact-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-contact-note a {
  color: var(--apricot-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer-contact-note a:hover { color: var(--ink); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: clamp(22px, 4vw, 34px);
  padding-block: 18px 28px;
  border-top: 1px solid var(--line);
}

.footer-legal,
.footer-copyright,
.footer-note {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.footer-copyright { font-weight: 600; color: var(--ink); }

/* ---------- 显现协议 ---------- */
html[data-reveal-ready="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

html[data-reveal-ready="true"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }

  .header-actions { margin-left: auto; }

  .nav-command {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--header-h-condensed));
    overflow-y: auto;
    padding: 12px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 32px -30px rgba(30, 42, 58, 0.9);
  }

  .site-header[data-open="true"] .nav-command,
  .nav-command[data-open="true"] {
    display: block;
  }

  .nav-index {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .nav-link {
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  .nav-num { font-size: 11px; }

  .site-header[data-open="true"] .brand-tagline {
    max-height: 0;
    opacity: 0;
  }
}

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

  .section-head { gap: 10px 16px; }
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }

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

  .footer-motto { max-width: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .cta-full { display: none; }

  .cta-short { display: inline; }

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

  .brand-tagline { display: none; }

  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }

  .nav-toggle-label { display: none; }

  .nav-toggle { padding: 10px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html[data-reveal-ready="true"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header-progress { transition: none; }
}
