/* ============================================================
   皇冠集团游戏 · 共享站点样式 /assets/site.css
   皇家藏书阁 × 赛博游戏厅
   ============================================================ */

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

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

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

ul, ol { padding: 0; }

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

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

button { background: none; border: 0; }

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

table { border-collapse: collapse; }

hr {
  border: 0;
  height: 1px;
  background: rgba(212, 175, 55, 0.32);
}

/* ---------- 2. Tokens ---------- */
:root {
  /* 品牌色 */
  --abyss: #0E2A2B;
  --vault: #071A1B;
  --crown: #D4AF37;
  --crown-lite: #F0D98A;
  --parchment: #F3EADA;
  --moss: #1F4B4A;
  --cyan: #22E0D6;
  --magenta: #FF3D8B;
  --amber: #FFB020;
  --mist: #C9D6D2;
  --void: #04100F;

  /* 线条与阴影 */
  --line: rgba(212, 175, 55, 0.30);
  --line-strong: rgba(212, 175, 55, 0.62);
  --shadow-hard: 8px 8px 0 var(--void);
  --shadow-hard-lift: 10px 12px 0 var(--void);

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

  /* 布局 */
  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap-s: 24px;
  --gap-m: 48px;

  /* 缓动 */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版与背景 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--mist);
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--abyss);
  background-image:
    radial-gradient(1100px 520px at 50% -12%, rgba(31, 75, 74, 0.66), transparent 72%),
    radial-gradient(760px 420px at 94% 6%, rgba(34, 224, 214, 0.05), transparent 70%),
    radial-gradient(900px 620px at 2% 94%, rgba(212, 175, 55, 0.07), transparent 72%),
    radial-gradient(circle at 14% 22%, rgba(212, 175, 55, 0.40) 0 1px, transparent 1.7px),
    radial-gradient(circle at 46% 8%, rgba(240, 217, 138, 0.28) 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 34%, rgba(212, 175, 55, 0.26) 0 1px, transparent 1.7px),
    radial-gradient(circle at 26% 68%, rgba(240, 217, 138, 0.20) 0 1px, transparent 1.7px),
    radial-gradient(circle at 66% 84%, rgba(212, 175, 55, 0.24) 0 1px, transparent 1.7px),
    radial-gradient(circle at 90% 62%, rgba(240, 217, 138, 0.18) 0 1px, transparent 1.7px);
  background-repeat: no-repeat, no-repeat, no-repeat,
    repeat, repeat, repeat, repeat, repeat, repeat;
  background-size: auto, auto, auto,
    320px 320px, 280px 280px, 360px 360px, 300px 300px, 340px 340px, 260px 260px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--parchment);
}

h1 {
  font-size: clamp(44px, 7vw, 104px);
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: clamp(17px, 1.8vw, 20px); }

p { margin-bottom: 0; }

strong, b { color: var(--crown-lite); font-weight: 700; }

small {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(201, 214, 210, 0.62);
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--crown-lite);
}

/* 正文里的链接：金色下划线偏移 */
.prose a,
main a:not([class]) {
  color: var(--crown-lite);
  border-bottom: 1px solid var(--crown);
  padding-bottom: 1px;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

.prose a:hover,
main a:not([class]):hover {
  color: var(--parchment);
  border-bottom-color: var(--parchment);
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 300;
  display: inline-block;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--vault);
  background: var(--crown);
  border: 2px solid var(--crown);
  box-shadow: 6px 6px 0 var(--void);
  transition: top 160ms ease-out;
}

.skip-link:focus {
  top: 12px;
  outline-offset: 3px;
}

#main-content { display: block; }

/* ---------- 5. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gap-s);
}

.grid--asym {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap-m);
}

.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--gap-s);
}

/* ---------- 6. 眉标与分区标题 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crown);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--line-strong);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--parchment);
}

.section-head__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 214, 210, 0.55);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vault);
  background: var(--crown);
  border: 2px solid var(--crown);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--void);
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    color 180ms ease-out;
}

.btn:hover {
  color: var(--vault);
  background: var(--crown-lite);
  border-color: var(--crown-lite);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--void);
}

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

.btn--ghost {
  color: var(--crown);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--crown-lite);
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--crown-lite);
}

/* ---------- 8. 状态标签 ---------- */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 3px 10px 2px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  transition: color 120ms ease-out, background-color 120ms ease-out;
}

