/* ============================================================
   美高梅资料馆 · 共享样式 /assets/site.css
   墨黑 + 曜金主轴的夜间资料馆气质，侧边轨道 + 悬浮胶囊导航
   ============================================================ */

:root {
  --ink: #0B0B0D;
  --ink-2: #151519;
  --gold: #C8A24A;
  --gold-bright: #E4B95B;
  --wine: #6E1F2A;
  --green: #1E3A32;
  --green-2: #2E5147;
  --ivory: #F4EFE6;
  --sand: #DED4C4;
  --grey: #8A8578;
  --white: #FFFFFF;

  --rail-w: 104px;
  --shell-max: 1240px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Inter", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-narrow: "Archivo Narrow", "Oswald", "Menlo", "Consolas", "Courier New", monospace;
}

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

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

body {
  margin: 0;
  padding-top: 78px;
  background: var(--ivory);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: 0.01em;
}

p { margin: 0; }

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

[hidden] { display: none !important; }

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

/* 深色底上的焦点环用金色，浅色底用暗酒红描边更清晰 */
.site-footer :focus-visible,
.site-rail :focus-visible,
.nav-island :focus-visible,
.index-panel :focus-visible {
  outline-color: var(--gold-bright);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 16px; }

/* ---------- 视觉隐藏 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   头部
   ============================================================ */
.site-header { position: relative; z-index: 60; }

/* ---------- 左侧品牌轨道 ---------- */
.site-rail { display: none; }

.rail__brand {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--gold);
  white-space: nowrap;
}

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.rail__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 0;
  text-decoration: none;
  color: rgba(138, 133, 120, 0.9);
  transition: color 0.2s var(--ease);
}
.rail__item:hover,
.rail__item.is-active { color: var(--gold-bright); }

.rail__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 26px;
  transform: translateY(-50%);
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.rail__num {
  font-family: var(--font-narrow);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.rail__label {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.24em;
  opacity: 0.82;
}

.rail__meta {
  writing-mode: vertical-rl;
  font-family: var(--font-narrow);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--grey);
}

@media (min-width: 1180px) {
  .site-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 58;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0 22px;
    background: var(--ink);
    border-right: 1px solid rgba(200, 162, 74, 0.16);
  }
}

/* ---------- 悬浮胶囊导航 ---------- */
.nav-island {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 10px 8px 20px;
  background: rgba(11, 11, 13, 0.96);
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius-pill);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.95);
  transition: min-height 0.22s var(--ease), padding 0.22s var(--ease);
}

.site-header.is-condensed .nav-island {
  min-height: 52px;
  padding: 6px 8px 6px 18px;
}

.nav-island__brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--ivory);
  text-decoration: none;
  white-space: nowrap;
}

.nav-island__suffix {
  font-family: var(--font-narrow);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.nav-island__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-island__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-island__link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(244, 239, 230, 0.7);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-island__link:hover {
  color: var(--gold-bright);
  background: rgba(200, 162, 74, 0.12);
}
.nav-island__link[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(200, 162, 74, 0.1);
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.5);
}

.nav-island__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-island__index-btn {
  padding: 9px 16px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-narrow);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-island__index-btn:hover,
.nav-island__index-btn[aria-expanded="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle__bar {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
}
.nav-toggle__text {
  display: inline-block;
  font-family: var(--font-narrow);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- 编号索引浮层 ---------- */
.index-panel {
  position: fixed;
  top: 88px;
  left: 14px;
  right: 14px;
  z-index: 66;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: 26px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95);
}

.index-panel__head {
  margin: 0 0 16px;
  font-family: var(--font-narrow);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-panel__field { display: block; margin: 0 0 18px; }

.index-panel__filter {
  width: 100%;
  padding: 11px 18px;
  border: 1px solid rgba(222, 212, 196, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(244, 239, 230, 0.05);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 14px;
}
.index-panel__filter::placeholder { color: var(--grey); }

.index-panel__list { display: grid; gap: 6px; }

.index-panel__item > a {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--ivory);
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.index-panel__item > a:hover { background: rgba(200, 162, 74, 0.12); }

.index-panel__num {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-narrow);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.index-panel__body { display: block; min-width: 0; }

.index-panel__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.4;
}

.index-panel__meta {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--grey);
}

.index-panel__empty {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--grey);
}

/* ---------- 阅读进度 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  pointer-events: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: 96px;
  padding: 76px 0 34px;
  background: var(--ink);
  color: rgba(244, 239, 230, 0.78);
  border-top: 1px solid rgba(200, 162, 74, 0.2);
}

.footer__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px 32px;
}

.footer__brand { min-width: 0; }

.footer__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.06em;
  color: var(--ivory);
}

.footer__logo-suffix {
  font-family: var(--font-narrow);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.footer__tagline {
  margin: 14px 0 0;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.footer__col-title {
  margin: 0;
  font-family: var(--font-narrow);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list {
  margin: 18px 0 0;
  display: grid;
  gap: 11px;
}

.footer__list a {
  font-size: 14.5px;
  color: rgba(244, 239, 230, 0.76);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer__list a:hover { color: var(--gold-bright); }

.footer__num {
  margin-right: 9px;
  font-family: var(--font-narrow);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.footer__contact {
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(222, 212, 196, 0.14);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px 32px;
}

.footer__contact-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 239, 230, 0.72);
}

.footer__legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(222, 212, 196, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-narrow);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.footer__icp { color: var(--grey); }

/* ============================================================
   通用内容组件
   ============================================================ */
