/* ============================================================
   逸贝娱乐会馆 · 共享样式 /assets/site.css
   框架式导航 · 珠宝色分区 · 会馆动线
   ============================================================ */

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

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

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

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

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

button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色 */
  --ink-deep: #0B1B2B;
  --teal-deep: #0E2F3A;
  --indigo: #2A1E4A;
  --wine: #5A1F2E;
  --coral: #FF6B4A;
  --mint: #4FE0C1;
  --gold: #E8B45A;
  --mist: #F4F1EA;
  --slate: #8FA3B8;
  --void: #050A10;

  /* 语义色 */
  --bg: var(--ink-deep);
  --text: var(--mist);
  --muted: #A9BACB;
  --line: rgba(143, 163, 184, 0.28);
  --line-soft: rgba(143, 163, 184, 0.14);

  /* 尺度 */
  --shell-max: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 76px;
  --rail-w: 0px;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (min-width: 1280px) {
  :root { --rail-w: 46px; }
}

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--mist);
}

p { text-wrap: pretty; }

::selection {
  background: var(--coral);
  color: #170C07;
}

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 14px;
  z-index: 300;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--coral);
  color: #170C07;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.22s var(--ease);
}

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

/* ---------- 左侧坐标轨 ---------- */
.frame-rail {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 80;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 22px;
  background: linear-gradient(180deg, var(--void) 0%, var(--ink-deep) 45%, var(--teal-deep) 100%);
  border-right: 1px solid var(--line);
  pointer-events: none;
}

@media (min-width: 1280px) {
  .frame-rail { display: flex; }
}

.frame-rail__text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--slate);
  text-transform: uppercase;
}

.frame-rail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.14);
}

/* ---------- 页头框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.97), rgba(11, 27, 43, 0.9));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, rgba(143, 163, 184, 0.5) 0 1px, transparent 1px 14px);
  opacity: 0.45;
  pointer-events: none;
}

.header-frame {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 12px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.frame-tick {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.75;
}

.frame-tick--tl {
  top: 9px;
  left: 0;
  border-top: 1px solid var(--coral);
  border-left: 1px solid var(--coral);
}

.frame-tick--tr {
  top: 9px;
  right: 0;
  border-top: 1px solid var(--coral);
  border-right: 1px solid var(--coral);
}

/* ---------- 品牌锁定块 ---------- */
.brand-lockup {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--mist);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(150deg, var(--coral) 0%, #C6412B 62%, var(--wine) 100%);
  color: #170C07;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 26px -14px rgba(255, 107, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease);
}

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

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

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  color: var(--slate);
  white-space: nowrap;
}

/* ---------- 主导航 ---------- */
.nav-cluster {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--slate);
  transition: color 0.22s var(--ease);
}

.nav-link:hover {
  color: var(--mist);
  background-color: rgba(79, 224, 193, 0.09);
  border-color: rgba(79, 224, 193, 0.32);
}

.nav-link:hover .nav-index { color: var(--mint); }

.nav-link[aria-current="page"] {
  color: #170C07;
  background-color: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 14px 28px -18px rgba(255, 107, 74, 0.95);
}

.nav-link[aria-current="page"] .nav-index { color: rgba(23, 12, 7, 0.62); }

.nav-cta,
.nav-hint { display: none; }

/* ---------- 页头操作区 ---------- */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.2s var(--ease), box-shadow 0.24s var(--ease);
}

.btn--primary {
  background-color: var(--coral);
  color: #170C07;
  box-shadow: 0 16px 34px -22px rgba(255, 107, 74, 0.95);
}

.btn--primary:hover {
  background-color: #FF8A6B;
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--mist);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--mint);
  border-color: rgba(79, 224, 193, 0.55);
  background-color: rgba(79, 224, 193, 0.08);
}

.btn--gold {
  background-color: var(--gold);
  color: #241703;
}

.btn--gold:hover { background-color: #F0C578; }

.btn--mint {
  background-color: var(--mint);
  color: #04221C;
}

.btn--mint:hover { background-color: #74EBD1; }

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 15px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--mist);
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(79, 224, 193, 0.55);
  background-color: rgba(79, 224, 193, 0.1);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 折叠态导航面板 ---------- */
@media (max-width: 1159px) {
  .nav-toggle { display: flex; }

  .header-actions .btn { display: none; }

  .nav-cluster {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px var(--gutter) 26px;
    background: linear-gradient(180deg, rgba(14, 47, 58, 0.99), rgba(11, 27, 43, 0.99));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 42px 70px -40px rgba(0, 0, 0, 0.95);
    max-height: calc(100vh - var(--header-h) - 30px);
    overflow-y: auto;
  }

  .site-header[data-open="true"] .nav-cluster { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--mist);
  }

  .nav-link[aria-current="page"] {
    background-color: var(--coral);
    color: #170C07;
  }

  .nav-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
  }

  .nav-cta .btn { width: 100%; }

  .nav-hint {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--slate);
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  padding-top: clamp(40px, 6vw, 78px);
  background: radial-gradient(130% 120% at 8% 0%, var(--teal-deep) 0%, var(--ink-deep) 46%, var(--void) 100%);
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--coral) 0 22%,
    var(--gold) 22% 46%,
    var(--mint) 46% 68%,
    var(--indigo) 68% 100%);
  opacity: 0.85;
}

.footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4.4vw, 60px);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand-lockup--footer { margin-bottom: 2px; }
.brand-lockup--footer .brand-name { font-size: 19px; }

.footer-summary {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--slate);
}

.footer-col__title::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-links a::before {
  content: "";
  width: 12px;
  height: 1px;
  background-color: var(--slate);
  transition: width 0.22s var(--ease), background-color 0.22s var(--ease);
}

.footer-links a:hover { color: var(--mint); }
.footer-links a:hover::before { width: 22px; background-color: var(--mint); }

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 26px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(42, 30, 74, 0.44), rgba(14, 47, 58, 0.52));
}

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

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
}

.footer-value {
  font-size: 15px;
  color: var(--mist);
  overflow-wrap: anywhere;
}

.footer-value--mono {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--mint);
}

.footer-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

@media (min-width: 720px) {
  .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-note { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); }
  .footer-contact { grid-column: 1 / -1; }
}

.footer-legal {
  margin-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.footer-legal__inner {
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
  padding-block: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-legal__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.footer-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(143, 163, 184, 0.72);
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 95;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-color: rgba(11, 27, 43, 0.92);
  color: var(--mist);
  font-size: 17px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

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

/* ---------- 通用容器与排版组件 ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell-max));
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--coral);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background-color: currentColor;
}

.display {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 62ch;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.8;
  color: var(--mist);
}

.note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.rule {
  height: 1px;
  border: 0;
  background-color: var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--slate);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(143, 163, 184, 0.55);
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumbs__link:hover { color: var(--mint); }

.breadcrumbs__item[aria-current] { color: var(--mist); }

/* ---------- 非对称分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.6vw, 56px);
}

@media (min-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.split__aside { min-width: 0; }
.split__main { min-width: 0; }

/* ---------- 主题带 ---------- */
.band {
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--teal-deep);
}

.band--teal { background: linear-gradient(120deg, var(--teal-deep), rgba(11, 27, 43, 0.92)); }

.band--wine {
  background: linear-gradient(120deg, var(--wine), rgba(42, 30, 74, 0.88));
  border-color: rgba(232, 180, 90, 0.28);
}

.band--gold {
  background: linear-gradient(120deg, rgba(232, 180, 90, 0.16), rgba(11, 27, 43, 0.62));
  border-color: rgba(232, 180, 90, 0.42);
}

.band--mint {
  background: linear-gradient(120deg, rgba(79, 224, 193, 0.14), rgba(11, 27, 43, 0.62));
  border-color: rgba(79, 224, 193, 0.38);
}

/* ---------- 卡片 ---------- */
.panel {
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(14, 47, 58, 0.5);
}

.panel--gold {
  border-color: rgba(232, 180, 90, 0.45);
  background: linear-gradient(160deg, rgba(232, 180, 90, 0.13), rgba(14, 47, 58, 0.6) 62%);
}

.panel--mint {
  border-color: rgba(79, 224, 193, 0.4);
  background: linear-gradient(160deg, rgba(79, 224, 193, 0.12), rgba(14, 47, 58, 0.6) 62%);
}

.panel--wine {
  border-color: rgba(255, 107, 74, 0.32);
  background: linear-gradient(160deg, rgba(90, 31, 46, 0.75), rgba(11, 27, 43, 0.8) 70%);
}

.panel--indigo {
  border-color: rgba(143, 163, 184, 0.3);
  background: linear-gradient(160deg, rgba(42, 30, 74, 0.7), rgba(11, 27, 43, 0.85) 70%);
}

/* ---------- 标签胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.chip--coral {
  color: var(--coral);
  border-color: rgba(255, 107, 74, 0.45);
  background-color: rgba(255, 107, 74, 0.1);
}

.chip--mint {
  color: var(--mint);
  border-color: rgba(79, 224, 193, 0.42);
  background-color: rgba(79, 224, 193, 0.1);
}

.chip--gold {
  color: var(--gold);
  border-color: rgba(232, 180, 90, 0.45);
  background-color: rgba(232, 180, 90, 0.11);
}

/* ---------- 图像容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--teal-deep);
  background-image:
    repeating-linear-gradient(135deg, rgba(143, 163, 184, 0.09) 0 1px, transparent 1px 15px),
    radial-gradient(120% 90% at 18% 0%, rgba(79, 224, 193, 0.18), transparent 62%),
    linear-gradient(160deg, rgba(42, 30, 74, 0.62), rgba(11, 27, 43, 0.92));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background-color: rgba(5, 10, 16, 0.66);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- 章节目录 ---------- */
.chapter-index {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 980px) {
  .chapter-index {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

.chapter-index__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.chapter-index__link:hover {
  color: var(--mist);
  background-color: rgba(255, 255, 255, 0.045);
}

.chapter-index__link.is-active {
  color: var(--mist);
  border-left-color: var(--coral);
  background-color: rgba(255, 107, 74, 0.1);
}

/* ---------- 阅读进度 ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 130;
  pointer-events: none;
}

.progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold) 55%, var(--mint));
  transition: width 0.12s linear;
}

/* ---------- 显现动效 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 减少动效 ---------- */
@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;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .to-top { transition: none; }
}
