/* =========================================================
   银河信誉站 · 共享样式 /assets/site.css
   星图轨道头部 + 深空归档页脚 + 通用组件
   ========================================================= */

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

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

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

img {
  height: auto;
}

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

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

input,
select,
textarea {
  font: inherit;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色板 */
  --void: #070B1E;
  --void-2: #0B1130;
  --nebula: #2B2A6B;
  --trail: #6C5CE7;
  --silver: #D8DCE8;
  --gold: #F2C14E;
  --mint: #3FD0B0;
  --paper: #F4EDE0;
  --ink: #12141C;
  --mist: #7C8DB5;
  --ember: #D9534F;

  /* 边界与表面 */
  --line: rgba(216, 220, 232, 0.16);
  --line-strong: rgba(216, 220, 232, 0.32);
  --line-paper: rgba(18, 20, 28, 0.16);

  /* 字体 */
  --font-display: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --shell: 1320px;
  --gutter: clamp(18px, 4.2vw, 56px);
  --header-h: 78px;
  --radius: 2px;

  /* 质感 */
  --shadow-brut: 8px 8px 0 rgba(5, 8, 23, 0.55);
  --shadow-glow: 0 0 28px rgba(108, 92, 231, 0.35);
}

@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
  }
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--silver);
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 640px at 84% -10%, rgba(43, 42, 107, 0.55) 0%, rgba(7, 11, 30, 0) 66%),
    radial-gradient(900px 520px at 4% 2%, rgba(108, 92, 231, 0.16) 0%, rgba(7, 11, 30, 0) 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #F7F8FC;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

strong {
  font-weight: 600;
  color: #FFFFFF;
}

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

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

#main-content {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

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

/* ---------- 5. 排版组件 ---------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.t-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  color: #F7F8FC;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.index-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.rule {
  height: 1px;
  width: 100%;
  max-width: 40%;
  border: 0;
  margin: 26px 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(242, 193, 78, 0.08) 100%);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(242, 193, 78, 0.18);
}

.btn--gold:hover {
  background: #FFD469;
  border-color: #FFD469;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(242, 193, 78, 0.24);
}

.btn--gold:active {
  transform: none;
  box-shadow: 2px 2px 0 rgba(242, 193, 78, 0.18);
}

.btn--line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--silver);
}

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

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

.btn--ink:hover {
  background: #23263A;
  border-color: #23263A;
}

/* ---------- 7. 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 220;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.22s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 8. 头部：星图轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  color: var(--silver);
  border-bottom: 1px solid transparent;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 30, 0.94) 0%,
    rgba(7, 11, 30, 0.6) 58%,
    rgba(7, 11, 30, 0) 100%
  );
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-stuck {
  background: rgba(7, 11, 30, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--silver);
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(242, 193, 78, 0.35));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.brand-tagline {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

/* 导航 */
.head-nav {
  justify-self: center;
  min-width: 0;
}

.nav-index-label {
  display: none;
}

.nav-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.7vw, 10px);
  flex-wrap: nowrap;
}

.nav-node {
  display: flex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: var(--radius);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(216, 220, 232, 0.78);
  transition: color 0.2s ease;
}

.nav-link::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.45);
  transition: background-color 0.2s ease, box-shadow 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 2px;
  left: 8px;
  height: 1px;
  background: var(--gold);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.16);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

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

.nav-link[aria-current="page"]::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.2);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 右侧动作区 */
.head-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.archive-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(43, 42, 107, 0.38);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--silver);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: star-breath 5s ease-in-out infinite;
}

@keyframes star-breath {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(63, 208, 176, 0.18);
  }
  50% {
    opacity: 0.78;
    box-shadow: 0 0 0 6px rgba(63, 208, 176, 0.05);
  }
}

/* 抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--silver);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
  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: 1.5px;
  background: currentColor;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.site-header[data-open] .nav-toggle-bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* 中等宽度压缩 */
