/* ==========================================================================
   皇冠真人会馆 · site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- 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 {
  margin: 0;
}

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

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

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

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

input, textarea, select { font: inherit; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 变量 ---------- */
:root {
  --ink: #101d17;
  --ink-2: #16281f;
  --jade: #1d3b2f;
  --jade-3: #2b5343;
  --gold: #b98b2e;
  --gold-2: #d9b768;
  --cinnabar: #a2382a;
  --paper: #f6f2e9;
  --paper-2: #ece5d6;
  --paper-3: #e2dac8;
  --stone: #6c746a;
  --line: rgba(16, 29, 23, 0.14);
  --line-strong: rgba(16, 29, 23, 0.32);
  --line-gold: rgba(185, 139, 46, 0.5);

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

  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --frame: clamp(28px, 5vw, 72px);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(16, 29, 23, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 29, 23, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: break-word;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(30px, 4.6vw, 56px); letter-spacing: 0.02em; }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: clamp(16px, 1.5vw, 19px); }

p { line-height: 1.85; }

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

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

/* ---------- 焦点 ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

.site-header :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 300;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

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

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

.section {
  padding-block: clamp(36px, 5.2vw, 76px);
}

.section--tight {
  padding-block: clamp(24px, 3.2vw, 44px);
}

/* ==========================================================================
   头部
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
}

/* 上层：会馆铭牌 */
.masthead {
  background: var(--ink);
  border-bottom: 1px solid rgba(217, 183, 104, 0.28);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.6vw, 40px);
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.brand:hover .brand__seal,
.brand:focus-visible .brand__seal {
  background: var(--gold);
  color: var(--ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand__name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.15;
  letter-spacing: 0.16em;
  color: var(--paper);
}

.brand__latin {
  font-family: var(--sans);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  color: rgba(217, 183, 104, 0.72);
}

.masthead__note {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 42ch;
  padding-left: 20px;
  border-left: 1px solid rgba(217, 183, 104, 0.3);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(246, 242, 233, 0.56);
}

.masthead__meta {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  flex: 0 0 auto;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.meta-item__k {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(217, 183, 104, 0.78);
}

.meta-item__v {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(246, 242, 233, 0.9);
  font-variant-numeric: tabular-nums;
}

/* 下层：栏目索引 */
.navbar {
  background: var(--jade);
  color: var(--paper);
  border-bottom: 1px solid rgba(217, 183, 104, 0.34);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 58px;
}

.navbar__label {
  flex: 0 0 auto;
  padding-right: 16px;
  border-right: 1px solid rgba(217, 183, 104, 0.32);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--gold-2);
  white-space: nowrap;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2px, 1.4vw, 24px);
  counter-reset: navidx;
}

.primary-nav__list > li {
  counter-increment: navidx;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 12px 2px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: rgba(246, 242, 233, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.5em;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: rgba(217, 183, 104, 0.6);
  transform: translateY(-4px);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  color: var(--gold);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

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

.navbar__cta {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(217, 183, 104, 0.5);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(217, 183, 104, 0.14);
  border-color: var(--gold);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

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

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

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

.nav-toggle__label {
  white-space: nowrap;
}

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

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 11px 22px;
  border: 1px solid var(--jade);
  background: transparent;
  color: var(--jade);
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-align: center;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--jade);
  color: var(--paper);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #131c16;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #131c16;
}

.btn--ghost {
  border-color: rgba(246, 242, 233, 0.45);
  color: var(--paper);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(246, 242, 233, 0.1);
  border-color: var(--gold-2);
  color: var(--paper);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 12px;
  letter-spacing: 0.16em;
}

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

/* ==========================================================================
   面包屑
   ========================================================================== */
.breadcrumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6em;
  color: rgba(16, 29, 23, 0.35);
}

.breadcrumb a {
  transition: color 0.25s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--jade);
}

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

/* ==========================================================================
   正文与文本组件
   ========================================================================== */
.prose {
  max-width: 72ch;
  font-size: clamp(15px, 1.05vw, 16.5px);
}

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

.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line-strong);
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose ul li {
  position: relative;
  list-style: none;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.78em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.prose ol {
  list-style: decimal;
}

.prose ol li::marker {
  color: var(--gold);
  font-family: var(--serif);
}

.prose blockquote {
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.06em;
  line-height: 1.85;
  color: var(--jade);
}

.prose a {
  color: var(--jade);
  border-bottom: 1px solid var(--line-gold);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.prose a:hover {
  color: var(--cinnabar);
  border-bottom-color: var(--cinnabar);
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: #2c3a32;
}

.note {
  padding-left: 14px;
  border-left: 2px solid var(--line-gold);
  font-size: 13px;
  line-height: 1.8;
  color: var(--stone);
}

.divider {
  height: 1px;
  background: var(--line-strong);
  margin-block: clamp(24px, 4vw, 48px);
}

/* ==========================================================================
   章节头 / 眉题 / 标签
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.3em;
  color: var(--cinnabar);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: end;
  gap: clamp(14px, 3vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head__title {
  font-size: clamp(23px, 3vw, 38px);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.section-head__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--jade);
  background: transparent;
}

.tag--gold {
  border-color: var(--line-gold);
  color: #8a6516;
  background: rgba(185, 139, 46, 0.08);
}

.tag--cinnabar {
  border-color: rgba(162, 56, 42, 0.4);
  color: var(--cinnabar);
  background: rgba(162, 56, 42, 0.06);
}

/* ==========================================================================
   网格
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 32px);
}

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

/* ==========================================================================
   目录型索引
   ========================================================================== */
.index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.index-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding: 18px clamp(10px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}

.index-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

.index-card:hover,
.index-card:focus-visible {
  background: var(--paper-2);
}

.index-card:hover::before,
.index-card:focus-visible::before {
  width: 3px;
}

.index-card__num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.index-card__title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.index-card__desc {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--stone);
}

.index-card__arrow {
  font-size: 13px;
  color: var(--stone);
  transition: transform 0.3s ease, color 0.3s ease;
}

.index-card:hover .index-card__arrow,
.index-card:focus-visible .index-card__arrow {
  transform: translateX(4px);
  color: var(--gold);
}

/* ==========================================================================
   图片容器基础规则
   ========================================================================== */
.figure-set {
  margin: 0;
}

.figure {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--jade);
  border: 1px solid var(--line-strong);
}

.figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(246, 242, 233, 0.06) 0 1px,
    transparent 1px 8px
  );
  pointer-events: none;
}

.figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3  { aspect-ratio: 4 / 3; }
.figure--1x1  { aspect-ratio: 1 / 1; }
.figure--3x4  { aspect-ratio: 3 / 4; }
.figure--21x9 { aspect-ratio: 21 / 9; }

.figure--paper {
  background-color: var(--paper-3);
  border-color: var(--line-gold);
}

.figure--paper::before {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(16, 29, 23, 0.06) 0 1px,
    transparent 1px 8px
  );
}

.figure__frame {
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(217, 183, 104, 0.45);
  pointer-events: none;
}

.figure__caption {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
}

.figure__caption::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-4px);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink);
  color: rgba(246, 242, 233, 0.78);
  border-top: 1px solid rgba(217, 183, 104, 0.55);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.5vw, 48px);
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4.5vw, 52px);
}

.footer__brand-cn {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.footer__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

.footer__brand-en {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.34em;
  color: rgba(217, 183, 104, 0.7);
}

.footer__brand-note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(246, 242, 233, 0.58);
}

.footer__col {
  min-width: 0;
}

.footer__head {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3em;
  color: var(--gold-2);
}

.footer__list li + li {
  margin-top: 10px;
}

.footer__list a {
  position: relative;
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(246, 242, 233, 0.72);
  transition: color 0.25s ease;
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold-2);
  transition: width 0.3s ease;
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--gold-2);
}

.footer__list a:hover::after,
.footer__list a:focus-visible::after {
  width: 100%;
}

.footer__list--plain li {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(246, 242, 233, 0.72);
  font-variant-numeric: tabular-nums;
}

.footer__col--contact .footer__list {
  padding-bottom: 2px;
}

.footer__tip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(246, 242, 233, 0.14);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(246, 242, 233, 0.48);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
  border-top: 1px solid rgba(246, 242, 233, 0.14);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(246, 242, 233, 0.55);
}

.footer__legal {
  font-variant-numeric: tabular-nums;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 8px 14px;
  border: 1px solid rgba(217, 183, 104, 0.4);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--gold-2);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #131c16;
}

/* ==========================================================================
   显现（JS 协议：data-reveal）
   ========================================================================== */
[data-reveal].is-revealing {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1120px) {
  .masthead__note {
    display: none;
  }
}

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

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

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 920px) {
  .masthead__inner {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 14px;
  }

  .masthead__meta {
    width: 100%;
    justify-content: flex-start;
    gap: 20px 32px;
    padding-top: 12px;
    border-top: 1px solid rgba(217, 183, 104, 0.2);
  }

  .navbar__inner {
    flex-wrap: wrap;
    min-height: 54px;
    padding-block: 8px;
    gap: 10px;
  }

  .navbar__label {
    display: none;
  }

  .navbar__cta {
    order: 2;
    margin-left: auto;
  }

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

  .primary-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    border-top: 1px solid rgba(246, 242, 233, 0.14);
    margin-top: 4px;
  }

  .primary-nav[data-open] {
    display: block;
    animation: nav-in 0.24s ease both;
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 4px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 13px 4px;
    color: rgba(246, 242, 233, 0.84);
    border-bottom: 1px solid rgba(246, 242, 233, 0.1);
  }

  .nav-link[aria-current="page"] {
    background: rgba(217, 183, 104, 0.1);
    padding-left: 12px;
  }
}

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

  .index-card {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 6px;
  }

  .index-card__arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand__seal {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .figure__frame {
    inset: 7px;
  }
}

@media (max-width: 440px) {
  .masthead__meta {
    gap: 14px;
  }

  .meta-item__v {
    font-size: 12px;
  }

  .navbar__cta {
    padding: 8px 12px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    padding: 8px 11px;
  }
}

/* ==========================================================================
   减少动效
   ========================================================================== */
@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],
  [data-reveal].is-revealing {
    opacity: 1 !important;
    transform: none !important;
  }

  .index-card:hover::before,
  .index-card:focus-visible::before {
    width: 3px;
  }
}
