/* ============================================================
   红黑娱乐 · 共享样式 /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, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
summary { list-style: none; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-900: #0B0C0E;
  --ink-800: #14161A;
  --ink-700: #1E2126;
  --ink-600: #2A2E35;
  --paper-050: #F3EDE3;
  --paper-100: #E4DACB;
  --red-600: #C8102E;
  --red-400: #E4574F;
  --red-800: #7E0B1D;
  --gold-500: #C9A227;
  --gray-200: #D5D8DD;
  --gray-400: #8A8F98;
  --steel-600: #4A5B69;

  --glass: rgba(18, 20, 24, 0.78);
  --glass-light: rgba(255, 255, 255, 0.045);
  --line-soft: rgba(201, 162, 39, 0.22);
  --line-strong: rgba(213, 216, 221, 0.14);
  --paper-line: rgba(11, 12, 14, 0.12);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-head: "Source Han Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei",
                system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1360px;
  --gutter: clamp(18px, 4.4vw, 64px);
  --header-h: 70px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --dur: 320ms;
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

/* ---------- 3. base / 中文排版 ---------- */
body {
  min-height: 100%;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(200, 16, 46, 0.18), transparent 62%),
    radial-gradient(760px 520px at 4% 10%, rgba(74, 91, 105, 0.22), transparent 60%),
    var(--ink-900);
  background-attachment: fixed;
  color: var(--gray-200);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: #fff;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
