/* ==========================================================================
   云顶国际会馆 · 共享样式表 /assets/site.css
   基调：云顶微光 · 堆叠画板 · 双层导航 · 等宽索引
   ========================================================================== */

/* --- 0. 设计变量 --------------------------------------------------------- */
:root {
  --ink-deep: #101A2E;
  --ink-night: #17253F;
  --gold: #C9A055;
  --gold-mist: #E3C98E;
  --mist: #F3F5F7;
  --cream: #F6F1E7;
  --jade: #4E7C74;
  --warm-gray: #8A8578;
  --ink-black: #1B1D22;
  --terracotta: #B4553A;
  --ice-line: #D9E0E8;

  --text: var(--ink-black);
  --text-soft: #4A4F57;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --fs-1: 56px;
  --fs-2: 40px;
  --fs-3: 28px;
  --fs-4: 20px;
  --fs-5: 16px;

  --r-panel: 20px;
  --r-card: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 28px;
  --gap-lg: 48px;
  --gap-xl: 88px;

  --shadow-panel: 0 26px 60px -34px rgba(16, 26, 46, 0.42);
  --shadow-soft: 0 14px 32px -22px rgba(16, 26, 46, 0.55);

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 1. 重置与基准 ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p { margin: 0 0 1em; }
hr { border: 0; }

::selection { background: rgba(201, 160, 85, 0.34); }

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

/* --- 2. 中文排版 --------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 0.6em; font-weight: 600; line-height: 1.45; letter-spacing: 0.06em; }
h1 { font-family: var(--font-serif); font-size: var(--fs-1); }
h2 { font-family: var(--font-serif); font-size: var(--fs-2); }
h3 { font-family: var(--font-serif); font-size: var(--fs-3); }
h4 { font-family: var(--font-sans); font-size: var(--fs-4); letter-spacing: 0.04em; }
strong { font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

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

.prose { max-width: 72ch; }
.prose p { max-width: 68ch; }
.prose h3 { margin-top: 1.6em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--ink { color: var(--jade); }
.eyebrow--ink::before { background: linear-gradient(90deg, transparent, var(--jade)); }

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-2);
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.lede {
  margin: 0;
  font-size: var(--fs-4);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 60ch;
}

.on-dark { color: var(--mist); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lede { color: rgba(243, 245, 247, 0.72); }

/* --- 3. 布局工具 --------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), 92vw);
  margin-inline: auto;
}

.section { padding-block: var(--gap-xl); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 64ch;
  margin-bottom: var(--gap-lg);
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

.grid { display: grid; gap: var(--gap-md); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.rule {
  height: 1px;
  border: 0;
  margin: var(--gap-lg) 0;
  background: var(--ice-line);
}

.rule--glow {
  background: linear-gradient(90deg, transparent, rgba(201, 160, 85, 0.65), transparent);
  animation: micro-glow 5.6s ease-in-out infinite;
}

.glow { animation: micro-glow 5.6s ease-in-out infinite; }

@keyframes micro-glow {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

/* --- 4. 面板与按钮 ------------------------------------------------------- */
.panel {
  position: relative;
  border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 56px);
}

.panel--dark {
  background: linear-gradient(160deg, var(--ink-night), var(--ink-deep));
  color: var(--mist);
}
.panel--dark h1, .panel--dark h2, .panel--dark h3 { color: #fff; }
.panel--dark .lede { color: rgba(243, 245, 247, 0.72); }
.panel--dark .eyebrow { color: var(--gold-mist); }

.panel--night { background: var(--ink-night); color: var(--mist); }
.panel--night h1, .panel--night h2, .panel--night h3 { color: #fff; }
.panel--night .lede { color: rgba(243, 245, 247, 0.72); }

.panel--mist { background: var(--mist); border: 1px solid var(--ice-line); }
.panel--cream { background: var(--cream); border: 1px solid rgba(138, 133, 120, 0.22); }

.panel--stack { box-shadow: var(--shadow-panel); }

.panel--edge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(201, 160, 85, 0.18);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
              border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-mist));
  color: #231c0c;
  border-color: rgba(227, 201, 142, 0.5);
  box-shadow: 0 14px 30px -22px rgba(201, 160, 85, 0.9);
}
.btn--gold:hover { background: linear-gradient(120deg, var(--gold-mist), var(--gold)); }

