/* ========== 1. Reset ========== */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ========== 2. Tokens ========== */
:root {
  --space-void: #060A18;
  --space-hull: #101A36;
  --cream: #F6EBDC;
  --ink: #241A15;
  --violet: #7A5CFF;
  --magenta: #FF3D9A;
  --cyan: #35E6E0;
  --gold: #F5B940;
  --alert: #FF5A36;
  --mist: #C7D3F2;

  --font-display: 'Sora', 'Archivo', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Roboto Mono', ui-monospace, monospace;

  --line: rgba(199, 211, 242, 0.24);
  --line-strong: rgba(199, 211, 242, 0.44);
  --shadow-hard: 8px 8px 0 rgba(6, 10, 24, 0.78);
  --shadow-hard-lg: 12px 12px 0 rgba(6, 10, 24, 0.85);
  --radius: 4px;
  --header-h: 78px;
  --shell-max: 1320px;
  --shell-pad: clamp(18px, 4vw, 56px);
}

/* ========== 3. Base / 中文排版 ========== */
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--space-void);
  background-image:
    radial-gradient(1100px 620px at 10% -10%, rgba(122, 92, 255, 0.30), transparent 68%),
    radial-gradient(900px 540px at 94% 2%, rgba(255, 61, 154, 0.16), transparent 70%),
    radial-gradient(820px 660px at 50% 112%, rgba(53, 230, 224, 0.11), transparent 72%),
    repeating-linear-gradient(0deg, rgba(199, 211, 242, 0.05) 0 1px, transparent 1px 94px),
    repeating-linear-gradient(90deg, rgba(199, 211, 242, 0.05) 0 1px, transparent 1px 94px);
  background-attachment: fixed;
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.06;
  letter-spacing: 0.05em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 5.6rem); line-height: 0.98; }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: 0.04em; }
h4 { font-size: 1.05rem; letter-spacing: 0.06em; }

p { max-width: 68ch; }

