/* ============================================================
   葡萄京主站 · 共享样式表 /assets/site.css
   档案室 × 葡萄园 · 墨紫书脊 + 暖纸正文
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  --ink-deep: #1B1026;
  --night-vine: #2E1B45;
  --grape: #6B3FA0;
  --grape-mist: #A98AD1;
  --paper: #F3EADD;
  --paper-shade: #E2D5C4;
  --jade: #2F7F6E;
  --jade-light: #7FC3B4;
  --gold: #C9A227;
  --cinnabar: #A63A2E;
  --ink-text: #191410;
  --glass: rgba(255, 255, 255, 0.08);

  --rail-w: 184px;
  --header-h: 58px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-mid: 240ms;
  --t-slow: 420ms;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, Georgia, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --read-progress: 0%;
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dt, dd, pre { margin: 0; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

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

table { border-collapse: collapse; border-spacing: 0; }

[hidden] { display: none !important; }

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-text);
  background-color: var(--paper);
  padding-left: var(--rail-w);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

strong, b { font-weight: 700; }

code, kbd, samp, .mono {
  font-family: var(--mono);
  font-size: 0.94em;
  letter-spacing: 0.02em;
}

::selection {
  background: var(--grape);
  color: var(--paper);
}

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

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

/* ---------- 4. skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink-text);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  box-shadow: 0 6px 24px rgba(25, 20, 16, 0.35);
  transform: translateY(-220%);
  transition: transform var(--t-fast) var(--ease);
}

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

/* ---------- 5. 站点头部：墨紫书脊 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 90;
  display: flex;
  flex-direction: column;
  background-color: var(--ink-deep);
  color: var(--paper);
  border-right: 1px solid rgba(169, 138, 209, 0.18);
}

/* 阅读进度刻度：沿书脊右缘向下生长 */
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 2px;
  height: var(--read-progress);
  background: linear-gradient(180deg, var(--gold), var(--grape));
  transition: height var(--t-fast) linear;
  pointer-events: none;
}

/* --- 顶栏（仅移动端可见） --- */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 18px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__mark {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.topbar__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--grape-mist);
  transition: color var(--t-fast) var(--ease);
}

.nav-toggle:hover { color: var(--paper); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-mid) var(--ease), top var(--t-mid) var(--ease);
}

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

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

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

/* --- 书脊导航 --- */
.rail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 138, 209, 0.35) transparent;
  background-image: linear-gradient(180deg, rgba(107, 63, 160, 0.3), rgba(107, 63, 160, 0) 38%);
}

.rail::-webkit-scrollbar { width: 3px; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(169, 138, 209, 0.35);
  border-radius: 2px;
}

.rail__head { flex: none; }

.rail__brand {
  display: block;
}

.rail__seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.rail__name {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.rail__tag {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.22em;
  color: var(--grape-mist);
}

.rail__note {
  margin-top: 16px;
  padding-left: 9px;
  border-left: 2px solid var(--grape);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: rgba(169, 138, 209, 0.78);
}

.rail__list {
  flex: none;
  margin: auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(169, 138, 209, 0.16);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.07em;
  color: rgba(243, 234, 221, 0.68);
  transition: color var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}

.rail__link::before {
  content: "";
  flex: none;
  width: 11px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  transition: width var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}

.rail__link:hover {
  color: var(--paper);
  background-color: rgba(107, 63, 160, 0.28);
}

.rail__link:hover::before { width: 18px; }

.rail__link[aria-current="page"] {
  color: var(--paper);
  font-weight: 600;
  background-color: rgba(107, 63, 160, 0.55);
  background-image: linear-gradient(90deg, rgba(107, 63, 160, 0.85), rgba(107, 63, 160, 0));
}

.rail__link[aria-current="page"]::before {
  width: 22px;
  background: var(--gold);
  opacity: 1;
}

.rail__foot { flex: none; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

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

.btn--rail {
  width: 100%;
  padding: 11px 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.55);
  background-color: rgba(201, 162, 39, 0.06);
}

.btn--rail:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
}

.btn--primary {
  background-color: var(--grape);
  border-color: var(--grape);
  color: var(--paper);
}

.btn--primary:hover {
  background-color: var(--night-vine);
  border-color: var(--grape-mist);
}

.btn--jade {
  background-color: var(--jade);
  border-color: var(--jade);
  color: var(--paper);
}

.btn--jade:hover {
  background-color: #256456;
  border-color: var(--jade-light);
}