@media (max-width: 1180px) and (min-width: 1024px) {
  .nav-link {
    padding: 9px 5px;
    font-size: 12.5px;
  }

  .brand-tagline {
    display: none;
  }
}

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

  .archive-chip {
    display: none;
  }

  .head-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    justify-self: stretch;
    max-height: calc(100dvh - var(--header-h));
    padding: 26px var(--gutter) 36px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0A1030 0%, #070B1E 100%);
    box-shadow: 0 34px 64px -32px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }

  .site-header[data-open] .head-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-index-label {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--mist);
  }

  .nav-orbit {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-node {
    border-bottom: 1px dashed var(--line);
  }

  .nav-node:first-child {
    border-top: 1px dashed var(--line);
  }

  .nav-link {
    width: 100%;
    gap: 12px;
    padding: 15px 2px;
    font-size: 16px;
    color: rgba(216, 220, 232, 0.86);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link::before {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.06em;
  }

  .brand-tagline {
    display: none;
  }

  .head-actions {
    gap: 8px;
  }

  .head-actions .btn {
    padding: 9px 13px;
    font-size: 12.5px;
  }

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

@media (max-width: 380px) {
  .brand-name {
    font-size: 15px;
  }

  .head-actions .btn {
    padding: 8px 10px;
    font-size: 11.5px;
  }

  .nav-toggle-label {
    display: none;
  }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 86px);
  color: var(--silver);
  border-top: 1px solid var(--line);
  background-color: var(--void);
  background-image:
    radial-gradient(120% 90% at 10% 0%, rgba(43, 42, 107, 0.62) 0%, rgba(7, 11, 30, 0) 64%),
    radial-gradient(80% 70% at 92% 8%, rgba(108, 92, 231, 0.18) 0%, rgba(7, 11, 30, 0) 60%),
    linear-gradient(180deg, #080D24 0%, #050817 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 24%, rgba(242, 193, 78, 0.5) 48%, transparent 78%);
  opacity: 0.7;
}

.footer-rail {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.45fr);
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 62px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-mark {
  width: 34px;
  height: 34px;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(242, 193, 78, 0.3));
}

.footer-mark svg {
  width: 100%;
  height: 100%;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: #FFFFFF;
}

.footer-lines {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.contact-value {
  color: rgba(216, 220, 232, 0.86);
  word-break: break-word;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: rgba(216, 220, 232, 0.78);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.footer-link:hover {
  padding-left: 14px;
  color: #FFFFFF;
}

.footer-link:hover::before {
  width: 9px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer-copy {
  margin-right: auto;
}

.footer-icp {
  color: rgba(216, 220, 232, 0.62);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  color: var(--mist);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-copy {
    margin-right: 0;
  }
}

@media (max-width: 400px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(216, 220, 232, 0.3);
}

.breadcrumb a {
  color: rgba(216, 220, 232, 0.72);
  transition: color 0.2s ease;
}

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

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

/* ---------- 11. 档案卡片 ---------- */
.doc-card {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(43, 42, 107, 0.5) 0%, rgba(11, 17, 48, 0.72) 100%);
  box-shadow: var(--shadow-brut);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.doc-card:hover {
  transform: translate(-3px, -3px);
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: 11px 11px 0 rgba(5, 8, 23, 0.6);
}

/* ---------- 12. 暖纸阅读区 ---------- */
.reading {
  padding-block: clamp(40px, 6vw, 78px);
  background-color: var(--paper);
  background-image:
    radial-gradient(760px 380px at 100% 0%, rgba(43, 42, 107, 0.1) 0%, rgba(244, 237, 224, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
}

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

.reading p {
  color: #22242E;
}

.reading a {
  color: #3B2FB8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.reading .eyebrow,
.reading .index-tag {
  color: #6B5BD6;
}

.reading .rule {
  background: linear-gradient(90deg, #B9922C 0%, rgba(185, 146, 44, 0.1) 100%);
}

.doc-body {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
}

.doc-body p + p {
  margin-top: 1.05em;
}

.doc-body h2 {
  margin: 2em 0 0.7em;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
}

.doc-body h3 {
  margin: 1.7em 0 0.5em;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
}

/* ---------- 13. 图片容器（页面阶段放图） ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--void-2);
  background-image:
    radial-gradient(120% 120% at 18% 0%, rgba(108, 92, 231, 0.42) 0%, rgba(7, 11, 30, 0) 62%),
    linear-gradient(160deg, #0D1338 0%, #070B1E 100%);
  box-shadow: var(--shadow-brut);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(216, 220, 232, 0.24) 0.8px, transparent 0.8px);
  background-size: 26px 26px;
  opacity: 0.3;
}

.media-frame > img,
.media-frame > picture > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--silver);
  background: linear-gradient(180deg, rgba(7, 11, 30, 0) 0%, rgba(7, 11, 30, 0.9) 80%);
}

/* ---------- 14. JS 注入件 ---------- */
.scroll-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--trail) 0%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.4);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 17, 48, 0.92);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s,
    border-color 0.2s ease, color 0.2s ease;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in {
  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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
