/* ==========================================================================
   365平台站 · 共享样式 /assets/site.css
   昼夜流转：深空蓝结构层 + 奶油底阅读层 + 暖橙信号色 + 青绿状态色
   ========================================================================== */

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

* { margin: 0; }

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

body { min-height: 100vh; }

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

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

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
  padding: 0;
}

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --ink: #0B1B3A;
  --ink-2: #132A55;
  --orange: #FF7A3D;
  --orange-soft: #FFB183;
  --mint: #2BD9B4;
  --cream: #F7F1E4;
  --paper: #FFFBF3;
  --brown: #241A12;
  --gray: #5A6478;
  --line: #D9CFB8;
  --alert: #E0452C;

  --rail-w: 88px;
  --topbar-h: 64px;
  --maxw: 1200px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono",
    Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 基础 ---------- */
body {
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px, -1px -1px;
  background-blend-mode: normal;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 241, 228, 0.92), rgba(247, 241, 228, 0.99));
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 800; }
h4 { font-size: 18px; font-weight: 800; letter-spacing: 0; }

p { line-height: 1.85; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section--dark {
  background: var(--ink);
  color: rgba(247, 241, 228, 0.88);
}

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

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

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}

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

.rule {
  height: 2px;
  border: 0;
  background: var(--line);
  margin-block: clamp(20px, 3vw, 32px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--orange);
}

.section--dark .eyebrow { color: var(--orange-soft); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--orange);
}

.btn--quiet {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.btn--quiet:hover {
  transform: none;
  box-shadow: none;
  color: var(--orange);
}

.section--dark .btn--ghost {
  border-color: rgba(247, 241, 228, 0.45);
  color: var(--cream);
}

.section--dark .btn--quiet { color: var(--orange-soft); }

/* ---------- 标签与状态 ---------- */
.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(43, 217, 180, 0.18);
  animation: dotPulse 2.6s var(--ease) infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(43, 217, 180, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(43, 217, 180, 0.05); }
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray);
  line-height: 1.6;
}

/* ---------- 主题筛选（仅筛选当前页已有内容） ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 4px;
}

.filter-btn {
  padding: 6px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.filter-btn:hover { background: var(--orange-soft); }

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--orange);
}

[data-filterable][hidden] { display: none !important; }

/* ---------- 面板 / 框景 / 字段 ---------- */
.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--dark {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: rgba(247, 241, 228, 0.86);
  box-shadow: 6px 6px 0 var(--orange);
}

.panel--dark h3,
.panel--dark h4 { color: var(--cream); }

.framed {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(20px, 3vw, 40px);
}

.framed::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange)),
    linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size:
    18px 3px, 3px 18px,
    18px 3px, 3px 18px,
    18px 3px, 3px 18px,
    18px 3px, 3px 18px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.field-row:last-child { border-bottom: 0; }

.field-row__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.field-row__v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.breadcrumb a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.1em; }

.prose p {
  max-width: 34em;
  line-height: 1.9;
}

.prose h2 {
  margin-top: 1.8em;
  line-height: 1.2;
}

.prose h3 { margin-top: 1.4em; }

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose ul li {
  position: relative;
  padding-left: 18px;
  max-width: 34em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.prose ol { list-style: decimal; }
.prose ol li { max-width: 34em; }

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

.prose a:hover { color: var(--orange); }

.prose blockquote {
  border-left: 4px solid var(--orange);
  padding-left: 18px;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- 图片容器基础规则 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink-2);
  box-shadow: 6px 6px 0 var(--ink);
}

.img-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.img-frame--placeholder {
  background-color: var(--ink-2);
  background-image:
    linear-gradient(rgba(247, 241, 228, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 228, 0.1) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
}

.img-frame__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 3px 9px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.img-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px;
  background: linear-gradient(to top, rgba(11, 27, 58, 0.9), rgba(11, 27, 58, 0));
  color: rgba(247, 241, 228, 0.94);
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   Header · 侧边轨道
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header { position: relative; }

/* ---------- 移动端顶部栏 ---------- */
.topbar { display: none; }

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
  color: var(--cream);
}

.topbar__num {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--orange);
}

.topbar__name {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(247, 241, 228, 0.8);
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(247, 241, 228, 0.75);
}

