/* 皇家国际站 · 共享样式 /assets/site.css
   皇家档案馆 × 科技控制台：框架式页头、鎏金刻度、暖纸内容层 */

:root {
  --ink-blue: #0B1F3A;
  --ink-deep: #081426;
  --gold: #C9A227;
  --gold-light: #E6C766;
  --crimson: #7A1F2B;
  --paper: #F5F0E6;
  --warm-white: #FFFDF7;
  --blue-grey: #A9B7C6;
  --ink-black: #141414;
  --glass-blue: #1E3A5F;

  --font-heading: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --frame-line: rgba(201, 162, 39, 0.22);
  --hair: rgba(169, 183, 198, 0.42);
  --dur: 180ms;
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-black);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(169, 183, 198, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 183, 198, 0.12) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-position: -1px -1px;
}

img, svg { max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-blue);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a {
  color: var(--ink-blue);
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 39, 0.65);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--crimson); text-decoration-color: var(--crimson); }

button { font: inherit; }

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

/* ---------- 排版与容器 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1400px; }

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--warm { background: var(--warm-white); }
.section--ink { background: var(--ink-blue); color: var(--warm-white); }
.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--warm-white); }
.section--ink a { color: var(--gold-light); text-decoration-color: rgba(201, 162, 39, 0.55); }
.section--ink a:hover { color: var(--warm-white); text-decoration-color: var(--warm-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--ink .eyebrow { color: var(--gold-light); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
  max-width: 62ch;
  color: #24374b;
}
.section--ink .lede { color: rgba(245, 240, 230, 0.86); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 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--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-deep);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 20, 38, 0.24);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn--ink {
  background: var(--ink-blue);
  border-color: var(--ink-blue);
  color: var(--warm-white);
}
.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--ink-deep);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- 标题跳转 ---------- */
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ink-deep);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 1px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0.85rem;
  color: var(--ink-deep);
}

/* ---------- 页头：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--warm-white);
  background: linear-gradient(180deg, rgba(8, 20, 38, 0.98), rgba(11, 31, 58, 0.94));
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 14px 32px rgba(4, 10, 20, 0.34); }

.header-frame {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  border-left: 1px solid var(--frame-line);
  border-right: 1px solid var(--frame-line);
}

.masthead {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
  min-height: 72px;
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(169, 183, 198, 0.16);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: var(--gold-light); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink-blue);
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.5);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-text { display: grid; gap: 0.1rem; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--warm-white);
}
.brand-line {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(169, 183, 198, 0.82);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  flex-wrap: wrap;
}
.version-badge {
  display: inline-block;
  padding: 0.24rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 1px;
  white-space: nowrap;
}
.entry-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 230, 0.72);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(230, 199, 102, 0.18);
  animation: statusPulse 2.6s var(--ease) infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230, 199, 102, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(230, 199, 102, 0.06); }
}

.header-cta {
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 1px;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: rgba(201, 162, 39, 0.2); border-color: var(--gold-light); }
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
  flex: none;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  top: 50%;
  transition: transform var(--dur) var(--ease);
}
.nav-toggle-bars::before { transform: translateY(-3.5px); }
.nav-toggle-bars::after { transform: translateY(3.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

.primary-nav {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  padding-right: 2.25rem;
  list-style: none;
  flex: 1 1 auto;
}
.nav-item { display: flex; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.85rem clamp(0.55rem, 1.3vw, 1.1rem);
  color: rgba(245, 240, 230, 0.82);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: left var(--dur) var(--ease), right var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: rgba(169, 183, 198, 0.72);
  transition: color var(--dur) var(--ease);
}
.nav-label {
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.09);
}
.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index { color: var(--gold-light); }
.nav-link:hover::after,
.nav-link:focus-visible::after { left: 0; right: 0; }

.nav-link[aria-current="page"] {
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.03));
}
.nav-link[aria-current="page"] .nav-index { color: var(--gold); }
.nav-link[aria-current="page"]::after {
  left: 0;
  right: 0;
  background: var(--gold-light);
}

.nav-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  display: block;
  background: rgba(169, 183, 198, 0.16);
  overflow: hidden;
  pointer-events: none;
}
.nav-rail-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: transform 120ms linear;
}

.nav-note {
  position: absolute;
  top: 0.75rem;
  right: calc(var(--gutter) * 0.4);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: rgba(169, 183, 198, 0.45);
  pointer-events: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  color: rgba(245, 240, 230, 0.86);
  background: linear-gradient(180deg, var(--ink-deep), #050d18 72%);
  border-top: 1px solid rgba(201, 162, 39, 0.4);
}
.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 28px);
  opacity: 0.5;
}
.footer-frame {
  max-width: 1400px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.25rem) var(--gutter) 0;
  border-left: 1px solid var(--frame-line);
  border-right: 1px solid var(--frame-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.footer-brand { display: grid; gap: 0.5rem; align-content: start; }
.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  color: var(--ink-deep);
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.footer-brand-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--warm-white);
}
.footer-brand-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.footer-note {
  margin: 0.35rem 0 0;
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(169, 183, 198, 0.9);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(245, 240, 230, 0.84);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-links a::before {
  content: "";
  width: 12px;
  height: 1px;
  flex: none;
  background: rgba(201, 162, 39, 0.55);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--gold-light); }
.footer-links a:hover::before,
.footer-links a:focus-visible::before { width: 22px; background: var(--gold-light); }

.footer-contact {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact li { display: grid; gap: 0.15rem; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(169, 183, 198, 0.78);
}
.contact-value {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.9);
  overflow-wrap: anywhere;
}
.footer-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(169, 183, 198, 0.22);
  border-bottom: 1px solid rgba(169, 183, 198, 0.22);
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.76);
}
.footer-version p { margin: 0; }
.footer-version-tag {
  padding: 0.22rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-deep);
  background: var(--gold);
}
.footer-version-link {
  margin-left: auto;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-version-link:hover,
.footer-version-link:focus-visible {
  color: var(--warm-white);
  border-bottom-color: var(--warm-white);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.4rem;
  padding: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(169, 183, 198, 0.82);
}
.footer-legal { margin: 0; }

/* ---------- 内容组件 ---------- */
.breadcrumb { margin: 0 0 1.5rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(20, 20, 20, 0.62);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(169, 183, 198, 0.9);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.breadcrumb a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }
.section--ink .breadcrumb ol { color: rgba(169, 183, 198, 0.9); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; }

