/* ==========================================================================
   九博国际会馆 · 共享站点样式 /assets/site.css
   档案厅索引体系：墨蓝轨道 · 宣纸画布 · 铜金编号 · 青瓷状态
   ========================================================================== */

:root {
  --ink-900: #0B1B2B;
  --ink-700: #16324A;
  --paper-100: #F3EBDD;
  --paper-200: #E7D9C4;
  --brass-700: #8A5A2B;
  --brass-500: #B9854A;
  --brass-300: #D8B07A;
  --celadon-500: #6F9B8D;
  --celadon-100: #DCE9E3;
  --slate-600: #4A5A66;

  --rail-w: 88px;
  --bar-h: 46px;
  --shell-max: 1280px;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  padding-left: var(--rail-w);
  background-color: var(--paper-100);
  background-image:
    radial-gradient(120% 60% at 100% 0%, rgba(216, 176, 122, .10), transparent 58%),
    radial-gradient(90% 50% at 0% 100%, rgba(111, 155, 141, .07), transparent 60%);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brass-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 90, 43, .45);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--brass-500); text-decoration-color: var(--brass-500); }

:focus-visible {
  outline: 2px solid var(--celadon-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.14; letter-spacing: .03em; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.05rem; }

.prose p, .prose li { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.75;
  color: var(--slate-600);
  max-width: 56ch;
  letter-spacing: .01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: .82em;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

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

/* ---------- 通用容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}
.shell--narrow { max-width: 860px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--solid {
  background: var(--ink-900);
  color: var(--paper-100);
  box-shadow: 0 16px 32px -22px rgba(11, 27, 43, .95);
}
.btn--solid:hover { background: var(--ink-700); color: var(--paper-100); transform: translateY(-1px); }

.btn--brass {
  background: linear-gradient(135deg, #E0BC86, #B9854A 52%, #8A5A2B);
  color: #150C03;
  font-weight: 700;
  box-shadow: 0 16px 30px -22px rgba(138, 90, 43, .95), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn--brass:hover { color: #150C03; transform: translateY(-1px); }

.btn--line {
  border-color: rgba(138, 90, 43, .45);
  color: var(--brass-700);
  background: transparent;
}
.btn--line:hover { background: rgba(138, 90, 43, .08); border-color: var(--brass-700); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(138, 90, 43, .32);
  background: rgba(231, 217, 196, .55);
  color: var(--brass-700);
  font-size: 12.5px;
  letter-spacing: .08em;
  line-height: 1.6;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.pill:hover { text-decoration: none; color: var(--brass-700); border-color: var(--brass-500); }

.pill--status {
  background: var(--celadon-100);
  border-color: rgba(111, 155, 141, .45);
  color: #3C6B5E;
}

.pill--solid {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper-100);
}
.pill--solid:hover { color: var(--paper-100); background: var(--ink-700); border-color: var(--ink-700); }

.pill--filter {
  background: transparent;
  border-color: rgba(138, 90, 43, .3);
  color: var(--slate-600);
  cursor: pointer;
  font-family: inherit;
}
.pill--filter:hover { background: rgba(231, 217, 196, .6); color: var(--ink-900); }
.pill--filter[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper-100);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--celadon-500);
  box-shadow: 0 0 0 3px rgba(111, 155, 141, .18);
  animation: dot-breathe 3.4s ease-in-out infinite;
}
@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 155, 141, .18); }
  50% { box-shadow: 0 0 0 6px rgba(111, 155, 141, .06); }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--slate-600);
}
.crumbs a { color: var(--brass-700); text-decoration: none; }
.crumbs a:hover { color: var(--brass-500); text-decoration: underline; text-underline-offset: 3px; }
.crumbs__sep { color: rgba(138, 90, 43, .45); }
.crumbs [aria-current="page"] { color: var(--ink-700); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(138, 90, 43, .22);
}
.section-head__idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--brass-700);
}

.row-number {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--brass-700);
  font-variant-numeric: tabular-nums;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(138, 90, 43, .5), rgba(138, 90, 43, .05));
}

/* ---------- 图片容器基础（页面阶段放 <img>） ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(138, 90, 43, .3);
  background: linear-gradient(150deg, #16324A 0%, #0B1B2B 58%, #3A2A18 100%);
  aspect-ratio: 4 / 3;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 70% at 24% 18%, rgba(216, 176, 122, .22), transparent 62%),
    repeating-linear-gradient(90deg, rgba(216, 176, 122, .07) 0 1px, transparent 1px 56px);
}
.media-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--paper {
  background: linear-gradient(150deg, #E7D9C4 0%, #F3EBDD 58%, #D8B07A 155%);
  border-color: rgba(138, 90, 43, .22);
}
.media-frame--paper::after {
  background: repeating-linear-gradient(90deg, rgba(138, 90, 43, .08) 0 1px, transparent 1px 40px);
}

/* ---------- 可展开档案条目 ---------- */
.fold { border-bottom: 1px solid rgba(138, 90, 43, .2); }

.fold__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 10px;
  background: transparent;
  border: 0;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.fold__trigger:hover { background: rgba(231, 217, 196, .55); }

.fold__num {
  flex: 0 0 auto;
  min-width: 58px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--brass-700);
}
.fold__label {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.45;
  color: var(--ink-900);
}
.fold__meta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate-600);
}
.fold__icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(138, 90, 43, .45);
  border-radius: 50%;
}
.fold__icon::before,
.fold__icon::after {
  content: "";
  position: absolute;
  background: var(--brass-700);
  border-radius: 1px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.fold__icon::before { left: 50%; top: 4px; bottom: 4px; width: 1.5px; transform: translateX(-50%); }
.fold__icon::after { top: 50%; left: 4px; right: 4px; height: 1.5px; transform: translateY(-50%); }
.fold__trigger[aria-expanded="true"] .fold__icon::before { transform: translateX(-50%) scaleY(0); opacity: 0; }

.fold__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .26s var(--ease);
}
.fold__panel[hidden] { display: none; }
.fold__inner {
  padding: 2px 10px 26px 84px;
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--slate-600);
}