/* ---------- 菜单按钮 ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 2px solid rgba(247, 241, 228, 0.35);
  color: var(--cream);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--orange); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background: var(--orange);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
  background: var(--orange);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* ---------- 遮罩 ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  background: rgba(11, 27, 58, 0.55);
  transition: opacity 0.3s var(--ease);
}

.site-header[data-open] .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 轨道 ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--rail-w);
  padding: 18px 6px 16px;
  background: var(--ink);
  background-image: linear-gradient(180deg, var(--ink) 0%, #0a1832 100%);
  color: var(--cream);
  border-right: 2px solid var(--ink-2);
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink-2);
  text-decoration: none;
  color: var(--cream);
}

.rail__brand-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--orange);
  text-shadow: 2px 2px 0 rgba(43, 217, 180, 0.28);
}

.rail__brand-label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: rgba(247, 241, 228, 0.58);
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 12px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.rail__nav::-webkit-scrollbar { width: 0; height: 0; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rail__item { width: 100%; }

.rail__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 11px 4px;
  border: 2px solid transparent;
  color: rgba(247, 241, 228, 0.74);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.rail__link:hover {
  color: var(--cream);
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.rail__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgba(255, 177, 131, 0.8);
}

.rail__txt {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2em;
  line-height: 1.1;
}

.rail__link[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink-2);
}

.rail__link[aria-current="page"] .rail__idx,
.rail__link[aria-current="page"] .rail__txt { color: var(--ink); }

.rail__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 14px;
  border-top: 2px solid var(--ink-2);
}

.rail__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.rail__status-txt {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(43, 217, 180, 0.92);
}

.rail__cta {
  display: block;
  width: 100%;
  padding: 15px 4px;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--mint);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.rail__cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--mint);
}

.rail__cta-txt {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.24em;
  line-height: 1.1;
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(247, 241, 228, 0.07);
  pointer-events: none;
}

.rail__progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--orange);
  transition: height 0.12s linear;
}

body.is-nav-open { overflow: hidden; }

/* ==========================================================================
   Footer · 昼夜反转的版权页
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding-top: clamp(38px, 5.5vw, 68px);
  background: var(--ink);
  background-image:
    linear-gradient(rgba(247, 241, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 241, 228, 0.05) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  color: rgba(247, 241, 228, 0.82);
  border-top: 4px solid var(--orange);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 2.2fr 1.35fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(30px, 4.5vw, 52px);
}

.footer__brand { min-width: 0; }

.footer__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 6.4vw, 80px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--orange);
  text-shadow: 4px 4px 0 rgba(43, 217, 180, 0.2);
}

.footer__tagline {
  margin-top: 14px;
  max-width: 16em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 241, 228, 0.78);
}

.footer__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange-soft);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  min-width: 0;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.footer__list { display: flex; flex-direction: column; gap: 2px; }

.footer__link {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  color: rgba(247, 241, 228, 0.78);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer__link:hover {
  color: var(--mint);
  transform: translateX(3px);
}

.footer__contact { min-width: 0; }

.footer__info { display: grid; gap: 10px; }

.footer__info-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.footer__info-row dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(247, 241, 228, 0.48);
}

.footer__info-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 241, 228, 0.9);
  overflow-wrap: anywhere;
}

.footer__note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(247, 241, 228, 0.6);
}

.footer__bottom {
  border-top: 2px solid rgba(247, 241, 228, 0.14);
  background: rgba(19, 42, 85, 0.55);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 228, 0.6);
}

.footer__slogan { color: rgba(247, 241, 228, 0.5); }

.footer__legal {
  margin-left: auto;
  color: rgba(255, 177, 131, 0.9);
}

/* ==========================================================================
   入场显现
   ========================================================================== */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式 · 平板与手机
   ========================================================================== */
@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 120;
    padding: 0 16px;
    background: var(--ink);
    color: var(--cream);
    border-bottom: 2px solid var(--orange);
  }

  .rail {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: min(336px, 88vw);
    padding: calc(var(--topbar-h) + 18px) 20px 26px;
    align-items: stretch;
    gap: 16px;
    overflow-y: auto;
    border-right: 0;
    border-left: 2px solid var(--orange);
    transform: translateX(101%);
    transition: transform 0.32s var(--ease);
    box-shadow: -8px 0 0 rgba(11, 27, 58, 0.18);
  }

  .site-header[data-open] .rail { transform: translateX(0); }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
  }

  .rail__brand-num { font-size: 30px; }

  .rail__brand-label {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: 0.32em;
  }

  .rail__nav {
    flex: 0 0 auto;
    padding: 6px 0;
    overflow: visible;
  }

  .rail__list {
    align-items: stretch;
    gap: 6px;
  }

  .rail__link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-color: rgba(247, 241, 228, 0.12);
  }

  .rail__idx { min-width: 20px; font-size: 11px; }

  .rail__txt {
    writing-mode: horizontal-tb;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .rail__link[aria-current="page"] { box-shadow: 4px 4px 0 var(--ink-2); }

  .rail__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
  }

  .rail__status { flex-direction: row; gap: 9px; }

  .rail__status-txt {
    writing-mode: horizontal-tb;
    letter-spacing: 0.2em;
  }

  .rail__cta {
    width: auto;
    padding: 12px 22px;
  }

  .rail__cta-txt {
    writing-mode: horizontal-tb;
    letter-spacing: 0.16em;
  }

  .rail__progress { display: none; }
}

@media (max-width: 720px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { margin-left: 0; }
}

@media (max-width: 420px) {
  .topbar__status { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom-inner { gap: 4px 16px; font-size: 11px; }
  .field-row__v { font-size: 13px; }
}

/* ==========================================================================
   降低动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dot { animation: none; box-shadow: 0 0 0 3px rgba(43, 217, 180, 0.18); }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .rail { transition: none; }

  .btn:hover,
  .rail__cta:hover,
  .footer__link:hover { transform: none; }
}