.status-tag--ok {
  color: var(--cyan);
  background: rgba(34, 224, 214, 0.10);
}

.status-tag--wait {
  color: var(--amber);
  background: rgba(255, 176, 32, 0.10);
}

.status-tag--alert {
  color: var(--magenta);
  background: rgba(255, 61, 139, 0.10);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 214, 210, 0.6);
}

.breadcrumb a {
  color: rgba(201, 214, 210, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}

.breadcrumb a:hover {
  color: var(--crown-lite);
  border-bottom-color: var(--crown);
}

.breadcrumb__sep {
  color: rgba(212, 175, 55, 0.55);
}

/* ---------- 10. 正文长读容器 ---------- */
.prose {
  max-width: 36em;
  font-size: 16px;
  line-height: 1.8;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.8em;
}

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

.prose li + li { margin-top: 0.4em; }

/* ---------- 11. 编号目录块 ---------- */
.index-block {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 6px 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: border-color 180ms ease-out;
}

.index-block:last-child { border-bottom: 1px solid var(--line); }

.index-block:hover { border-top-color: var(--crown); }

.index-block__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--crown);
  padding-top: 0.55em;
}

.index-block__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.24;
  color: var(--parchment);
}

.index-block__note {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(201, 214, 210, 0.74);
  max-width: 38em;
}

/* ---------- 12. 档案卡片 ---------- */
.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 26px;
  background:
    linear-gradient(180deg, rgba(31, 75, 74, 0.36), rgba(7, 26, 27, 0.94));
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: var(--shadow-hard);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms ease-out;
}

.archive-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--crown);
  border-left: 2px solid var(--crown);
  pointer-events: none;
}

.archive-card:hover,
.archive-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--crown);
  box-shadow: var(--shadow-hard-lift);
}

.archive-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crown);
}

.archive-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  color: var(--parchment);
}

.archive-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(201, 214, 210, 0.74);
}

/* ---------- 13. 更新日志条 ---------- */
.log-strip {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  transition: border-color 180ms ease-out;
}

.log-strip:hover { border-bottom-color: var(--crown); }

.log-strip__key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crown);
}

.log-strip__val {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(201, 214, 210, 0.82);
}

/* ---------- 14. 右侧浮动目录 ---------- */
.side-index {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--crown);
}

.side-index__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crown);
}

.side-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-index a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  color: rgba(201, 214, 210, 0.68);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.16);
  transition: color 150ms ease-out, border-color 150ms ease-out;
}

.side-index a:hover {
  color: var(--crown-lite);
}

.side-index a[aria-current="true"] {
  color: var(--crown-lite);
  border-bottom-color: var(--crown);
}

/* ---------- 15. 可复用图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  background:
    radial-gradient(120% 100% at 20% 0%, #17403F 0%, #0B2425 56%, var(--void) 100%);
  box-shadow: var(--shadow-hard);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.09) 0 2px,
    transparent 2px 12px
  );
  pointer-events: none;
  z-index: 1;
}

.media-frame > img,
.media-frame > picture,
.media-frame > svg {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 217, 138, 0.92);
  background: rgba(4, 16, 15, 0.74);
  border: 1px solid rgba(212, 175, 55, 0.42);
}

/* ============================================================
   16. 页头
   ============================================================ */
.scroll-meter {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: rgba(212, 175, 55, 0.16);
  pointer-events: none;
}

.scroll-meter__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--crown), var(--cyan));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
}

.site-header {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, #071A1B 0%, #0B2425 58%, #0E2A2B 100%);
  border-bottom: 2px solid var(--crown);
}

.header-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 10px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 214, 210, 0.6);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.header-rail__meta {
  margin: 0;
  color: rgba(201, 214, 210, 0.6);
}

.header-rail__utility {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(240, 217, 138, 0.85);
}

.header-rail__dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34, 224, 214, 0.9);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(22px, 3.4vw, 38px) var(--gutter) clamp(16px, 2.4vw, 24px);
}

.masthead__issue {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 214, 210, 0.5);
}

.masthead__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--crown);
}

.brand-crown {
  width: 34px;
  height: 34px;
  color: var(--crown);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--crown);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-name {
    background-image: linear-gradient(180deg, #F6E7B4 0%, #D4AF37 58%, #A98823 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(201, 214, 210, 0.62);
}

.masthead__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crown);
  background: transparent;
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  transition:
    color 180ms ease-out,
    border-color 180ms ease-out,
    background-color 180ms ease-out;
}

