/* ============================================================
   百利娱乐会馆 · 共享站点样式
   路径：/assets/site.css
   负责：reset / 变量 / 中文排版 / 共享头尾 / 通用组件
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --ink-sea: #0A1725;
  --ink-deep: #11283D;
  --ink-black: #060D15;
  --paper-warm: #F1E7D6;
  --paper-white: #FBF7EF;
  --gold: #C9A24A;
  --gold-bright: #E7C87D;
  --cinnabar: #B4392C;
  --jade: #4C8C81;
  --jade-light: #93C0B5;
  --stone: #8C97A5;

  /* 线 */
  --line-gold: rgba(201, 162, 74, 0.28);
  --line-gold-strong: rgba(201, 162, 74, 0.62);
  --line-stone: rgba(140, 151, 165, 0.22);
  --line-ink: rgba(10, 23, 37, 0.14);

  /* 字体族 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --font-index: var(--font-sans);

  /* 字号 */
  --fs-h1: clamp(2.5rem, 7vw, 5.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;
  --fs-index: 0.78rem;

  /* 节奏 */
  --gap-1: 0.5rem;
  --gap-2: 1rem;
  --gap-3: 1.5rem;
  --gap-4: 2.5rem;
  --gap-5: 4rem;
  --gap-6: 6rem;

  --shell: min(1280px, calc(100% - 2.5rem));
  --shadow-paper: 0 24px 60px -42px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 18px 36px -24px rgba(0, 0, 0, 0.85);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-sea);
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 162, 74, 0.032) 0 1px, transparent 1px 92px),
    radial-gradient(140% 100% at 50% 0%, rgba(17, 40, 61, 0.92) 0%, rgba(10, 23, 37, 0) 62%);
  background-attachment: fixed, fixed;
  color: var(--paper-warm);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--paper-white);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { line-height: 1.85; }

a { text-decoration-color: rgba(201, 162, 74, 0.5); text-underline-offset: 0.22em; }

strong { font-weight: 700; }

code, kbd, samp, time {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

::selection { background: var(--cinnabar); color: var(--paper-white); }

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

[id] { scroll-margin-top: 9rem; }

/* ---------- 4. 布局原语 ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.prose {
  max-width: 46rem;
}

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

.prose h2 { margin-top: 2.4em; margin-bottom: 0.7em; }
.prose h3 { margin-top: 1.9em; margin-bottom: 0.6em; }
.prose ul, .prose ol { margin-top: 1em; padding-left: 1.4em; }
.prose ul li, .prose ol li { margin-top: 0.5em; line-height: 1.85; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.15em;
  top: 0.85em;
  width: 0.7em;
  height: 1px;
  background: var(--gold);
}
.prose ol { list-style: decimal; }

.paper-panel {
  background: var(--paper-warm);
  color: #1B2A3A;
  border: 1px solid rgba(10, 23, 37, 0.08);
  box-shadow: var(--shadow-paper);
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

.paper-panel h1,
.paper-panel h2,
.paper-panel h3,
.paper-panel h4 { color: var(--ink-sea); }

.paper-panel a { color: var(--cinnabar); }

.paper-panel .prose strong { color: var(--cinnabar); }

.paper-panel .index-label { color: #8A7233; }
.paper-panel .index-label::before { background: #8A7233; }

/* ---------- 5. 按钮与筛选片 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border: 1px solid var(--line-gold-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease,
              color 220ms ease, border-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 30px -18px rgba(231, 200, 125, 0.7);
}

.btn--cinnabar {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-white);
}

.btn--cinnabar:hover {
  background: #C84435;
  border-color: #C84435;
  box-shadow: 0 14px 30px -16px rgba(180, 57, 44, 0.85);
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.72rem;
}

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

.chip-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.98rem;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(17, 40, 61, 0.55);
  color: var(--stone);
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.chip-filter:hover {
  color: var(--gold-bright);
  border-color: var(--line-gold-strong);
}

.chip-filter[aria-pressed="true"] {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-white);
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
  background: var(--ink-sea);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  background: var(--paper-white);
  color: var(--ink-sea);
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 200ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* 刊头 */
.masthead {
  position: relative;
  background:
    radial-gradient(120% 170% at 50% -70%, rgba(76, 140, 129, 0.2), rgba(76, 140, 129, 0) 62%),
    linear-gradient(180deg, #0A1725 0%, #0C1E30 100%);
}

.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}

.masthead::before {
  top: 0;
  background: linear-gradient(90deg,
    rgba(201, 162, 74, 0) 0%,
    var(--line-gold) 18%,
    var(--gold) 50%,
    var(--line-gold) 82%,
    rgba(201, 162, 74, 0) 100%);
  opacity: 0.75;
}

.masthead::after {
  bottom: 0;
  background: linear-gradient(90deg,
    rgba(201, 162, 74, 0) 0%,
    var(--line-gold-strong) 20%,
    var(--gold-bright) 50%,
    var(--line-gold-strong) 80%,
    rgba(201, 162, 74, 0) 100%);
}

.masthead__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  padding-block: 0.85rem;
}

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