/* ---------- 页头 ---------- */
.site-header { position: relative; z-index: 60; }

.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 0 0 14px 14px;
  background: var(--ink-900);
  border: 1px solid rgba(216, 176, 122, .5);
  border-top: 0;
  color: var(--paper-100);
  font-size: 13.5px;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--paper-100); }

/* 竖轨 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.2vh, 26px);
  padding: clamp(16px, 2.4vh, 26px) 0 clamp(14px, 2.2vh, 24px);
  background: linear-gradient(180deg, #0B1B2B 0%, #16324A 52%, #0B1B2B 100%);
  border-right: 1px solid rgba(216, 176, 122, .3);
  box-shadow: 16px 0 44px -34px rgba(11, 27, 43, .95);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail :focus-visible { outline-color: var(--brass-300); }

.rail-top { display: none; }

.rail-brand {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.rail-brand::after {
  content: "";
  width: 1px;
  height: 22px;
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(216, 176, 122, .6), rgba(216, 176, 122, 0));
}
.rail-brand:hover { text-decoration: none; }

.rail-brand__seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 176, 122, .65);
  border-radius: 13px;
  background: radial-gradient(120% 120% at 28% 22%, rgba(216, 176, 122, .26), rgba(11, 27, 43, 0) 64%);
  color: var(--brass-300);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(216, 176, 122, .06), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rail-brand:hover .rail-brand__seal {
  color: #F6E3C6;
  box-shadow: 0 0 0 6px rgba(216, 176, 122, .14), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.rail-brand__wordmark {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--paper-100);
}

.rail-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px 0;
}
.rail-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.1vh, 14px);
  width: 100%;
}
.rail-nav__list li { display: flex; justify-content: center; width: 100%; }

.rail-link {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 5px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease);
}
.rail-link:hover { background: rgba(185, 133, 74, .14); text-decoration: none; }

.rail-link__num {
  writing-mode: vertical-rl;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(216, 176, 122, .55);
  transition: color var(--dur) var(--ease);
}
.rail-link__text {
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.45vh, 13px);
  letter-spacing: .22em;
  color: rgba(243, 235, 221, .74);
  transition: color var(--dur) var(--ease);
}
.rail-link:hover .rail-link__text { color: var(--paper-100); }

.rail-link[aria-current="page"] { background: rgba(185, 133, 74, .16); }
.rail-link[aria-current="page"] .rail-link__text,
.rail-link[aria-current="page"] .rail-link__num { color: var(--brass-300); }
.rail-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 2px;
  height: 26px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--brass-300), var(--brass-700));
}

.rail-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rail-cta {
  display: inline-block;
  writing-mode: vertical-rl;
  padding: 17px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #E0BC86, #B9854A 48%, #8A5A2B);
  color: #150C03;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-decoration: none;
  box-shadow: 0 10px 22px -14px rgba(216, 176, 122, .95), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rail-cta:hover {
  color: #150C03;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 16px 26px -14px rgba(216, 176, 122, 1), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.rail-foot__v {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .04em;
  color: rgba(216, 176, 122, .6);
  white-space: nowrap;
}

.rail-aux { display: none; }

/* 版本带 */
.versionbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-height: var(--bar-h);
  padding: 8px clamp(16px, 3vw, 44px);
  background: linear-gradient(180deg, #EFE3D2 0%, var(--paper-200) 100%);
  border-bottom: 1px solid rgba(138, 90, 43, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  font-size: 12.5px;
  color: var(--ink-700);
  transition: box-shadow var(--dur) var(--ease);
}
.versionbar[data-scrolled="true"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 26px -22px rgba(11, 27, 43, .9);
}

.versionbar__v {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-900);
}
.versionbar__sep {
  width: 1px;
  height: 14px;
  background: rgba(138, 90, 43, .35);
}
.versionbar__cycle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--slate-600);
}
.versionbar__aux {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .04em;
}
.versionbar__aux a { color: var(--brass-700); text-decoration: none; }
.versionbar__aux a:hover { text-decoration: underline; text-underline-offset: 3px; }

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(138, 90, 43, .12);
}
.progress-rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-300) 58%, var(--celadon-500));
  transition: transform .12s linear;
}

