/* =====================================================================
   百家利登录 · 共享样式 /assets/site.css
   深墨蓝坐标板 × 暖铜金刻度 × 玻璃层信息板
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cloud-100);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
figure { margin: 0; }
table { border-collapse: collapse; }

::selection { background: rgba(200, 135, 60, 0.35); color: #FFFFFF; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #08182B;
  --ink-800: #0D2340;
  --ink-700: #15355C;

  --glass-bg: rgba(233, 240, 252, 0.07);
  --glass-line: rgba(227, 182, 120, 0.28);

  --gold-500: #C8873C;
  --gold-300: #E3B678;
  --jade-500: #2FB283;
  --mist-300: #93A6C0;
  --cloud-100: #E9F0FC;
  --paper: #F4F1E9;

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

  --shell: 1220px;
  --gutter: clamp(20px, 5vw, 40px);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-lift: 0 18px 40px rgba(3, 10, 20, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --blur: 14px;
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--cloud-100);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; letter-spacing: 0; }

p { margin: 0 0 1em; }

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

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

/* ---------- 4. 跳过导航 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 5. 页头：居中刊头导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(8, 24, 43, 0.97), rgba(8, 24, 43, 0.88));
  border-bottom: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.header-inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: padding 0.22s var(--ease), gap 0.22s var(--ease);
}

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.masthead__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-300);
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}
.masthead__tagline { color: var(--gold-300); }
.masthead__rule {
  width: 26px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}
.masthead__note { color: var(--mist-300); letter-spacing: 0.08em; }

.masthead__brand {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.masthead__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cloud-100);
  transition: color 0.18s var(--ease), font-size 0.22s var(--ease);
}
.masthead__brand:hover .masthead__name { color: var(--gold-300); }
.masthead__line {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold-500);
}

.masthead__actions {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* 滚动收敛状态 */
.site-header[data-scrolled="true"] .header-inner { padding: 10px 0 9px; gap: 8px; }
.site-header[data-scrolled="true"] .masthead__meta { opacity: 0; visibility: hidden; }
.site-header[data-scrolled="true"] .masthead__name { font-size: clamp(19px, 2.1vw, 24px); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  color: var(--cloud-100);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.nav-toggle:hover { color: var(--gold-300); border-color: var(--gold-300); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle__bar {
  width: 16px;
  height: 1.5px;
  background: var(--gold-300);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 栏目胶囊条 */
.site-nav { display: flex; justify-content: center; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.site-nav__item { display: block; }

.site-nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: rgba(233, 240, 252, 0.82);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.site-nav__link:hover { color: var(--gold-300); background: rgba(200, 135, 60, 0.14); }
.site-nav__link[aria-current="page"] {
  color: var(--gold-300);
  background: rgba(200, 135, 60, 0.18);
  box-shadow: inset 0 0 0 1px rgba(227, 182, 120, 0.5);
}

/* 滚动进度 */
.header-progress {
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 70%, var(--jade-500));
}

@media (max-width: 1100px) {
  .masthead__note { display: none; }
}

@media (max-width: 880px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .masthead__meta { display: none; }
  .masthead__brand { grid-column: 1; align-items: flex-start; text-align: left; }
  .masthead__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .nav-toggle { display: inline-flex; grid-column: 2; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(13, 35, 64, 0.97);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lift);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
  }
  .site-nav[data-open="true"] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
  }
  .site-nav__link {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
  }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--ink-900);
  font-weight: 700;
}
.btn--gold:hover {
  background: var(--gold-300);
  transform: translateY(-2px);
}
.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--glass-line);
  color: var(--cloud-100);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.btn--ghost:hover { color: var(--gold-300); border-color: var(--gold-300); transform: translateY(-2px); }
.btn--sm { padding: 8px 15px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* ---------- 7. 容器与章节 ---------- */
.container { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container--wide { width: min(1420px, calc(100% - var(--gutter) * 2)); }

.section { padding: clamp(44px, 6.5vw, 88px) 0; }
.section--tight { padding: clamp(28px, 4vw, 52px) 0; }
.section--ink800 { background: var(--ink-800); }
.section--paper { background: var(--paper); color: var(--ink-900); }
.section--paper h2,
.section--paper h3 { color: var(--ink-900); }
.section--paper .section-lead { color: var(--ink-700); }

#main-content { display: block; }

/* 章节头 + 大号等宽编号 */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold-500);
}
.section-title { font-size: clamp(24px, 3.2vw, 34px); margin: 0; }
.section-lead { max-width: 62ch; margin: 0; color: var(--mist-300); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--gold-500), rgba(200, 135, 60, 0));
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-300);
}

