/* ============================================================
   永兴集团路线 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:root {
  --navy: #0B2545;
  --navy-2: #123A63;
  --cyan: #2FE6C8;
  --orange: #F28C3A;
  --stone: #6E7480;
  --paper: #F6F1E7;
  --white: #FBF9F4;
  --moss: #4F6B57;
  --clay: #B5654A;
  --ink: #11161D;

  --line: rgba(17, 22, 29, 0.14);
  --line-strong: rgba(17, 22, 29, 0.28);
  --line-dark: rgba(246, 241, 231, 0.16);

  --shell: 1240px;
  --header-offset: 132px;
  --dur: 0.18s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-command: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.nav-locked { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.008em;
  color: var(--navy);
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.16; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.4rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.55rem); }
h4 { font-size: clamp(1rem, 1.2vw, 1.2rem); }
p { line-height: 1.8; }
strong { font-weight: 800; color: var(--navy); }

::selection { background: var(--cyan); color: var(--navy); }

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

[id] { scroll-margin-top: var(--header-offset); }
#main-content { display: block; }

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

/* ---------- 容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 200;
  transform: translateY(-130%);
  display: inline-block;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17, 22, 29, 0.16);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(17, 22, 29, 0.22), 0 16px 30px -24px rgba(11, 37, 69, 0.7);
}

/* 公告条 */
.announce-bar {
  background: var(--navy);
  color: var(--paper);
  background-image: repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.05) 0 1px, transparent 1px 96px);
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 6px;
}
.announce-text {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-command);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.announce-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 58, 0.24);
}
.announce-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 231, 0.6);
  white-space: nowrap;
}

/* 命令栏 */
.command-bar {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
}
.command-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--navy);
  background:
    linear-gradient(135deg,
      transparent calc(50% - 1px),
      rgba(11, 37, 69, 0.5) calc(50% - 1px),
      rgba(11, 37, 69, 0.5) calc(50% + 1px),
      transparent calc(50% + 1px));
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  background: var(--clay);
}
.brand-mark-node {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 0 1px var(--navy);
}
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid transparent;
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--stone);
  transition: color var(--dur) var(--ease);
}
.nav-label { white-space: nowrap; }
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--navy);
}
.nav-link:hover .nav-index { color: var(--orange); }
.nav-link[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 10px 16px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--navy);
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle[data-open="true"] { background: var(--navy); color: var(--paper); }
.nav-toggle-bars {
  flex: none;
  display: block;
  width: 16px;
  height: 12px;
  background: linear-gradient(var(--navy) 0 2px, transparent 2px 5px, var(--navy) 5px 7px, transparent 7px 10px, var(--navy) 10px 12px);
}
.nav-toggle[data-open="true"] .nav-toggle-bars {
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--cyan) calc(50% - 1px), var(--cyan) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--cyan) calc(50% - 1px), var(--cyan) calc(50% + 1px), transparent calc(50% + 1px));
}
.nav-toggle-label { line-height: 1; }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(11, 37, 69, 0.08);
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background-color: var(--navy);
  background-image: repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.045) 0 1px, transparent 1px 88px);
  color: rgba(246, 241, 231, 0.8);
  border-top: 4px solid var(--cyan);
  font-size: 14px;
}
.site-footer h2 { color: var(--paper); }
.site-footer a { text-decoration: none; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 2.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 48px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--cyan);
  position: relative;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(47, 230, 200, 0.55) calc(50% - 1px), rgba(47, 230, 200, 0.55) calc(50% + 1px), transparent calc(50% + 1px));
}
.footer-mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.footer-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.footer-tagline {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.4;
  color: var(--cyan);
  border-left: 2px solid var(--orange);
  padding-left: 12px;
}
.footer-cta { margin-top: 4px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 32px);
  align-content: start;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 231, 0.62);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  display: inline-block;
  color: rgba(246, 241, 231, 0.88);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--cyan); border-bottom-color: var(--cyan); }
