/* ============================================================
   澳门1877站 · 共享样式 /assets/site.css
   深海墨蓝底 + 暖金信号 + 纸张叠层 + 等宽电报索引
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

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

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

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

a { color: inherit; }

fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0A1A2A;
  --ink-deep: #061019;
  --ink-soft: #102438;
  --gold: #E3B15C;
  --gold-hi: #F7DE9C;
  --copper: #8C5A2B;
  --rose: #FF4E7A;
  --mint: #46D6B0;
  --paper: #F4EEE1;
  --mist: #9AB0C4;

  /* 尺寸 */
  --rail-w: 220px;
  --topbar-h: 64px;
  --shell-max: 1180px;
  --shell-narrow: 820px;
  --gutter: 20px;

  /* 字体 */
  --font-head: "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Source Han Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo,
    Consolas, "Courier New", monospace;

  /* 字号阶梯 12 / 14 / 16 / 20 / 28 / 44 / 72 / 128 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-28: clamp(1.5rem, 2.6vw, 1.75rem);
  --fs-44: clamp(2rem, 4.4vw, 2.75rem);
  --fs-72: clamp(2.75rem, 7vw, 4.5rem);
  --fs-128: clamp(3.5rem, 13vw, 8rem);

  /* 线条与动效 */
  --line-copper: rgba(140, 90, 43, 0.55);
  --line-soft: rgba(154, 176, 196, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
}

/* ---------- 3. 基础层 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 680px at 82% -12%, rgba(227, 177, 92, 0.10), transparent 62%),
    radial-gradient(900px 600px at 4% 108%, rgba(140, 90, 43, 0.14), transparent 60%),
    linear-gradient(180deg, #0A1A2A 0%, #08172A 46%, #061019 100%);
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* 细网格层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 176, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 176, 196, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* 扫描线层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(244, 238, 225, 0.028) 0 1px,
    transparent 1px 4px
  );
}

main {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--paper);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-72); }
h2 { font-size: var(--fs-44); }
h3 { font-size: var(--fs-28); line-height: 1.26; }
h4 { font-size: var(--fs-20); line-height: 1.32; }

p { max-width: 38em; }

strong { color: var(--gold-hi); font-weight: 700; }

em { font-style: normal; color: var(--gold); }

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

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 4. 容器与节奏 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: var(--shell-narrow); }

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 8vw, 92px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.section-head > p { color: var(--mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line-copper);
  padding-bottom: 5px;
  align-self: flex-start;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 177, 92, 0.18);
  flex: 0 0 auto;
}

.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-128);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  color: var(--paper);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

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

.btn--gold:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -20px rgba(227, 177, 92, 0.95);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: rgba(227, 177, 92, 0.55);
}

.btn--ghost:hover {
  background: rgba(227, 177, 92, 0.12);
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn--block { width: 100%; }

/* ---------- 6. 卡片 / 标签 / 网格 ---------- */
.card {
  position: relative;
  background: rgba(16, 36, 56, 0.66);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 22px;
  transition: transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-copper);
  box-shadow: 0 24px 44px -34px rgba(0, 0, 0, 0.95);
}

.paper {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(140, 90, 43, 0.55);
  border-radius: 2px;
  padding: 22px;
  box-shadow: 0 26px 46px -34px rgba(0, 0, 0, 0.95);
  transition: transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  border: 1px solid rgba(227, 177, 92, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.paper:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 52px -34px rgba(0, 0, 0, 1);
}

.paper h2, .paper h3, .paper h4 { color: var(--ink-deep); }
.paper p { color: #33465A; }
.paper strong { color: var(--copper); }
.paper .eyebrow {
  color: var(--copper);
  border-bottom-color: rgba(140, 90, 43, 0.45);
}
.paper .eyebrow::before {
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(140, 90, 43, 0.16);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(227, 177, 92, 0.08);
  border: 1px solid var(--line-copper);
  border-radius: 2px;
}

.tag--mint {
  color: var(--mint);
  background: rgba(70, 214, 176, 0.08);
  border-color: rgba(70, 214, 176, 0.45);
}

.tag--rose {
  color: var(--rose);
  background: rgba(255, 78, 122, 0.08);
  border-color: rgba(255, 78, 122, 0.45);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 7. 图片容器基类 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-copper);
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(150deg, #061019 0%, #102438 52%, rgba(140, 90, 43, 0.45) 100%);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(244, 238, 225, 0.07) 0 1px,
    transparent 1px 4px
  );
}

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

.media-frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-deep);
  background: var(--gold);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--copper);
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--copper);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

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

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 120;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-14);
  text-decoration: none;
  border-radius: 2px;
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus {
  top: 14px;
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

/* ---------- 10. 侧边轨道 header ---------- */
.site-rail {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-copper);
  color: var(--paper);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(244, 238, 225, 0.08);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--copper), var(--gold) 55%, var(--gold-hi));
  transition: transform 120ms linear;
}