.nav-toggle:hover {
  color: var(--crown-lite);
  border-color: var(--crown);
  background: rgba(212, 175, 55, 0.08);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 120ms ease-out;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__text { line-height: 1; }

.site-nav {
  background: rgba(7, 26, 27, 0.62);
  border-top: 1px solid var(--line);
}

.nav-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--shell);
}

.nav-index > li { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 15px clamp(12px, 1.5vw, 22px);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(201, 214, 210, 0.86);
  border-left: 1px solid rgba(212, 175, 55, 0.16);
  transition: color 180ms ease-out, background-color 180ms ease-out;
}

.nav-index > li:last-child .nav-link {
  border-right: 1px solid rgba(212, 175, 55, 0.16);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--crown);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--crown-lite);
  background: rgba(212, 175, 55, 0.08);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--crown);
  background: rgba(212, 175, 55, 0.12);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link__num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(212, 175, 55, 0.55);
  transition: color 180ms ease-out;
}

.nav-link[aria-current="page"] .nav-link__num {
  color: var(--crown-lite);
}

.nav-link__label { white-space: nowrap; }

/* ============================================================
   17. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: linear-gradient(180deg, #0B2425 0%, #071A1B 52%, var(--void) 100%);
  border-top: 2px solid var(--crown);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.85) 0 12px,
    transparent 12px 24px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 3fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(22px, 3vw, 32px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand__crown {
  width: 40px;
  height: 40px;
  color: var(--crown);
}

.footer-brand__line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.45;
  color: var(--parchment);
}

.footer-brand__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 214, 210, 0.48);
}

.footer-brand__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(201, 214, 210, 0.62);
  max-width: 22em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crown);
  border-bottom: 1px solid var(--line);
}

.footer-col__title a {
  color: inherit;
  transition: color 150ms ease-out;
}

.footer-col__title a:hover { color: var(--crown-lite); }

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(201, 214, 210, 0.72);
  transition: color 150ms ease-out, padding-left 150ms var(--ease);
}

.footer-list a:hover {
  color: var(--crown-lite);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: rgba(201, 214, 210, 0.7);
}

.footer-contact__item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-contact__key {
  color: var(--crown);
  letter-spacing: 0.16em;
}

.footer-legal {
  background: rgba(4, 16, 15, 0.66);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 18px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(201, 214, 210, 0.55);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal__links a {
  color: rgba(240, 217, 138, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  transition: color 150ms ease-out, border-color 150ms ease-out;
}

.footer-legal__links a:hover {
  color: var(--parchment);
  border-bottom-color: var(--crown);
}

.footer-legal__year {
  margin-left: auto;
  color: rgba(201, 214, 210, 0.45);
}

/* ============================================================
   18. 响应式
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand__note { max-width: none; }
}

@media (max-width: 900px) {
  .header-rail {
    justify-content: flex-start;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .header-rail__meta { display: none; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 18px 16px;
  }

  .masthead__issue { display: none; }

  .masthead__brand {
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }

  .brand-crown { width: 26px; height: 26px; }

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

  .site-nav { display: none; }

  .site-nav[data-open="true"] { display: block; }

  .nav-index {
    flex-direction: column;
    padding-bottom: 8px;
  }

  .nav-index > li {
    display: block;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
  }

  .nav-index > li:last-child .nav-link { border-right: 0; }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px var(--gutter);
    border-left: 0;
    font-size: 15px;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    border-left: 4px solid var(--crown);
    padding-left: calc(var(--gutter) - 4px);
  }

  .grid--asym { grid-template-columns: minmax(0, 1fr); gap: var(--gap-s); }

  .side-index {
    position: static;
    border-left: 0;
    border-top: 2px solid var(--crown);
    padding: 14px 0 0;
  }

  .grid--asym > .side-index { order: -1; }
}

@media (max-width: 640px) {
  body { line-height: 1.8; }

  .index-block { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; }

  .log-strip { grid-template-columns: minmax(0, 1fr); gap: 4px; }

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

  .footer-legal__year { margin-left: 0; }

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

  .masthead__actions { align-self: center; }
}

/* ============================================================
   19. 减少动效
   ============================================================ */
@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;
  }

  .archive-card:hover,
  .archive-card:focus-within,
  .btn:hover,
  .btn:active {
    transform: none;
  }

  .footer-list a:hover { padding-left: 0; }

  .nav-link::after { transition: none; }
}
