/* =========================================================
   君临国际 · 共享站点样式 /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, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding-left: 1.15em; }

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-950: #060F18;
  --ink-900: #08141F;
  --ink-800: #0A1A2A;
  --ink-700: #111820;
  --ink-600: #173A57;
  --gold: #C8A45D;
  --gold-deep: #8C6A2F;
  --cinnabar: #B84832;
  --cool: #8B9AA8;
  --paper: #F4EFE4;
  --paper-2: #E6DCCB;
  --jade: #FCFAF6;
  --glass: #8FB3C4;

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", monospace;

  /* 字号 */
  --fs-display: clamp(2.6rem, 7vw, 6.2rem);
  --fs-h1: clamp(2.1rem, 5vw, 4.2rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.6rem);
  --fs-body: clamp(0.98rem, 1.1vw, 1.08rem);
  --fs-caption: 0.78rem;

  /* 尺寸 */
  --rail-w: 264px;
  --topbar-h: 64px;
  --shell-max: 1180px;

  /* 线条 */
  --line-gold: rgba(200, 164, 93, 0.24);
  --line-cool: rgba(139, 154, 168, 0.22);
  --line-ink: rgba(17, 24, 32, 0.12);

  /* 玻璃 */
  --glass-bg: rgba(143, 179, 196, 0.09);
  --glass-edge: rgba(143, 179, 196, 0.34);

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;
}

/* ---------- 3. 基本排版 ---------- */
html, body { min-height: 100%; }

body {
  margin: 0;
  padding-top: var(--topbar-h);
  background-color: var(--ink-800);
  background-image:
    linear-gradient(to right, rgba(143, 179, 196, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 179, 196, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.008em;
}

p + p { margin-top: 0.9em; }

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.display-type {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--jade);
}

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

/* ---------- 4. 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.paper-panel :focus-visible,
.on-paper :focus-visible {
  outline-color: var(--gold-deep);
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-900);
  background: linear-gradient(150deg, #E8CE93, var(--gold) 46%, var(--gold-deep));
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.95);
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* =========================================================
   6. 头部 —— 侧边轨道 / 移动端顶栏
   ========================================================= */
.site-header {
  position: fixed;
  z-index: 90;
  color: var(--paper);
  background:
    radial-gradient(120% 55% at 0% 0%, rgba(200, 164, 93, 0.15) 0%, rgba(200, 164, 93, 0) 62%),
    linear-gradient(180deg, #0C2136 0%, var(--ink-800) 46%, var(--ink-950) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-950);
  background: linear-gradient(160deg, #EFD8A5, var(--gold) 44%, var(--gold-deep));
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(200, 164, 93, 0.6),
    0 10px 22px -14px rgba(200, 164, 93, 0.95);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: var(--jade);
  white-space: nowrap;
}

.brand__descriptor {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  line-height: 1.3;
  color: var(--cool);
  white-space: nowrap;
}

/* 菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  background: rgba(200, 164, 93, 0.08);
  border: 1px solid rgba(200, 164, 93, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: rgba(200, 164, 93, 0.16);
  border-color: rgba(200, 164, 93, 0.7);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: background var(--dur) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 面板 */
.site-header__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 版本徽标 */
.rail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--gold);
  background: rgba(200, 164, 93, 0.09);
  border: 1px solid rgba(200, 164, 93, 0.34);
  border-radius: 2px;
  white-space: nowrap;
}

.rail-badge__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.18);
}

/* 侧轨导航 */
.rail-nav { margin-top: 26px; }

.rail-nav__title {
  margin-bottom: 10px;
  padding-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--cool);
}

.rail-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  color: #B9C4CE;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.rail-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  margin-top: -8px;
  background: var(--line-cool);
  transition: background var(--dur) var(--ease), height var(--dur) var(--ease), margin-top var(--dur) var(--ease);
}

.rail-nav__link:hover {
  color: var(--jade);
  background: rgba(143, 179, 196, 0.08);
}

.rail-nav__link:hover::before {
  background: var(--gold);
  height: 22px;
  margin-top: -11px;
}

.rail-nav__link[aria-current="page"] {
  color: var(--gold);
  background: linear-gradient(90deg, rgba(200, 164, 93, 0.18), rgba(200, 164, 93, 0));
}

.rail-nav__link[aria-current="page"]::before {
  background: var(--gold);
  height: 26px;
  margin-top: -13px;
  box-shadow: 0 0 12px rgba(200, 164, 93, 0.6);
}

.rail-nav__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(139, 154, 168, 0.9);
  transition: color var(--dur) var(--ease);
}