.masthead__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: inherit;
}

.masthead__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--paper-white);
  transition: color 240ms ease;
}

.masthead__link:hover .masthead__name { color: var(--gold-bright); }

.masthead__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
}

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

/* 账户入口 */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.95rem;
  border: 1px solid var(--line-gold-strong);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(76, 140, 129, 0.24), rgba(10, 23, 37, 0.45));
  color: var(--gold-bright);
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, color 220ms ease;
}

.account-chip:hover {
  border-color: var(--gold-bright);
  color: var(--paper-white);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(231, 200, 125, 0.22), 0 12px 24px -16px rgba(231, 200, 125, 0.7);
}

.account-chip__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--jade-light);
  box-shadow: 0 0 0 3px rgba(147, 192, 181, 0.18);
}

.account-chip__text { display: inline; }

/* 栏目索引条 */
.column-bar {
  position: relative;
  border-top: 1px solid rgba(201, 162, 74, 0.16);
  background: linear-gradient(180deg, #0B1B2B 0%, #0A1725 100%);
}

.column-bar__list {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 2.2rem);
  padding-block: 0.7rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.column-bar__list::-webkit-scrollbar { display: none; }

.column-link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--stone);
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms ease;
}

.column-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease, background-color 240ms ease;
}

.column-link:hover { color: var(--gold-bright); }
.column-link:hover::after { transform: scaleX(1); }

.column-link[aria-current="page"] { color: var(--paper-white); }
.column-link[aria-current="page"]::after { transform: scaleX(1); background: var(--cinnabar); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  background: rgba(17, 40, 61, 0.6);
  color: var(--gold-bright);
  font-family: var(--font-index);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.nav-toggle:hover {
  border-color: var(--line-gold-strong);
  color: var(--paper-white);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 3;
  background: rgba(201, 162, 74, 0.1);
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--jade) 0%, var(--gold) 55%, var(--cinnabar) 100%);
  transition: width 90ms linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  background: var(--ink-black);
  border-top: 1px solid var(--line-gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--cinnabar) 0%, var(--gold) 42%, var(--jade) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 36%, 0 100%);
  opacity: 0.72;
  pointer-events: none;
}

.foot-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1.4fr 1fr 1.1fr;
  align-items: start;
}

.foot-col {
  padding: clamp(2.4rem, 4.5vw, 3.6rem) clamp(1.1rem, 2.4vw, 2.2rem) clamp(2.2rem, 4vw, 3.2rem);
}

.foot-col:first-child { padding-left: 0; }
.foot-col:last-child { padding-right: 0; }

.foot-col + .foot-col {
  border-left: 1px solid rgba(201, 162, 74, 0.13);
}

.foot-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: var(--paper-white);
}

.foot-desc {
  margin-top: 0.95rem;
  max-width: 24rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--stone);
}

.foot-icp {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(140, 151, 165, 0.88);
}

.foot-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  color: var(--gold);
}

.foot-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.45), rgba(201, 162, 74, 0));
}

.foot-lead {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--stone);
}

