/* ============================================================
   娱乐神殿 · 共享站点样式 /assets/site.css
   夜墨紫神殿底 · 暖纸档案面 · 暗金雕刻边
   ============================================================ */

:root {
  --ink-purple: #140F1C;
  --temple-purple: #2A1738;
  --gold: #C9A24A;
  --gold-soft: #DDB65E;
  --paper-warm: #F2E6CF;
  --ink-dark: #1D1620;
  --neon-cyan: #4FE0D0;
  --rose: #FF4F87;
  --mist-violet: #8A7699;
  --paper-white: #FBF5EA;

  --font-display: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", "Courier New", monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-cut: 2px 18px 2px 18px;
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, .9);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(90% 60% at 8% 0%, rgba(42, 23, 56, .95), transparent 62%),
    var(--ink-purple);
  color: var(--paper-white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(201, 162, 74, .82);
  color: #140F1C;
}

/* ---------- 布局基础 ---------- */
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.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--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--mist-violet);
  margin: 0;
}

/* ============================================================
   页头：门楣 + 贴底导航边框
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, #1C1229 0%, #140F1C 88%);
  border-bottom: 1px solid rgba(201, 162, 74, .45);
  box-shadow: 0 1px 0 rgba(79, 224, 208, .07) inset;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--gold) 55%, var(--rose));
  transition: transform .12s linear;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 14px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--neon-cyan);
  color: #0B0910;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header__frame {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 2vw, 26px);
}

/* 品牌 */
.brand {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
}
.brand__sigil {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  clip-path: polygon(50% 0%, 100% 27%, 88% 100%, 12% 100%, 0% 27%);
  background: conic-gradient(from 205deg, #E7C878, var(--gold) 32%, #6E5219 58%, var(--gold) 82%, #E7C878);
  filter: drop-shadow(0 0 9px rgba(201, 162, 74, .38));
}
.brand__text { display: block; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .1em;
  line-height: 1.25;
  color: var(--paper-white);
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--mist-violet);
  line-height: 1.4;
}

.site-header__version {
  align-self: center;
  flex: none;
  padding: 3px 9px;
  border-left: 1px solid rgba(138, 118, 153, .38);
  padding-left: 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--neon-cyan);
  opacity: .88;
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  align-self: center;
  margin-left: auto;
  padding: 9px 14px;
  background: rgba(42, 23, 56, .78);
  border: 1px solid rgba(201, 162, 74, .5);
  border-radius: 2px 12px 2px 12px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.nav-toggle:hover { color: var(--neon-cyan); border-color: rgba(79, 224, 208, .7); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 主导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 1.2vw, 18px);
}
.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 clamp(8px, 1.1vw, 14px);
  font-size: 14.5px;
  letter-spacing: .06em;
  white-space: nowrap;
  color: rgba(251, 245, 234, .7);
  text-decoration: none;
  transition: color .24s var(--ease), background .24s var(--ease);
}
.site-nav__item + .site-nav__item .site-nav__link {
  border-left: 1px solid rgba(138, 118, 153, .18);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--neon-cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .28s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--paper-white);
  background: rgba(79, 224, 208, .07);
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  background: linear-gradient(180deg, transparent 40%, rgba(201, 162, 74, .14));
}
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  margin-left: clamp(4px, 1vw, 14px);
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 74, .55);
  border-radius: 2px 14px 2px 14px;
  background: linear-gradient(135deg, rgba(201, 162, 74, .16), rgba(201, 162, 74, 0));
  transition: background .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease);
}
.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  color: #1A1116;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .16);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(201, 162, 74, .1), transparent 58%),
    radial-gradient(90% 80% at 92% 8%, rgba(79, 224, 208, .07), transparent 55%),
    linear-gradient(180deg, #1D1620, #120C18);
  border-top: 1px solid rgba(201, 162, 74, .35);
  color: rgba(251, 245, 234, .8);
}

.site-footer__top {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr)) 1.25fr;
  gap: clamp(24px, 4vw, 54px);
  padding-block: clamp(40px, 6vw, 68px) clamp(32px, 5vw, 52px);
}

