/* ============================================================
   威哥品牌 · 共享样式 /assets/site.css
   风沙地图 × 专题研究板：奶油纸底、深棕黑命令栏、路标索引
   ============================================================ */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

ol, ul { padding: 0; }

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

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

button { cursor: pointer; }

table {
  border-collapse: collapse;
  width: 100%;
}

summary { cursor: pointer; }

/* ---------- 2. 变量 ---------- */
:root {
  --paper: #F4E9D4;
  --paper-deep: #E7D6B8;
  --ink: #211A14;
  --ink-90: rgba(33, 26, 20, 0.9);
  --ink-80: rgba(33, 26, 20, 0.78);
  --ink-60: rgba(33, 26, 20, 0.62);
  --ink-25: rgba(33, 26, 20, 0.25);
  --ink-12: rgba(33, 26, 20, 0.12);
  --sand: #C9A45C;
  --ember: #D96C2C;
  --steel: #5E7180;
  --jade: #00A88F;
  --clay: #A6402D;
  --dust: #8C8172;
  --paper-80: rgba(244, 233, 212, 0.82);
  --paper-66: rgba(244, 233, 212, 0.66);
  --paper-45: rgba(244, 233, 212, 0.45);
  --paper-15: rgba(244, 233, 212, 0.16);

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

  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --gap-s: 12px;
  --gap-m: 24px;
  --gap-l: 48px;

  --radius: 2px;
  --shadow-paper: 6px 6px 0 rgba(33, 26, 20, 0.14);
  --ease: 150ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --header-h: 74px;
}

/* ---------- 3. 中文排版与基础基准 ---------- */
body {
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(33, 26, 20, 0.022) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(33, 26, 20, 0.022) 0 1px, transparent 1px 120px);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.6vw, 68px); margin-bottom: 0.42em; }
h2 { font-size: clamp(26px, 3.4vw, 44px); margin-bottom: 0.45em; }
h3 { font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.28; margin-bottom: 0.5em; }
h4 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.42; margin-bottom: 0.6em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--clay);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

a:hover { color: var(--ember); }

strong, b { font-weight: 700; color: var(--ink); }

small { font-size: 0.86em; }

hr {
  border: 0;
  border-top: 2px solid var(--ink-12);
  margin: var(--gap-m) 0;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* 焦点可见 */
:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-main {
  display: block;
  min-height: 60vh;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack { display: grid; gap: var(--gap-m); }
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-s);
}

.grid { display: grid; gap: var(--gap-m); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: 1.35fr 0.85fr; gap: clamp(24px, 3vw, 44px); }

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

/* ---------- 5. 分区与标题 ---------- */
.section {
  padding-block: clamp(36px, 5.5vw, 76px);
  border-top: 2px solid var(--ink-12);
}

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

.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-top-color: transparent;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--paper); }

.section--ink .lede { color: var(--paper-66); }

.section__head {
  display: grid;
  gap: 10px;
  max-width: 72ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.display {
  font-family: var(--font-sans);
  font-size: clamp(38px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--ember);
  flex: none;
}

.section--ink .eyebrow { color: var(--sand); }

.lede {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-80);
}

/* ---------- 6. 研究板 / 卡片 / 数字 ---------- */
.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  padding: clamp(18px, 2.2vw, 26px);
}

.panel--tint { background: var(--paper-deep); }

.panel--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(94, 113, 128, 0.5);
}

.panel__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.panel--ink .panel__label { color: var(--paper-66); }

.panel__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.panel--ink .panel__title { color: var(--paper); }

.panel__body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-80);
}

.panel--ink .panel__body { color: var(--paper-66); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  line-height: 1.5;
}

.stat--ember .stat__value { color: var(--ember); }

.panel--ink .stat__value { color: var(--sand); }
.panel--ink .stat__key { color: var(--paper-66); }

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(33, 26, 20, 0.2);
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover {
  color: var(--ink);
  background: var(--sand);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(33, 26, 20, 0.24);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(33, 26, 20, 0.24);
}

