/* ============================================================
   金马城中心 · 共享样式表 /assets/site.css
   玄墨基底 · 鎏金刊头 · 切角面板 · 等宽索引
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--mist-100);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0A0C10;
  --panel-800: #141A22;
  --line-700: #242C38;
  --gold-500: #D8A43C;
  --gold-300: #F3D289;
  --bronze-700: #8A6522;
  --blue-400: #3FD2FF;
  --orange-500: #FF8A3C;
  --mist-100: #E9EDF4;
  --slate-400: #9AA6B8;

  --font-display: "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 16px;
  --header-h: 56px;
}

/* ---------- 3. 排版工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--mist-100);
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.prose h2 { margin-top: 2.2em; font-size: 24px; }
.prose h3 { margin-top: 1.9em; font-size: 19px; }
.prose strong { color: var(--gold-300); font-weight: 700; }
.prose ul { margin-top: 1em; }
.prose li { position: relative; padding-left: 20px; margin-top: 0.5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 1px;
  background: var(--gold-500);
}

/* ---------- 4. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel-800);
  border: 1px solid var(--line-700);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(216, 164, 60, 0.12), transparent 46%);
  pointer-events: none;
}
.media img,
.media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 52%, #b8871f);
  color: #0A0C10;
}
.btn--gold:hover { background: linear-gradient(135deg, var(--gold-300), var(--gold-300)); }
.btn--ghost {
  background: transparent;
  color: var(--gold-300);
  border-color: var(--bronze-700);
}
.btn--ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  background: rgba(216, 164, 60, 0.08);
}
.btn--sm { padding: 8px 15px; font-size: 13px; }
.btn:active { transform: translateY(1px); }

/* ---------- 6. 切角面板 ---------- */
.panel {
  --cut: 16px;
  position: relative;
  padding: 1px;
  background: linear-gradient(150deg,
              rgba(216, 164, 60, 0.55) 0%,
              var(--line-700) 38%,
              var(--line-700) 100%);
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
}
.panel__body {
  --cut: 15px;
  height: 100%;
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--panel-800);
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
}
.panel__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.panel__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate-400);
}

/* ---------- 7. 编号章节头 ---------- */
.sec-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 26px);
  padding-block: clamp(34px, 5vw, 60px) clamp(16px, 2.4vw, 26px);
  border-top: 1px solid var(--line-700);
}
.sec-head__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(216, 164, 60, 0.5);
}
.sec-head__text { flex: 1 1 auto; min-width: 0; }
.sec-head__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.sec-head__sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--slate-400);
}
.sec-head__chip {
  flex: none;
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid rgba(63, 210, 255, 0.35);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-400);
  white-space: nowrap;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line-700);
}
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- 9. 栅格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 10. 章节目录 ---------- */
.toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
.toc__list { display: grid; gap: 2px; }
.toc__list a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--line-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate-400);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.toc__list a:hover {
  color: var(--mist-100);
  border-left-color: var(--bronze-700);
}
.toc__list a.is-active {
  color: var(--gold-300);
  border-left-color: var(--gold-500);
  background: rgba(216, 164, 60, 0.07);
}

/* ---------- 11. 状态标签 ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status-chip--ok {
  color: var(--blue-400);
  background: rgba(63, 210, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(63, 210, 255, 0.35);
}
.status-chip--warn {
  color: var(--orange-500);
  background: rgba(255, 138, 60, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 60, 0.35);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: jm-pulse 2.8s ease-out infinite;
}
.status-chip--warn .status-dot { animation-duration: 1.8s; }

@keyframes jm-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 210, 255, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(63, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 210, 255, 0); }
}

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--gold-500);
  color: #0A0C10;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; }

/* ============================================================
   13. 头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink-900);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); }

/* --- 顶栏 --- */
.header-rail {
  max-height: 60px;
  overflow: hidden;
  border-bottom: 1px solid rgba(36, 44, 56, 0.75);
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.header-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
}
.header-rail__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate-400);
}
.site-header.is-scrolled .header-rail {
  max-height: 0;
  opacity: 0;
}

/* --- 报头 --- */
.masthead {
  max-height: 340px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-700);
  background:
    radial-gradient(120% 170% at 50% 0%, rgba(216, 164, 60, 0.14), transparent 62%),
    var(--ink-900);
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.site-header.is-scrolled .masthead {
  max-height: 0;
  opacity: 0;
}
.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-block: clamp(22px, 3.6vw, 38px);
}
.masthead__wing {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--bronze-700);
}
.masthead__wing--end { text-align: right; }
.masthead__brand { text-align: center; min-width: 0; }
.masthead__logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5.6vw, 52px);
  line-height: 1.06;
  letter-spacing: 0.07em;
  color: var(--gold-300);
  text-shadow: 0 0 34px rgba(216, 164, 60, 0.35);
  transition: color 0.2s ease;
}
.masthead__logo:hover { color: var(--gold-500); }
.masthead__tagline {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--slate-400);
}

/* --- 状态条 --- */
.status-strip {
  background: var(--panel-800);
  border-bottom: 1px solid var(--line-700);
}
.status-strip__summary {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding-block: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.status-strip__summary::-webkit-details-marker { display: none; }
.status-strip__summary::marker { content: ""; }
.status-strip__meta {
  font-size: 12px;
  color: var(--slate-400);
}
.status-strip__meta time { color: var(--mist-100); }
.status-strip__toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-500);
}
.status-strip__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.22s ease;
}
.status-strip[open] .status-strip__toggle::after {
  transform: translateY(1px) rotate(-135deg);
}
.status-strip__panel {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px dashed var(--line-700);
  font-size: 14px;
  color: var(--slate-400);
}
.status-strip__list { display: grid; gap: 6px; }
.status-strip__list li {
  position: relative;
  padding-left: 18px;
}
.status-strip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 1px;
  background: var(--gold-500);
}