.site-footer__brand { min-width: 0; }
.site-footer__sigil {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  clip-path: polygon(50% 0%, 100% 27%, 88% 100%, 12% 100%, 0% 27%);
  background: linear-gradient(150deg, #E7C878, #7C5C1E);
}
.site-footer__brand-line {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--paper-white);
  line-height: 1.4;
}
.site-footer__hint {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(251, 245, 234, .6);
  max-width: 34ch;
}
.site-footer__contact {
  margin-top: 16px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 245, 234, .58);
  word-break: break-all;
}

.site-footer__col { min-width: 0; }
.site-footer__col--note { min-width: 0; }

.site-footer__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(138, 118, 153, .26);
}

.site-footer__list { display: grid; gap: 9px; }
.site-footer__link {
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: rgba(251, 245, 234, .72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--neon-cyan);
  border-bottom-color: rgba(79, 224, 208, .6);
  transform: translateX(3px);
}

.site-footer__version {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist-violet);
}
.site-footer__version-num { color: var(--neon-cyan); }
.site-footer__small {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(251, 245, 234, .58);
}
.site-footer__col--note .btn { margin-top: 18px; }

.site-footer__bottom {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  border-top: 1px solid rgba(138, 118, 153, .22);
  padding-block: 16px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--mist-violet);
}
.site-footer__legal { margin: 0; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 110;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-family: var(--font-mono);
  color: var(--gold);
  background: rgba(42, 23, 56, .92);
  border: 1px solid rgba(201, 162, 74, .55);
  border-radius: 50% 50% 50% 8px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover,
.to-top:focus-visible {
  color: #0B0910;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* ============================================================
   通用内容组件
   ============================================================ */
.btn {
  --btn-fg: var(--paper-white);
  --btn-bg: transparent;
  --btn-bd: rgba(201, 162, 74, .5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.4;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px 16px 2px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .95);
}
.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #1A1116;
  --btn-bd: var(--gold);
}
.btn--gold:hover,
.btn--gold:focus-visible { --btn-bg: var(--gold-soft); --btn-bd: var(--gold-soft); }
.btn--ghost { --btn-fg: var(--paper-white); --btn-bd: rgba(251, 245, 234, .35); }
.btn--ghost:hover,
.btn--ghost:focus-visible { --btn-fg: var(--neon-cyan); --btn-bd: rgba(79, 224, 208, .8); }
.btn--cyan {
  --btn-fg: var(--neon-cyan);
  --btn-bd: rgba(79, 224, 208, .55);
  --btn-bg: rgba(79, 224, 208, .1);
}
.btn--cyan:hover,
.btn--cyan:focus-visible { --btn-bg: rgba(79, 224, 208, .2); }
.btn--small { padding: 9px 18px; font-size: 13.5px; letter-spacing: .08em; }

/* 面包屑 */
.breadcrumb { margin-bottom: clamp(18px, 3vw, 30px); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--mist-violet);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "·";
  color: rgba(201, 162, 74, .75);
}
.breadcrumb__link {
  color: rgba(251, 245, 234, .68);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 118, 153, .45);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}
.breadcrumb__current { color: var(--gold); }

/* 页面标题区 */
.page-head { padding: clamp(26px, 5vw, 58px) 0 clamp(22px, 4vw, 42px); }
.page-head__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 14px;
}
.page-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.16;
  letter-spacing: .02em;
  color: var(--paper-white);
  margin-bottom: 16px;
  text-shadow: 0 0 26px rgba(201, 162, 74, .18);
}
.page-head__lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: rgba(251, 245, 234, .72);
}

/* 章节 */
.section { padding: clamp(30px, 5vw, 66px) 0; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(138, 118, 153, .26);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
  color: var(--paper-white);
}
.section__note {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--mist-violet);
}

