/* ==========================================================================
   oubao-ob.com.cn — 共享样式表 /assets/site.css
   夜间球场数据指挥中心 · 堆叠面板式骨架
   ========================================================================== */

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

* { margin: 0; }

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

body { min-height: 100vh; }

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

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

button { background: none; border: 0; cursor: pointer; }

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

p,
h1,
h2,
h3,
h4 { overflow-wrap: break-word; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061826;
  --ink-2: #0A2131;
  --teal: #0B3B3C;
  --teal-2: #0E4A4B;
  --cyan: #38F0D0;
  --orange: #FF7A2F;
  --pitch: #2FBF71;
  --indigo: #2E2A5C;
  --wine: #6E1F33;
  --paper: #F2F5F4;
  --black: #0B1219;
  --fog: #8FA3AD;

  --line: rgba(242, 245, 244, 0.14);
  --line-soft: rgba(242, 245, 244, 0.08);
  --line-cyan: rgba(56, 240, 208, 0.28);

  --shell: 1240px;
  --stack-shadow: 0 6px 0 rgba(46, 42, 92, 0.55), 0 12px 0 rgba(11, 59, 60, 0.3);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 78% -8%, rgba(56, 240, 208, 0.09), transparent 46%),
    radial-gradient(circle at 4% 82%, rgba(46, 42, 92, 0.48), transparent 52%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  background: var(--cyan);
  color: var(--black);
}

/* ---------- 4. Layout shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .shell { padding-inline: 32px; }
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 400;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 0 0 3px 3px;
  transform: translateY(-130%);
  transition: transform 180ms var(--ease);
}

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

/* ---------- 6. 阅读进度条 ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 130;
  background: rgba(242, 245, 244, 0.06);
  pointer-events: none;
}

.progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 240, 208, 0.65);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 7. 快捷条 ---------- */
.quickbar {
  background: var(--indigo);
  border-bottom: 1px solid rgba(242, 245, 244, 0.1);
  color: rgba(242, 245, 244, 0.82);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.quickbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding-block: 6px;
}

.quickbar__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-weight: 600;
  white-space: nowrap;
}

.quickbar__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pitch);
  animation: qb-pulse 2.4s ease-out infinite;
}

@keyframes qb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); }
}

.quickbar__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.quickbar__list li + li::before {
  content: "/";
  margin-inline: 10px;
  color: rgba(242, 245, 244, 0.28);
}

.quickbar__list a {
  position: relative;
  display: inline-block;
  padding-block: 3px;
  color: rgba(242, 245, 244, 0.84);
  transition: color 160ms ease;
}

.quickbar__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease);
}

.quickbar__list a:hover,
.quickbar__list a:focus-visible { color: var(--cyan); }

.quickbar__list a:hover::after,
.quickbar__list a:focus-visible::after { transform: scaleX(1); }

.quickbar__meta {
  margin-left: auto;
  color: var(--fog);
  font-size: 12px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* ---------- 8. 品牌层 ---------- */
.masthead {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  padding: 4px 5px;
  border: 1px solid var(--line-cyan);
  background: rgba(56, 240, 208, 0.06);
}

.brand__mark i {
  display: block;
  width: 3px;
  font-style: normal;
  background: var(--cyan);
}

.brand__mark i:nth-child(1) { height: 58%; }
.brand__mark i:nth-child(2) { height: 100%; opacity: 0.5; }
.brand__mark i:nth-child(3) { height: 38%; }
.brand__mark i:nth-child(4) { height: 80%; opacity: 0.72; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand__sub {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fog);
}

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

.masthead__note {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--fog);
  white-space: nowrap;
}

.masthead__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

.btn--primary:hover {
  background: #FF9355;
  border-color: #FF9355;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(242, 245, 244, 0.26);
  color: var(--paper);
}

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

.btn--copy {
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  background: transparent;
  border: 1px dashed rgba(56, 240, 208, 0.45);
  color: var(--cyan);
}

