/* ==========================================================================
   百利宫新站 · 共享外壳样式 /assets/site.css
   深墨色空间 + 纸张画板 · 香槟金细线 · 等宽数字
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
}

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

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

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

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-950: #050D1F;
  --ink-900: #071229;
  --ink-800: #0B1B3A;
  --ink-600: #1E3A6E;
  --paper: #F4EBDD;
  --cream: #FFF9F0;
  --text: #111827;
  --mist: #6B7280;
  --gold: #C8A96A;
  --gold-soft: #D9BC82;
  --gold-deep: #8C6B2F;
  --coral: #E56B4A;
  --mint: #7FD6B0;
  --mint-deep: #2E8F6C;

  --line-dark: rgba(200, 169, 106, 0.24);
  --line-light: rgba(140, 107, 47, 0.30);
  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 44px -30px rgba(0, 0, 0, 0.85);

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

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

/* ---------- 3. 中文排版与基础层 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.15vw + 0.92rem, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(110% 55% at 50% -12%, rgba(30, 58, 110, 0.92), transparent 62%),
    radial-gradient(70% 45% at 100% 0%, rgba(200, 169, 106, 0.14), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p, li {
  overflow-wrap: break-word;
}

#main-content {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. 通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.muted {
  color: var(--mist);
}

.text-gold {
  color: var(--gold);
}

.num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 6. 刊头 Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 18, 41, 0.97), rgba(11, 27, 58, 0.95));
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.24s ease, background-color 0.24s ease;
}

.site-header[data-scrolled] {
  box-shadow: 0 24px 44px -34px rgba(0, 0, 0, 0.95);
}

.header-glow {
  position: absolute;
  left: 0;
  right: 0;
  top: -60%;
  height: 180%;
  pointer-events: none;
  background: radial-gradient(48% 50% at 50% 42%, rgba(200, 169, 106, 0.22), rgba(30, 58, 110, 0.20) 46%, transparent 74%);
}

.masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.masthead__note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(244, 235, 221, 0.62);
  white-space: nowrap;
}

.masthead__note-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 214, 176, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  padding: 4px 6px;
  border-radius: var(--radius);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: linear-gradient(150deg, rgba(200, 169, 106, 0.20), rgba(200, 169, 106, 0));
  transition: background-color 0.2s ease;
}

.brand:hover .brand__mark {
  background: linear-gradient(150deg, rgba(200, 169, 106, 0.36), rgba(200, 169, 106, 0.04));
}

.brand__text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1vw + 0.85rem, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 169, 106, 0.85);
}

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

.quota-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 15px;
  text-align: right;
  border: 1px solid rgba(200, 169, 106, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 249, 240, 0.09), rgba(255, 249, 240, 0.02));
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.quota-pill:hover {
  border-color: var(--gold);
  background: linear-gradient(150deg, rgba(255, 249, 240, 0.14), rgba(255, 249, 240, 0.04));
}

.quota-pill__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(244, 235, 221, 0.62);
}

.quota-pill__value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--paper);
  border: 1px solid rgba(200, 169, 106, 0.42);
  border-radius: 999px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

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

.nav-bar {
  position: relative;
  border-top: 1px solid rgba(200, 169, 106, 0.18);
}

.nav-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3vw, 42px);
}

.nav-bar__item {
  display: flex;
}

.nav-bar__link {
  position: relative;
  display: inline-block;
  padding: 14px 2px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(244, 235, 221, 0.78);
  transition: color 0.18s ease;
}

.nav-bar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-bar__link:hover,
.nav-bar__link:focus-visible {
  color: var(--paper);
}

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

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

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

.quota-fab {
  display: none;
}

/* ---------- 7. 页脚 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  color: rgba(244, 235, 221, 0.78);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-top: 1px solid rgba(200, 169, 106, 0.3);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.footer__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer__lede {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(244, 235, 221, 0.86);
}

.footer__rhythm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 34ch;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(244, 235, 221, 0.58);
}

.footer__rhythm-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(127, 214, 176, 0.16);
}

.footer__col {
  display: grid;
  align-content: start;
}

.footer__title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(200, 169, 106, 0.22);
}

.footer__list {
  display: grid;
  gap: 10px;
}

.footer__list--plain {
  gap: 14px;
}

.footer__link {
  font-size: 0.88rem;
  color: rgba(244, 235, 221, 0.78);
  transition: color 0.18s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(200, 169, 106, 0.6);
}

.footer__contact {
  display: grid;
  gap: 3px;
}

.footer__contact-key {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(244, 235, 221, 0.48);
}

.footer__contact-val {
  font-size: 0.86rem;
  color: rgba(244, 235, 221, 0.88);
  overflow-wrap: break-word;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 20px 28px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(244, 235, 221, 0.5);
  border-top: 1px solid rgba(200, 169, 106, 0.18);
}

.footer__copy {
  color: rgba(244, 235, 221, 0.56);
}

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

.footer__domain {
  color: rgba(244, 235, 221, 0.42);
}

/* ---------- 8. 堆叠画板与章节 ---------- */
.chapter {
  padding-block: clamp(40px, 6vw, 78px);
}

.chapter__head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(22px, 3.6vw, 38px);
}