.btn--ghost { border-color: rgba(201, 160, 85, 0.55); color: var(--gold-mist); }
.btn--ghost:hover { background: rgba(201, 160, 85, 0.14); }

.btn--jade { background: var(--jade); color: #fff; border-color: rgba(78, 124, 116, 0.7); }
.btn--jade:hover { background: #437068; }

.btn--quiet { background: #fff; border-color: var(--ice-line); color: var(--ink-black); }
.btn--quiet:hover { border-color: var(--gold); color: #8a6a2a; }

/* --- 5. 索引与记录 ------------------------------------------------------- */
.index-list { display: flex; flex-direction: column; }

.index-list__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--ice-line);
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}
.index-list__item:hover {
  background: rgba(201, 160, 85, 0.07);
  border-color: rgba(201, 160, 85, 0.42);
}

.index-list__no {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.index-list__body { min-width: 0; }
.index-list__body strong { display: block; font-size: 17px; letter-spacing: 0.03em; }
.index-list__body p { margin: 6px 0 0; font-size: 15px; color: var(--text-soft); }

.index-list__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  white-space: nowrap;
}

.panel--dark .index-list__item { border-color: rgba(217, 224, 232, 0.16); }
.panel--dark .index-list__item:hover { background: rgba(201, 160, 85, 0.12); }
.panel--dark .index-list__body p { color: rgba(243, 245, 247, 0.68); }
.panel--dark .index-list__meta { color: rgba(243, 245, 247, 0.52); }

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.record-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--warm-gray);
}
.record-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--warm-gray);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ice-line);
  white-space: nowrap;
}
.record-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--ice-line);
  vertical-align: top;
}
.record-table tbody tr { transition: background 0.2s var(--ease); }
.record-table tbody tr:hover { background: rgba(201, 160, 85, 0.08); }
.record-table .num,
.record-table td.num,
.record-table th.num { text-align: right; }

.panel--dark .record-table th { color: rgba(243, 245, 247, 0.6); border-color: rgba(217, 224, 232, 0.18); }
.panel--dark .record-table td { border-color: rgba(217, 224, 232, 0.14); }
.panel--dark .record-table tbody tr:hover { background: rgba(201, 160, 85, 0.13); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}
.chip--jade { color: #356058; background: rgba(78, 124, 116, 0.12); border-color: rgba(78, 124, 116, 0.38); }
.chip--gold { color: #7d5f24; background: rgba(201, 160, 85, 0.16); border-color: rgba(201, 160, 85, 0.42); }
.chip--alert { color: #8c3f28; background: rgba(180, 85, 58, 0.1); border-color: rgba(180, 85, 58, 0.36); }
.panel--dark .chip--jade { color: #a8d6cc; background: rgba(78, 124, 116, 0.24); border-color: rgba(78, 124, 116, 0.55); }
.panel--dark .chip--gold { color: var(--gold-mist); background: rgba(201, 160, 85, 0.18); border-color: rgba(201, 160, 85, 0.5); }

/* --- 6. 可展开内容组 ----------------------------------------------------- */
.disclosure {
  border: 1px solid var(--ice-line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.disclosure + .disclosure { margin-top: 12px; }
.disclosure[open] {
  border-color: rgba(201, 160, 85, 0.5);
  box-shadow: 0 16px 34px -28px rgba(16, 26, 46, 0.5);
}
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-size: 17px;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "＋";
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
  transition: transform 0.28s var(--ease);
}
.disclosure[open] summary::after { content: "－"; }
.disclosure__body {
  padding: 0 22px 22px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

.panel--dark .disclosure {
  background: rgba(243, 245, 247, 0.04);
  border-color: rgba(217, 224, 232, 0.18);
}
.panel--dark .disclosure[open] { border-color: rgba(201, 160, 85, 0.48); }
.panel--dark .disclosure__body { color: rgba(243, 245, 247, 0.74); }

/* --- 7. 图片容器 --------------------------------------------------------- */
.img-block { display: block; }

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-panel);
  border: 1px solid rgba(201, 160, 85, 0.22);
  background: linear-gradient(150deg, var(--ink-night), var(--ink-deep));
  box-shadow: var(--shadow-soft);
}
.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 78% 10%, rgba(201, 160, 85, 0.22), transparent 66%),
    radial-gradient(50% 80% at 10% 100%, rgba(78, 124, 116, 0.26), transparent 70%);
}
.img-frame > img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--square { aspect-ratio: 1 / 1; }

.img-frame__caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
}

/* --- 8. 面包屑与返回顶部 ------------------------------------------------- */
.breadcrumb { padding-block: 24px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li:not(:last-child)::after { content: "／"; color: rgba(138, 133, 120, 0.5); }
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--ink-black); }

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--gold-mist);
  background: rgba(16, 26, 46, 0.92);
  border: 1px solid rgba(201, 160, 85, 0.5);
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); color: #fff; }

