/* ==========================================================================
   bet36旧版 · 共享 Site Kit  /assets/site.css
   暖纸色 + 深墨绿档案室：轨道导航 / 玻璃索引条 / 实色内容层 / 胶片进度
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; }

/* 2. 设计变量 ------------------------------------------------------------ */
:root {
  --paper: #F4E9D2;
  --paper-2: #E6D6B4;
  --white: #FFFDF6;
  --ink: #16302A;
  --night: #0B1A16;
  --orange: #F5A623;
  --blue: #1E4FB8;
  --moss: #6E9B7F;
  --seal: #B23A2E;
  --mute: #7A6B52;

  --rail-w: 84px;
  --util-h: 44px;
  --bar-h: 56px;
  --maxw: 1280px;

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --line: rgba(22, 48, 42, 0.16);
  --line-strong: rgba(22, 48, 42, 0.36);
  --on-dark: rgba(244, 233, 210, 0.78);
  --on-dark-dim: rgba(244, 233, 210, 0.55);
  --dark-line: rgba(244, 233, 210, 0.22);
  --shadow: 0 1px 0 rgba(22, 48, 42, 0.08), 0 10px 26px -20px rgba(11, 26, 22, 0.6);
}

/* 3. 基础排版 ------------------------------------------------------------ */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 60% at 12% 0%, rgba(255, 253, 246, 0.7), transparent 60%),
    repeating-linear-gradient(0deg, rgba(22, 48, 42, 0.022) 0 1px, transparent 1px 5px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  min-height: 100vh;
  padding-top: var(--util-h);
  padding-left: var(--rail-w);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.24;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 4.6vw, 58px); }
h2 { font-size: clamp(23px, 2.8vw, 33px); }
h3 { font-size: clamp(19px, 1.9vw, 23px); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; font-family: var(--sans); letter-spacing: 0; }

strong { font-weight: 600; }
small { font-size: 12.5px; }

/* 4. 可访问性 ------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: calc(var(--rail-w) + 12px);
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* 5. 布局工具 ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.col-3 { grid-column: span 3; }
.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-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }
.divider--dashed {
  height: 1px;
  margin: 28px 0;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

/* 6. 文本与元信息 -------------------------------------------------------- */
.prose { max-width: 34em; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.2em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

/* 7. 面层：玻璃 / 实色 / 卡片 / 统计 / 颗粒 / 图片容器 ------------------- */
.glass {
  background: rgba(255, 253, 246, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(255, 253, 246, 0.72);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 26px;
}
.panel--tight { padding: 18px; }

.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  background: var(--moss);
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.card:hover::after { opacity: 1; }

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 2px;
  padding: 14px 16px;
}
.stat__num {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat__label { font-size: 12.5px; color: var(--mute); line-height: 1.7; }

.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(244, 233, 210, 0.06) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.figure {
  margin: 0;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-image:
    linear-gradient(135deg, var(--paper-2) 0%, #D9C6A0 55%, var(--ink) 100%);
  overflow: hidden;
}
.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--square { aspect-ratio: 1 / 1; }
.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(11, 26, 22, 0.14) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(11, 26, 22, 0.38));
}
.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.18) contrast(1.03);
}
.figure__caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mute);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

/* 8. 控件 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { box-shadow: 3px 3px 0 rgba(11, 26, 22, 0.28); transform: translate(-1px, -1px); }
.btn--primary { background: var(--orange); color: var(--night); border-color: rgba(11, 26, 22, 0.45); }
.btn--ghost { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: rgba(30, 79, 184, 0.08); }
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 6px 12px; font-size: 12.5px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  transition: background 0.16s ease, color 0.16s ease;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pixel-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  background: var(--seal);
  color: #FFF6E8;
  box-shadow: 2px 2px 0 rgba(11, 26, 22, 0.35);
}
.pixel-tag--moss { background: var(--moss); color: var(--night); }

.pixel-cursor {
  display: inline-block;
  width: 9px;
  height: 14px;
  background: var(--seal);
  vertical-align: -2px;
  animation: pixel-jitter 2.4s steps(2, end) infinite;
}
@keyframes pixel-jitter {
  0%, 92%, 100% { transform: translateX(0); }
  93%, 96% { transform: translateX(2px); }
}

/* 9. 索引 / 标签页 / 折叠 / 面包屑 / 返回顶部 --------------------------- */
.index-list { border-top: 1px solid var(--line); }
.index-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.index-item:hover { background: rgba(30, 79, 184, 0.06); }
.index-item__key { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 0.04em; }
.index-item__val { font-size: 15px; }
.index-item__date { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }

.tabs { display: block; }
.tablist {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-strong);
}
.tab {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--mute);
  border-bottom: 3px solid transparent;
  transition: background 0.16s ease, color 0.16s ease;
}
.tab:hover:not([aria-selected="true"]) { background: rgba(22, 48, 42, 0.05); color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--orange);
  color: var(--night);
  border-bottom-color: var(--seal);
  font-weight: 600;
}
.tabpanel { padding-top: 20px; }
.tabpanel[hidden] { display: none; }
.tabpanel[data-anim] { animation: tab-in 0.16s ease-out; }
@keyframes tab-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

.fold {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 10px;
}
.fold__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.fold__head:hover { background: #DFCDA6; }
.fold[data-open] .fold__head { border-bottom-color: var(--line); }
.fold__icon {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  color: var(--blue);
  transition: transform 0.2s ease;
}
.fold[data-open] .fold__icon { transform: rotate(45deg); }
.fold__body { overflow: hidden; max-height: 0; transition: max-height 0.28s ease; }
.fold__inner { padding: 14px 16px 18px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mute);
}
.breadcrumb__item { color: var(--mute); }
a.breadcrumb__item {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.breadcrumb__item[aria-current="page"] { color: var(--ink); }
.breadcrumb__sep { color: var(--line-strong); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 65;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-2px); }

/* 10. 页头：轨道导航 / 玻璃索引条 / 移动条 / 抽屉 ----------------------- */
.site-header { position: relative; z-index: 60; }

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0 12px;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid rgba(244, 233, 210, 0.14);
  z-index: 70;
}
.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0 12px;
  border-bottom: 1px dashed var(--dark-line);
}
.rail__glyph {
  position: relative;
  width: 30px;
  height: 30px;
  background: var(--orange);
  box-shadow: inset 0 0 0 2px rgba(11, 26, 22, 0.55);
}
.rail__glyph::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--ink);
}
.rail__brandtext {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--paper);
}
.rail__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  gap: 2px;
  padding: 6px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 233, 210, 0.3) transparent;
}
.rail__nav::-webkit-scrollbar { width: 4px; }
.rail__nav::-webkit-scrollbar-thumb { background: rgba(244, 233, 210, 0.3); }
.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 9px 4px;
  color: rgba(244, 233, 210, 0.72);
  transition: color 0.2s ease, background 0.2s ease;
}
.rail__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.rail__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1;
}
.rail__link:hover { color: var(--white); background: rgba(244, 233, 210, 0.07); }
.rail__link[aria-current="page"] { color: var(--night); background: var(--orange); }
.rail__link[aria-current="page"] .rail__num { color: rgba(11, 26, 22, 0.62); }
.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--seal);
}
.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed var(--dark-line);
}
.rail__stamp {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--seal);
  border-radius: 2px;
  color: var(--seal);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
}
.rail__progress {
  position: relative;
  width: 4px;
  height: 64px;
  border-radius: 2px;
  background: rgba(244, 233, 210, 0.16);
  overflow: hidden;
}
.rail__progress-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: var(--orange);
  transition: height 0.1s linear;
}

.util {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--util-h);
  z-index: 68;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  font-size: 13px;
  background: rgba(244, 233, 210, 0.84);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}
.util__brandline {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mute);
  white-space: nowrap;
}
.util__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  max-width: 340px;
  min-width: 0;
  margin-left: auto;
}
.util__search-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.util__input {
  width: 100%;
  min-width: 0;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.util__input::placeholder { color: var(--mute); opacity: 0.8; }
.util__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  white-space: nowrap;
}
.util__login {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--night);
  background: var(--orange);
  border: 1px solid rgba(11, 26, 22, 0.4);
  border-radius: 2px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.util__login:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 rgba(11, 26, 22, 0.35); }
.util__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}
.util__status-text { letter-spacing: 0.04em; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(110, 155, 127, 0.22);
  animation: status-pulse 2.6s ease-in-out infinite;
}
@keyframes status-pulse {
  50% { box-shadow: 0 0 0 7px rgba(110, 155, 127, 0.08); }
}

.mobilebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  z-index: 72;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 233, 210, 0.14);
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--paper);
  border: 1px solid rgba(244, 233, 210, 0.4);
  border-radius: 2px;
}
.nav-toggle:hover { border-color: var(--orange); }
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars i { display: block; width: 16px; height: 2px; background: var(--orange); }
.nav-toggle__text { letter-spacing: 0.04em; }
.mobilebar__brand {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.mobilebar__login {
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--night);
  background: var(--orange);
  border-radius: 2px;
}

.drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 26, 22, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}
.drawer-scrim[data-open] { opacity: 1; visibility: visible; }

.drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(88vw, 340px);
  z-index: 90;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.drawer[data-open] { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--dark-line);
}
.drawer__title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; }
.drawer__close {
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 18px;
  color: var(--paper);
  border: 1px solid rgba(244, 233, 210, 0.35);
  border-radius: 2px;
}
.drawer__close:hover { border-color: var(--orange); background: rgba(245, 166, 35, 0.16); }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  color: var(--on-dark);
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.drawer__link:hover { background: rgba(244, 233, 210, 0.07); color: var(--white); }
.drawer__link[aria-current="page"] {
  border-left-color: var(--orange);
  background: rgba(245, 166, 35, 0.16);
  color: var(--white);
}
.drawer__num { font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.drawer__label { font-size: 15px; }
.drawer__foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border-top: 1px dashed var(--dark-line);
}
.drawer__sub {
  font-size: 13px;
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.drawer__meta { font-family: var(--mono); font-size: 10.5px; line-height: 1.7; color: var(--on-dark-dim); }
body.is-drawer-open { overflow: hidden; }

/* 11. 页脚 -------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(244, 233, 210, 0.045) 0 1px, transparent 1px 5px);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--moss) 42%, var(--blue) 74%, var(--seal) 100%);
}
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.4fr);
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px dashed var(--dark-line);
}
.footer__brand { min-width: 0; }
.footer__mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: var(--orange);
  box-shadow: inset 0 0 0 2px rgba(11, 26, 22, 0.5);
}
.footer__mark::after { content: ""; position: absolute; inset: 9px; background: var(--night); }
.footer__name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.footer__tagline {
  max-width: 24em;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}
.footer__badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  border: 1px solid rgba(244, 233, 210, 0.3);
  border-radius: 2px;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}
.footer__col { min-width: 0; }
.footer__col-title {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}
.footer__links { display: grid; gap: 9px; }
.footer__link {
  font-size: 14.5px;
  color: var(--on-dark);
  transition: color 0.16s ease;
}
.footer__link:hover {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--dark-line);
}
.footer__contact-item { display: grid; gap: 6px; }
.footer__contact-key {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--moss);
}
.footer__contact-val {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--paper);
  word-break: break-word;
}
.footer__contact-note { font-size: 12.5px; line-height: 1.7; color: var(--on-dark-dim); }
.footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 28px;
  align-items: center;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--on-dark-dim);
}
.footer__update { min-width: 0; }
.footer__legal { color: var(--on-dark); }
.footer__region { color: var(--on-dark); white-space: nowrap; }

/* 12. 显现 --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal][data-revealed] { opacity: 1; transform: none; }

/* 13. 响应式 ------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --rail-w: 64px; }
  .rail__label { font-size: 12px; letter-spacing: 0.06em; }
  .util__brandline { display: none; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-7, .col-8, .col-9 { grid-column: span 12; }
}

@media (max-width: 767px) {
  :root { --rail-w: 0px; --util-h: 44px; }
  body {
    padding-left: 0;
    padding-top: calc(var(--bar-h) + var(--util-h));
    font-size: 16px;
  }
  .rail { display: none; }
  .util {
    left: 0;
    top: var(--bar-h);
    gap: 12px;
    padding: 0 14px;
  }
  .util__login { display: none; }
  .util__actions { margin-left: 0; }
  .util__search { max-width: none; }
  .util__status-text { display: none; }
  .mobilebar { display: flex; }
  .drawer { display: flex; }
  .drawer-scrim { display: block; }

  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 32px 0; }
  .grid { gap: 16px; }
  .grid > * { grid-column: span 12; }
  .panel { padding: 20px; }

  .footer__inner { padding: 48px 16px 24px; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__contact { grid-template-columns: 1fr; gap: 18px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .footer__region { white-space: normal; }

  .index-item { grid-template-columns: minmax(0, 1fr) auto; }
  .index-item__key { grid-column: 1 / -1; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  .footer__nav { grid-template-columns: 1fr; }
}

/* 14. 降低动效 ----------------------------------------------------------- */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