.rail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar-h);
  padding: 10px 16px;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.rail-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 50%, rgba(227, 177, 92, 0.28), transparent 72%);
}

.rail-brand__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(227, 177, 92, 0.5);
}

.rail-brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 12px;
  background: var(--gold);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(35deg);
}

.rail-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail-brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-20);
  line-height: 1.15;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.rail-brand__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.05em;
  color: var(--mist);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line-copper);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.rail-toggle:hover {
  background: rgba(227, 177, 92, 0.1);
  border-color: var(--gold);
  color: var(--gold-hi);
}

.rail-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.rail-toggle__bars::before,
.rail-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease),
    top var(--t-base) var(--ease),
    bottom var(--t-base) var(--ease);
}

.rail-toggle__bars::before { top: 0; }
.rail-toggle__bars::after { bottom: 0; }

.site-rail[data-open] .rail-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-rail[data-open] .rail-toggle__bars::after {
  bottom: 4.5px;
  transform: rotate(-45deg);
}

/* 抽屉（移动端默认） */
.rail-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) + 1px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 40px;
  overflow-y: auto;
  background: linear-gradient(180deg, #061019 0%, #0A1A2A 100%);
  border-top: 1px solid var(--line-copper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    visibility var(--t-base);
}

.site-rail[data-open] .rail-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.rail-nav__title {
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid var(--line-copper);
  padding-bottom: 9px;
}

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

.rail-nav__link {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  color: var(--mist);
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.rail-nav__link:hover {
  color: var(--gold-hi);
  background: rgba(227, 177, 92, 0.08);
  border-left-color: rgba(227, 177, 92, 0.5);
}

.rail-nav__link[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(227, 177, 92, 0.16), transparent 90%);
}

.rail-nav__idx {
  flex: 0 0 auto;
  min-width: 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--copper);
  border-bottom: 1px solid var(--line-copper);
}

.rail-nav__link:hover .rail-nav__idx { color: var(--gold); }

.rail-nav__link[aria-current="page"] .rail-nav__idx {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

.rail-nav__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-16);
  letter-spacing: 0.01em;
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-copper);
}

.rail-foot__note {
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--copper);
}

.rail-foot__cta { width: 100%; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, rgba(6, 16, 25, 0) 0%, var(--ink-deep) 38%);
  border-top: 1px solid var(--line-copper);
}

.site-footer p { max-width: none; }

.footer-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 60px) var(--gutter) 28px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

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

.footer-brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  background: radial-gradient(circle at 50% 50%, rgba(227, 177, 92, 0.22), transparent 72%);
}

.footer-brand__mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(227, 177, 92, 0.45);
}

.footer-brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 13px;
  background: var(--gold);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(-28deg);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-20);
  color: var(--paper);
  letter-spacing: -0.01em;
}

.footer-brand__desc {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--mist);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line-copper);
  padding-bottom: 9px;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col__link {
  display: inline-block;
  font-size: var(--fs-14);
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.footer-col__link:hover {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.footer-contact__line {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--mist);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-legal__item {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--copper);
}

.footer-ruler {
  height: 12px;
  border-top: 1px solid var(--line-copper);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(227, 177, 92, 0.5) 0 1px,
    transparent 1px 14px
  );
}

@media (min-width: 768px) {
  .footer-shell {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 34px 30px;
  }

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

  .footer-contact,
  .footer-legal,
  .footer-ruler { grid-column: 1 / -1; }

  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }
}

/* ---------- 12. 桌面轨道布局 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .read-progress { left: var(--rail-w); }

  .site-rail {
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--line-copper);
    overflow: hidden;
  }

  .rail-topbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 26px 20px 20px;
  }

  .rail-brand { width: 100%; }

  .rail-brand__tag {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.5;
  }

  .rail-toggle { display: none; }

  .rail-nav {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    gap: 14px;
    padding: 18px 12px 18px;
    overflow-y: auto;
    background: transparent;
    border-top: 1px solid var(--line-copper);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .rail-foot {
    padding: 16px 8px 22px;
    margin-top: 0;
    flex: 0 0 auto;
  }

  .rail-foot__note { padding-inline: 4px; }
}

/* ---------- 13. 显现与章节状态 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

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

[data-section] { position: relative; }

/* ---------- 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;
  }

  .read-progress__bar { transition: none; }
}
