/* =========================================================
   欧皇看台 · 共享站点样式 /assets/site.css
   框架式导航 + 纵向叙事长卷 + 矿物色体系
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, figcaption, blockquote,
dl, dd, fieldset { margin: 0; }

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 品牌色板 */
  --ink: #0F2A22;          /* 深夜球场墨绿 */
  --ink-2: #174034;        /* 墨绿浅阶 */
  --sand: #E8D9BF;         /* 戈壁暖沙 */
  --cream: #F5EDE0;        /* 米白 */
  --sand-2: #D3BC98;       /* 沙色深阶 */
  --clay: #B95F32;         /* 陶土橙 */
  --gold: #F2A03D;         /* 欧皇金橙 */
  --moss: #7FA88F;         /* 苔绿 */
  --stone: #9AA79B;        /* 岩灰 */
  --charcoal: #2B2A26;     /* 炭墨 */

  /* 版面 */
  --rail-w: 264px;
  --rail-w-sm: 108px;
  --status-h: 44px;
  --content-max: 1240px;
  --gutter: clamp(20px, 4vw, 32px);

  /* 字族 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 400ms;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--charcoal);
  background-color: var(--sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 极低透明度纸纹颗粒，覆盖整页（不遮挡交互） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .05;
  background-image: repeating-linear-gradient(118deg, #2B2A26 0 1px, transparent 1px 5px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

p { text-wrap: pretty; }

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- 4. Focus ---------- */
:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: 2px;
}

.statusbar :focus-visible,
.rail :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--gold);
  border-radius: 2px;
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 6. Header 外框 ---------- */
.site-header {
  position: relative;
  z-index: 70;
}

/* ---------- 6.1 顶部状态细条 ---------- */
.statusbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--status-h);
  z-index: 70;
  color: var(--cream);
  background: var(--ink);
  border-bottom: 1px solid rgba(242, 160, 61, .22);
}

.statusbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding-inline: 16px;
}

.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.lockup__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--cream);
  transition: color .2s var(--ease);
}

.lockup:hover .lockup__name { color: var(--gold); }

.lockup__domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--stone);
}

.lockup__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--gold);
  background: rgba(242, 160, 61, .09);
  border: 1px solid rgba(242, 160, 61, .42);
  border-radius: 999px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.status-chip:hover {
  background: rgba(242, 160, 61, .18);
  border-color: var(--gold);
}

.status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(242, 160, 61, .55);
  animation: chipPulse 2.4s ease-out infinite;
}

@keyframes chipPulse {
  0%   { box-shadow: 0 0 0 0 rgba(242, 160, 61, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(242, 160, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 160, 61, 0); }
}

.statusbar__utils {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
  font-size: 12.5px;
}

.statusbar__link {
  color: rgba(245, 237, 224, .72);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.statusbar__link:hover {
  color: var(--gold);
  border-bottom-color: rgba(242, 160, 61, .55);
}

/* 更新日志浮层 */
.status-log {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 71;
  width: min(560px, calc(100vw - 24px));
  padding: 18px 20px 20px;
  background: var(--ink-2);
  border: 1px solid rgba(242, 160, 61, .3);
  border-top: 0;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .38);
}

.status-log__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.status-log__list {
  display: grid;
  gap: 10px;
}

.status-log__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 237, 224, .1);
}

.status-log__item:last-child { border-bottom: 0; padding-bottom: 0; }

.status-log__v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--gold);
}

.status-log__d {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245, 237, 224, .78);
}

.status-log__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--moss);
  border-bottom: 1px solid rgba(127, 168, 143, .5);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.status-log__more:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* 滚动进度 */
.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .12s linear;
}

/* ---------- 6.2 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  padding: 7px 10px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--cream);
  border: 1px solid rgba(245, 237, 224, .3);
  border-radius: 2px;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 6.3 框架式左侧导航 ---------- */
.rail {
  position: fixed;
  top: var(--status-h);
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--rail-w);
  padding: 26px 0 20px;
  overflow-y: auto;
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(112deg, rgba(245, 237, 224, .045) 0 1px, transparent 1px 8px);
  border-right: 1px solid rgba(245, 237, 224, .09);
  transition: width var(--dur) var(--ease);
  scrollbar-width: thin;
}

.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-thumb { background: rgba(245, 237, 224, .18); }

.rail__cap {
  padding: 0 22px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  transition: padding var(--dur) var(--ease), font-size var(--dur) var(--ease);
}

.rail__list {
  display: grid;
  gap: 2px;
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 21px;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(245, 237, 224, .7);
  border-left: 3px solid transparent;
  transition:
    color .2s var(--ease),
    background-color .2s var(--ease),
    border-color .2s var(--ease),
    padding var(--dur) var(--ease),
    font-size var(--dur) var(--ease);
}