.footer-col-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 231, 0.45);
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(22px, 3.4vw, 36px);
  border-top: 1px solid var(--line-dark);
}
.footer-contact-title {
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  padding-top: 4px;
}
.footer-contact-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-contact-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: rgba(246, 241, 231, 0.88);
}
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 231, 0.55);
  border: 1px solid var(--line-dark);
  padding: 2px 6px;
  white-space: nowrap;
}
.footer-contact-value { font-family: var(--font-mono); letter-spacing: 0.01em; word-break: break-word; }
.footer-note {
  grid-column: 1 / -1;
  max-width: 78ch;
  padding-left: 12px;
  border-left: 1px solid var(--orange);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(246, 241, 231, 0.55);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: rgba(246, 241, 231, 0.55);
}
.footer-copy, .footer-icp { font-family: var(--font-mono); letter-spacing: 0.05em; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal-links .footer-link { font-size: 12px; }

/* ============================================================
   基础组件
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-command);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--solid { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btn--outline { background: transparent; border-color: var(--cyan); color: var(--cyan); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

.breadcrumb {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-command);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: rgba(17, 22, 29, 0.32);
}
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

.section { padding-block: clamp(44px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--navy {
  background: var(--navy);
  color: rgba(246, 241, 231, 0.82);
  background-image: repeating-linear-gradient(90deg, rgba(246, 241, 231, 0.04) 0 1px, transparent 1px 88px);
}
.band--navy h1, .band--navy h2, .band--navy h3, .band--navy h4 { color: var(--paper); }
.band--navy strong { color: var(--cyan); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--stone);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--orange); }
.band--navy .eyebrow { color: rgba(246, 241, 231, 0.6); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: clamp(22px, 3.6vw, 38px);
  border-bottom: 1px solid var(--line-strong);
}
.band--navy .section-head { border-bottom-color: var(--line-dark); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: #1d242d;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; padding-top: 0.7em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose ul { display: flex; flex-direction: column; gap: 0.5em; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 1px;
  background: var(--orange);
}
.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--clay); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
  background: transparent;
  white-space: nowrap;
}
.tag--signal { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.tag--alert { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* 可复用图片容器 */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 58%, #1b4b74 100%);
}
.media > img,
.media > picture,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--pano { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--chart { aspect-ratio: 4 / 3; }
.media--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(246, 241, 231, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 241, 231, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
}
.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.band--navy .media-caption { color: rgba(246, 241, 231, 0.55); }

/* 章节目录跟随 */
.toc {
  position: sticky;
  top: calc(var(--header-offset) + 12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[data-toc] a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
[data-toc] a:hover { color: var(--navy); border-left-color: var(--navy); }
[data-toc] a.is-active {
  border-left-color: var(--orange);
  background: rgba(242, 140, 58, 0.09);
  color: var(--navy);
  font-weight: 700;
}

/* 返回顶部 */
.totop {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--navy);
  border: 1px solid var(--cyan);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.totop[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.totop:hover, .totop:focus-visible { background: var(--cyan); color: var(--navy); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .nav-link { padding: 9px 8px; font-size: 13px; }
  .nav-index { font-size: 9px; }
  .nav-cta { padding: 9px 12px; font-size: 12px; }
}

@media (max-width: 940px) {
  :root { --header-offset: 118px; }

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 65;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-block: 8px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 22px 34px -26px rgba(11, 37, 69, 0.75);
  }
  .primary-nav[data-open="true"] { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-left: 2px solid transparent;
    font-size: 15px;
  }
  .nav-link:hover, .nav-link:focus-visible { background: var(--paper); border-color: transparent; border-left-color: var(--navy); }
  .nav-link[aria-current="page"] {
    background: var(--paper);
    border-color: transparent;
    border-left-color: var(--cyan);
    color: var(--navy);
  }
  .nav-link[aria-current="page"] .nav-index { color: var(--orange); }

  .command-inner { min-height: 62px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .announce-note { display: none; }
  .announce-text { font-size: 11.5px; letter-spacing: 0.03em; }
  .brand-sub { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 1.3rem; }
}

@media (max-width: 400px) {
  .announce-text { font-size: 11px; }
  .brand-name { font-size: 15px; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@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;
  }
  .totop { transform: none; }
  .scroll-progress-bar { transition: none; }
}
