/* =========================================================
   ROR电竞站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================= */

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

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

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

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

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

a { color: inherit; }

/* ---------- 变量 ---------- */
:root {
  --bg-deep: #05080F;
  --bg-night: #0A1220;
  --panel: #111C2E;
  --panel-soft: rgba(17, 28, 46, 0.62);
  --line: #24374F;
  --line-soft: rgba(36, 55, 79, 0.5);

  --violet: #8B5CF6;
  --violet-soft: rgba(139, 92, 246, 0.16);
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, 0.13);
  --orange: #F97316;
  --sand: #C7B99A;
  --green: #34D399;

  --text: #E8EEF7;
  --text-dim: #93A4BC;
  --text-faint: #5F748E;

  --radius: 10px;
  --radius-sm: 7px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "Source Han 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, monospace;

  --shell: 1280px;
  --pad: clamp(16px, 4vw, 44px);
}

/* ---------- 基底 ---------- */
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 赛博竞技场底纹：斜向等高线 + 马头琴弧线抽象 + 双色晕光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(199, 185, 154, 0.055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(67deg, rgba(139, 92, 246, 0.05) 0 1px, transparent 1px 148px),
    radial-gradient(520px 320px at 84% 6%, rgba(34, 211, 238, 0.10), transparent 72%),
    radial-gradient(680px 420px at 6% 2%, rgba(139, 92, 246, 0.13), transparent 74%),
    radial-gradient(900px 620px at 50% 120%, rgba(10, 18, 32, 0.9), transparent 70%);
}

body > * {
  position: relative;
  z-index: 1;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.008em;
  color: var(--text);
}

h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

b, strong { font-weight: 700; }

code, kbd, samp, time, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(139, 92, 246, 0.42);
  color: #fff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--violet);
  color: #05080F;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #05080F;
}

/* ---------- 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.shell-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.col-main { grid-column: 1 / span 7; }
.col-aside { grid-column: 9 / span 4; }
.col-wide { grid-column: 1 / -1; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.97) 0%, rgba(5, 8, 15, 0.88) 100%);
  border-bottom: 1px solid var(--line);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(36, 55, 79, 0.55);
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 100%);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.65);
}

/* 状态戳条 */
.status-strip {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 18, 32, 0.72);
}

.status-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 22px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(52, 211, 153, 0.95);
}

.status-dot.is-info {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.95);
}

.status-dot.is-warn {
  background: var(--orange);
  box-shadow: 0 0 9px rgba(249, 115, 22, 0.95);
}

/* 报头 */
.masthead {
  border-bottom: 1px solid var(--line-soft);
}

.masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
  padding-bottom: 15px;
  text-align: center;
  transition: padding 0.28s ease;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: font-size 0.28s ease;
}

.brand-sep {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1;
  color: var(--violet);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.85);
}

.brand-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2.1vw, 21px);
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

.brand-edition {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-faint);
}

/* 收窄态 */
.site-header.is-condensed .status-strip { display: none; }

.site-header.is-condensed .masthead-inner {
  padding-top: 10px;
  padding-bottom: 9px;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
}

.site-header.is-condensed .brand { gap: 8px; }

.site-header.is-condensed .brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
}

.site-header.is-condensed .brand-sep { font-size: 15px; }

.site-header.is-condensed .brand-sub {
  font-size: 14px;
  letter-spacing: 0.18em;
}

.site-header.is-condensed .brand-edition { letter-spacing: 0.18em; }

/* 栏目行 */
.nav-row {
  border-bottom: 1px solid var(--line);
}

.nav-row-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 11px;
  padding-bottom: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3.2vw, 44px);
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease, background 0.22s ease;
}

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

.nav-list a[aria-current="page"] { color: var(--text); }

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.85);
}

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

/* 悬浮球开关 */
.nav-toggle {
  position: fixed;
  right: clamp(14px, 4vw, 26px);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(139, 92, 246, 0.7);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(17, 28, 46, 0.97), rgba(10, 18, 32, 0.99));
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 26px rgba(139, 92, 246, 0.3);
}

.nav-toggle-bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -6px 0 var(--cyan), 0 6px 0 var(--cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 2px;
  background: var(--violet);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.75);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(118deg, var(--violet) 0%, var(--cyan) 100%);
  color: #05080F;
  font-weight: 900;
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.38);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.btn-ghost:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}

