/* ==========================================================================
   星空体育入口 · 共享站点样式  /assets/site.css
   深空黑底 · 天文台蓝分区 · 晨曦金行动 · 青绿数据线
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #05070D;
  --ink-2: #0B1220;
  --orbit: #16243D;
  --nebula: #3B2A66;
  --gold: #E8B45A;
  --gold-bright: #F2C97B;
  --star: #F2F5F9;
  --mint: #4ED6C8;
  --dust: #8A94A6;
  --amber: #F2A65A;
  --sand: #D9C7A0;

  --line-sand: rgba(217, 199, 160, 0.30);
  --line-soft: rgba(217, 199, 160, 0.14);
  --line-ink: rgba(5, 7, 13, 0.88);

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

  --shell-max: 1280px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --header-h: 74px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-brut: 10px 10px 0 -2px rgba(5, 7, 13, 0.92), 10px 10px 0 -1px rgba(232, 180, 90, 0.16);
}

@media (min-width: 921px) {
  :root { --header-h: 88px; }
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

html.nav-lock { overflow: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--ink);
  color: var(--star);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
}

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

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

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -140px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 12px 22px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.1em;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(5, 7, 13, 0.8);
  transition: top 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

/* ---------- 4. 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.90) 0%, rgba(5, 7, 13, 0.54) 64%, rgba(5, 7, 13, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid {
  background: rgba(11, 18, 32, 0.97);
  border-bottom-color: var(--line-sand);
  box-shadow: 0 20px 44px -28px #000, 0 1px 0 rgba(232, 180, 90, 0.20);
}

.header-rail {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--star);
  margin-right: auto;
}

.brand-mark {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--mint);
  animation: orbit-spin 6.5s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--star);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.2em;
  color: var(--dust);
}

/* 移动端按钮 */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: rgba(22, 36, 61, 0.62);
  border: 1.5px solid rgba(217, 199, 160, 0.42);
  border-radius: 2px;
  color: var(--star);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-toggle-label { line-height: 1; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 18px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 3px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(242, 245, 249, 0.82);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--gold);
  border-bottom-color: rgba(232, 180, 90, 0.55);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 180, 90, 0.9);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(22, 36, 61, 0.55);
  border: 1.5px solid rgba(217, 199, 160, 0.42);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sand);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.utility-link:hover {
  background: rgba(232, 180, 90, 0.14);
  border-color: var(--gold);
  color: var(--gold);
}

.utility-link--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.utility-link--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}

/* 移动端抽屉 */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 58;
    width: min(88vw, 360px);
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 18px) clamp(18px, 5vw, 28px) 36px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(59, 42, 102, 0.78), transparent 70%),
      linear-gradient(170deg, #0B1220 0%, #05070D 78%);
    border-left: 2px solid rgba(232, 180, 90, 0.42);
    box-shadow: -30px 0 70px -24px #000;
    transform: translateX(104%);
    transition: transform 0.4s var(--ease);
  }

  .site-nav[data-open="true"] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }

  .nav-item { border-bottom: 1px solid var(--line-soft); }

  .nav-link {
    padding: 15px 2px;
    font-size: 17px;
    letter-spacing: 0.1em;
    border-bottom: none;
  }

  .nav-link[aria-current="page"] { border-bottom: none; }

  .nav-link[aria-current="page"]::after {
    left: auto;
    right: 2px;
    bottom: 50%;
    margin: 0 0 -2px 0;
  }

  .nav-utility {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed rgba(217, 199, 160, 0.28);
  }

  .utility-link {
    padding: 13px 16px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 920px) {
  html.nav-lock body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(5, 7, 13, 0.74);
  }
}

@media (max-width: 400px) {
  .brand-line { display: none; }
  .brand-name { font-size: 14px; letter-spacing: 0.1em; }
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
  background:
    radial-gradient(110% 130% at 6% -20%, rgba(59, 42, 102, 0.58), transparent 58%),
    radial-gradient(70% 90% at 100% 0%, rgba(22, 36, 61, 0.92), transparent 62%),
    var(--ink);
  border-top: 2px solid var(--line-sand);
  color: var(--star);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: clamp(70px, 16vw, 220px);
  height: 2px;
  background: var(--gold);
}