strong { color: #fff; font-weight: 700; }

::selection { background: var(--red-600); color: #fff; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--red-600);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { --shell: 1060px; }

.section { padding-block: clamp(48px, 7vw, 118px); }
.section--tight { padding-block: clamp(28px, 4vw, 58px); }
.section__head {
  display: grid;
  gap: 12px;
  max-width: 66ch;
  margin-bottom: clamp(24px, 3.4vw, 46px);
}
.section__index {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}
.section__index em { font-style: normal; color: var(--red-600); }
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.section__lede { color: var(--gray-400); max-width: 62ch; }

.page-head {
  padding-block: clamp(30px, 5vw, 68px) clamp(22px, 3vw, 40px);
  border-bottom: 1px solid var(--line-strong);
}
.page-head__title { margin-top: 10px; }
.page-head__lede { margin-top: 16px; color: var(--gray-400); max-width: 60ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col--4 { grid-column: span 4; }
.col--5 { grid-column: span 5; }
.col--7 { grid-column: span 7; }
.col--8 { grid-column: span 8; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(18px, 2.6vw, 32px);
  align-items: start;
}

.prose {
  max-width: 66ch;
  color: var(--gray-200);
  font-size: 1rem;
}
.prose p + p,
.prose p + ul,
.prose ul + p { margin-top: 1em; }
.prose h3 { margin-top: 1.9em; margin-bottom: 0.6em; font-size: 1.2rem; }
.prose ul { display: grid; gap: 0.55em; }
.prose li { position: relative; padding-left: 1.15em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--red-600);
  transform: rotate(45deg);
}
.prose--paper { color: #23272E; }
.prose--paper strong { color: var(--ink-900); }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
}
.divider { height: 1px; background: var(--line-soft); border: 0; }
.muted { color: var(--gray-400); }
.text-red { color: var(--red-400); }
.num {
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--red-600);
}
.num--xl { font-size: 1.3em; letter-spacing: -0.01em; }

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(213, 216, 221, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 160ms var(--ease), background 200ms var(--ease),
              border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 13px; font-size: 0.84rem; }
.btn--solid {
  --btn-bg: linear-gradient(135deg, var(--red-600), var(--red-800));
  --btn-bd: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(200, 16, 46, 0.9);
}
.btn--solid:hover { --btn-bg: linear-gradient(135deg, var(--red-400), var(--red-600)); }
.btn--ghost { --btn-bd: rgba(201, 162, 39, 0.38); color: var(--gray-200); }
.btn--ghost:hover { --btn-bd: var(--gold-500); color: #fff; background: rgba(201, 162, 39, 0.08); }
.btn--quiet { --btn-bd: transparent; color: var(--gray-400); padding-inline: 8px; }
.btn--quiet:hover { color: #fff; }
.btn--block { width: 100%; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-strong);
  color: #fff;
}
.site-header__hairline {
  height: 2px;
  background: linear-gradient(90deg,
    var(--red-600) 0 clamp(48px, 11vw, 190px),
    rgba(201, 162, 39, 0.55) clamp(48px, 11vw, 190px) 100%);
}
.site-header__inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--shell));
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 40px);
}
.header-wing { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.header-wing--brand { flex: 0 0 auto; }
.header-wing--nav { flex: 1 1 auto; justify-content: flex-end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 200ms var(--ease);
}
.brand:hover { background: rgba(255, 255, 255, 0.06); }
.brand__mark {
  position: relative;
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--red-600), var(--red-800));
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.4);
}
.brand__slash {
  width: 14px; height: 4px;
  border-radius: 2px;
  background: var(--ink-900);
  transform: rotate(-38deg);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.02em; color: #fff; }
.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.brand--footer .brand__mark { flex-basis: 36px; width: 36px; height: 36px; }
.brand--footer .brand__name { font-size: 1.24rem; }

.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__item { display: flex; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--gray-200);
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: #fff; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--red-400); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.nav-toggle__box { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }
.nav-toggle__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-600), var(--red-400));
  transition: width 120ms linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border-top: 1px solid var(--line-soft);
  color: var(--gray-200);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent 46%, var(--red-600));
  opacity: 0.7;
}
.site-footer__inner {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) var(--gutter) clamp(24px, 3vw, 38px);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 66px);
}
.site-footer__tagline {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 0.92rem;
  color: var(--gray-400);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 42px);
}
.footer-col__title {
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__link {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 0.94rem;
  color: var(--gray-200);
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.footer-col__link:hover { color: #fff; border-bottom-color: var(--red-400); }
.site-footer__bottom {
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 8px;
}
.site-footer__legal { font-size: 0.86rem; color: var(--gray-200); }
.site-footer__note { font-size: 0.86rem; color: var(--gray-400); max-width: 72ch; }
.site-footer__meta { font-size: 0.8rem; color: var(--gray-400); letter-spacing: 0.04em; }

/* ---------- 8. 基础组件 ---------- */
.panel {
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--ink-700);
}
.panel--paper {
  background: linear-gradient(180deg, var(--paper-050), var(--paper-100));
  border-color: var(--paper-line);
  color: #23272E;
}
.panel--paper h2, .panel--paper h3, .panel--paper h4 { color: var(--ink-900); }
.panel--paper .panel__note { color: rgba(11, 12, 14, 0.62); }
.panel--steel {
  background: linear-gradient(180deg, rgba(74, 91, 105, 0.38), rgba(30, 33, 38, 0.92));
  border-color: rgba(74, 91, 105, 0.5);
}
.panel--glass {
  background: var(--glass-light);
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.panel__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.panel--paper .panel__title { color: var(--ink-900); }
.panel__note { font-size: 0.86rem; color: var(--gray-400); }

.entry-list { border-top: 1px solid var(--line-strong); }
.entry {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 24px);
  align-items: start;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: background 180ms var(--ease), padding 180ms var(--ease);
}
.entry:hover { background: rgba(255, 255, 255, 0.03); }
.entry__num {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}
.entry__body { display: grid; gap: 4px; }
.entry__title { font-weight: 600; color: #fff; }
.entry__text { font-size: 0.92rem; color: var(--gray-400); }
.entry__meta { font-size: 0.8rem; color: var(--gray-400); white-space: nowrap; }

.timeline {
  position: relative;
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--red-600), rgba(201, 162, 39, 0.5), transparent);
}
.timeline__item { position: relative; }
.timeline__dot {
  position: absolute;
  left: -26px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--red-600);
}
.timeline__meta {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
}
.timeline__title { margin-top: 4px; font-size: 1.05rem; color: #fff; font-weight: 700; }
.timeline__text { margin-top: 6px; font-size: 0.94rem; color: var(--gray-400); }

.fold {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-700);
  overflow: hidden;
}
.fold + .fold { margin-top: 12px; }
.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.fold__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
.fold[open] .fold__summary::after { transform: rotate(-135deg); }
.fold__summary:focus-visible { outline: 2px solid var(--red-400); outline-offset: -3px; border-radius: var(--radius); }
.fold__body { padding: 0 20px 20px; font-size: 0.95rem; color: var(--gray-400); }
.fold__body p + p { margin-top: 0.8em; }

