/* ==========================================================================
   永隆现金 · 共享样式 /assets/site.css
   暖灰纸张底 + 深墨字 + 沙金刻度 + 铜绿/钴蓝双语义
   ========================================================================== */

/* ---------- 1. 重置与设计变量 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --sand-050: #F5F1E8;
  --sand-100: #EAE3D6;
  --sand-500: #C9A15E;
  --sand-700: #8A6A33;
  --stone-400: #8C877E;
  --stone-700: #4A4741;
  --ink-900: #14161A;
  --verdigris-700: #245F52;
  --cobalt-700: #1B4E8C;
  --teal-400: #2FD3B0;
  --violet-700: #5B4B8A;
  --clay-600: #A6483B;

  --rule: rgba(20, 22, 26, 0.14);
  --rule-strong: rgba(20, 22, 26, 0.32);
  --rule-invert: rgba(245, 241, 232, 0.16);
  --ink-invert-soft: rgba(245, 241, 232, 0.68);

  --font-heading: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-26: 26px;
  --fs-34: 34px;
  --fs-46: 46px;
  --fs-62: 62px;

  --measure: 36em;
  --page-max: 1280px;
  --pad-x: 24px;
  --bar-h: 68px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--sand-050);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: clamp(34px, 4.6vw, 46px); }
h2 { font-size: clamp(24px, 2.6vw, 26px); }
h3 { font-size: var(--fs-20); }
h4 { font-size: var(--fs-16); }

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

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

/* ---------- 2. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--ink-900);
  color: var(--sand-050);
  font-size: var(--fs-14);
  font-weight: 600;
  border-radius: 2px;
  border-bottom: 2px solid var(--sand-500);
  transition: top 180ms ease-out;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--sand-500);
  padding-bottom: 1px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--sand-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background-color: var(--sand-500);
  flex: 0 0 auto;
}

.lede {
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  line-height: 1.7;
  color: var(--stone-700);
  max-width: var(--measure);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--measure);
}
.prose p { margin: 0; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose a {
  color: var(--cobalt-700);
  border-bottom: 1px solid rgba(27, 78, 140, 0.38);
  transition: border-color 180ms ease-out, color 180ms ease-out;
}
.prose a:hover { border-bottom-color: var(--cobalt-700); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--stone-400);
}
.crumbs a {
  color: var(--stone-700);
  border-bottom: 1px solid var(--rule-strong);
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
.crumbs a:hover { color: var(--ink-900); border-bottom-color: var(--sand-500); }
.crumbs__sep { color: var(--stone-400); }

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--tight { padding: 32px 0; }
.section--paper { background-color: var(--sand-100); }
.section--ink { background-color: var(--ink-900); color: var(--sand-050); }
.section--ink .section-head__no { color: var(--sand-500); }
.section--ink .section-head__title { color: var(--sand-050); }
.section--ink .section-head__note { color: var(--ink-invert-soft); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.section-head__no {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--sand-700);
}
.section-head__title {
  font-family: var(--font-heading);
  font-size: var(--fs-26);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-head__note {
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  color: var(--stone-700);
  max-width: var(--measure);
}

.grid { display: grid; gap: 24px; }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 5. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  background-color: transparent;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out,
    border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.btn:hover {
  background-color: var(--sand-100);
  box-shadow: 2px 2px 0 rgba(20, 22, 26, 0.14);
}
.btn--solid {
  background-color: var(--ink-900);
  color: var(--sand-050);
}
.btn--solid:hover {
  background-color: var(--sand-700);
  border-color: var(--sand-700);
  color: var(--sand-050);
}
.btn--line { border-color: var(--rule-strong); }
.btn--line:hover { border-color: var(--ink-900); }
.btn--quiet {
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  border-bottom: 1px solid var(--sand-500);
  border-radius: 0;
}
.btn--quiet:hover {
  background-color: transparent;
  box-shadow: none;
  border-bottom-color: var(--ink-900);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--region {
  border: 1px solid var(--stone-400);
  border-radius: 2px;
  color: var(--stone-700);
  background-color: transparent;
}
.tag--stock-renew {
  border: 0;
  border-left: 3px solid var(--verdigris-700);
  border-radius: 0;
  padding-left: 7px;
  background-color: var(--sand-100);
  color: var(--verdigris-700);
}
.tag--stock-chem {
  border: 0;
  border-left: 3px solid var(--cobalt-700);
  border-radius: 0;
  padding-left: 7px;
  background-color: var(--sand-100);
  color: var(--cobalt-700);
}
.tag--version {
  border: 1px solid var(--violet-700);
  border-radius: 999px;
  background-color: rgba(91, 75, 138, 0.07);
  color: var(--violet-700);
}
.tag--alert {
  border: 1px solid var(--clay-600);
  border-radius: 2px;
  background-color: rgba(166, 72, 59, 0.07);
  color: var(--clay-600);
}

.paper {
  position: relative;
  padding: 20px 22px;
  background-color: var(--sand-050);
  border: 1px solid var(--ink-900);
  border-radius: 2px;
}
.paper--stack {
  box-shadow: 6px 6px 0 0 var(--sand-100), 6px 6px 0 1px var(--rule-strong);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background-color: var(--sand-050);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: 0 8px 18px rgba(20, 22, 26, 0.12);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink-900);
}
.index-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  transition: background-color 180ms ease-out, padding-left 180ms ease-out;
}
.index-item:hover {
  background-color: var(--sand-100);
  padding-left: 12px;
}
.index-item__no {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--sand-700);
}
.index-item__title {
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.6;
}
.index-item__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--stone-400);
  white-space: nowrap;
}

.scale {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scale__bar {
  position: relative;
  height: 8px;
  background-color: var(--sand-100);
  border: 1px solid var(--rule);
  border-radius: 1px;
  overflow: hidden;
}
.scale__fill {
  height: 100%;
  width: var(--fill, 50%);
  background-color: var(--sand-500);
}
.scale__ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-400);
}
.scale__tick { position: relative; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-14);
}
.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.data-table thead th {
  background-color: var(--sand-100);
  border-bottom: 1px solid var(--ink-900);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--stone-700);
}
.data-table .is-num,
.data-table td.is-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--sand-100);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame[data-empty]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(20, 22, 26, 0.045) 0 8px,
    transparent 8px 16px
  );
}
.figure__caption {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone-700);
}

.note {
  padding: 12px 16px;
  border-left: 3px solid var(--stone-400);
  background-color: var(--sand-100);
  font-size: var(--fs-14);
  color: var(--stone-700);
}
.note--alert {
  border-left-color: var(--clay-600);
  background-color: rgba(166, 72, 59, 0.07);
  color: var(--clay-600);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__value {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-26);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--sand-500);
  padding-bottom: 2px;
}
.stat__label {
  font-size: var(--fs-12);
  color: var(--stone-700);
}

/* ---------- 6. 命令栏头部 ---------- */
.command-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--sand-050);
  border-bottom: 1px solid var(--ink-900);
  color: var(--ink-900);
}

