/* ==========================================================================
   凯旋游戏站 · 共享样式表 /assets/site.css
   沙漠星夜 + 游戏脉冲 —— 技术蓝图式网格、极细边界、克制发光
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  background: #0B0E14;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
strong { font-weight: 700; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0E14;
  --panel: #131826;
  --panel-2: #1E2440;
  --gold: #D4A017;
  --gold-hi: #F2C74A;
  --violet: #6A3FA0;
  --cyan: #00E5D0;
  --pink: #FF5C7A;
  --paper: #F4F1E8;
  --text: #E8EAF0;
  --text-2: #9AA3B8;
  --line: #2A3350;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);

  --font-display: "Archivo Black", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --edge: 48px;
  --gap: 24px;
  --shell: 1280px;
  --header-h: 108px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 夜空底层：坐标网格 + 星点漂移 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background-color: #0B0E14;
  background-image:
    radial-gradient(1.6px 1.6px at 24px 38px, rgba(244, 241, 232, 0.65), transparent 100%),
    radial-gradient(1.2px 1.2px at 148px 96px, rgba(0, 229, 208, 0.55), transparent 100%),
    radial-gradient(1.4px 1.4px at 268px 46px, rgba(212, 160, 23, 0.55), transparent 100%),
    radial-gradient(1.1px 1.1px at 96px 218px, rgba(244, 241, 232, 0.45), transparent 100%),
    radial-gradient(1.3px 1.3px at 322px 274px, rgba(232, 234, 240, 0.4), transparent 100%),
    linear-gradient(to right, rgba(42, 51, 80, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 51, 80, 0.32) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(106, 63, 160, 0.26), transparent 44%),
    radial-gradient(circle at 86% 4%, rgba(0, 229, 208, 0.11), transparent 40%);
  background-size:
    340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px,
    96px 96px, 96px 96px, 100% 100%, 100% 100%;
  animation: star-drift 18s ease-in-out infinite alternate;
}

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-8px, 6px, 0); }
}

/* ---------- 4. 容器与栅格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-main { grid-column: span 8; min-width: 0; }
.col-side { grid-column: span 4; min-width: 0; }

#main-content {
  position: relative;
  z-index: 1;
  display: block;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- 5. 排版基元 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  transform: skewX(-2deg);
  text-shadow: 0 0 28px rgba(212, 160, 23, 0.22);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.sub-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.32;
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 64ch;
}

.prose {
  max-width: 760px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.prose p + p { margin-top: 18px; }
.prose h3 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}
.prose ul { margin-top: 14px; }
.prose li { position: relative; padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.metric {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(242, 199, 74, 0.25);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn-ghost { color: var(--text-2); }

.btn-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0E14;
}

.btn-solid:hover {
  background: var(--gold-hi);
  border-color: var(--gold-hi);
  color: #0B0E14;
}

/* ---------- 7. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: var(--edge);
  top: -80px;
  z-index: 90;
  padding: 12px 20px;
  background: var(--gold);
  color: #0B0E14;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 2px;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 14px; }

/* ---------- 8. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(19, 24, 38, 0.94);
  box-shadow: 0 1px 0 var(--line), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 229, 208, 0.6);
  transition: width 0.12s linear;
}

.header-status {
  overflow: hidden;
  max-height: 44px;
  background: linear-gradient(90deg, rgba(106, 63, 160, 0.36), rgba(19, 24, 38, 0.92) 62%);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.24s var(--ease), opacity 0.2s var(--ease),
    border-color 0.24s var(--ease);
}

.site-header[data-scrolled="true"] .header-status {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.status-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.status-text { color: var(--gold-hi); }
.status-meta { margin-left: auto; color: var(--text-2); }

.header-bar {
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.92), rgba(11, 14, 20, 0));
  transition: background 0.24s var(--ease);
}

.site-header[data-scrolled="true"] .header-bar { background: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  transform: skewX(-6deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: skewX(-2deg);
  text-shadow: 0 0 20px rgba(212, 160, 23, 0.3);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: color 0.16s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s var(--ease);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  background: currentColor;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  background: linear-gradient(180deg, rgba(19, 24, 38, 0.55), rgba(11, 14, 20, 0.98) 55%);
  border-top: 1px solid var(--line);
}

.footer-ridge {
  height: 4px;
  background: linear-gradient(90deg, var(--violet), var(--gold) 46%, var(--cyan));
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr 1.4fr;
  gap: 44px 32px;
  padding: 56px 0 42px;
}

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

.footer-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transform: skewX(-2deg);
}

.footer-note {
  margin-top: 14px;
  max-width: 36ch;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.footer-note--sm {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  opacity: 0.85;
}

.footer-index {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-list li + li { margin-top: 9px; }

.footer-list a {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  transition: color 0.16s var(--ease);
}

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

.footer-contact {
  display: grid;
  gap: 10px;
}

.contact-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.contact-key {
  flex: 0 0 auto;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.contact-val { color: var(--text); word-break: break-all; }

.copy-btn {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.copy-btn[data-copied="true"] {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* ---------- 10. 通用内容组件 ---------- */
.band {
  position: relative;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(106, 63, 160, 0.3), rgba(19, 24, 38, 0.92) 55%,
    rgba(0, 229, 208, 0.14));
}