/* --- 9. 页头：双层信息导航 ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-deep);
  color: var(--mist);
  box-shadow: 0 18px 40px -30px rgba(16, 26, 46, 0.9);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 130% at 88% 0%, rgba(201, 160, 85, 0.18), transparent 68%),
    radial-gradient(42% 110% at 6% 120%, rgba(78, 124, 116, 0.2), transparent 70%);
}
.site-header > * { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 80;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #231c0c;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: top 0.24s var(--ease);
}
.skip-link:focus { top: 12px; }

.header-top {
  background: rgba(23, 37, 63, 0.86);
  border-bottom: 1px solid rgba(227, 201, 142, 0.16);
}
.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--gold-mist), #7b6230);
  box-shadow: 0 0 0 1px rgba(227, 201, 142, 0.35), 0 8px 18px -10px rgba(201, 160, 85, 0.9);
}
.brand__mark i {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 7px;
  height: 2px;
  border-radius: 2px;
  background: rgba(16, 26, 46, 0.55);
  box-shadow: 0 5px 0 rgba(16, 26, 46, 0.38), 0 10px 0 rgba(16, 26, 46, 0.24);
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #fff;
}

.header-motto {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold-mist);
  opacity: 0.9;
}

.header-bar {
  background: linear-gradient(180deg, rgba(23, 37, 63, 0.72), rgba(16, 26, 46, 0.96));
  border-bottom: 1px solid rgba(201, 160, 85, 0.22);
}
.header-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.primary-nav { flex: 1 1 auto; min-width: 0; }
.primary-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(243, 245, 247, 0.78);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.primary-nav__list a:hover {
  color: var(--mist);
  background: rgba(243, 245, 247, 0.07);
}
.primary-nav__list a[aria-current="page"] {
  color: var(--gold-mist);
  background: rgba(201, 160, 85, 0.12);
}
.primary-nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.entry-anchor {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(201, 160, 85, 0.5);
  background: linear-gradient(120deg, rgba(201, 160, 85, 0.14), rgba(78, 124, 116, 0.14));
  color: var(--gold-mist);
  font-size: 14px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: micro-glow 5.6s ease-in-out infinite;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.entry-anchor:hover {
  border-color: var(--gold);
  background: rgba(201, 160, 85, 0.22);
  color: #fff;
}
.entry-anchor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px 2px rgba(78, 124, 116, 0.65);
}
.entry-anchor__arrow { font-family: var(--font-mono); }
.entry-anchor__text--short { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(217, 224, 232, 0.26);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.nav-toggle:hover { border-color: rgba(201, 160, 85, 0.6); background: rgba(201, 160, 85, 0.12); }
.nav-toggle__bar {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: background 0.24s var(--ease);
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.28s var(--ease);
}
.nav-toggle__bar::before { top: -5px; }
.nav-toggle__bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(201, 160, 85, 0.16);
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transition: transform 0.12s linear;
}

/* --- 10. 页脚：山脊轮廓 + 四栏 ------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: var(--gap-xl);
  background: linear-gradient(180deg, var(--ink-night), var(--ink-deep) 44%);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  display: block;
  height: clamp(48px, 7vw, 84px);
  background: linear-gradient(180deg, rgba(201, 160, 85, 0.3), rgba(201, 160, 85, 0) 78%);
  clip-path: polygon(0% 100%, 6% 64%, 13% 80%, 22% 40%, 31% 70%, 42% 28%, 54% 66%, 64% 36%, 76% 72%, 85% 46%, 93% 74%, 100% 50%, 100% 100%);
  opacity: 0.72;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.footer-brand__name {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: var(--fs-4);
  letter-spacing: 0.14em;
  color: #fff;
}
.footer-brand__line {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold-mist);
  opacity: 0.9;
}
.footer-brand__meta {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(243, 245, 247, 0.55);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.footer-col__title {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: #fff;
}
.footer-col__desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(243, 245, 247, 0.58);
}
.footer-col__links { display: flex; flex-direction: column; gap: 8px; }
.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold-mist);
  transition: color 0.2s var(--ease);
}
.footer-col__link::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(201, 160, 85, 0.7);
  transition: width 0.24s var(--ease);
}
.footer-col__link:hover { color: #fff; }
.footer-col__link:hover::before { width: 22px; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  padding: 22px 0;
  border-top: 1px solid rgba(217, 224, 232, 0.14);
  border-bottom: 1px solid rgba(217, 224, 232, 0.14);
}
.footer-contact__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 14px;
}
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(243, 245, 247, 0.5);
}
.footer-contact__val { color: var(--mist); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 20px 0 28px;
  font-size: 13px;
  color: rgba(243, 245, 247, 0.55);
}
.footer-legal__item { margin: 0; letter-spacing: 0.06em; }
.footer-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-left: auto;
}
.footer-legal a { transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--gold-mist); }

/* --- 11. 显现动效 ------------------------------------------------------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- 12. 响应式 --------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .col-3, .col-4 { grid-column: span 6; }
  .col-8, .col-9 { grid-column: span 12; }
}

@media (max-width: 980px) {
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root {
    --fs-1: 40px;
    --fs-2: 30px;
    --fs-3: 24px;
    --fs-4: 18px;
    --gap-xl: 64px;
    --gap-lg: 36px;
  }

  body { font-size: 16.5px; }

  .header-top__inner { gap: 12px; padding: 8px 0; }
  .brand__name { font-size: 15px; letter-spacing: 0.1em; }
  .header-motto { font-size: 11.5px; letter-spacing: 0.16em; }

  .header-bar__inner { padding: 10px 0; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .entry-anchor { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .entry-anchor__text--full { display: none; }
  .entry-anchor__text--short { display: inline; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 5;
    display: none;
    padding: 10px;
    border-radius: var(--r-panel);
    border: 1px solid rgba(201, 160, 85, 0.32);
    background: linear-gradient(180deg, rgba(23, 37, 63, 0.99), rgba(16, 26, 46, 0.99));
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.72);
  }
  .primary-nav[data-open] { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav__list a {
    display: block;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-size: 16px;
  }
  .primary-nav__list a[aria-current="page"] { background: rgba(201, 160, 85, 0.16); }
  .primary-nav__list a[aria-current="page"]::after { display: none; }

  .section-head--split { flex-direction: column; align-items: flex-start; }
  .footer-legal__nav { margin-left: 0; }
  .to-top { width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .col-3, .col-4, .col-6, .col-8, .col-9, .col-12 { grid-column: span 1; }

  .index-list__item { grid-template-columns: 52px minmax(0, 1fr); }
  .index-list__meta { grid-column: 2; white-space: normal; }

  .img-frame { border-radius: var(--r-card); }
  .img-frame--wide { aspect-ratio: 16 / 9; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { gap: 12px 20px; }
  .footer-contact__item { flex-direction: column; gap: 2px; }
}

/* --- 13. 动效降级 ------------------------------------------------------- */
@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;
  }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
  .scroll-meter__fill { transition: none; }
}