/* 移动开关 */
.nav-toggle { display: none; }

.nav-scrim { display: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  overflow: hidden;
  background: linear-gradient(180deg, #0B1B2B 0%, #0E2234 46%, #0B1B2B 100%);
  color: rgba(243, 235, 221, .78);
  font-size: 14px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(216, 176, 122, 0),
    var(--brass-300) 22%,
    var(--brass-500) 62%,
    rgba(216, 176, 122, 0));
}
.site-footer p { max-width: none; }
.site-footer :focus-visible { outline-color: var(--brass-300); }

.footer-watermark {
  position: absolute;
  right: -2%;
  bottom: -14%;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(120px, 21vw, 300px);
  line-height: .8;
  letter-spacing: -.05em;
  color: rgba(216, 176, 122, .045);
  pointer-events: none;
  user-select: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 84px) clamp(20px, 4vw, 56px) clamp(34px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr) minmax(0, 1.15fr);
  gap: clamp(30px, 4vw, 64px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(216, 176, 122, .6);
  border-radius: 16px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(216, 176, 122, .24), transparent 64%);
  color: var(--brass-300);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--paper-100);
}
.footer-brand__line {
  max-width: 26ch;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.95;
  letter-spacing: .04em;
  color: rgba(216, 176, 122, .68);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.footer-col__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--paper-100);
}
.footer-col__title .mono {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--brass-300);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  color: rgba(243, 235, 221, .72);
  font-size: 13.5px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-col a:hover {
  color: var(--brass-300);
  border-bottom-color: rgba(216, 176, 122, .5);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}
.contact-list__k {
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--brass-300);
}
.contact-list__v {
  color: rgba(243, 235, 221, .88);
  letter-spacing: .03em;
  word-break: break-all;
}
.contact-list__v.mono { font-size: 12.5px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border: 1px solid rgba(216, 176, 122, .4);
  border-radius: 999px;
  background: transparent;
  color: var(--brass-300);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  line-height: 1.7;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.copy-btn:hover { background: rgba(216, 176, 122, .14); }
.copy-btn[data-copied="true"] {
  background: var(--celadon-500);
  border-color: transparent;
  color: #0B1B2B;
}

.footer-note {
  max-width: 34ch;
  padding-left: 12px;
  border-left: 1px solid rgba(216, 176, 122, .3);
  font-size: 12px;
  line-height: 1.9;
  color: rgba(243, 235, 221, .5);
}

.footer-base {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(216, 176, 122, .18);
}
.footer-base__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px clamp(20px, 4vw, 56px) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  color: rgba(243, 235, 221, .45);
}
.footer-base__icp { color: rgba(216, 176, 122, .7); }