.btn--solid {
  background: var(--ember);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--solid:hover { background: var(--sand); }

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

.btn--jade:hover { background: var(--jade); color: var(--ink); box-shadow: 6px 6px 0 rgba(0, 168, 143, 0.4); }
.btn--jade:focus-visible { outline-color: var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--ember { background: var(--ember); }
.tag--jade { background: var(--jade); }
.tag--clay { background: var(--clay); color: var(--paper); border-color: var(--clay); }

/* ---------- 8. 正文 / 边注 / 刻度线 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-90);
}

.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.36em; }
.prose li::marker { color: var(--ember); }

.prose a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--sand);
}

.prose a:hover {
  color: var(--ink);
  text-decoration-color: var(--ember);
  background: rgba(201, 164, 92, 0.32);
}

.note {
  margin: 0;
  padding-left: 13px;
  border-left: 2px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--ink-60);
}

.tick-rule {
  height: 8px;
  margin: var(--gap-m) 0;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--ink-25) 0 1px, transparent 1px 10px);
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 100% 6px;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 14px;
  border-bottom: 1px dashed var(--ink-25);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-60);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--dust);
}

.breadcrumbs a {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.breadcrumbs a:hover {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

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

/* ---------- 10. 图片容器（页面阶段放图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background-color: var(--paper-deep);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(201, 164, 92, 0.62), rgba(201, 164, 92, 0) 62%),
    repeating-linear-gradient(90deg, rgba(33, 26, 20, 0.14) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(33, 26, 20, 0.1) 0 1px, transparent 1px 44px),
    linear-gradient(158deg, #E7D6B8 0%, #CDB791 58%, #B2966B 100%);
  box-shadow: var(--shadow-paper);
}

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

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

.media__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  line-height: 1.6;
}

/* ---------- 11. 页头 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 16px;
  border: 2px solid var(--jade);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--ease);
}

.skip-link:hover { color: var(--paper); }
.skip-link:focus { transform: translateY(0); color: var(--paper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid #120E0A;
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sand) 0 52%, var(--ember) 52% 80%, var(--jade) 80% 100%);
}

.site-header__rail {
  background: #17110A;
  border-bottom: 1px solid var(--paper-15);
}

.site-header__rail-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
}

.rail__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-45);
  white-space: nowrap;
}

.rail__ticks {
  flex: 1 1 auto;
  min-width: 24px;
  height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--paper-15) 0 1px, transparent 1px 11px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 5px;
}

.rail__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-66);
  white-space: nowrap;
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.22);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: var(--header-h);
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover { color: var(--paper); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 rgba(217, 108, 44, 0.8);
  transition: transform var(--ease), box-shadow var(--ease);
}

.brand:hover .brand__mark {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ember);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--paper-45);
}

/* 命令栏导航 */
.cmd-nav { margin-left: auto; }

.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmd-nav__item { flex: none; }

.cmd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--paper-66);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.cmd-nav__idx {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--sand);
  opacity: 0.85;
  transition: color var(--ease), opacity var(--ease);
}

.cmd-nav__link:hover {
  color: var(--paper);
  border-color: rgba(201, 164, 92, 0.55);
  background: rgba(201, 164, 92, 0.12);
}

.cmd-nav__link:hover .cmd-nav__idx { color: var(--paper); opacity: 1; }

.cmd-nav__link[aria-current="page"] {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
  font-weight: 700;
}

.cmd-nav__link[aria-current="page"] .cmd-nav__idx { color: var(--clay); opacity: 1; }

.cmd-nav__link[aria-current="page"]::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--jade);
}