.footer-grid {
  max-width: var(--shell-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(92px, 0.85fr)) minmax(200px, 1.35fr);
  gap: clamp(26px, 3.5vw, 48px) clamp(18px, 2.6vw, 40px);
  padding-bottom: clamp(32px, 5vw, 58px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

.footer-brand-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: 0.14em;
  color: var(--star);
  transition: color 0.25s var(--ease);
}

.footer-brand-link:hover { color: var(--gold); }

.footer-summary {
  margin: 16px 0 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(242, 245, 249, 0.72);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 6px 12px;
  background: rgba(22, 36, 61, 0.55);
  border: 1.5px solid var(--line-sand);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.footer-meta-label {
  color: var(--dust);
  text-transform: uppercase;
}

.footer-icp { color: var(--sand); }

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

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-col-title::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 10px;
  background: rgba(232, 180, 90, 0.55);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 13.5px;
  color: rgba(242, 245, 249, 0.76);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-contact { display: flex; flex-direction: column; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.copy-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  background: rgba(22, 36, 61, 0.55);
  border: 1.5px solid rgba(217, 199, 160, 0.28);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.copy-chip:hover {
  border-color: var(--gold);
  background: rgba(22, 36, 61, 0.92);
}

.copy-chip[data-copy-state="done"] { border-color: var(--mint); }

.copy-chip-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.copy-chip-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--star);
  word-break: break-all;
}

.copy-chip-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.contact-address {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  border: 1.5px dashed rgba(217, 199, 160, 0.24);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(242, 245, 249, 0.72);
}

.contact-address-text {
  flex: 1 1 150px;
  word-break: break-word;
}

.footer-contact-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--dust);
}

.footer-base {
  max-width: var(--shell-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line-soft);
}

.footer-copy,
.footer-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dust);
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact-list { flex-direction: row; flex-wrap: wrap; }
  .footer-contact-list > li { flex: 1 1 260px; }
  .footer-contact-note { max-width: 64ch; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-contact { grid-column: auto; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-summary { max-width: none; }
}

/* ---------- 6. 版式容器 ---------- */
.shell {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(40px, 7vw, 92px);
}

.section--deep { background: var(--ink-2); }

.section--orbit {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--orbit) 100%);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(22px, 4vw, 44px);
}

.section-title {
  font-size: clamp(25px, 3.6vw, 40px);
  letter-spacing: 0.04em;
  color: var(--star);
}

.section-lede {
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(242, 245, 249, 0.78);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}

.page-top { padding-top: calc(var(--header-h) + clamp(22px, 4vw, 48px)); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dust);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "／";
  color: rgba(217, 199, 160, 0.42);
}

.breadcrumb-link {
  color: var(--dust);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--gold);
  border-bottom-color: currentColor;
}

.breadcrumb-current {
  color: var(--sand);
  font-weight: 700;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 6px 6px 0 rgba(232, 180, 90, 0.22);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(78, 214, 200, 0.32);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

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

.btn--ghost {
  background: transparent;
  border-color: rgba(242, 245, 249, 0.45);
  color: var(--star);
  box-shadow: 6px 6px 0 rgba(5, 7, 13, 0.6);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 8px 8px 0 rgba(232, 180, 90, 0.25);
}

/* ---------- 9. 展览说明牌 / 轨道卡 / 数据 ---------- */
.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(22, 36, 61, 0.55);
  border: 2px solid rgba(217, 199, 160, 0.4);
  box-shadow: 4px 4px 0 rgba(5, 7, 13, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.exhibit-label-num {
  color: var(--gold);
  font-weight: 700;
}

.orbit-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: linear-gradient(160deg, var(--orbit) 0%, var(--ink-2) 100%);
  border: 2px solid rgba(217, 199, 160, 0.25);
  box-shadow: var(--shadow-brut);
}

.orbit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--gold);
}

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

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--gold);
}

/* ---------- 10. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
}

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

/* ---------- 11. 图片容器 ---------- */
.figure-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(217, 199, 160, 0.3);
  background: linear-gradient(150deg, #16243D 0%, #0B1220 60%, #05070D 100%);
  box-shadow: 12px 12px 0 -2px rgba(5, 7, 13, 0.85), 12px 12px 0 -1px rgba(232, 180, 90, 0.16);
}

.figure-frame > img,
.figure-frame > .figure-media {
  display: block;
  width: 100%;
  aspect-ratio: var(--figure-ratio, 16 / 9);
  object-fit: cover;
  background:
    radial-gradient(80% 100% at 18% 8%, rgba(78, 214, 200, 0.18), transparent 62%),
    radial-gradient(70% 90% at 86% 92%, rgba(59, 42, 102, 0.62), transparent 64%),
    linear-gradient(150deg, #16243D 0%, #0B1220 60%, #05070D 100%);
}

.figure-frame--wide { --figure-ratio: 21 / 9; }
.figure-frame--tall { --figure-ratio: 3 / 4; }
.figure-frame--square { --figure-ratio: 1 / 1; }

.figure-caption {
  padding: 10px 14px;
  border-top: 1px solid rgba(217, 199, 160, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dust);
}

.figure-caption b {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- 12. 返回顶部（JS 注入） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: rgba(11, 18, 32, 0.94);
  border: 2px solid rgba(232, 180, 90, 0.55);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), border-color 0.25s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { border-color: var(--gold); }

.to-top-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
}

.to-top-track {
  fill: none;
  stroke: rgba(217, 199, 160, 0.2);
  stroke-width: 2;
}

.to-top-bar {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
}

.to-top-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.copy-sink {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .brand-mark::after {
    animation: none;
    border-top-color: rgba(78, 214, 200, 0.55);
  }

  .site-nav {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