.chapter__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.chapter__lede {
  max-width: 62ch;
  color: rgba(244, 235, 221, 0.7);
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.panel--cream {
  background: linear-gradient(180deg, var(--cream), #FBF2E4);
}

.panel--paper {
  background: linear-gradient(180deg, var(--paper), #EFE4D2);
}

.panel--indigo {
  color: var(--paper);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: var(--line-dark);
}

.panel .chapter__title,
.panel .chapter__lede {
  color: var(--text);
}

.panel .chapter__lede {
  color: var(--mist);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-light);
}

.panel--indigo .panel__head {
  border-bottom-color: var(--line-dark);
}

.panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- 9. 展览标签与说明牌 ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 999px;
}

.label--gold {
  color: var(--gold);
}

.label--coral {
  color: var(--coral);
}

.label--mint {
  color: var(--mint);
}

.panel .label,
.panel--cream .label,
.panel--paper .label {
  color: var(--gold-deep);
}

.panel .label--coral,
.panel--cream .label--coral,
.panel--paper .label--coral {
  color: #B94A2B;
}

.panel .label--mint,
.panel--cream .label--mint,
.panel--paper .label--mint {
  color: var(--mint-deep);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn--gold {
  color: var(--ink-900);
  border-color: #E0C68F;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 14px 28px -18px rgba(200, 169, 106, 0.95);
}

.btn--gold:hover {
  background: linear-gradient(180deg, #E6CE9C, #D3B478);
}

.btn--coral {
  color: #240F08;
  border-color: #F0805F;
  background: linear-gradient(180deg, #EE8465, var(--coral));
}

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

.btn--ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.panel .btn--ghost,
.panel--cream .btn--ghost,
.panel--paper .btn--ghost {
  color: var(--ink-800);
  border-color: var(--line-light);
}

.panel .btn--ghost:hover,
.panel--cream .btn--ghost:hover,
.panel--paper .btn--ghost:hover {
  color: var(--ink-900);
  border-color: var(--gold-deep);
}

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

/* ---------- 11. 面包屑 ---------- */
.crumbs {
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(244, 235, 221, 0.6);
}

.crumbs__link {
  color: inherit;
  transition: color 0.18s ease;
}

.crumbs__link:hover,
.crumbs__link:focus-visible {
  color: var(--gold);
}

.crumbs__sep {
  color: var(--gold);
  opacity: 0.6;
}

.crumbs__current {
  color: var(--gold);
}

.panel .crumbs__list {
  color: var(--mist);
}

/* ---------- 12. 栅格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--aside {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .grid--aside {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
}

.card {
  padding: clamp(16px, 2.2vw, 24px);
  color: var(--text);
  background: linear-gradient(180deg, var(--cream), #FBF2E4);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-deep);
}

/* ---------- 13. 图片容器基础规则 ---------- */
.figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.figure__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(120% 120% at 18% 8%, rgba(200, 169, 106, 0.36), transparent 56%),
    radial-gradient(90% 90% at 86% 82%, rgba(229, 107, 74, 0.26), transparent 60%),
    linear-gradient(158deg, var(--ink-600), var(--ink-900));
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 40%, rgba(255, 249, 240, 0.14) 50%, transparent 60%);
}

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

.figure__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 235, 221, 0.52);
}

.figure__caption {
  padding-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--mist);
  border-left: 1px solid var(--gold);
}

.figure--wide .figure__media {
  aspect-ratio: 21 / 9;
}

.figure--tall .figure__media {
  aspect-ratio: 3 / 4;
}

.figure--square .figure__media {
  aspect-ratio: 1 / 1;
}

/* ---------- 14. 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar__btn {
  padding: 8px 15px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(244, 235, 221, 0.76);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.filter-bar__btn:hover,
.filter-bar__btn:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.filter-bar__btn[aria-pressed="true"] {
  color: var(--ink-900);
  background: var(--gold);
  border-color: var(--gold);
}

.panel .filter-bar__btn,
.panel--cream .filter-bar__btn,
.panel--paper .filter-bar__btn {
  color: var(--mist);
  border-color: var(--line-light);
}

.panel .filter-bar__btn[aria-pressed="true"],
.panel--cream .filter-bar__btn[aria-pressed="true"],
.panel--paper .filter-bar__btn[aria-pressed="true"] {
  color: var(--cream);
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.is-filtered-out {
  display: none !important;
}

/* ---------- 15. 进场动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- 16. 响应式 ---------- */
@media (max-width: 900px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 12px;
  }

  .masthead__note {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .brand__sub {
    display: none;
  }

  .quota-pill {
    display: none;
  }

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

  .nav-bar__list {
    display: none;
  }

  .nav-bar[data-open] .nav-bar__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 6px 0 14px;
    border-top: 1px solid rgba(200, 169, 106, 0.16);
  }

  .nav-bar[data-open] .nav-bar__link {
    display: block;
    width: 100%;
    padding: 13px 10px;
    font-size: 0.86rem;
    border-bottom: 1px solid rgba(200, 169, 106, 0.12);
  }

  .nav-bar[data-open] .nav-bar__link::after {
    display: none;
  }

  .nav-bar__link[aria-current="page"] {
    background: rgba(200, 169, 106, 0.1);
    box-shadow: inset 2px 0 0 var(--gold);
  }

  .quota-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 19px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-900);
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    border: 1px solid #E0C68F;
    border-radius: 999px;
    box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.9);
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer__base {
    justify-content: flex-start;
    gap: 6px 18px;
  }

  .chapter {
    padding-block: clamp(32px, 8vw, 48px);
  }

  .btn {
    width: 100%;
  }
}

/* ---------- 17. 无障碍与降低动效 ---------- */
@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;
  }

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

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
