/* ============================================================
   华体服务 · 共享站点样式 /assets/site.css
   墨蓝命令栏 + 纸白蓝图网格 + 橙色刻度的高识别体系
   ============================================================ */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --navy: #0B1D3A;
  --blue-700: #123B6B;
  --blue-500: #2E6FB7;
  --orange: #F26B21;
  --orange-text: #B3440D;
  --orange-soft: #FFB37A;
  --slate: #6E8799;
  --mist: #E8EDF2;
  --paper: #F7F5F0;
  --ink: #11151A;
  --teal: #147A6C;

  --line: rgba(17, 21, 26, 0.16);
  --line-soft: rgba(17, 21, 26, 0.08);
  --line-inv: rgba(247, 245, 240, 0.18);
  --ink-soft: rgba(17, 21, 26, 0.66);

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.22s;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.4vw + 15.2px, 18px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(11, 29, 58, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(11, 29, 58, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

small { font-size: 0.82em; }

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

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

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

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

.band {
  background: var(--mist);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

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

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #1A1004;
  border-color: #C8551A;
  box-shadow: 2px 2px 0 rgba(11, 29, 58, 0.35);
}

.btn-primary:hover {
  background: var(--orange-soft);
  box-shadow: 3px 3px 0 rgba(11, 29, 58, 0.42);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(11, 29, 58, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 245, 240, 0.35);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: #ffffff;
}

.btn-quiet {
  background: var(--paper);
  color: var(--blue-700);
  border-color: var(--line);
}

.btn-quiet:hover {
  border-color: var(--blue-500);
  color: var(--navy);
}

/* ---------- 6. 标签 / 卡片 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--orange-text);
  background: rgba(255, 179, 122, 0.16);
  border: 1px solid rgba(179, 68, 13, 0.32);
  border-radius: 1px;
}

.tag::before {
  content: "";
  width: 6px;
  height: 1px;
  background: currentColor;
}

.tag--inv {
  color: var(--orange-soft);
  background: rgba(242, 107, 33, 0.14);
  border-color: rgba(255, 179, 122, 0.4);
}

.paper {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(17, 21, 26, 0.04);
}

.paper::before {
  content: "";
  position: absolute;
  inset: 7px -7px -7px 7px;
  z-index: -1;
  background: var(--mist);
  border: 1px solid var(--line-soft);
}

.paper--tint::before {
  background: linear-gradient(140deg, rgba(255, 179, 122, 0.5), rgba(232, 237, 242, 0.9));
  border-color: rgba(179, 68, 13, 0.28);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section-head h2 { flex: 0 1 auto; }

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

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

.crumbs li + li::before {
  content: "/";
  color: rgba(110, 135, 153, 0.6);
}

.crumbs a {
  color: var(--blue-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.crumbs a:hover {
  color: var(--orange-text);
  border-bottom-color: currentColor;
}

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

/* ---------- 8. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--mist);
  border: 1px solid var(--line);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(11, 29, 58, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(11, 29, 58, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media--diag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    transparent calc(50% - 1px),
    rgba(247, 245, 240, 0.55) calc(50% - 1px),
    rgba(247, 245, 240, 0.55) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.media-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* ---------- 9. 正文长文 ---------- */
.prose p {
  max-width: 68ch;
  line-height: 1.78;
  margin-bottom: 1.05em;
}

.prose p:last-child { margin-bottom: 0; }

.prose ul {
  max-width: 68ch;
  list-style: none;
  margin-bottom: 1.05em;
}

.prose ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--orange);
}

/* ---------- 10. 章节高亮协议 ---------- */
[data-spy] { scroll-margin-top: 108px; }

.spy-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.spy-link:hover { color: var(--blue-700); }

.spy-link[aria-current="true"] {
  color: var(--orange-text);
  border-left-color: var(--orange);
  font-weight: 700;
}

/* ============================================================
   11. 页头 —— 紧凑命令栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--paper);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(247, 245, 240, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46, 111, 183, 0.28), rgba(11, 29, 58, 0) 88%);
  background-size: 72px 100%, 100% 100%;
  border-bottom: 1px solid rgba(242, 107, 33, 0.6);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 130;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: var(--paper);
  border: 2px solid var(--orange);
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.cmdbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding: 10px var(--pad);
  min-height: 64px;
}

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

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
  flex: 0 0 auto;
}

.brand-mark span {
  background: rgba(247, 245, 240, 0.3);
  border-radius: 1px;
  transition: background-color var(--dur) var(--ease);
}

.brand-mark span:nth-child(1) { background: var(--orange); }

.brand:hover .brand-mark span:nth-child(4) { background: var(--orange-soft); }

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff;
}

.brand-context {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.35;
  color: rgba(247, 245, 240, 0.58);
}

/* 主导航 */
.cmdnav {
  margin-inline: auto;
}

.cmdnav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 16px);
}

.cmdnav-list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  color: rgba(247, 245, 240, 0.76);
  transition: color var(--dur) var(--ease);
}

.cmdnav-list a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

.cmdnav-list a:hover { color: #ffffff; }
.cmdnav-list a:hover::after { transform: scaleX(1); }

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 245, 240, 0.36);
  transition: color var(--dur) var(--ease);
}

.nav-label { display: inline-block; }

.cmdnav-list a[aria-current="page"] {
  color: #ffffff;
}

.cmdnav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.cmdnav-list a[aria-current="page"] .nav-idx {
  color: var(--orange-soft);
}