.command-bar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.command-bar__progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background-color: var(--teal-400);
  transition: width 100ms linear;
}

.command-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--page-max);
  min-height: var(--bar-h);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  transition: min-height 180ms ease-out, padding 180ms ease-out;
}

.command-bar.is-compact .command-bar__inner {
  min-height: 48px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.command-bar.is-compact .command-brand__descriptor { display: none; }
.command-bar.is-compact .command-status__hint { display: none; }
.command-bar.is-compact .command-brand__mark {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.command-brand { min-width: 0; }
.command-brand__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}
.command-brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background-color: var(--ink-900);
  color: var(--sand-050);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: width 180ms ease-out, height 180ms ease-out, font-size 180ms ease-out;
}
.command-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.command-brand__name {
  font-family: var(--font-heading);
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.command-brand__descriptor {
  font-size: var(--fs-12);
  color: var(--stone-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-status {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
  font-size: var(--fs-12);
  color: var(--stone-700);
}
.command-status__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sand-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 94, 0.22);
}
.command-status__text { color: var(--ink-900); font-weight: 600; }
.command-status__hint { color: var(--stone-400); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  background-color: var(--sand-050);
  color: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}
.nav-toggle:hover {
  background-color: var(--sand-100);
  box-shadow: 2px 2px 0 rgba(20, 22, 26, 0.14);
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 14px;
  height: 2px;
  background-color: var(--ink-900);
  transition: background-color 180ms ease-out;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  background-color: var(--ink-900);
  transition: transform 180ms ease-out;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle.is-active .nav-toggle__bars { background-color: transparent; }
.nav-toggle.is-active .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  padding: 8px var(--pad-x) 20px;
  background-color: var(--sand-050);
  border-bottom: 2px solid var(--ink-900);
  box-shadow: 0 12px 24px rgba(20, 22, 26, 0.12);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.nav[data-open] { display: block; }

.nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { min-width: 0; }

.nav__link {
  position: relative;
  display: block;
  padding: 12px 2px 12px 12px;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stone-700);
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}
.nav__link:hover {
  color: var(--ink-900);
  background-color: var(--sand-100);
  border-left-color: var(--sand-500);
}
.nav__link[aria-current="page"] {
  color: var(--ink-900);
  background-color: var(--sand-100);
  border-left-color: var(--sand-500);
}
.nav__link[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background-color: var(--sand-500);
}

.nav__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-strong);
}