/* ---------- 平板 ---------- */
@media (max-width: 1040px) {
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__line { max-width: 46ch; }
}

/* ---------- 移动 / 平板窄幅：抽屉 ---------- */
@media (max-width: 900px) {
  body { padding-left: 0; }

  html { scroll-padding-top: 66px; }

  .versionbar {
    min-height: 54px;
    padding: 10px 96px 10px 16px;
    gap: 6px 12px;
    align-content: center;
  }
  .versionbar__v { font-size: 10.5px; letter-spacing: .06em; }
  .versionbar__cycle { font-size: 10.5px; gap: 6px; }
  .versionbar__sep,
  .versionbar__aux { display: none; }

  .rail {
    inset: 0 auto 0 0;
    z-index: 95;
    width: min(88vw, 380px);
    align-items: stretch;
    gap: 20px;
    padding: 22px 20px 34px;
    border-right: 1px solid rgba(216, 176, 122, .34);
    box-shadow: 24px 0 60px -30px rgba(0, 0, 0, .7);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .26s var(--ease), visibility 0s linear .26s;
  }
  .site-header[data-open="true"] .rail {
    transform: none;
    visibility: visible;
    transition: transform .26s var(--ease), visibility 0s linear 0s;
  }

  .rail-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(216, 176, 122, .28);
  }
  .rail-top__v {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--brass-300);
  }
  .rail-top__c {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(243, 235, 221, .72);
  }
  .rail-top__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #E0BC86, #B9854A 52%, #8A5A2B);
    color: #150C03;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-decoration: none;
  }
  .rail-top__cta:hover { color: #150C03; }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .rail-brand::after { display: none; }
  .rail-brand__wordmark {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: .16em;
  }

  .rail-nav { flex: 0 0 auto; align-items: stretch; }
  .rail-nav__list { align-items: stretch; gap: 2px; }
  .rail-nav__list li { justify-content: stretch; }
  .rail-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .rail-link__num {
    writing-mode: horizontal-tb;
    padding-top: 0;
    font-size: 11px;
    color: rgba(216, 176, 122, .6);
  }
  .rail-link__text {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: .1em;
  }
  .rail-link[aria-current="page"]::after {
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
  }

  .rail-foot {
    align-items: stretch;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(216, 176, 122, .22);
  }
  .rail-cta { display: none; }
  .rail-foot__v {
    font-size: 10px;
    letter-spacing: .06em;
    color: rgba(216, 176, 122, .62);
  }
  .rail-aux {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
  }
  .rail-aux a {
    color: rgba(243, 235, 221, .82);
    text-decoration: none;
    border-bottom: 1px solid rgba(216, 176, 122, .38);
    padding-bottom: 2px;
  }
  .rail-aux a:hover { color: var(--brass-300); }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 27, 43, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--ease);
  }
  .site-header[data-open="true"] .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    position: fixed;
    top: 8px;
    right: 12px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(216, 176, 122, .5);
    border-radius: 999px;
    background: var(--ink-900);
    color: var(--paper-100);
    font-size: 12.5px;
    letter-spacing: .16em;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
  }
  .site-header[data-open="true"] .nav-toggle {
    background: var(--brass-500);
    border-color: transparent;
    color: #0B1B2B;
  }
  .nav-toggle__bars {
    position: relative;
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    transition: background var(--dur) var(--ease);
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
    transition: transform var(--dur) var(--ease);
  }
  .nav-toggle__bars::before { top: -5px; }
  .nav-toggle__bars::after { top: 5px; }
  .site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
  .site-header[data-open="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .site-header[data-open="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

  .fold__inner { padding-left: 12px; }
}

/* ---------- 小屏 ---------- */
@media (max-width: 720px) {
  .footer-shell { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
  .footer-brand__line { max-width: 32ch; }
  .footer-note { max-width: 40ch; }
  .footer-base__inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .section-head { margin-bottom: 22px; }
  .fold__trigger { padding: 16px 6px; gap: 10px; }
  .fold__num { min-width: 44px; font-size: 10.5px; }
  .fold__meta { display: none; }
  .fold__inner { padding: 2px 6px 22px 6px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-watermark { font-size: 150px; bottom: -6%; }
}

@media (max-width: 900px) and (min-width: 561px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .status-dot { animation: none; }
  .rail, .nav-scrim, .fold__panel { transition: none !important; }
}