.btn--copy:hover {
  background: rgba(56, 240, 208, 0.1);
  border-style: solid;
}

/* ---------- 10. 移动开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(242, 245, 244, 0.26);
  border-radius: 2px;
  color: var(--paper);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars span:nth-child(2) { width: 70%; }

.nav-toggle__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* ---------- 11. 栏目层（桌面） ---------- */
.primary-nav {
  position: relative;
  z-index: 50;
  background: var(--teal);
  border-bottom: 1px solid var(--line-cyan);
  box-shadow: 0 5px 0 rgba(46, 42, 92, 0.35);
}

.primary-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 32px;
}

.nav-group {
  display: flex;
  align-items: center;
}

.nav-group__title { display: none; }

.nav-group--quick,
.nav-group--contact { display: none; }

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

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 15px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(242, 245, 244, 0.76);
  border-left: 3px solid transparent;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease);
}

.nav-list a:hover {
  color: var(--paper);
  background: rgba(6, 24, 38, 0.35);
}

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

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(6, 24, 38, 0.52);
}

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-quick,
.nav-contact { display: flex; flex-direction: column; }

.nav-quick a {
  display: block;
  padding: 12px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(242, 245, 244, 0.82);
  border-left: 3px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-quick a:hover {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.nav-contact { gap: 6px; }

.nav-contact li {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fog);
}

.drawer-head,
.drawer-foot { display: none; }

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  color: var(--paper);
  border: 1px solid rgba(242, 245, 244, 0.25);
  border-radius: 2px;
}

.drawer-close:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-scrim { display: none; }

/* ---------- 12. 抽屉（移动端） ---------- */
@media (max-width: 899px) {
  .masthead__note { display: none; }
  .nav-toggle { display: inline-flex; }

  body.nav-open { overflow: hidden; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    width: min(340px, 88vw);
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--line-cyan);
    border-bottom: 0;
    background: var(--ink-2);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
    transform: translateX(103%);
    transition: transform 260ms var(--ease);
    overflow: hidden;
  }

  .primary-nav[data-open] { transform: translateX(0); }

  .drawer-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--teal);
    border-bottom: 1px solid var(--line-cyan);
  }

  .drawer-head__title {
    font-size: 12px;
    letter-spacing: 0.24em;
    color: var(--cyan);
  }

  .primary-nav__inner {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-group__title {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: var(--fog);
  }

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

  .nav-list a {
    padding: 12px;
    font-size: 17px;
    border-left: 3px solid transparent;
  }

  .nav-list a[aria-current="page"] {
    background: rgba(56, 240, 208, 0.08);
  }

  .nav-quick a { padding: 10px 12px; }

  .drawer-foot {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--ink);
  }

  .drawer-foot .btn { flex: 1 1 0; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 295;
    background: rgba(6, 24, 38, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .nav-scrim[data-open] {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 90px;
  background: var(--ink);
  border-top: 1px solid var(--line-cyan);
  box-shadow: 0 -5px 0 rgba(46, 42, 92, 0.55), 0 -10px 0 rgba(11, 59, 60, 0.35);
}

.footer-stack { display: block; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-block: 34px 26px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fog);
}

.footer-cta { margin-left: auto; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1.45fr; gap: 32px; }
}

.footer-col__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-cyan);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: rgba(242, 245, 244, 0.78);
  transition: color 160ms ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease);
}

.footer-links a:hover { color: var(--cyan); }
.footer-links a:hover::after { transform: scaleX(1); }

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

.footer-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.footer-contact__key {
  flex: 0 0 auto;
  padding: 1px 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fog);
  border: 1px solid rgba(242, 245, 244, 0.18);
}

.footer-contact__val {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(242, 245, 244, 0.9);
}

.copy-note {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--pitch);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-block: 22px 34px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--fog);
}

.footer-legal { color: rgba(242, 245, 244, 0.72); }