/* --- 导航 --- */
.header-nav {
  position: relative;
  background: rgba(10, 12, 16, 0.96);
  border-bottom: 1px solid var(--line-700);
}
.header-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
}
.header-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2px, 1.6vw, 24px);
}
.header-nav__list a {
  position: relative;
  display: block;
  padding: 9px 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.2s ease;
}
.header-nav__list a::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.header-nav__list a:hover { color: var(--mist-100); }
.header-nav__list a:hover::after { transform: scaleX(1); }
.header-nav__list a[aria-current="page"] { color: var(--gold-300); }
.header-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
}
.header-cta__glyph { font-size: 14px; line-height: 1; }
.header-cta:active { transform: translateY(calc(-50% + 1px)); }

.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .header-cta__text { display: none; }
  .header-cta { padding-inline: 12px; }
}
.site-header.is-scrolled .header-cta__text { display: none; }
.site-header.is-scrolled .header-cta { padding-inline: 12px; }

/* ============================================================
   14. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 100px);
  background: var(--panel-800);
  border-top: 1px solid var(--line-700);
}
.site-footer__skyline {
  height: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, rgba(216, 164, 60, 0.05), rgba(216, 164, 60, 0.28));
  clip-path: polygon(
    0% 100%, 0% 82%, 2% 82%, 2% 66%, 4% 66%, 4% 76%,
    7% 76%, 7% 52%, 9% 52%, 9% 62%,
    12% 62%, 12% 74%, 15% 74%, 15% 44%, 17% 44%, 17% 58%,
    21% 58%, 21% 70%, 24% 70%, 24% 36%, 26% 36%, 26% 50%,
    30% 50%, 30% 64%, 33% 64%, 33% 76%, 36% 76%, 36% 40%, 38% 40%, 38% 56%,
    42% 56%, 42% 68%, 45% 68%, 45% 30%, 47% 30%, 47% 46%,
    51% 46%, 51% 62%, 54% 62%, 54% 74%, 57% 74%, 57% 50%, 59% 50%, 59% 64%,
    63% 64%, 63% 76%, 66% 76%, 66% 42%, 68% 42%, 68% 58%,
    72% 58%, 72% 70%, 75% 70%, 75% 34%, 77% 34%, 77% 52%,
    81% 52%, 81% 66%, 84% 66%, 84% 76%, 87% 76%, 87% 48%, 89% 48%, 89% 62%,
    93% 62%, 93% 72%, 96% 72%, 96% 56%, 98% 56%, 98% 78%,
    100% 78%, 100% 100%
  );
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.4fr);
  gap: clamp(26px, 4vw, 60px);
  padding-block: clamp(32px, 5vw, 58px);
}
.site-footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.09em;
  color: var(--gold-300);
}
.site-footer__desc {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate-400);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}
.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--bronze-700);
}
.footer-col li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--slate-400);
}
.footer-col a {
  color: var(--slate-400);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-300); }

.site-footer__base {
  border-top: 1px solid var(--line-700);
  background: var(--ink-900);
}
.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
  font-size: 12px;
  color: var(--slate-400);
}
.site-footer__base a { color: var(--slate-400); }
.site-footer__base a:hover { color: var(--gold-300); }

/* ============================================================
   15. 由 JS 注入的固定组件
   ============================================================ */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--blue-400));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(20, 26, 34, 0.94);
  border: 1px solid var(--bronze-700);
  border-radius: 2px;
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease,
              visibility 0.25s linear, border-color 0.2s ease, color 0.2s ease;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

/* ============================================================
   16. 响应式
   ============================================================ */
@media (max-width: 1060px) {
  :root { --wrap: 100%; }
}

@media (max-width: 980px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; top: auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 54px; }
  html { scroll-padding-top: 96px; }

  .masthead__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    padding-block: 20px 22px;
  }
  .masthead__wing { display: none; }

  .status-strip__summary {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-block: 11px;
  }
  .status-strip__toggle { margin-left: auto; }

  .header-nav__bar {
    justify-content: space-between;
    min-height: var(--header-h);
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--line-700);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--gold-300);
  }
  .nav-toggle__bars {
    display: grid;
    gap: 4px;
    width: 16px;
  }
  .nav-toggle__bars span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .header-nav[data-open="true"] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .header-nav[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .header-nav[data-open="true"] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .header-cta {
    position: static;
    transform: none;
    padding: 9px 13px;
  }
  .header-cta:active { transform: translateY(1px); }
  .site-header.is-scrolled .header-cta { padding-inline: 13px; }

  .header-nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-700);
    border-bottom: 1px solid var(--line-700);
  }
  .header-nav[data-open="true"] .header-nav__list { display: grid; }
  .header-nav__list li { background: var(--panel-800); }
  .header-nav__list a {
    padding: 14px 8px;
    text-align: center;
    font-size: 14px;
  }
  .header-nav__list a::after {
    left: 50%;
    right: auto;
    width: 22px;
    margin-left: -11px;
    bottom: 8px;
    transform-origin: center;
  }

  .sec-head { flex-wrap: wrap; }
  .sec-head__chip { margin-left: auto; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .prose { font-size: 16px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__base-inner { flex-direction: column; align-items: flex-start; }
  .header-rail__tag:last-child { display: none; }
}

/* ============================================================
   17. 动效偏好
   ============================================================ */
@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;
  }
  .status-dot { animation: none; }
  .header-nav__list a::after { transition: none; }
}