a { color: var(--cyan); text-decoration-color: rgba(53, 230, 224, 0.45); }
a:hover { color: #8CF7F3; }

strong { color: var(--cream); font-weight: 700; }

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

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

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

/* ========== 4. Skip link ========== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--space-void);
  background: var(--cyan);
  border: 2px solid var(--space-void);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease-out;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ========== 5. Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #122040 0%, #0B1430 62%, var(--space-void) 100%);
  border-bottom: 2px solid var(--line-strong);
  color: var(--mist);
}

.header-orbit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(122, 92, 255, 0.75), rgba(53, 230, 224, 0.75), rgba(245, 185, 64, 0.7), transparent);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan) 58%, var(--gold));
  transition: transform 0.12s linear;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 13px var(--shell-pad);
  min-height: var(--header-h);
}

/* --- 品牌组 --- */
.brand-block {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  flex-wrap: wrap;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.brand:hover { color: var(--cream); }

.brand-mark {
  display: inline-block;
  padding: 7px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(245, 185, 64, 0.09);
  border: 2px solid var(--gold);
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(245, 185, 64, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.1;
  color: var(--cream);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  line-height: 1.2;
  color: rgba(199, 211, 242, 0.55);
  white-space: nowrap;
}

/* --- 状态胶囊 --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--cyan);
  background: rgba(53, 230, 224, 0.08);
  border: 1px solid rgba(53, 230, 224, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 230, 224, 0.18);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.status-mono { color: var(--gold); }

.status-sep { color: rgba(199, 211, 242, 0.4); }

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 230, 224, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(53, 230, 224, 0.06); }
}

/* --- 导航 --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.3vw, 20px);
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: rgba(199, 211, 242, 0.86);
  text-decoration: none;
  transition: color 0.18s ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s ease-out;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--cream);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  background: var(--gold);
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1B1305;
  text-decoration: none;
  background: var(--gold);
  border: 2px solid rgba(245, 185, 64, 0.92);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(245, 185, 64, 0.25);
  white-space: nowrap;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out;
}

.nav-cta:hover {
  color: #1B1305;
  background: #FFCB57;
  transform: translate(-1px, -2px);
  box-shadow: 5px 5px 0 rgba(245, 185, 64, 0.38);
}

/* --- 移动端按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: rgba(16, 26, 54, 0.92);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s ease-out, color 0.18s ease-out;
}

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

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -6px 0 var(--cyan), 0 6px 0 var(--cyan);
  transition: background-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: var(--magenta);
  box-shadow: 0 -6px 0 var(--magenta), 0 6px 0 var(--magenta);
}

/* ========== 6. Footer ========== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--mist);
  background: linear-gradient(180deg, #101A36 0%, #0A1128 55%, var(--space-void) 100%);
  border-top: 2px solid var(--line-strong);
}

.footer-orbit {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan) 50%, var(--gold), transparent);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--shell-pad) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.3fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--cream);
  text-decoration: none;
}

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

.footer-version {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(199, 211, 242, 0.72);
}

.mono-tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(245, 185, 64, 0.09);
  border: 1px solid rgba(245, 185, 64, 0.75);
  border-radius: 3px;
}

.footer-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(199, 211, 242, 0.72);
}

.footer-top-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 185, 64, 0.55);
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}

.footer-top-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}

.footer-title::before {
  content: "";
  width: 14px;
  height: 2px;
  flex: none;
  background: var(--gold);
}

.footer-list { display: grid; gap: 2px; }

.footer-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(199, 211, 242, 0.82);
  text-decoration: none;
  transition: color 0.18s ease-out;
}

.footer-list a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 4px;
}

.footer-list--contact li {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(199, 211, 242, 0.14);
}

.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: rgba(199, 211, 242, 0.5);
}

.footer-value {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream);
  word-break: break-word;
}

.footer-legal { margin-bottom: 14px; }

.footer-icp {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(199, 211, 242, 0.62);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(199, 211, 242, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(199, 211, 242, 0.62);
}

.footer-copy { margin: 0; max-width: none; }

.footer-back {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 185, 64, 0.45);
}

.footer-back:hover { color: var(--cyan); border-color: var(--cyan); }

/* ========== 7. 布局容器与分区 ========== */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--shell-pad);
}

.section { padding-block: clamp(42px, 6vw, 92px); }

.section--paper {
  color: var(--ink);
  background: var(--cream);
  border-block: 2px solid var(--ink);
}

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

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

.section--paper a:not(.btn):not(.chip) {
  color: #8A2F12;
  text-decoration-color: rgba(138, 47, 18, 0.45);
}

.section--paper a:not(.btn):not(.chip):hover { color: #B23A15; }

.divider {
  height: 2px;
  border: 0;
  margin-block: clamp(28px, 4vw, 52px);
  background: linear-gradient(90deg, var(--violet), var(--cyan) 45%, rgba(245, 185, 64, 0.85), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

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

.bento-cell { grid-column: span 4; min-width: 0; }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ========== 9. 卡片 ========== */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: rgba(16, 26, 54, 0.76);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-hard-lg);
}

.card--paper {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 rgba(36, 26, 21, 0.55);
}

.card--paper:hover {
  border-color: var(--ink);
  box-shadow: 10px 12px 0 rgba(36, 26, 21, 0.62);
}

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

.card--paper a:not(.btn):not(.chip) {
  color: #8A2F12;
  text-decoration-color: rgba(138, 47, 18, 0.45);
}

/* ========== 10. 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

.btn--gold {
  color: #1B1305;
  background: var(--gold);
  border-color: rgba(245, 185, 64, 0.95);
  box-shadow: 4px 4px 0 rgba(245, 185, 64, 0.28);
}

.btn--gold:hover {
  color: #1B1305;
  background: #FFCB57;
  transform: translate(-1px, -2px);
  box-shadow: 7px 7px 0 rgba(245, 185, 64, 0.36);
}

.btn--cyan {
  color: #04201F;
  background: var(--cyan);
  border-color: rgba(53, 230, 224, 0.95);
  box-shadow: 4px 4px 0 rgba(53, 230, 224, 0.22);
}

.btn--cyan:hover {
  color: #04201F;
  background: #7DF3EF;
  transform: translate(-1px, -2px);
  box-shadow: 7px 7px 0 rgba(53, 230, 224, 0.3);
}

.btn--ghost {
  color: var(--cream);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translate(-1px, -2px);
  box-shadow: 6px 6px 0 rgba(6, 10, 24, 0.8);
}

/* ========== 11. 标签 ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(199, 211, 242, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tag--violet { color: #C6B9FF; border-color: rgba(122, 92, 255, 0.65); background: rgba(122, 92, 255, 0.16); }
.tag--magenta { color: #FFB4D6; border-color: rgba(255, 61, 154, 0.6); background: rgba(255, 61, 154, 0.14); }
.tag--alert { color: #FFC4B6; border-color: rgba(255, 90, 54, 0.7); background: rgba(255, 90, 54, 0.16); }

/* ========== 12. 筛选 chips ========== */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  background: rgba(16, 26, 54, 0.66);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease-out, color 0.18s ease-out, background-color 0.18s ease-out;
}

.chip:hover { color: #fff; border-color: var(--cyan); }

.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--magenta);
  border-color: var(--magenta);
}