/* 右区 */
.cmdbar-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(247, 245, 240, 0.82);
  background: linear-gradient(120deg, rgba(242, 107, 33, 0.28), rgba(46, 111, 183, 0.24));
  border: 1px solid rgba(255, 179, 122, 0.42);
  border-radius: 999px;
}

.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 33, 0.22);
  flex: 0 0 auto;
}

.version-k { color: rgba(247, 245, 240, 0.58); }
.version-v { color: var(--orange-soft); font-weight: 700; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: rgba(247, 245, 240, 0.06);
  border: 1px solid rgba(247, 245, 240, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

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

.nav-toggle-dots {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 2px;
  flex: 0 0 auto;
}

.nav-toggle-dots i {
  background: currentColor;
  opacity: 0.55;
  border-radius: 1px;
  transition: background-color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  background: rgba(242, 107, 33, 0.18);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-dots i {
  background: var(--orange);
  opacity: 1;
}

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(247, 245, 240, 0.1);
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
}

/* ============================================================
   12. 移动端底部快捷坞
   ============================================================ */
.dockbar { display: none; }

.dock-glyph svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 92px);
  color: rgba(247, 245, 240, 0.78);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(247, 245, 240, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46, 111, 183, 0.2), rgba(11, 29, 58, 0) 46%);
  background-size: 84px 100%, 100% 100%;
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--orange) 0 2px,
    transparent 2px 26px
  );
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr 1.15fr;
  gap: clamp(24px, 3.5vw, 56px);
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 60px) var(--pad) clamp(22px, 3vw, 34px);
}

.footer-label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 179, 122, 0.82);
}

.footer-brandname {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
}

.footer-summary {
  max-width: 24em;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.64);
}

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 179, 122, 0.4);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(242, 107, 33, 0.22), rgba(46, 111, 183, 0.2));
}

.footer-version-k { color: rgba(247, 245, 240, 0.55); }
.footer-version-v { color: var(--orange-soft); font-weight: 700; }

.footer-head {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(247, 245, 240, 0.46);
}

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

.footer-links a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(247, 245, 240, 0.82);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color var(--dur) var(--ease),
    background-size var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--orange-soft);
  background-size: 100% 1px;
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(247, 245, 240, 0.42);
}

.contact-list dd {
  margin: 2px 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.86);
  overflow-wrap: anywhere;
}

.contact-list dd:last-child { margin-bottom: 0; }

.contact-strong {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding: 18px var(--pad) clamp(86px, 8vw, 44px);
  border-top: 1px solid var(--line-inv);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(247, 245, 240, 0.48);
}

.footer-meta { white-space: nowrap; }

.footer-note {
  flex: 1 1 300px;
  min-width: min(100%, 260px);
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.44);
}

/* ============================================================
   14. 响应式
   ============================================================ */
@media (max-width: 1180px) {
  .cmdnav-list a { font-size: 13px; gap: 5px; }
  .version-chip { font-size: 10px; padding: 4px 8px; }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
  .footer-contact { grid-column: 1 / -1; }
  .contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(20px, 4vw, 48px);
  }
}

@media (max-width: 960px) {
  .cmdbar {
    min-height: 60px;
    padding-block: 9px;
    gap: 12px;
  }

  .cmdbar-aside { margin-left: auto; }

  .version-chip { display: none; }

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

  /* 折叠为全屏导航面板 */
  .cmdnav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 75;
    margin: 0;
    padding: 92px var(--pad) 32px;
    max-height: 100vh;
    overflow-y: auto;
    background-color: var(--navy);
    background-image: linear-gradient(180deg, rgba(46, 111, 183, 0.26), rgba(11, 29, 58, 0) 58%);
    border-bottom: 2px solid var(--orange);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.24s var(--ease), visibility 0.24s var(--ease);
  }

  .cmdnav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

  .cmdnav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .cmdnav-list a {
    align-items: baseline;
    gap: 12px;
    padding: 15px 2px;
    font-size: 19px;
    font-weight: 700;
    border-bottom: 1px solid rgba(247, 245, 240, 0.12);
  }

  .cmdnav-list a::after {
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 2px;
  }

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

  /* 底部快捷坞 */
  .dockbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 78;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: rgba(11, 29, 58, 0.97);
    border-top: 1px solid rgba(242, 107, 33, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .dockbar-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 620px;
    margin-inline: auto;
  }

  .dockbar-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: rgba(247, 245, 240, 0.64);
    border-top: 2px solid transparent;
    transition: color var(--dur) var(--ease),
      border-color var(--dur) var(--ease);
  }

  .dockbar-list a:hover { color: #ffffff; }

  .dockbar-list a[aria-current="page"] {
    color: var(--orange-soft);
    border-top-color: var(--orange);
  }

  .dock-label { line-height: 1.2; }

  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

  body.nav-open { overflow: hidden; }

  .footer-base { padding-bottom: clamp(86px, 12vw, 96px); }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .cmdbar-cta { display: none; }
  .brand-context { display: none; }
  .brand-name { font-size: 16px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .contact-list { grid-template-columns: minmax(0, 1fr); }
  .footer-base { gap: 6px 18px; }
  .footer-meta { white-space: normal; }
}

@media (max-width: 420px) {
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 9px 10px; }
}

/* ---------- 15. 动效降级 ---------- */
@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;
  }

  .cmdnav { transition: none !important; }
}