.card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--warm-white);
  border: 1px solid rgba(169, 183, 198, 0.5);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 14px 26px rgba(8, 20, 38, 0.12);
}
.card--ink {
  background: var(--ink-blue);
  border-color: rgba(201, 162, 39, 0.32);
  color: rgba(245, 240, 230, 0.9);
}
.card--ink h2, .card--ink h3 { color: var(--warm-white); }
.card--ink a { color: var(--gold-light); }

.panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: rgba(30, 58, 95, 0.62);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 1px;
  color: rgba(245, 240, 230, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.panel h2, .panel h3 { color: var(--warm-white); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-blue);
  background: rgba(169, 183, 198, 0.22);
  border: 1px solid rgba(169, 183, 198, 0.65);
  border-radius: 1px;
}
.tag--gold {
  color: var(--ink-deep);
  background: var(--gold);
  border-color: var(--gold);
}
.tag--crimson {
  color: var(--warm-white);
  background: var(--crimson);
  border-color: var(--crimson);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(169, 183, 198, 0.55);
  background: var(--warm-white);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.data-table caption {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-blue);
  background: rgba(169, 183, 198, 0.24);
}
.data-table th,
.data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(169, 183, 198, 0.45);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: var(--ink-blue);
  border-bottom-color: var(--ink-blue);
}
.data-table tbody tr:hover { background: rgba(201, 162, 39, 0.09); }
.data-table tbody th { font-weight: 600; color: var(--ink-blue); }

.media-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-blue);
  border: 1px solid rgba(169, 183, 198, 0.5);
  border-radius: 1px;
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms var(--ease);
}
.media-frame:hover img { transform: scale(1.02); }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--arch {
  border-radius: 50% 50% 2px 2px / 30% 30% 2px 2px;
  border-color: rgba(201, 162, 39, 0.45);
}
.media-frame__caption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(20, 20, 20, 0.62);
}
.section--ink .media-frame__caption { color: rgba(169, 183, 198, 0.9); }

/* ---------- 渐显 ---------- */
.reveal { transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.js-ready .reveal { opacity: 0; transform: translateY(16px); }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-note { display: none; }
  .nav-list { padding-right: 0; }
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .grid--sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-meta { order: 3; width: 100%; }
  .masthead { padding-block: 0.6rem; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.99), rgba(11, 31, 58, 0.99));
    border-top: 1px solid rgba(201, 162, 39, 0.42);
    border-bottom: 1px solid rgba(201, 162, 39, 0.42);
    box-shadow: 0 24px 42px rgba(4, 10, 20, 0.42);
  }
  .primary-nav[data-open="true"] {
    display: block;
    animation: navDrop var(--dur) var(--ease) both;
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-list { flex-direction: column; flex-wrap: nowrap; padding-right: 0; }
  .nav-item { border-bottom: 1px solid rgba(169, 183, 198, 0.14); }
  .nav-item:last-child { border-bottom: none; }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem var(--gutter);
    gap: 0.75rem;
  }
  .nav-link::after {
    left: 0;
    right: 0;
    bottom: auto;
    top: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease);
  }
  .nav-link:hover::after,
  .nav-link:focus-visible::after { transform: scaleX(1); }
  .nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .nav-link[aria-current="page"] { padding-left: calc(var(--gutter) - 4px); }

  .grid--halves,
  .grid--thirds { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .entry-status { display: none; }
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-version-link { margin-left: 0; }
  .footer-frame { padding-top: 1.75rem; }
}

@media (max-width: 480px) {
  .brand-mark { width: 36px; height: 36px; font-size: 1rem; }
  .brand-name { font-size: 1rem; }
  .brand-line { font-size: 0.56rem; letter-spacing: 0.14em; }
  .nav-toggle-label { display: none; }
  .data-table { font-size: 0.84rem; }
}

@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;
  }
  .js-ready .reveal { opacity: 1; transform: none; }
  .media-frame:hover img { transform: none; }
  .status-dot { animation: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