.rail__link:hover {
  color: var(--cream);
  background: rgba(245, 237, 224, .055);
}

.rail__link[aria-current="page"] {
  color: var(--cream);
  border-left-color: var(--gold);
  background-image: linear-gradient(90deg, rgba(242, 160, 61, .16), transparent 78%);
}

.rail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--stone);
  transition: color .2s var(--ease), font-size var(--dur) var(--ease);
}

.rail__link[aria-current="page"] .rail__num { color: var(--gold); }

.rail__label { white-space: nowrap; }

.rail__foot {
  margin-top: auto;
  padding: 18px 22px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--stone);
  border-top: 1px solid rgba(245, 237, 224, .1);
  transition: opacity .25s var(--ease);
}

/* 滚动后导航收窄 */
body.is-scrolled .rail { width: var(--rail-w-sm); }
body.is-scrolled .rail__cap { padding-inline: 14px; font-size: 10px; }
body.is-scrolled .rail__link { gap: 8px; padding: 11px 10px 11px 12px; font-size: 13px; }
body.is-scrolled .rail__num { display: none; }
body.is-scrolled .rail__foot { opacity: 0; pointer-events: none; }

/* ---------- 7. 主内容与页脚让位 ---------- */
#main-content {
  position: relative;
  z-index: 1;
  margin-inline-start: var(--rail-w);
  padding-top: var(--status-h);
  min-height: 60vh;
  transition: margin-inline-start var(--dur) var(--ease);
}

body.is-scrolled #main-content { margin-inline-start: var(--rail-w-sm); }

.site-footer {
  position: relative;
  z-index: 1;
  margin-inline-start: var(--rail-w);
  color: var(--cream);
  background: var(--ink);
  transition: margin-inline-start var(--dur) var(--ease);
}

body.is-scrolled .site-footer { margin-inline-start: var(--rail-w-sm); }

/* ---------- 8. 页脚 ---------- */
.update-strip {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding-inline: var(--gutter);
  background: var(--ink-2);
  border-bottom: 1px solid rgba(245, 237, 224, .1);
  scrollbar-width: thin;
}

.update-strip__cap {
  flex: 0 0 auto;
  padding: 12px 18px 12px 0;
  margin-inline-end: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  border-inline-end: 1px solid rgba(245, 237, 224, .16);
}

.update-strip__list {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.update-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13px;
  white-space: nowrap;
  color: rgba(245, 237, 224, .74);
  border-inline-end: 1px solid rgba(245, 237, 224, .08);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.update-strip__item:hover {
  color: var(--cream);
  background: rgba(245, 237, 224, .06);
}

.update-strip__v {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 64px var(--gutter) 48px;
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--cream);
}

.footer-brand__domain {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}

.footer-brand__tag {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(245, 237, 224, .66);
}

.footer-brand__medal {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  border: 1px solid rgba(242, 160, 61, .5);
  border-radius: 2px;
}

.footer-col__cap {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col__list {
  display: grid;
  gap: 4px;
}

.footer-col__list li {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(245, 237, 224, .68);
}

.footer-col__list a {
  display: inline-block;
  color: rgba(245, 237, 224, .72);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-col__list a:hover {
  color: var(--gold);
  border-bottom-color: rgba(242, 160, 61, .6);
}

.footer-contact li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(245, 237, 224, .8);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-contact__k {
  display: inline-block;
  min-width: 2.6em;
  margin-inline-end: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--clay);
}

.footer-col__note {
  margin-top: 16px;
  padding-left: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 237, 224, .5);
  border-left: 2px solid rgba(242, 160, 61, .4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 20px var(--gutter) 30px;
  font-size: 12.5px;
  color: rgba(245, 237, 224, .55);
  border-top: 1px solid rgba(245, 237, 224, .12);
}

.footer-legal__copy,
.footer-legal__icp { font-family: var(--font-mono); letter-spacing: .02em; }

.footer-legal__sep { color: rgba(245, 237, 224, .28); }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-inline-start: auto;
}

.footer-legal__links a {
  color: rgba(245, 237, 224, .68);
  transition: color .2s var(--ease);
}

.footer-legal__links a:hover { color: var(--gold); }