/* 右侧动作 */
.cmd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.cmd-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--paper-15);
  border-radius: var(--radius);
  color: var(--paper-66);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.cmd-search__key {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.cmd-search__key::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.cmd-search__text { display: inline-block; }

.cmd-search:hover {
  color: var(--jade);
  border-color: var(--jade);
  background: rgba(0, 168, 143, 0.14);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 2px solid var(--paper-45);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  flex: none;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--jade);
  color: var(--jade);
  background: rgba(0, 168, 143, 0.14);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1180px) and (min-width: 1001px) {
  .cmd-nav__link { font-size: 12.5px; padding: 8px 7px; }
  .brand__sub { display: none; }
  .cmd-search__text { display: none; }
  .cmd-search { padding: 9px 10px; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .site-header__bar {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .brand { order: 1; }
  .cmd-actions { order: 2; margin-left: auto; }
  .nav-toggle { display: inline-flex; }

  .cmd-nav {
    order: 3;
    flex: 1 0 100%;
    display: none;
    margin-left: 0;
    padding-top: 6px;
    border-top: 1px solid var(--paper-15);
  }

  .site-header[data-open] .cmd-nav {
    display: block;
    animation: nav-drop 160ms ease-out both;
  }

  .cmd-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .cmd-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 4px;
    border: 0;
    border-bottom: 1px solid rgba(244, 233, 212, 0.12);
    border-radius: 0;
    color: var(--paper);
    font-size: 15px;
    white-space: normal;
  }

  .cmd-nav__link:hover {
    background: rgba(201, 164, 92, 0.12);
    border-color: rgba(244, 233, 212, 0.12);
    border-bottom-color: var(--sand);
  }

  .cmd-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--sand);
    font-weight: 700;
    border-color: transparent;
    border-bottom-color: rgba(201, 164, 92, 0.35);
  }

  .cmd-nav__link[aria-current="page"] .cmd-nav__idx { color: var(--ember); }

  .cmd-nav__link[aria-current="page"]::after { margin-left: auto; }
}

@media (max-width: 620px) {
  .cmd-search { display: none; }
  .brand__mark { width: 34px; height: 34px; font-size: 11.5px; }
  .brand__name { font-size: 16.5px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.14em; }
  .rail__label { font-size: 9.5px; letter-spacing: 0.14em; }
  .rail__status { font-size: 9.5px; letter-spacing: 0.1em; }
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #241C15 0%, var(--ink) 58%, #1A140F 100%);
  color: var(--paper);
}

.site-footer__ridge {
  height: clamp(26px, 4vw, 54px);
  background: linear-gradient(90deg, var(--steel) 0%, #3A4954 46%, #2B353D 100%);
  clip-path: polygon(
    0% 78%, 5% 52%, 10% 66%, 15% 40%, 21% 60%, 27% 44%, 33% 68%,
    40% 46%, 46% 66%, 52% 50%, 58% 70%, 65% 48%, 71% 66%, 78% 42%,
    84% 62%, 90% 50%, 95% 68%, 100% 56%, 100% 100%, 0% 100%
  );
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 5vw, 58px);
}

.footer-heading {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-15);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  line-height: 1.4;
}

.footer-brand__line {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
}

.footer-brand__note {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper-66);
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed transparent;
  color: var(--paper-80);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease);
}

.footer-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--paper-45);
  transition: color var(--ease);
}

.footer-nav__link:hover {
  color: var(--paper);
  border-bottom-color: var(--jade);
}

.footer-nav__link:hover .footer-nav__idx { color: var(--jade); }

.footer-contact__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(244, 233, 212, 0.12);
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-45);
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(244, 233, 212, 0.62);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--paper-15);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-45);
  line-height: 1.6;
}

.footer-base__item { white-space: nowrap; }
.footer-base__item--right { color: var(--sand); letter-spacing: 0.14em; }

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-brand__note { max-width: 46ch; }
}

@media (max-width: 520px) {
  .footer-nav__list { grid-template-columns: minmax(0, 1fr); }
  .site-footer__base { justify-content: flex-start; }
}

/* ---------- 13. JS 组件：滚动进度轨 + 回到顶部 ---------- */
.progress-rail {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.progress-rail__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sand) 0%, var(--ember) 58%, var(--jade) 100%);
  transition: width 90ms linear;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 4px 4px 0 rgba(33, 26, 20, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--ease), transform var(--ease), background-color var(--ease), color var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--jade);
  color: var(--ink);
  border-color: var(--ink);
}

.to-top__arrow { font-size: 13px; line-height: 1; }
.to-top__label { display: inline-block; }

/* ---------- 14. 降低动效偏好 ---------- */
@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;
  }

  .progress-rail__bar { transition: none; }
  .to-top { transition: none; }
  .btn:hover { transform: none; }
}