/* 档案卡 */
.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(180deg, #F8F0E1, var(--paper-warm));
  color: var(--ink-dark);
  border: 1px solid rgba(29, 22, 32, .1);
  border-radius: var(--radius-cut);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.archive-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 34px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 0;
}
.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 46px -26px rgba(0, 0, 0, .95);
}
.archive-card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: #6B4E18;
  background: rgba(201, 162, 74, .2);
  border: 1px solid rgba(201, 162, 74, .55);
  border-radius: 999px;
  padding: 3px 10px;
}
.archive-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: #241A28;
}
.archive-card__body {
  font-size: 15px;
  line-height: 1.78;
  color: #463A4B;
}
.archive-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(29, 22, 32, .18);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: #6B5B72;
}
.archive-card--ink {
  background: linear-gradient(180deg, #261937, #191122);
  color: var(--paper-white);
  border-color: rgba(201, 162, 74, .3);
}
.archive-card--ink::before { background: var(--neon-cyan); }
.archive-card--ink .archive-card__title { color: var(--paper-white); }
.archive-card--ink .archive-card__body { color: rgba(251, 245, 234, .74); }
.archive-card--ink .archive-card__meta {
  color: var(--mist-violet);
  border-top-color: rgba(138, 118, 153, .34);
}
.archive-card--ink .archive-card__tag {
  color: var(--neon-cyan);
  background: rgba(79, 224, 208, .1);
  border-color: rgba(79, 224, 208, .55);
}

/* 分类标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  line-height: 1.6;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: #6B4E18;
  background: rgba(201, 162, 74, .16);
}
.tag--gold { color: #6B4E18; background: rgba(201, 162, 74, .18); }
.tag--cyan { color: #0B4D47; background: rgba(79, 224, 208, .24); }
.tag--rose { color: #7A1636; background: rgba(255, 79, 135, .18); }
.tag--ondark {
  color: var(--neon-cyan);
  background: rgba(79, 224, 208, .1);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 3px 24px 3px 24px;
  border: 1px solid rgba(201, 162, 74, .28);
  background:
    radial-gradient(80% 90% at 18% 0%, rgba(79, 224, 208, .18), transparent 60%),
    radial-gradient(70% 80% at 96% 100%, rgba(255, 79, 135, .14), transparent 62%),
    linear-gradient(150deg, #2A1738, #140F1C 74%);
}
.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(251, 245, 234, .86);
  background: linear-gradient(180deg, transparent, rgba(12, 8, 16, .9));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--paper {
  border-color: rgba(29, 22, 32, .14);
  background: linear-gradient(150deg, #F8F0E1, #E6D7BB);
}
.media-frame--paper .media-frame__caption {
  color: #2A2130;
  background: linear-gradient(180deg, transparent, rgba(242, 230, 207, .95));
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 162, 74, .8), rgba(79, 224, 208, .38), transparent);
}
.timeline__item {
  position: relative;
  padding: 0 0 26px 6px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .16);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--neon-cyan);
}

/* 内容板 */
.panel {
  padding: clamp(20px, 3vw, 34px);
  border-radius: 3px 22px 3px 22px;
}
.panel--paper {
  background: linear-gradient(180deg, #F8F0E1, var(--paper-warm));
  color: var(--ink-dark);
  border: 1px solid rgba(29, 22, 32, .1);
}
.panel--ink {
  background: linear-gradient(160deg, rgba(42, 23, 56, .94), rgba(20, 15, 28, .96));
  color: var(--paper-white);
  border: 1px solid rgba(201, 162, 74, .26);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  :root { --header-h: 62px; }

  .site-header__frame {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--header-h);
  }

  .brand { padding: 8px 0; }
  .brand__name { font-size: 18px; }
  .site-header__version { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: linear-gradient(180deg, #1E1329, #140F1C);
    border-bottom: 1px solid rgba(201, 162, 74, .45);
    box-shadow: 0 26px 42px -30px #000;
    max-height: calc(100vh - var(--header-h) - 8px);
    overflow-y: auto;
  }
  .site-header[data-open] .site-nav { display: flex; }

  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__item + .site-nav__item .site-nav__link { border-left: 0; }

  .site-nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(138, 118, 153, .2);
    background: none;
  }
  .site-nav__link::after { display: none; }
  .site-nav__link:hover,
  .site-nav__link:focus-visible { background: rgba(79, 224, 208, .08); }
  .site-nav__link[aria-current="page"] {
    color: var(--gold);
    padding-left: 14px;
    background: none;
    border-bottom-color: rgba(201, 162, 74, .6);
  }

  .site-nav__cta {
    align-self: stretch;
    margin: 16px 0 0;
    justify-content: center;
    padding: 12px 18px;
  }

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

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__brand { grid-column: auto; }
  .brand__sub { letter-spacing: .22em; font-size: 9.5px; }
  .to-top { width: 42px; height: 42px; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-progress__bar { transition: none; }
}