/* ---------- 9. 共享排版与内容组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.chapter-band {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  border-top: 8px solid var(--clay);
}

.chapter-band--ink {
  color: var(--gold);
  border-top-color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.display-1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
}

.display-2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

.title-serif {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--ink-2);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--sand-2);
  border-radius: 999px;
}

.chip--gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    transform .2s var(--ease),
    background-color .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.btn--gold:hover { background: #FFB457; border-color: #FFB457; }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(15, 42, 34, .35);
}

.btn--ghost:hover {
  background: rgba(15, 42, 34, .06);
  border-color: var(--ink);
}

.btn--on-ink {
  color: var(--cream);
  background: transparent;
  border-color: rgba(245, 237, 224, .4);
}

.btn--on-ink:hover {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}

/* 面包屑 */
.breadcrumbs {
  font-size: 13px;
  color: var(--clay);
}

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

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li::after {
  content: "/";
  color: var(--sand-2);
}

.breadcrumbs li:last-child::after { content: none; }

.breadcrumbs a {
  color: var(--clay);
  transition: color .2s var(--ease);
}

.breadcrumbs a:hover { color: var(--ink); }

.breadcrumbs [aria-current="page"] { color: var(--ink-2); }

/* 长文阅读区 */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
}

.prose > * + * { margin-top: 20px; }

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin-top: 40px;
  color: var(--ink);
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.35;
  margin-top: 30px;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-inline-start: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 8px; }

.prose strong { font-weight: 500; color: var(--ink); }

.prose blockquote {
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--cream);
  border-left: 4px solid var(--clay);
}

/* 图片容器基础规则（页面阶段在 .media-frame 内放 img） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--sand-2);
  background-image: repeating-linear-gradient(115deg, rgba(43, 42, 38, .07) 0 1px, transparent 1px 9px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
}

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

.media-frame--tilt { transform: rotate(-1.4deg); }

.figure { margin: 0; }

.figure-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--clay);
}

/* 深色分区作用域 */
.on-ink { color: var(--cream); }
.on-ink h1,
.on-ink h2,
.on-ink h3,
.on-ink h4 { color: var(--cream); }
.on-ink .eyebrow { color: var(--gold); }
.on-ink .lede { color: rgba(245, 237, 224, .82); }
.on-ink .figure-caption { color: var(--stone); }

/* 12 列非对称栅格 */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.u-span-4  { grid-column: span 4; }
.u-span-5  { grid-column: span 5; }
.u-span-6  { grid-column: span 6; }
.u-span-7  { grid-column: span 7; }
.u-span-8  { grid-column: span 8; }
.u-span-9  { grid-column: span 9; }
.u-span-12 { grid-column: span 12; }

/* 细分隔线 */
.hairline {
  height: 1px;
  background: var(--sand-2);
  border: 0;
}

.on-ink .hairline { background: rgba(245, 237, 224, .16); }

/* ---------- 10. 动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

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

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  .nav-toggle { display: inline-flex; }

  .statusbar__utils { display: none; }

  .statusbar__inner { gap: 10px; padding-inline: 12px; }

  .lockup__domain { display: none; }

  .status-chip { padding: 5px 9px; font-size: 11.5px; }

  /* 抽屉式导航 */
  .rail,
  body.is-scrolled .rail {
    top: var(--status-h);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--status-h));
    padding: 18px 0 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 237, 224, .14);
    box-shadow: 0 26px 52px rgba(0, 0, 0, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }

  .rail[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .rail__cap,
  body.is-scrolled .rail__cap {
    padding: 0 20px 14px;
    font-size: 11px;
  }

  .rail__link,
  body.is-scrolled .rail__link {
    gap: 12px;
    padding: 14px 20px;
    font-size: 16px;
  }

  .rail__num,
  body.is-scrolled .rail__num { display: inline; font-size: 11px; }

  .rail__foot,
  body.is-scrolled .rail__foot {
    opacity: 1;
    pointer-events: auto;
    margin-top: 18px;
  }

  /* 内容让位归零 */
  #main-content,
  body.is-scrolled #main-content,
  .site-footer,
  body.is-scrolled .site-footer {
    margin-inline-start: 0;
  }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }

  .u-span-4,
  .u-span-5,
  .u-span-6,
  .u-span-7,
  .u-span-8,
  .u-span-9,
  .u-span-12 { grid-column: span 6; }

  .footer-grid { padding-block: 48px 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .statusbar { height: 46px; }
  :root { --status-h: 46px; }

  .lockup__name { font-size: 15px; }

  .status-chip__text {
    max-width: 8.5em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .status-log {
    left: 8px;
    width: calc(100vw - 16px);
    padding: 16px;
  }

  .status-log__item { grid-template-columns: 44px 1fr; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand__name { font-size: 26px; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-legal__sep { display: none; }

  .footer-legal__links { margin-inline-start: 0; }

  .chapter-band { padding-block: 12px; font-size: 11px; }

  .btn { width: 100%; justify-content: center; }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .status-chip__dot { animation: none; }
}