.btn--ghost {
  color: var(--grape);
  border-color: rgba(107, 63, 160, 0.45);
  background-color: transparent;
}

.btn--ghost:hover {
  background-color: rgba(107, 63, 160, 0.1);
  border-color: var(--grape);
}

/* ---------- 7. 区块与容器 ---------- */
.section {
  padding: clamp(56px, 8vw, 118px) clamp(20px, 5vw, 64px);
  position: relative;
}

.section__inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section--narrow .section__inner { max-width: 720px; }

.section--paper {
  background-color: var(--paper);
  color: var(--ink-text);
}

.section--ink {
  background-color: var(--ink-deep);
  color: var(--paper);
  background-image: radial-gradient(760px 420px at 88% -8%, rgba(107, 63, 160, 0.42), transparent 70%);
}

.section--vine {
  background-color: var(--night-vine);
  color: var(--paper);
  background-image: radial-gradient(620px 380px at 6% 108%, rgba(47, 127, 110, 0.2), transparent 68%);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--grape-mist);
}

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

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

.breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.breadcrumb--paper { color: #7A6A5B; }
.breadcrumb--paper [aria-current="page"] { color: var(--ink-text); }
.breadcrumb--paper a:hover { color: var(--grape); }

/* ---------- 9. 正文容器 ---------- */
.prose {
  max-width: 38em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-text);
}

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

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
}

.prose p,
.prose li { max-width: 34em; }

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 0.86em;
  width: 10px;
  height: 1px;
  background: var(--grape);
}

.prose ol { list-style: decimal; }

.prose a {
  color: var(--grape);
  border-bottom: 1px solid rgba(107, 63, 160, 0.42);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.prose a:hover {
  color: var(--jade);
  border-color: var(--jade);
}

.section--ink .prose,
.section--vine .prose { color: rgba(243, 234, 221, 0.9); }

.section--ink .prose a,
.section--vine .prose a {
  color: var(--gold);
  border-color: rgba(201, 162, 39, 0.5);
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.9;
  color: #4B3E36;
}

.section--ink .lead,
.section--vine .lead { color: rgba(243, 234, 221, 0.82); }

.note-text {
  max-width: 32em;
  font-size: 13px;
  line-height: 1.9;
  color: #7A6A5B;
}

.section--ink .note-text,
.section--vine .note-text { color: rgba(169, 138, 209, 0.85); }

/* ---------- 10. 档案编号签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 2px;
  background-color: rgba(201, 162, 39, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}

.tag--jade {
  border-color: rgba(47, 127, 110, 0.55);
  background-color: rgba(47, 127, 110, 0.12);
  color: var(--jade-light);
}

.tag--seal {
  border-color: rgba(166, 58, 46, 0.6);
  background-color: rgba(166, 58, 46, 0.14);
  color: #E08C7E;
}

.tag--paper {
  border-color: var(--paper-shade);
  background-color: rgba(226, 213, 196, 0.5);
  color: #6B5B4C;
}

/* ---------- 11. 超大指标 ---------- */
.metric {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.metric--jade { color: var(--jade-light); }
.metric--paper { color: var(--paper); }

.metric__label {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--grape-mist);
}

.metric__unit {
  font-size: 0.32em;
  letter-spacing: 0.04em;
  margin-left: 0.16em;
}

/* ---------- 12. 刻度分隔线 ---------- */
.rule {
  height: 1px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 11px);
  opacity: 0.32;
}

.rule--gold { color: var(--gold); opacity: 0.5; }
.rule--jade { color: var(--jade); opacity: 0.45; }

/* ---------- 13. 数据表 ---------- */
.data-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-text);
}

.data-table caption {
  text-align: left;
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: #7A6A5B;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--paper-shade);
  vertical-align: top;
}

.data-table thead th {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6B5B4C;
  border-bottom-color: #C9B8A4;
}

.data-table tbody tr:nth-child(even) {
  background-color: rgba(226, 213, 196, 0.34);
}

.data-table td.num,
.data-table th.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.section--ink .data-table,
.section--vine .data-table { color: var(--paper); }

.section--ink .data-table th,
.section--ink .data-table td,
.section--vine .data-table th,
.section--vine .data-table td { border-bottom-color: rgba(169, 138, 209, 0.24); }

.section--ink .data-table thead th,
.section--vine .data-table thead th { color: var(--jade-light); border-bottom-color: rgba(169, 138, 209, 0.4); }