.command-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background-color: var(--sand-050);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 180ms ease-out, border-color 180ms ease-out,
    color 180ms ease-out, box-shadow 180ms ease-out;
}
.command-action:hover {
  border-color: var(--sand-700);
  background-color: var(--sand-100);
  box-shadow: 2px 2px 0 rgba(20, 22, 26, 0.14);
}
.command-action--mail {
  border-color: var(--ink-900);
  background-color: var(--ink-900);
  color: var(--sand-050);
}
.command-action--mail:hover {
  border-color: var(--sand-700);
  background-color: var(--sand-700);
  color: var(--sand-050);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: 72px;
  background-color: var(--ink-900);
  color: var(--sand-050);
  border-top: 3px solid var(--sand-500);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 52px var(--pad-x) 28px;
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-brand__descriptor {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: var(--fs-14);
  color: var(--ink-invert-soft);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}
.footer-contact__line {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-invert-soft);
  word-break: break-word;
}
.footer-contact__key {
  flex: 0 0 auto;
  min-width: 2.4em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sand-500);
  padding-top: 3px;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sand-500);
  margin-bottom: 14px;
}
.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: var(--fs-14);
  color: var(--sand-050);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
.footer-link:hover {
  color: var(--sand-500);
  border-bottom-color: var(--sand-500);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--pad-x) 34px;
  border-top: 1px solid var(--rule-invert);
  font-size: var(--fs-12);
  color: var(--ink-invert-soft);
}
.footer-bottom__legal { color: var(--sand-050); }
.footer-bottom__note { color: var(--stone-400); }

/* ---------- 8. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background-color: var(--sand-050);
  color: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-out, visibility 180ms ease-out,
    background-color 180ms ease-out, box-shadow 180ms ease-out;
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
}
.to-top:hover {
  background-color: var(--sand-100);
  box-shadow: 2px 2px 0 rgba(20, 22, 26, 0.14);
}

/* ---------- 9. 响应式 ---------- */
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .command-status { display: flex; }
  .command-brand__descriptor { max-width: 34ch; }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    padding: 0;
    background-color: transparent;
    border-bottom: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
  .nav__link {
    padding: 8px 10px 9px;
    border-bottom: 2px solid transparent;
    border-left: 0;
    font-size: var(--fs-14);
    color: var(--stone-700);
  }
  .nav__link:hover {
    color: var(--ink-900);
    background-color: transparent;
    border-bottom-color: var(--sand-500);
  }
  .nav__link[aria-current="page"] {
    color: var(--ink-900);
    background-color: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--sand-500);
  }
  .nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    padding-left: 18px;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

@media (max-width: 1040px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--7-5,
  .grid--8-4,
  .grid--5-7,
  .grid--3 { grid-template-columns: 1fr; }

  .index-item {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 4px;
  }
  .index-item__meta {
    grid-column: 2 / 3;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  :root { --pad-x: 18px; }
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 20px; }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 540px) {
  .command-brand__descriptor { display: none; }
  .command-bar.is-compact .command-brand__mark { width: 26px; height: 26px; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- 10. 打印 ---------- */
@media print {
  .command-bar,
  .nav-toggle,
  .to-top,
  .skip-link { display: none !important; }
  body {
    background-color: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }
  .site-footer {
    background-color: #FFFFFF;
    color: #000000;
    border-top: 1px solid #000000;
  }
  .footer-link,
  .footer-bottom__legal,
  .footer-bottom__note { color: #000000; }
  .site-footer__inner { padding: 16px 0 0; }
}

/* ---------- 11. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .index-item:hover { transform: none; }
  .command-bar__progress::before { transition: none; }
}