.rail-nav__link:hover .rail-nav__num,
.rail-nav__link[aria-current="page"] .rail-nav__num { color: var(--gold); }

.rail-nav__label { min-width: 0; }

/* 轨道底部 */
.rail-foot {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-gold);
}

.rail-foot__alt {
  justify-self: start;
  font-size: 0.86rem;
  color: #B9C4CE;
  text-decoration: none;
  border-bottom: 1px dashed rgba(139, 154, 168, 0.5);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rail-foot__alt:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.rail-foot__tele {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.74rem;
}

.rail-foot__key {
  letter-spacing: 0.18em;
  color: rgba(139, 154, 168, 0.85);
}

.rail-foot__val {
  font-size: 0.84rem;
  color: var(--paper-2);
}

/* =========================================================
   7. 页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: clamp(44px, 6vw, 78px) clamp(18px, 4vw, 48px) 0;
  color: var(--cool);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(200, 164, 93, 0.1) 0%, rgba(200, 164, 93, 0) 60%),
    linear-gradient(180deg, var(--ink-950) 0%, #040B12 100%);
  border-top: 1px solid var(--line-gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--gold) 0 1px, transparent 1px 26px);
  opacity: 0.45;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  max-width: var(--shell-max);
  margin-inline: auto;
}

/* 品牌列 */
.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--jade);
}

.footer-brand__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-950);
  background: linear-gradient(160deg, #EFD8A5, var(--gold) 44%, var(--gold-deep));
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(200, 164, 93, 0.55);
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-brand__line {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-brand__intro {
  margin-top: 10px;
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(184, 195, 204, 0.86);
}

/* 导航列组 */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.footer-col__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 0.92rem;
  color: #B8C3CC;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-col__list a:hover {
  color: var(--gold);
  border-bottom-color: rgba(200, 164, 93, 0.6);
}

/* 联络列 */
.footer-contact__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact__list li {
  display: grid;
  grid-template-columns: 5.4em 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(139, 154, 168, 0.18);
}

.footer-contact__list li:last-child { border-bottom: 0; }

.footer-contact__key {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  line-height: 1.9;
  color: rgba(139, 154, 168, 0.82);
}

.footer-contact__val {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #C6D0D8;
  overflow-wrap: anywhere;
}

/* 法务条 */
.site-footer__law {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  max-width: var(--shell-max);
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(139, 154, 168, 0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(139, 154, 168, 0.86);
}

.site-footer__copy,
.site-footer__icp { margin: 0; }

.site-footer__lawlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.site-footer__lawlinks a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

/* =========================================================
   8. 通用组件
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

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

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

/* 眉标 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 1px;
  background: currentColor;
}

/* 按钮 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(200, 164, 93, 0.46);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-fg: var(--ink-950);
  --btn-bd: transparent;
  background: linear-gradient(150deg, #E8CE93, var(--gold) 46%, var(--gold-deep));
  box-shadow: 0 14px 28px -20px rgba(200, 164, 93, 0.95);
}

.btn--gold:hover {
  box-shadow: 0 18px 34px -20px rgba(200, 164, 93, 1);
}

.btn--cinnabar {
  --btn-fg: var(--jade);
  --btn-bd: transparent;
  background: linear-gradient(150deg, #C4573E, var(--cinnabar) 60%, #8E3424);
  box-shadow: 0 14px 28px -20px rgba(184, 72, 50, 0.95);
}

.btn--ghost {
  --btn-fg: var(--paper);
  --btn-bd: rgba(200, 164, 93, 0.46);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200, 164, 93, 0.08);
}

.btn--block { width: 100%; }

/* 暖纸内容层 */
.paper-panel {
  position: relative;
  padding: clamp(20px, 3.4vw, 40px);
  color: #26313D;
  background: var(--paper);
  border: 1px solid var(--line-ink);
  border-radius: 2px;
  box-shadow: 0 34px 68px -48px rgba(0, 0, 0, 0.95);
}

.paper-panel::before,
.paper-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.paper-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.paper-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.on-paper { color: #26313D; }

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

.on-paper a { color: var(--ink-600); }
.on-paper a:hover { color: var(--cinnabar); }
.on-paper .eyebrow { color: var(--gold-deep); }
.on-paper .tag { color: var(--gold-deep); border-color: rgba(140, 106, 47, 0.4); background: rgba(200, 164, 93, 0.16); }

/* 玻璃层 */
.glass-card {
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--gold);
  background: rgba(200, 164, 93, 0.1);
  border: 1px solid rgba(200, 164, 93, 0.34);
  border-radius: 2px;
}

.tag--cinnabar {
  color: #F4D8D1;
  background: rgba(184, 72, 50, 0.22);
  border-color: rgba(184, 72, 50, 0.55);
}

.tag--cool {
  color: #CBD6DE;
  background: rgba(139, 154, 168, 0.12);
  border-color: rgba(139, 154, 168, 0.34);
}

/* 面包屑 */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cool);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumbs a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.breadcrumbs__sep { color: rgba(139, 154, 168, 0.55); }

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

/* 图片容器 */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(143, 179, 196, 0.18), rgba(10, 26, 42, 0.92) 62%),
    var(--ink-700);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 164, 93, 0.22);
  pointer-events: none;
}

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

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--3x2 { aspect-ratio: 3 / 2; }
.media-frame--4x5 { aspect-ratio: 4 / 5; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  color: var(--cool);
}