.diag-cut {
  clip-path: polygon(0 0, 100% 34px, 100% 100%, 0 100%);
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(30, 36, 64, 0.86), rgba(19, 24, 38, 0.9));
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}

.panel:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.35);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.panel-body { padding: 18px; }

.panel-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.tag--gold { border-color: rgba(212, 160, 23, 0.5); color: var(--gold-hi); }
.tag--cyan { border-color: rgba(0, 229, 208, 0.45); color: var(--cyan); }
.tag--pink { border-color: rgba(255, 92, 122, 0.5); color: var(--pink); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb {
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a { transition: color 0.16s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 208, 0));
}

.timeline-node {
  position: relative;
  padding-bottom: 28px;
}

.timeline-node:last-child { padding-bottom: 0; }

.timeline-node::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.12);
}

.timeline-date {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* 表格（浅色反转面） */
.data-table {
  background: var(--paper);
  color: #10131C;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  border-radius: 2px;
  overflow: hidden;
}

.data-table th {
  padding: 12px 14px;
  border-bottom: 1px solid #CFC9B8;
  background: #E4DFD0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #DCD6C6;
}

.data-table tr:last-child td { border-bottom: 0; }

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

/* 清单 */
.checklist {
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* 筛选按钮 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.filter-btn:hover { border-color: var(--cyan); color: var(--text); }

.filter-btn[aria-pressed="true"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

/* 折叠面板 */
.disclosure {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(19, 24, 38, 0.6);
}

.disclosure-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.disclosure-icon {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--cyan);
  transition: transform 0.16s var(--ease);
}

.disclosure[data-open="true"] .disclosure-icon { transform: rotate(45deg); }

.disclosure-panel {
  padding: 0 16px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.disclosure[data-open="false"] .disclosure-panel { display: none; }

/* 图片容器（响应式可复用） */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--panel-2), var(--ink));
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.92), rgba(11, 14, 20, 0));
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

/* ---------- 11. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.12s var(--ease), transform 0.12s var(--ease);
}

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

/* ---------- 12. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link:focus-visible { outline-offset: 2px; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1100px) {
  :root { --edge: 32px; }

  .brand-tag { display: none; }
  .header-inner { gap: 16px; }
  .nav-link { padding: 12px 9px; font-size: 13px; }
  .nav-link::after { left: 9px; right: 9px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > .footer-col:last-child { grid-column: span 3; }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --edge: 20px; }

  .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    background: rgba(19, 24, 38, 0.98);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(140%);
    transition: transform 0.22s var(--ease), opacity 0.18s var(--ease),
      visibility 0.22s linear;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .nav-link {
    padding: 15px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child .nav-link { border-bottom: 0; }

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

  .nav-link[aria-current="page"] {
    background: rgba(212, 160, 23, 0.12);
    color: var(--gold-hi);
  }

  .status-meta { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-grid > .footer-col:last-child { grid-column: span 2; }

  .col-main, .col-side { grid-column: span 12; }

  .site-footer { margin-top: 64px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 62px; }
  .brand-name { font-size: 18px; }
  .status-inner { min-height: 36px; font-size: 11.5px; }
  .status-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand,
  .footer-grid > .footer-col:last-child { grid-column: span 1; }

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

  .diag-cut { clip-path: polygon(0 0, 100% 18px, 100% 100%, 0 100%); }
}

/* ---------- 14. 降级动效 ---------- */
@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;
  }

  body::before { animation: none !important; }

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

  .panel:hover,
  .btn:hover { transform: none; }
}