.kpi { display: grid; gap: 4px; }
.kpi__value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--red-600);
  font-variant-numeric: tabular-nums;
}
.panel--paper .kpi__value { color: var(--red-800); }
.kpi__label { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gray-400); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(201, 162, 39, 0.07);
  color: var(--gold-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag--red {
  border-color: rgba(200, 16, 46, 0.45);
  background: rgba(200, 16, 46, 0.12);
  color: var(--red-400);
}

.chip-set { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(213, 216, 221, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray-200);
  font-size: 0.86rem;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.chip:hover { color: #fff; border-color: var(--gold-500); }
.chip[aria-pressed="true"] {
  color: #fff;
  border-color: var(--red-600);
  background: rgba(200, 16, 46, 0.18);
}

.tabs { display: grid; gap: 20px; }
.tabs__list {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow-x: auto;
}
.tabs__tab {
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-400);
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.tabs__tab:hover { color: #fff; }
.tabs__tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.92), rgba(126, 11, 29, 0.92));
}
.tabs__panel { display: none; }
.tabs__panel[data-active] { display: block; animation: rb-fade-up var(--dur) var(--ease) both; }

@keyframes rb-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.rail { display: grid; gap: 16px; align-content: start; }
.rail__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.rail__list {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}
.rail__link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--gray-400);
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.rail__link:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.rail__link[aria-current="true"] {
  color: #fff;
  background: rgba(200, 16, 46, 0.14);
  box-shadow: inset 2px 0 0 var(--red-600);
}
.rail__meta { font-size: 0.8rem; color: var(--gray-400); }

.breadcrumb { padding-block: 14px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--gray-400); }
.breadcrumb__link { color: var(--gray-400); border-bottom: 1px solid transparent; transition: color 180ms var(--ease), border-color 180ms var(--ease); }
.breadcrumb__link:hover { color: #fff; border-bottom-color: var(--red-400); }
.breadcrumb__sep { color: var(--gold-500); opacity: 0.75; }
.breadcrumb__current { color: var(--gray-200); }

/* ---------- 9. 图片容器与视觉材质 ---------- */
.figure { display: grid; gap: 10px; margin: 0; }
.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(140deg, rgba(74, 91, 105, 0.35), rgba(20, 22, 26, 0.95));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.figure__media { position: absolute; inset: 0; }
.figure__img { width: 100%; height: 100%; object-fit: cover; }
.figure__caption { font-size: 0.82rem; color: var(--gray-400); }
.figure--4x3 .figure__frame { aspect-ratio: 4 / 3; }
.figure--1x1 .figure__frame { aspect-ratio: 1 / 1; }
.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--tall .figure__frame {
  aspect-ratio: 3 / 4;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.figure__frame--plain { clip-path: none; }

.texture-chess {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.045) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.045) 75%);
  background-size: 64px 64px;
  background-position: 0 0, 32px 32px;
}

.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: -12% -10% auto -10%;
  height: min(760px, 112%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 58% at 28% 0%, rgba(200, 16, 46, 0.26), transparent 70%),
    radial-gradient(48% 48% at 84% 12%, rgba(74, 91, 105, 0.34), transparent 72%);
  animation: rb-spot 6s ease-in-out infinite alternate;
}
@keyframes rb-spot {
  from { opacity: 0.72; transform: translate3d(-2%, 0, 0); }
  to { opacity: 1; transform: translate3d(2%, 1%, 0); }
}

/* ---------- 10. 显现动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .site-nav__link { padding-inline: 10px; font-size: 0.92rem; }
  .site-nav__link::after { left: 10px; right: 10px; }
}
@media (max-width: 1040px) {
  .header-actions .btn--ghost { display: none; }
}
@media (max-width: 960px) {
  .site-header__inner { gap: 12px; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 3; }
  .header-wing--brand { position: relative; z-index: 3; }
  .header-wing--nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 104px var(--gutter) 48px;
    overflow-y: auto;
    background: rgba(11, 12, 14, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms var(--ease);
  }
  .header-wing--nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav { width: 100%; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 1.25rem;
    font-family: var(--font-head);
    font-weight: 700;
    border-left: 2px solid transparent;
    border-radius: 10px;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] {
    border-left-color: var(--red-600);
    background: rgba(200, 16, 46, 0.14);
  }
  .header-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .header-actions .btn,
  .header-actions .btn--ghost { display: inline-flex; width: 100%; padding: 14px 18px; font-size: 0.95rem; }
  .site-footer__top { grid-template-columns: 1fr; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col--4, .col--5, .col--7, .col--8 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { grid-template-columns: 40px minmax(0, 1fr); }
  .entry__meta { grid-column: 2 / 3; white-space: normal; }
  .site-footer__brand { padding-bottom: 6px; }
}

/* ---------- 12. 降低动效 ---------- */
@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;
  }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .spotlight::before { animation: none; opacity: 0.85; transform: none; }
  .btn:hover { transform: none; }
}