/* 折叠档案卡 */
.collapse {
  border-top: 1px solid rgba(200, 164, 93, 0.28);
}

.collapse:last-child { border-bottom: 1px solid rgba(200, 164, 93, 0.28); }

.collapse__toggle {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 18px 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  color: var(--paper);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

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

.collapse__sign {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 93, 0.45);
  border-radius: 2px;
  transform: translateY(1px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.collapse[data-open="true"] .collapse__sign {
  color: var(--ink-950);
  background: var(--gold);
  border-color: var(--gold);
}

.collapse__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}

.collapse[data-open="true"] .collapse__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--dur) var(--ease),
    visibility 0s;
}

.collapse__body {
  overflow: hidden;
  padding-bottom: 0;
  color: #B9C4CE;
  font-size: 0.95rem;
  line-height: 1.85;
}

.collapse[data-open="true"] .collapse__body { padding-bottom: 20px; }

.collapse__body > *:first-child { margin-top: 0; }
.collapse__body > *:last-child { margin-bottom: 0; }

/* 长文 */
.prose { max-width: 68ch; }
.prose h2,
.prose h3 { margin-block: 1.8em 0.6em; color: var(--jade); }
.prose p { margin-bottom: 1.05em; }
.prose ul,
.prose ol { margin-bottom: 1.05em; }

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

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

/* 滚动进度 */
.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), var(--cinnabar));
  pointer-events: none;
}

/* 移动端滚动锁定 */
@media (max-width: 1023px) {
  html.nav-locked { overflow: hidden; }
}

/* =========================================================
   9. 移动端头部与抽屉
   ========================================================= */
@media (max-width: 1023px) {
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--line-gold);
  }

  .site-header__bar {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .site-header__panel {
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    padding: 24px 20px 44px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(110% 46% at 0% 0%, rgba(200, 164, 93, 0.14) 0%, rgba(200, 164, 93, 0) 60%),
      linear-gradient(180deg, #0B1E31 0%, var(--ink-950) 100%);
    border-top: 1px solid var(--line-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s linear var(--dur);
  }

  .site-header[data-open="true"] .site-header__panel,
  .site-header__panel[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility 0s;
  }

  .rail-nav__link { padding-block: 13px; font-size: 1rem; }
  .rail-foot { margin-top: 28px; }
}

/* =========================================================
   10. 平板 / 桌面
   ========================================================= */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .site-header {
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    padding: 30px 22px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--line-gold);
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 164, 93, 0.4) transparent;
  }

  .site-header::-webkit-scrollbar { width: 4px; }
  .site-header::-webkit-scrollbar-thumb { background: rgba(200, 164, 93, 0.38); }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-image: repeating-linear-gradient(to bottom, var(--gold) 0 1px, transparent 1px 24px);
    opacity: 0.22;
    pointer-events: none;
  }

  .site-header__bar { flex: 0 0 auto; }

  .nav-toggle { display: none; }

  .site-header__panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .rail-foot { margin-top: auto; }

  .brand__mark { width: 44px; height: 44px; font-size: 1.26rem; }
  .brand__name { font-size: 1.12rem; }
  .brand__descriptor { font-size: 0.68rem; }

  .scroll-progress {
    left: var(--rail-w);
    width: calc(100% - var(--rail-w));
  }
}

@media (min-width: 1440px) {
  :root { --rail-w: 276px; }
}

/* 页脚栅格 */
@media (min-width: 620px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1.5fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1.05fr 1.7fr 1.05fr; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 760px) {
  .site-footer__lawlinks {
    margin-left: 0;
    gap: 14px;
  }
  .site-footer__law {
    gap: 8px 20px;
    font-size: 0.7rem;
  }
}

/* 网格降级 */
@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-frame--wide { aspect-ratio: 16 / 9; }
  .brand__descriptor { display: none; }
}

/* =========================================================
   11. 减少动效
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .skip-link:focus { transform: none; }
}