.foot-cta { margin-bottom: 1.4rem; }

.foot-list {
  display: grid;
  gap: 0.85rem;
  font-size: 0.9rem;
}

.foot-list--links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper-warm);
  text-decoration: none;
  transition: color 200ms ease;
}

.foot-list--links a::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  transition: width 220ms ease, opacity 220ms ease;
}

.foot-list--links a:hover { color: var(--gold-bright); }
.foot-list--links a:hover::before { width: 22px; opacity: 1; }

.foot-key {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(140, 151, 165, 0.82);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dashed rgba(201, 162, 74, 0.42);
  background: none;
  color: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.copy-chip:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.copy-chip[data-copied="true"] {
  color: var(--jade-light);
  border-bottom-color: var(--jade-light);
}

.copy-chip[data-copied="true"]::after {
  content: "已复制";
  margin-left: 0.45rem;
  font-family: var(--font-index);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--jade-light);
}

.foot-addr {
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.8;
  color: var(--stone);
}

.foot-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--stone);
}

.foot-note__mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(231, 200, 125, 0.85);
}

.foot-base {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.2rem 1.7rem;
  border-top: 1px solid rgba(201, 162, 74, 0.13);
  font-family: var(--font-index);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(140, 151, 165, 0.85);
}

.foot-base__mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: rgba(201, 162, 74, 0.78);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--stone);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(201, 162, 74, 0.55);
}

.breadcrumbs a {
  color: var(--stone);
  text-decoration: none;
  transition: color 200ms ease;
}

.breadcrumbs a:hover { color: var(--gold-bright); }

.breadcrumbs [aria-current="page"] { color: var(--paper-warm); }

/* ---------- 9. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ink-deep) 0%, #0D2338 55%, #102B3E 100%);
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 23, 37, 0.14) 0%, rgba(10, 23, 37, 0.58) 100%);
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  letter-spacing: 0.24em;
  text-align: center;
  color: rgba(201, 162, 74, 0.55);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-index);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--paper-warm);
}

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

/* ---------- 10. 通用零件 ---------- */
.index-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-index);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.rule-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 74, 0) 88%);
}

.is-filtered { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

[data-index-link] {
  color: var(--stone);
  text-decoration: none;
  transition: color 200ms ease;
}

[data-index-link]:hover { color: var(--gold-bright); }
[data-index-link][aria-current="true"] { color: var(--paper-white); }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1040px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-col:nth-child(odd) { border-left: 0; }
  .foot-col:first-child { padding-left: clamp(1.1rem, 2.4vw, 2.2rem); }
  .foot-col:nth-child(n + 3) { border-top: 1px solid rgba(201, 162, 74, 0.13); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .column-bar {
    display: none;
  }

  .column-bar[data-open] {
    display: block;
    animation: nav-drop 200ms ease both;
  }

  .column-bar__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(64vh, 440px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-block: 0.4rem 0.9rem;
  }

  .column-bar__list > li { display: block; }

  .column-link {
    display: block;
    padding: 0.78rem 0.15rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(201, 162, 74, 0.12);
  }

  .column-link::after { display: none; }
  .column-link[aria-current="page"] { color: var(--gold-bright); }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .masthead__inner {
    gap: 0.5rem;
    min-height: 64px;
    padding-block: 0.72rem;
  }

  .masthead__name {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

  .masthead__sub {
    font-size: 0.54rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .account-chip {
    padding: 0.46rem 0.72rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .account-chip__tail { display: none; }
}

@media (max-width: 620px) {
  :root {
    --shell: min(1280px, calc(100% - 1.75rem));
  }

  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col,
  .foot-col:first-child,
  .foot-col:last-child {
    padding: 1.8rem 0;
    border-left: 0;
  }
  .foot-col + .foot-col { border-top: 1px solid rgba(201, 162, 74, 0.13); }

  .foot-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 420px) {
  .nav-toggle__text { display: none; }
}

/* ---------- 12. 焦点与减动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-inview {
    opacity: 1;
    transform: none;
  }

  .column-bar[data-open] { animation: none; }
}