.section--ink .data-table tbody tr:nth-child(even),
.section--vine .data-table tbody tr:nth-child(even) { background-color: rgba(107, 63, 160, 0.16); }

/* ---------- 14. 时间轴 ---------- */
.timeline {
  position: relative;
  padding-left: 44px;
  border-left: 1px solid rgba(107, 63, 160, 0.32);
}

.section--ink .timeline,
.section--vine .timeline { border-left-color: rgba(169, 138, 209, 0.34); }

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

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

.timeline__item::before {
  content: "";
  position: absolute;
  left: -49px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grape);
  box-shadow: 0 0 0 4px rgba(107, 63, 160, 0.16);
}

.section--ink .timeline__item::before,
.section--vine .timeline__item::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.timeline__year {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.timeline__body {
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- 15. 玻璃层 ---------- */
.glass {
  background-color: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.glass--paper {
  background-color: rgba(243, 234, 221, 0.72);
  border-color: rgba(107, 63, 160, 0.16);
}

/* ---------- 16. 分段切换 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid rgba(169, 138, 209, 0.26);
}

.tab {
  padding: 11px 16px;
  font-size: 13px;
  letter-spacing: 0.09em;
  color: rgba(243, 234, 221, 0.6);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.tab:hover { color: var(--paper); }

.tab[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.tabs--paper { border-bottom-color: var(--paper-shade); }

.tabs--paper .tab { color: #7A6A5B; }
.tabs--paper .tab:hover { color: var(--ink-text); }
.tabs--paper .tab[aria-selected="true"] {
  color: var(--grape);
  border-bottom-color: var(--grape);
}

/* ---------- 17. 折叠面板 ---------- */
.accordion__item {
  border-bottom: 1px solid rgba(169, 138, 209, 0.22);
}

.section--paper .accordion__item { border-bottom-color: var(--paper-shade); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 19px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  transition: color var(--t-fast) var(--ease);
}

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

.accordion__sign {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.accordion__sign::before,
.accordion__sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}

.accordion__sign::before { top: 6.5px; left: 0; width: 14px; height: 1px; }
.accordion__sign::after { left: 6.5px; top: 0; width: 1px; height: 14px; }

.accordion__trigger[aria-expanded="true"] .accordion__sign::after {
  transform: scaleY(0);
  opacity: 0;
}

.accordion__panel {
  padding: 0 0 22px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.9;
  color: #4B3E36;
}

.section--ink .accordion__panel,
.section--vine .accordion__panel { color: rgba(243, 234, 221, 0.82); }

/* ---------- 18. 资料卡 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px clamp(18px, 2vw, 28px);
  background-color: var(--paper);
  border: 1px solid var(--paper-shade);
  border-radius: 3px;
  color: var(--ink-text);
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--grape);
}

.card:hover {
  border-color: var(--grape-mist);
  transform: translateY(-2px);
}

.card--ink {
  background-color: rgba(46, 27, 69, 0.72);
  border-color: rgba(169, 138, 209, 0.24);
  color: var(--paper);
}

.card--ink::before { background: var(--gold); }

.card__head {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.card__body {
  font-size: 14px;
  line-height: 1.85;
  color: #4B3E36;
}

.card--ink .card__body { color: rgba(243, 234, 221, 0.8); }

.card__meta {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #7A6A5B;
}

.card--ink .card__meta { color: var(--grape-mist); }

/* ---------- 19. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

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

.grid--stagger > *:nth-child(even) { transform: translateY(28px); }

/* ---------- 20. 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--night-vine);
}

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

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--3x4 { aspect-ratio: 3 / 4; }
.img-frame--21x9 { aspect-ratio: 21 / 9; }

.img-frame--paper { background-color: var(--paper-shade); }

.img-frame--glass {
  background-color: var(--glass);
  border: 1px solid rgba(169, 138, 209, 0.24);
}

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

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

/* ---------- 22. 站点页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 84px) clamp(20px, 5vw, 64px) 34px;
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(660px 340px at 88% -12%, rgba(107, 63, 160, 0.44), transparent 70%),
    radial-gradient(460px 300px at 3% 112%, rgba(47, 127, 110, 0.16), transparent 70%);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.68) 0 1px, transparent 1px 13px);
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(0, 2fr) minmax(250px, 1.25fr);
  gap: clamp(28px, 4vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
}

.footer__wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.footer__tag {
  margin-top: 7px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.footer__intro {
  max-width: 26em;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(243, 234, 221, 0.66);
}

.footer__note {
  margin-top: 20px;
  padding-left: 10px;
  border-left: 2px solid var(--grape);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(169, 138, 209, 0.82);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer__coltitle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.footer__coltitle::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.footer__links li { margin-bottom: 2px; }

.footer__links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(243, 234, 221, 0.72);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--paper);
  border-bottom-color: var(--grape-mist);
}

.footer__contact { min-width: 0; }

.contact-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  background-color: var(--glass);
  border: 1px solid rgba(169, 138, 209, 0.22);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: left;
  color: var(--paper);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.contact-chip:hover {
  border-color: var(--grape-mist);
  background-color: rgba(255, 255, 255, 0.13);
}

.contact-chip__k {
  flex: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grape-mist);
}

.contact-chip__v {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.contact-chip__hint {
  flex: none;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  transition: color var(--t-fast) var(--ease);
}

.contact-chip[data-copied="true"] .contact-chip__hint { color: var(--jade-light); }

.footer__hours {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(243, 234, 221, 0.6);
}

.footer__addr {
  margin-top: 8px;
  max-width: 24em;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(243, 234, 221, 0.5);
}

.footer__legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  max-width: 1240px;
  margin: clamp(42px, 5vw, 64px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(169, 138, 209, 0.18);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(243, 234, 221, 0.52);
}

.footer__icp {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: rgba(169, 138, 209, 0.78);
}

.footer__copy { max-width: 52em; }

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1180px) {
  :root { --rail-w: 166px; }

  .rail { padding: 24px 16px 20px; }
  .rail__name { font-size: 17px; }
  .rail__link { font-size: 12px; letter-spacing: 0.05em; padding: 8px 6px; }
}

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__contact { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }

  html { scroll-behavior: smooth; }

  body {
    padding-left: 0;
    padding-top: var(--header-h);
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--header-h);
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid rgba(169, 138, 209, 0.2);
    background-color: rgba(27, 16, 38, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .site-header::after { display: none; }

  /* 抽屉遮罩 */
  .site-header::before {
    content: "";
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgba(12, 6, 20, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-mid) var(--ease), visibility 0ms linear var(--t-mid);
  }

  .site-header[data-open="true"]::before {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--t-mid) var(--ease), visibility 0ms;
  }

  .topbar {
    display: flex;
    height: var(--header-h);
    position: relative;
    z-index: 3;
  }

  .rail {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    justify-content: flex-start;
    gap: 26px;
    padding: 26px 24px 34px;
    background-color: var(--ink-deep);
    background-image: linear-gradient(180deg, rgba(107, 63, 160, 0.32), rgba(107, 63, 160, 0) 42%);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-mid) var(--ease),
                transform var(--t-mid) var(--ease),
                visibility 0ms linear var(--t-mid);
  }

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

  .rail__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .rail__seal { display: none; }
  .rail__brand { display: flex; align-items: baseline; gap: 12px; }
  .rail__name { font-size: 18px; }
  .rail__tag { margin-top: 0; }
  .rail__note { margin-top: 0; border-left: 0; padding-left: 0; }

  .rail__list {
    margin: 0;
    padding-top: 0;
    border-top: 0;
    gap: 4px;
  }

  .rail__link {
    font-size: 15px;
    padding: 13px 10px;
    letter-spacing: 0.06em;
  }

  .rail__link::before { width: 14px; }

  .rail__foot { margin-top: auto; width: 100%; }
  .btn--rail { padding: 14px 12px; font-size: 13px; }
}

@media (max-width: 760px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--stagger > *:nth-child(even) { transform: none; }
  .grid--stagger > * + * { margin-top: 18px; }

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

  .timeline { padding-left: 26px; }
  .timeline__item::before { left: -31px; width: 7px; height: 7px; }

  .metric__label { font-size: 12px; letter-spacing: 0.14em; }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab { flex: none; }

  .data-table { font-size: 13px; }
  .data-table th,
  .data-table td { padding: 11px 9px; }
}

@media (max-width: 520px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .contact-chip__v { font-size: 11px; }
}

/* ---------- 24. 无障碍降级 ---------- */
@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;
  }

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

  .card:hover { transform: none; }
}

@media print {
  .site-header,
  .skip-link,
  .nav-toggle { display: none !important; }

  body { padding-left: 0; }
  .site-footer { background: none; color: #000; }
}
