/* ==========================================================================
   澳门1877 · 共享样式 /assets/site.css
   档案室 × 陈列厅：暖白纸底、深红压顶、鎏金点色、右上切角
   ========================================================================== */

:root {
  --red: #8B1E2D;
  --red-dark: #5C1420;
  --gold: #C9A227;
  --gold-light: #E5D39A;
  --green: #1F4E3D;
  --green-soft: #6F8C7E;
  --warm: #F7F1E6;
  --cream: #EFE3CF;
  --ink: #2B2B2B;
  --copper: #7A4A2B;

  --ink-soft: rgba(43, 43, 43, 0.74);
  --rule: rgba(122, 74, 43, 0.28);
  --rule-light: rgba(122, 74, 43, 0.15);
  --on-dark: rgba(247, 241, 230, 0.86);
  --on-dark-soft: rgba(247, 241, 230, 0.66);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, "Times New Roman", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --shell: 1200px;
  --shell-wide: 1320px;
  --shell-pad: 24px;
  --measure: 720px;

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

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--warm);
  background-image:
    radial-gradient(rgba(122, 74, 43, 0.055) 1px, transparent 1px),
    radial-gradient(1100px 620px at 88% -8%, rgba(201, 162, 39, 0.14), transparent 70%),
    radial-gradient(900px 560px at -8% 26%, rgba(139, 30, 45, 0.07), transparent 72%);
  background-size: 7px 7px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

::selection { background: rgba(201, 162, 39, 0.34); color: var(--ink); }

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.16; }
h2 { font-size: clamp(27px, 3.5vw, 38px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.28; }
h4 { font-size: clamp(17px, 1.6vw, 20px); }

p { text-wrap: pretty; }

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

.section { padding-block: clamp(44px, 6.5vw, 92px); }
.section--tight { padding-block: clamp(26px, 4vw, 56px); }

.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { margin-block: 1.6em 0.6em; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.45em; }
.prose li { margin-block: 0.35em; }
.prose li::marker { color: var(--copper); }
.prose strong { font-weight: 700; color: var(--red); }
.prose blockquote {
  margin-block: 1.4em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--copper);
  color: var(--ink-soft);
}
.prose a { border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.prose a:hover { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }

/* ---------- 色彩分区 ---------- */
.band { padding-block: clamp(34px, 5vw, 72px); }
.band--cream { background: var(--cream); }
.band--red { background: var(--red); color: var(--on-dark); }
.band--green { background: var(--green); color: var(--on-dark); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--red h1, .band--red h2, .band--red h3, .band--red h4,
.band--green h1, .band--green h2, .band--green h3, .band--green h4,
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: var(--warm); }
.band--red a, .band--green a, .band--dark a { color: var(--gold-light); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--split { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid--split, .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 18px; }
}

/* ---------- 面板与切角 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--warm);
  border: 1px solid var(--rule);
}
.panel--cream { background: var(--cream); }
.panel--ruled { border-left: 3px solid var(--red); }

.cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

/* ---------- 章节标记 ---------- */
.section-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}
.section-marker__code { color: var(--red); font-weight: 800; }
.section-marker__no { color: var(--green); font-variant-numeric: tabular-nums; }
.section-marker__text { color: var(--copper); }
.section-marker::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: var(--rule);
}
.band--red .section-marker, .band--green .section-marker, .band--dark .section-marker { color: var(--gold-light); }
.band--red .section-marker__code, .band--green .section-marker__code { color: var(--gold-light); }
.band--red .section-marker__no, .band--green .section-marker__no { color: var(--gold); }
.band--red .section-marker::after, .band--green .section-marker::after, .band--dark .section-marker::after {
  background: rgba(229, 211, 154, 0.4);
}

/* ---------- 细线与数字 ---------- */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--red { height: 3px; background: var(--red); }

.numeral {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.numeral--gold { color: var(--gold); }

/* ---------- 标签 ---------- */
.archive-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--rule);
  background: rgba(239, 227, 207, 0.66);
  white-space: nowrap;
}
.archive-tag--red { color: var(--red); border-color: rgba(139, 30, 45, 0.36); background: rgba(139, 30, 45, 0.07); }
.archive-tag--green { color: var(--green); border-color: rgba(31, 78, 61, 0.32); background: rgba(31, 78, 61, 0.07); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--red);
  border-color: var(--red);
  color: var(--warm);
}
.btn--solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--warm); }

.btn--ghost {
  background: transparent;
  border-color: var(--copper);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--cream); border-color: var(--red); color: var(--red); }

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

.btn--sm { padding: 8px 14px; font-size: 13px; letter-spacing: 0.05em; }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--copper);
  letter-spacing: 0.04em;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before {
  content: "/";
  color: rgba(122, 74, 43, 0.45);
}
.breadcrumbs a {
  color: var(--copper);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 1px;
}
.breadcrumbs a:hover { color: var(--red); border-bottom-color: var(--red); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------- 图片容器基础 ---------- */
.figure { margin: 0; }
.figure__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--rule);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.figure__frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.9), rgba(201, 162, 39, 0));
  opacity: 0.72;
  pointer-events: none;
}
.figure__frame--empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(122, 74, 43, 0.09) 0 1px,
    transparent 1px 9px
  );
}
.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.96);
}
.figure__cap {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--copper);
}
.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--wide .figure__frame { aspect-ratio: 16 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }

/* ---------- 表格基础 ---------- */
.ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: rgba(247, 241, 230, 0.6);
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  min-width: 520px;
}
.ledger caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 0;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--copper);
}
.ledger th, .ledger td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-light);
}
.ledger thead th {
  background: var(--cream);
  color: var(--red);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
}
.ledger tbody tr:nth-child(even) td { background: rgba(239, 227, 207, 0.44); }
.ledger tbody tr:hover td { background: rgba(201, 162, 39, 0.14); }
.ledger tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--warm);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; color: var(--warm); text-decoration: none; }

