/* ==========================================================================
   皇冠体彩开奖 · 共享样式表 /assets/site.css
   设计母题：深夜开盘机房 · 深墨底 + 暗金编号 + 青蓝数据 + 暖纸层
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0B0C0E;
  --panel: #14161A;
  --gold: #D9A641;
  --amber: #FFC24B;
  --paper: #F2EAD9;
  --paper-2: #E3D8C2;
  --white: #F7F9FB;
  --cyan: #4FD1D9;
  --grey: #79808C;
  --line: #2A2F36;
  --seal: #C2543A;

  --text-body: #C9CFD8;
  --text-dim: #9AA2AE;

  --font-sans: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Roboto Mono",
    "Courier New", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 3.6vw, 40px);

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-pill: 999px;

  --shadow-lift: 0 20px 46px -30px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% -6%, rgba(217, 166, 65, 0.10), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(79, 209, 217, 0.07), transparent 46%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body,
input,
button,
select,
textarea { font-family: inherit; }

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

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

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

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

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

table { border-collapse: collapse; width: 100%; }

::selection {
  background: var(--amber);
  color: #14100A;
}

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

#main-content { scroll-margin-top: 110px; }

/* ---------- 3. 布局基元 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-desc {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.prose {
  max-width: 72ch;
  color: var(--text-body);
  font-size: 16.5px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1em; }

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
  margin-top: 1.6em;
}

.prose strong { color: var(--amber); font-weight: 700; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--gold {
  background: var(--amber);
  color: #14100A;
  border-color: var(--amber);
}
.btn--gold:hover { background: #FFD273; transform: translateY(-1px); }

.btn--line {
  background: transparent;
  color: var(--amber);
  border-color: rgba(217, 166, 65, 0.55);
}
.btn--line:hover { background: rgba(217, 166, 65, 0.10); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey);
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb [aria-current="page"] { color: var(--text-body); }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: clamp(10px, 1.6vw, 18px) 0 4px;
  transition: padding 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 14, 0.97) 0%,
    rgba(11, 12, 14, 0.80) 58%,
    rgba(11, 12, 14, 0) 100%
  );
  opacity: 0.88;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-condensed { padding-top: 6px; }
.site-header.is-condensed::before { opacity: 1; }

.skip-link {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: #14100A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}

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

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(20, 22, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-condensed .nav-inner {
  padding: 5px 10px 5px 12px;
  background: rgba(11, 12, 14, 0.95);
  border-color: rgba(217, 166, 65, 0.30);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.86; }

.brand-seal {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: var(--r-s);
  background: linear-gradient(155deg, rgba(217, 166, 65, 0.20), rgba(217, 166, 65, 0.02));
  box-shadow: inset 0 0 0 1px rgba(217, 166, 65, 0.12);
  color: var(--amber);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

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

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--grey);
  line-height: 1.4;
  white-space: nowrap;
}

.site-header.is-condensed .brand-sub { display: none; }

/* 导航胶囊 */
.site-nav { justify-self: center; }

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: #C4CBD5;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--amber);
  background: rgba(255, 194, 75, 0.08);
  border-color: rgba(255, 194, 75, 0.32);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

/* 旧版本入口 */
.nav-aside { justify-self: end; }

.legacy-link {
  display: inline-block;
  padding: 6px 13px;
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legacy-link:hover {
  color: var(--cyan);
  border-color: rgba(79, 209, 217, 0.5);
}

/* 移动开关 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: rgba(255, 194, 75, 0.5); color: var(--amber); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 中等宽度压缩 */
@media (max-width: 1080px) and (min-width: 901px) {
  .nav-link { padding: 7px 10px; font-size: 13px; }
  .brand-sub { display: none; }
  .legacy-link { padding: 5px 9px; font-size: 11px; }
}

/* 移动端 */
@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .brand { order: 1; flex: 1 1 auto; }
  .nav-aside { order: 2; flex: 0 0 auto; }
  .nav-toggle { order: 3; display: grid; flex: 0 0 auto; }
  .site-nav { order: 4; flex: 1 0 100%; }

  .site-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.36s var(--ease), opacity 0.24s var(--ease);
  }

  .site-nav[data-open] {
    max-height: 78vh;
    opacity: 1;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::after {
    left: 14px;
    bottom: 50%;
    transform: translateY(50%);
    width: 3px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 14px; }
  .legacy-link { padding: 5px 9px; font-size: 11px; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0B0C0E 0%, #0E1013 58%, #0B0C0E 100%);
}

.footer-top-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 22%,
    var(--amber) 50%,
    var(--gold) 78%,
    transparent 100%
  );
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.footer-col { min-width: 0; }
.footer-col--brand { align-self: start; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--grey);
  line-height: 1.5;
}