/* ========== 13. 面包屑 ========== */
.breadcrumb {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(199, 211, 242, 0.66);
}

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

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(199, 211, 242, 0.38);
}

.breadcrumb a {
  color: rgba(199, 211, 242, 0.82);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--cyan); }

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

.section--paper .breadcrumb,
.card--paper .breadcrumb { color: rgba(36, 26, 21, 0.62); }

.section--paper .breadcrumb a,
.card--paper .breadcrumb a { color: rgba(36, 26, 21, 0.8); }

.section--paper .breadcrumb [aria-current="page"],
.card--paper .breadcrumb [aria-current="page"] { color: #8A2F12; }

/* ========== 14. 长文排版 ========== */
.prose { max-width: 74ch; }

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

.prose h2 { margin-top: 1.7em; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.prose h3 { margin-top: 1.5em; }
.prose h4 { margin-top: 1.3em; }

.prose p { max-width: 68ch; }

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5em;
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li::marker { color: var(--gold); }

.prose blockquote {
  padding: 16px 20px;
  border-left: 4px solid var(--violet);
  background: rgba(122, 92, 255, 0.12);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose--ink { color: var(--ink); }

.prose--ink h2,
.prose--ink h3,
.prose--ink h4 { color: var(--ink); }

.prose--ink a { color: #8A2F12; }

.prose--ink li::marker { color: #B23A15; }

.prose--ink blockquote {
  border-left-color: #8A2F12;
  background: rgba(138, 47, 18, 0.08);
}

/* ========== 15. 图片容器基础规则 ========== */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(6, 10, 24, 0.8);
  background-color: var(--space-hull);
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(122, 92, 255, 0.42), transparent 62%),
    radial-gradient(110% 90% at 88% 96%, rgba(255, 61, 154, 0.32), transparent 66%),
    linear-gradient(140deg, rgba(53, 230, 224, 0.16), transparent 58%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(6, 10, 24, 0.16) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(6, 10, 24, 0.16) 0 1px, transparent 1px 34px);
  mix-blend-mode: multiply;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(199, 211, 242, 0.66);
}

.section--paper .media-frame,
.card--paper .media-frame {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 rgba(36, 26, 21, 0.5);
}

.section--paper .media-frame__caption,
.card--paper .media-frame__caption { color: rgba(36, 26, 21, 0.7); }

/* ========== 16. 显现动效 ========== */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.24s ease-out, transform 0.24s ease-out;
}

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

/* ========== 17. 平板 ========== */
@media (max-width: 1000px) {
  .bento-cell,
  .span-3,
  .span-4,
  .span-5 { grid-column: span 6; }

  .span-7,
  .span-8 { grid-column: span 12; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== 18. 移动导航与手机 ========== */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .header-shell { padding-block: 10px; }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 120;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 18px) clamp(20px, 6vw, 44px) 40px;
    overflow-y: auto;
    background-color: var(--space-void);
    background-image:
      radial-gradient(760px 520px at 88% -8%, rgba(122, 92, 255, 0.42), transparent 64%),
      radial-gradient(700px 520px at 6% 102%, rgba(255, 61, 154, 0.24), transparent 62%),
      repeating-linear-gradient(0deg, rgba(199, 211, 242, 0.05) 0 1px, transparent 1px 78px);
    border-bottom: 2px solid var(--line-strong);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s linear;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list li { border-bottom: 1px solid rgba(199, 211, 242, 0.16); }

  .nav-link {
    display: block;
    padding: 16px 4px;
    font-size: 19px;
    letter-spacing: 0.08em;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--gold);
    padding-left: 16px;
    border-left: 3px solid var(--gold);
  }

  .nav-cta {
    align-self: flex-start;
    margin-top: 26px;
    padding: 12px 22px;
    font-size: 14px;
  }

  body.nav-locked { overflow: hidden; }
}

@media (max-width: 700px) {
  .bento-cell,
  .span-3,
  .span-4,
  .span-5,
  .span-7,
  .span-8 { grid-column: span 12; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; white-space: normal; }
  .status-pill { font-size: 10.5px; padding: 4px 10px; }
  .footer-shell { padding-bottom: 22px; }
}

/* ========== 19. 减少动效 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .card:hover,
  .btn:hover,
  .nav-cta:hover {
    transform: none;
  }

  .status-dot { animation: none; }
}