.btn-quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.86) 0%, rgba(5, 8, 15, 1) 100%);
}

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

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.2fr;
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.footer-logo span {
  color: var(--violet);
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
}

.footer-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  max-width: 22em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px);
}

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

.footer-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(34, 211, 238, 0.6);
}

.footer-links .is-static {
  display: inline-block;
  font-size: 14.5px;
  color: var(--text-faint);
  cursor: default;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.contact-item { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.contact-item b {
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--violet);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.footer-note,
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  padding-top: clamp(18px, 3vw, 30px);
}

.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.crumbs-list a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

.crumbs-list [aria-current="page"] { color: var(--text); }

.crumb-sep { color: var(--line); }

/* ---------- 章节 ---------- */
.section { margin-top: clamp(46px, 7vw, 90px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.section-title { margin: 0; }

.section-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--cyan);
}

/* ---------- 正文 ---------- */
.prose { color: var(--text); }

.prose p {
  margin: 0 0 1.15em;
  max-width: 38em;
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 { margin: 1.7em 0 0.6em; }
.prose h3 { margin: 1.5em 0 0.5em; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
  max-width: 38em;
}

.prose li { margin-bottom: 0.4em; }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 28, 46, 0.92) 0%, rgba(10, 18, 32, 0.92) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.panel-body { color: var(--text-dim); }

.panel-body p { max-width: 38em; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
}

.tag-violet {
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, 0.55);
  background: var(--violet-soft);
}

.tag-cyan {
  color: #67E8F9;
  border-color: rgba(34, 211, 238, 0.5);
  background: var(--cyan-soft);
}

.tag-orange {
  color: #FDBA74;
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.13);
}

.tag-green {
  color: #6EE7B7;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.11);
}

/* 故障艺术：仅单次横向位移，不循环闪烁 */
@keyframes ror-glitch-shift {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  45% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.glitch { animation: ror-glitch-shift 0.4s ease-out 1; }

/* ---------- 数值 ---------- */
.data-figure {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.data-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.32);
}

.data-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

/* ---------- 主题筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 0;
}

.filter-btn {
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.55);
}

.filter-btn.is-active {
  color: #DDD6FE;
  border-color: var(--violet);
  background: var(--violet-soft);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.28);
}

[data-filter-item].is-hidden { display: none !important; }

/* ---------- 折叠排查步骤 ---------- */
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 18, 32, 0.66);
  overflow: hidden;
}

.disclosure + .disclosure { margin-top: 10px; }

.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.disclosure > summary::-webkit-details-marker { display: none; }

.disclosure > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
}

.disclosure[open] > summary::after {
  content: "–";
  color: var(--violet);
}

.disclosure-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
}

.disclosure-body p { max-width: 38em; }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(115deg, rgba(199, 185, 154, 0.06) 0 1px, transparent 1px 70px),
    linear-gradient(140deg, rgba(17, 28, 46, 0.95) 0%, rgba(5, 8, 15, 0.98) 100%);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}

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

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- 滚动显现 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .col-main { grid-column: 1 / span 8; }
  .col-aside { grid-column: 1 / span 8; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .status-strip-inner {
    justify-content: center;
    gap: 4px 16px;
  }

  .nav-row { border-bottom: 0; }

  .nav-row-inner {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    max-height: 78vh;
    padding: 26px clamp(20px, 6vw, 34px) calc(30px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.99) 0%, rgba(5, 8, 15, 1) 100%);
    box-shadow: 0 -26px 70px rgba(0, 0, 0, 0.66);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 0.72, 0.24, 1), visibility 0.32s;
  }

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

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

  .nav-list li + li { border-top: 1px solid var(--line-soft); }

  .nav-list a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] { color: var(--cyan); }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
  }

  .nav-toggle { display: flex; }

  body.nav-open { overflow: hidden; }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 8, 15, 0.72);
  }

  .masthead-inner {
    padding-top: 16px;
    padding-bottom: 13px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

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

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
    padding: 15px 16px;
  }
}

/* ---------- 减弱动效 ---------- */
@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;
  }

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

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