/* ---------- 阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 140;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 78%);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.scroll-progress[data-visible="false"] { opacity: 0; }

/* ---------- 章节高亮（目录联动） ---------- */
[data-spy-section] { scroll-margin-top: 128px; }
[data-spy-link] { transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
[data-spy-link][aria-current="true"] {
  color: var(--red);
  border-color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar { background: var(--red); color: var(--gold-light); }

.site-header__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  padding-block: 5px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.strip__mark { display: flex; align-items: center; gap: 12px; margin: 0; }
.strip__num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.strip__word { color: rgba(247, 241, 230, 0.72); }
.strip__note { margin: 0; color: rgba(229, 211, 154, 0.8); letter-spacing: 0.16em; }

.site-header__main {
  position: relative;
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
}
.site-header__main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 18%, var(--gold) 18% 30%, transparent 30%);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding-block: 8px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.brand:hover .brand__mark { color: var(--red); }
.brand__sub {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}
.brand__year { color: var(--red); font-weight: 800; letter-spacing: 0.18em; }

/* 命令栏导航 */
.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px 8px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.site-nav__link:hover {
  text-decoration: none;
  color: var(--red);
  background: var(--cream);
}
.site-nav__idx {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(122, 74, 43, 0.72);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}
.site-nav__label { white-space: nowrap; }

.site-nav__link--accent {
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  border-bottom-color: var(--gold);
}
.site-nav__link--accent .site-nav__idx { color: var(--gold); }
.site-nav__link--accent:hover {
  background: rgba(201, 162, 39, 0.16);
  border-bottom-color: var(--red);
}

.site-nav__link[aria-current="page"] {
  color: var(--red);
  font-weight: 800;
  background: rgba(239, 227, 207, 0.72);
}
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
}
.site-nav__link--accent[aria-current="page"]::after { background: var(--gold); }

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 6px;
}

/* 移动端导航内动作 */
.site-nav__actions { display: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--red); background: var(--cream); }
.nav-toggle__text {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color var(--dur) var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   页头响应式
   ========================================================================== */
@media (max-width: 1140px) {
  .site-nav__link { padding: 9px 8px 8px; font-size: 13.8px; }
  .site-nav__idx { display: none; }
  .header-actions .btn { padding: 8px 11px; font-size: 12.5px; }
}

@media (max-width: 900px) {
  .site-header__strip { min-height: 28px; font-size: 9.5px; letter-spacing: 0.2em; }
  .strip__note { display: none; }
  .site-header__inner {
    min-height: 60px;
    gap: 10px;
    padding-block: 7px;
  }
  .brand__mark { font-size: 19px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.22em; }

  .nav-toggle { display: inline-flex; order: 3; margin-left: 6px; }
  .header-actions { order: 2; margin-left: auto; gap: 8px; }
  .header-actions .btn--solid { display: none; }
  .header-actions .btn--ghost { border-color: var(--red); color: var(--red); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 0 var(--shell-pad);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--cream);
    border-top: 2px solid var(--gold);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 22px 34px -26px rgba(43, 43, 43, 0.75);
    transition: max-height 220ms var(--ease), padding 220ms var(--ease), visibility 220ms var(--ease);
  }
  .site-nav[data-open="true"] {
    max-height: 78vh;
    overflow-y: auto;
    visibility: visible;
    padding: 10px var(--shell-pad) 20px;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid rgba(122, 74, 43, 0.2); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 13px 4px;
    font-size: 16px;
    border: 0;
    border-bottom: 0;
  }
  .site-nav__idx { display: inline-block; font-size: 11px; }
  .site-nav__link--accent {
    background: rgba(201, 162, 39, 0.18);
    padding-inline: 10px;
    border-left: 3px solid var(--gold);
  }
  .site-nav__link--accent:hover { background: rgba(201, 162, 39, 0.28); }
  .site-nav__link[aria-current="page"] { background: rgba(139, 30, 45, 0.09); }
  .site-nav__link[aria-current="page"]::after { display: none; }

  .site-nav__actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .site-nav__actions .btn { flex: 1 1 130px; }
}

@media (max-width: 420px) {
  .nav-toggle__text { display: none; }
  .brand__sub { letter-spacing: 0.16em; }
  .header-actions .btn--ghost { padding: 7px 9px; font-size: 12px; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--red-dark);
  color: var(--on-dark);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 26%, var(--red) 26% 62%, var(--green) 62%);
}

.site-footer__top { padding-block: clamp(38px, 5.6vw, 72px); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.68fr) minmax(0, 0.68fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 52px);
}

.footer__brand { min-width: 0; }
.footer__mark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--warm);
}
.footer__sub {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.footer__year { color: var(--gold); font-weight: 800; }
.footer__note {
  margin-top: 18px;
  max-width: 24em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-dark-soft);
}

.footer__col { min-width: 0; }
.footer__title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer__list { display: grid; gap: 10px; font-size: 14.5px; }
.footer__list--plain li {
  color: rgba(247, 241, 230, 0.78);
  line-height: 1.65;
  word-break: break-word;
}
.footer__col--contact .footer__list { gap: 8px; }
.footer__link {
  display: inline-block;
  color: var(--on-dark);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.site-footer__bottom {
  border-top: 1px solid rgba(229, 211, 154, 0.22);
  padding-block: 18px;
}
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(247, 241, 230, 0.62);
}
.footer__copy { margin: 0; }
.footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.footer__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__brand { grid-column: auto; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }
  .scroll-progress { transition: none !important; }
}