.footer-tagline {
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--grey);
}

.footer-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: #B9C0CA;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--amber);
  padding-left: 5px;
}

/* 栏目时间轴 */
.footer-timeline li {
  position: relative;
  padding-left: 20px;
}

.footer-timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
}

.footer-timeline li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 1.35em;
  bottom: -0.9em;
  width: 1px;
  background: var(--line);
}

.footer-timeline li:last-child::after { display: none; }

/* 服务信息 */
.footer-meta li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #B9C0CA;
}

.footer-meta .meta-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer-meta .meta-value { min-width: 0; word-break: break-word; }

.copy-btn {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--grey);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.copy-btn:hover {
  color: var(--amber);
  border-color: rgba(255, 194, 75, 0.5);
}

.copy-btn.is-copied {
  color: #14100A;
  background: var(--amber);
  border-color: var(--amber);
}

.footer-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--grey);
}

/* 底条 */
.footer-base { border-top: 1px solid var(--line); }

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* 冰雪暗纹 */
.footer-frost {
  height: clamp(70px, 9vw, 120px);
  border-top: 1px solid rgba(42, 47, 54, 0.6);
  background-image:
    radial-gradient(circle at 12% 34%, rgba(79, 209, 217, 0.07), transparent 42%),
    radial-gradient(circle at 78% 62%, rgba(217, 166, 65, 0.06), transparent 46%),
    radial-gradient(circle at 46% 88%, rgba(247, 249, 251, 0.035), transparent 38%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.022) 0 2px,
      transparent 2px 9px
    );
}

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

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-base-inner { flex-direction: column; gap: 6px; }
}

/* ---------- 9. 纸层信息卡 ---------- */
.paper-card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-m);
  background: linear-gradient(180deg, var(--paper) 0%, #EDE4D0 100%);
  color: #17150F;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(242, 234, 217, 0.06);
}

.paper-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: -8px;
  bottom: -8px;
  height: 100%;
  z-index: -1;
  border-radius: var(--r-m);
  background: var(--paper-2);
  opacity: 0.16;
}

.paper-card h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.paper-card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #3A362D;
}

.paper-card .mono-tag {
  color: #8A6A16;
  border-color: rgba(138, 106, 22, 0.35);
  background: rgba(217, 166, 65, 0.14);
}

/* ---------- 10. 等宽标签 ---------- */
.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(79, 209, 217, 0.32);
  border-radius: var(--r-pill);
  background: rgba(79, 209, 217, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  white-space: nowrap;
}

.mono-tag--gold {
  color: var(--amber);
  border-color: rgba(255, 194, 75, 0.35);
  background: rgba(255, 194, 75, 0.08);
}

/* ---------- 11. 印章标记 ---------- */
.seal-mark {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--seal);
  line-height: 1.5;
  transform: rotate(-2deg);
}

/* ---------- 12. 可展开面板 ---------- */
.accordion { border-top: 1px solid var(--line); }

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 18px 4px;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.accordion__trigger:hover { color: var(--amber); }

.accordion__index {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.accordion__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.accordion__icon {
  flex: 0 0 auto;
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 6px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__item[data-expanded="true"] .accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  border-left: 2px solid transparent;
  transition: max-height 0.36s var(--ease), border-color 0.3s var(--ease),
    padding-left 0.3s var(--ease);
}

.accordion__item[data-expanded="true"] .accordion__panel {
  max-height: 1400px;
  border-left-color: var(--amber);
  padding-left: 20px;
}

.accordion__panel-inner {
  padding: 0 4px 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

/* ---------- 13. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), var(--line) 62%, transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
}

.timeline__item:last-child { padding-bottom: 0; }

/* ---------- 14. 图片容器 ---------- */
.figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background-color: var(--panel);
  background-image: linear-gradient(
    160deg,
    rgba(79, 209, 217, 0.08) 0%,
    rgba(217, 166, 65, 0.07) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  aspect-ratio: 16 / 9;
}

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.94);
}

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

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ---------- 15. 滚动进度与显现 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--amber) 46%, var(--cyan) 100%);
  pointer-events: none;
}

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

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 降低动效 ---------- */
@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;
    transform: none;
  }

  .scroll-progress { display: none; }
}