.u-container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

.u-num {
  font-family: var(--font-narrow);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

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

.btn--ghost {
  background: transparent;
  border-color: rgba(200, 162, 74, 0.5);
  color: var(--gold);
}
.btn--ghost:hover {
  background: rgba(200, 162, 74, 0.14);
  color: var(--gold-bright);
}

.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-2); color: var(--gold-bright); }

.btn--light {
  background: var(--ivory);
  border-color: var(--sand);
  color: var(--ink);
}
.btn--light:hover { border-color: var(--gold); }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin: 0 0 28px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-narrow);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--grey);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__item a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.breadcrumb__item a:hover { color: var(--gold); }

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

.breadcrumb__sep { color: rgba(138, 133, 120, 0.6); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: #2A2A31;
}
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 28px; margin-top: 44px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul { display: grid; gap: 10px; }
.prose li { padding-left: 20px; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 章节头 ---------- */
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.section-head__num {
  display: block;
  font-family: var(--font-narrow);
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: rgba(200, 162, 74, 0.34);
}

.section-head__title {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
}

.section-head__lead {
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: #4A4842;
}

.section-head--light .section-head__num { color: rgba(228, 185, 91, 0.5); }
.section-head--light .section-head__title { color: var(--ivory); }
.section-head--light .section-head__lead { color: rgba(244, 239, 230, 0.72); }

/* ---------- 分隔线 ---------- */
.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--sand);
}
.divider--gold {
  width: 64px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 图像容器（页面阶段放置 img） ---------- */
.figure { margin: 0; }

.figure__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--green) 0%, var(--ink-2) 58%, var(--ink) 100%);
}

.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__frame--wide { aspect-ratio: 21 / 9; }
.figure__frame--tall { aspect-ratio: 4 / 5; }
.figure__frame--square { aspect-ratio: 1 / 1; }

.figure__num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 13, 0.72);
  color: var(--gold);
  font-family: var(--font-narrow);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

.figure__caption {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--grey);
}

.figure-grid { display: grid; gap: 24px; }
.figure-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figure-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 折叠面板 ---------- */
.disclosure { border-top: 1px solid var(--sand); }

.disclosure__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  list-style: none;
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary::after {
  content: "+";
  margin-left: 12px;
  font-family: var(--font-narrow);
  font-size: 18px;
  color: var(--gold);
}
details[open] > .disclosure__summary::after { content: "–"; }

.disclosure__count {
  margin-left: auto;
  font-family: var(--font-narrow);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey);
}

.disclosure__body {
  padding: 2px 4px 24px;
  font-size: 16px;
  line-height: 1.78;
  color: #43413B;
}

/* ---------- 分类胶囊 ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #4A4842;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background 0.18s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 120;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--gold);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 返回顶部 ---------- */
.top-link {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 13, 0.9);
  color: var(--gold);
  font-family: var(--font-narrow);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.top-link.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (min-width: 1180px) {
  body { padding-left: var(--rail-w); }
  .site-footer {
    margin-left: calc(var(--rail-w) * -1);
    padding-left: var(--rail-w);
  }
  .nav-island {
    left: calc(var(--rail-w) + 28px);
    right: 28px;
  }
  .index-panel {
    left: auto;
    right: 28px;
    top: 92px;
    width: min(420px, 40vw);
    max-height: calc(100vh - 130px);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-island__link { padding: 8px 11px; font-size: 13.5px; }
  .nav-island__suffix { display: none; }
  .nav-island__index-btn { padding: 8px 13px; font-size: 11px; }
}

@media (max-width: 1023px) {
  .nav-island {
    gap: 10px;
    padding: 7px 8px 7px 16px;
  }
  .nav-island__brand { font-size: 16px; }
  .nav-island__suffix { display: none; }

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

  .nav-island__nav {
    position: absolute;
    top: calc(100% + 12px);
    left: -15px;
    right: -15px;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 26px 22px 34px;
    background: rgba(11, 11, 13, 0.99);
    border: 1px solid rgba(200, 162, 74, 0.24);
    border-radius: 26px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  }
  .nav-island__nav[data-open] { display: flex; }

  .nav-island__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .nav-island__link {
    padding: 16px 6px;
    border-radius: 0;
    border-bottom: 1px solid rgba(222, 212, 196, 0.12);
    font-family: var(--font-serif);
    font-size: 21px;
    color: var(--ivory);
  }
  .nav-island__link:hover { background: transparent; }
  .nav-island__link[aria-current="page"] {
    background: transparent;
    box-shadow: none;
    color: var(--gold-bright);
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
}

@media (max-width: 767px) {
  .figure-grid--2,
  .figure-grid--3 { grid-template-columns: 1fr; }
  .footer__contact {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-head { margin-bottom: 28px; }
}

@media (max-width: 639px) {
  body {
    font-size: 16px;
    padding-top: 74px;
  }
  .u-container { padding: 0 20px; }
  .footer__inner { padding: 0 20px; }
  .site-footer {
    margin-top: 72px;
    padding-top: 56px;
  }
  .footer__grid { grid-template-columns: 1fr; }
  .index-panel {
    top: 82px;
    padding: 20px;
    border-radius: 22px;
  }
  .top-link { right: 14px; bottom: 16px; }
}

/* ============================================================
   动效可访问性
   ============================================================ */
@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;
    transition-delay: 0ms !important;
  }

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

  .btn:hover { transform: none; }
}