.footer-copy {
  margin-left: auto;
  color: rgba(242, 245, 244, 0.6);
}

.footer-note,
.footer-region {
  flex: 1 1 100%;
  max-width: 76ch;
  line-height: 1.7;
}

@media (max-width: 599px) {
  .footer-cta { margin-left: 0; }
  .footer-copy { margin-left: 0; }
}

/* ---------- 14. 堆叠面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 4vw, 40px);
  background: var(--teal);
  border: 1px solid var(--line);
  box-shadow: var(--stack-shadow);
}

.panel--ink { background: var(--ink-2); }
.panel--indigo { background: var(--indigo); }

.panel--paper {
  background: var(--paper);
  color: var(--black);
  border-color: rgba(11, 18, 25, 0.14);
  box-shadow: 0 6px 0 rgba(46, 42, 92, 0.35), 0 12px 0 rgba(11, 59, 60, 0.18);
}

.panel--paper .panel__foot {
  border-top-color: rgba(11, 18, 25, 0.14);
  color: #4A5A64;
}

.panel__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--black);
  background: var(--cyan);
}

.panel__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.panel__body { margin-top: 18px; }

.panel__foot {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

/* ---------- 15. 标签 / 眉标 / 注释 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--paper);
  border: 2px solid rgba(242, 245, 244, 0.28);
  border-radius: 2px;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(56, 240, 208, 0.5);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 47, 0.55);
}

.tag--pitch {
  color: var(--pitch);
  border-color: rgba(47, 191, 113, 0.55);
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--fog);
}

.vert-note {
  writing-mode: vertical-rl;
  padding-left: 8px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--fog);
  border-left: 1px solid rgba(56, 240, 208, 0.32);
}

/* ---------- 16. 数据排版 ---------- */
.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--fog);
}

.meter {
  height: 6px;
  background: rgba(242, 245, 244, 0.12);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  background: var(--cyan);
}

/* ---------- 17. 面包屑 / 正文 / 网格 ---------- */
.breadcrumb { padding-block: 18px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fog);
}

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(143, 163, 173, 0.5);
}

.breadcrumb a { transition: color 160ms ease; }
.breadcrumb a:hover { color: var(--cyan); }

.prose {
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.75;
}

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

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.28;
}

.prose h2 { font-size: clamp(24px, 3.4vw, 34px); }
.prose h3 { font-size: clamp(19px, 2.4vw, 24px); }

.prose ul { display: grid; gap: 0.5em; }

.prose li {
  position: relative;
  padding-left: 1.1em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background: var(--cyan);
}

.prose a {
  color: var(--cyan);
  box-shadow: inset 0 -1px 0 rgba(56, 240, 208, 0.4);
  transition: box-shadow 160ms ease;
}

.prose a:hover { box-shadow: inset 0 -2px 0 var(--cyan); }

.prose strong { font-weight: 700; color: var(--paper); }

.prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--orange);
  color: var(--fog);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 860px) {
  .grid--split { grid-template-columns: 7fr 5fr; align-items: start; }
  .grid--split-reverse { grid-template-columns: 5fr 7fr; align-items: start; }
}

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

/* ---------- 18. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--ink-2);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(56, 240, 208, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 70%, rgba(47, 191, 113, 0.3) 0 2px, transparent 3px),
    linear-gradient(transparent 49.5%, rgba(242, 245, 244, 0.12) 49.5% 50.5%, transparent 50.5%),
    repeating-linear-gradient(90deg, rgba(56, 240, 208, 0.07) 0 1px, transparent 1px 64px);
  border: 1px solid rgba(242, 245, 244, 0.16);
  box-shadow: inset 0 0 0 4px rgba(6, 24, 38, 0.35);
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: rgba(6, 24, 38, 0.84);
  color: var(--fog);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ---------- 19. 进场显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

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

/* ---------- 20. 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .quickbar__pulse { animation: none; }

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

  .primary-nav { transition: none; }
}