/* ---------- 8. 网格与 Bento 信息板 ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--7-5 { grid-template-columns: 7fr 5fr; }
.grid--8-4 { grid-template-columns: 8fr 4fr; }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.bento > .tile--index { grid-column: span 2; }
.bento > .tile { grid-column: span 2; }
.bento > .tile--wide { grid-column: span 3; }
.bento > .tile--focus { grid-column: span 4; }

.tile {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--radius-lg);
  background: var(--ink-700);
  border: 1px solid rgba(147, 166, 192, 0.18);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 182, 120, 0.55);
  box-shadow: var(--shadow-lift);
}
.tile--focus { background: linear-gradient(150deg, var(--ink-700), var(--ink-800) 72%); }
.tile--index {
  background: var(--glass-bg);
  border-color: var(--glass-line);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.glass--panel { padding: clamp(16px, 2vw, 22px); }

@media (max-width: 980px) {
  .grid--7-5, .grid--8-4, .grid--halves, .grid--thirds { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .tile,
  .bento > .tile--index,
  .bento > .tile--wide,
  .bento > .tile--focus { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .tile,
  .bento > .tile--index,
  .bento > .tile--wide,
  .bento > .tile--focus { grid-column: span 1; }
}

/* ---------- 9. 信息图形组件 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  color: var(--gold-300);
}
.stat__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist-300);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--jade-500);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade-500);
  box-shadow: 0 0 0 3px rgba(47, 178, 131, 0.18);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}
.legend__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--glass-line);
  background: var(--ink-700);
}
.legend__mark[data-tone="gold"] { background: var(--gold-500); border-color: var(--gold-300); }
.legend__mark[data-tone="jade"] { background: var(--jade-500); border-color: rgba(47, 178, 131, 0.6); }
.legend__mark[data-tone="mist"] { background: var(--mist-300); border-color: var(--mist-300); }

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 1px;
  background: rgba(227, 182, 120, 0.25);
  border-block: 1px solid rgba(227, 182, 120, 0.25);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--ink-800);
}
.timeline__step {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}
.timeline__label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--cloud-100);
}
@media (max-width: 700px) {
  .timeline { grid-auto-columns: minmax(190px, 1fr); }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(147, 166, 192, 0.18);
  border-radius: var(--radius-md);
}
.data-table { width: 100%; font-size: 15px; }
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(147, 166, 192, 0.16);
}
.data-table th {
  background: var(--ink-700);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  white-space: nowrap;
}
.data-table td { font-family: var(--font-serif); color: var(--cloud-100); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 10. 面包屑与正文 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist-300);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: rgba(147, 166, 192, 0.5); }
.breadcrumb__link { color: var(--mist-300); }
.breadcrumb__link:hover { color: var(--gold-300); }
.breadcrumb__current { color: var(--cloud-100); }

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(233, 240, 252, 0.88);
}
.prose h2 { margin-top: 1.6em; font-size: clamp(22px, 2.6vw, 28px); }
.prose h3 { margin-top: 1.4em; }
.prose strong { color: var(--cloud-100); }
.prose a {
  color: var(--gold-300);
  text-decoration: underline;
  text-decoration-color: rgba(227, 182, 120, 0.45);
  text-underline-offset: 4px;
}
.prose a:hover { color: var(--cloud-100); text-decoration-color: var(--cloud-100); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 2px solid var(--gold-500);
  background: var(--glass-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--cloud-100);
}

/* ---------- 11. 图片容器基础规则（供页面阶段放图） ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(227, 182, 120, 0.24);
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(21, 53, 92, 0.9), rgba(8, 24, 43, 0.95)),
    linear-gradient(180deg, rgba(200, 135, 60, 0.18), rgba(8, 24, 43, 0));
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 166, 192, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 166, 192, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.7;
}
.img-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--3x4 { aspect-ratio: 3 / 4; }
.img-frame__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(244, 241, 233, 0.92);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border-top: 1px solid var(--glass-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr;
  gap: clamp(22px, 3vw, 40px);
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-500);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--cloud-100);
}
.footer-sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-300);
}
.footer-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist-300);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links--legal {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(147, 166, 192, 0.16);
}
.footer-link {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: rgba(233, 240, 252, 0.82);
  transition: color 0.16s var(--ease);
}
.footer-link:hover { color: var(--gold-300); }

.footer-cities {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mist-300);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-contact__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist-300);
}
.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cloud-100);
  word-break: break-all;
}
.footer-contact__address {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist-300);
}
.footer-hours {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}

.copy-btn {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  color: var(--mist-300);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.copy-btn:hover { color: var(--gold-300); border-color: var(--gold-300); }
.copy-btn[data-copied="true"] {
  color: var(--jade-500);
  border-color: rgba(47, 178, 131, 0.6);
  background: rgba(47, 178, 131, 0.12);
}
.copy-status {
  min-width: 44px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--jade-500);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(147, 166, 192, 0.16);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}
.footer-base p { margin: 0; }
.footer-base__record { font-family: var(--font-mono); }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 13. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-line);
  background: rgba(13, 35, 64, 0.88);
  color: var(--cloud-100);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--gold-300); border-color: var(--gold-300); }
.to-top__mark { font-family: var(--font-mono); color: var(--gold-500); }

/* ---------- 14. 进入视口的显现动效 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 偏好设置与降级 ---------- */
@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 { opacity: 1 !important; transform: none !important; }
}
