/* =========================================================
   8博体育最新 · 夜场技术台
   共享外壳样式 /assets/site.css
   ========================================================= */

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

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

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

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; }

a { color: inherit; }

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

/* ---------- tokens ---------- */
:root {
  --c-ink: #0A1F1A;
  --c-ink-2: #10302A;
  --c-paper: #EFE7D6;
  --c-paper-2: #D9CFBB;
  --c-cyan: #35F0CE;
  --c-orange: #FF5A33;
  --c-amber: #F3B03C;
  --c-grid: #1B2B27;
  --c-text: #E6F0EA;
  --c-muted: #8FA69D;
  --c-ink-text: #0A1F1A;

  --line-dark: rgba(53, 240, 206, 0.16);
  --line-mid: rgba(53, 240, 206, 0.30);
  --line-paper: rgba(10, 31, 26, 0.16);

  --shell-w: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --font-display: "Oswald", "Archivo Narrow", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

/* ---------- base ---------- */
body {
  background-color: var(--c-ink);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

#main-content { scroll-margin-top: 132px; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  z-index: 200;
  transform: translate(-50%, -180%);
  padding: 0.6rem 1.1rem;
  background-color: var(--c-cyan);
  color: var(--c-ink-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

hr {
  border: 0;
  border-top: 1px solid var(--c-grid);
}

/* ---------- header : 吸顶壳 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-image: linear-gradient(180deg, rgba(10, 31, 26, 0.98), rgba(10, 31, 26, 0.88));
  border-bottom: 1px solid var(--c-grid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.24s var(--ease);
}

.site-header.is-stuck { border-bottom-color: var(--line-mid); }

/* ---------- 状态台 ---------- */
.status-rail {
  background-color: rgba(16, 48, 42, 0.55);
  border-bottom: 1px solid var(--c-grid);
}

.status-rail__inner {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-rail__title {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--c-muted);
}

.status-rail__pulse {
  width: 6px;
  height: 6px;
  background-color: var(--c-cyan);
  border-radius: 0;
  animation: statusPulse 2.4s var(--ease) infinite;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(53, 240, 206, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(53, 240, 206, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 240, 206, 0); }
}

.status-rail__list {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.status-rail__list::-webkit-scrollbar { display: none; }

.status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  border-left: 1px solid var(--c-grid);
}

.status-chip:first-child { border-left: 0; }

.status-chip--ok      { --dot: var(--c-cyan); }
.status-chip--alert   { --dot: var(--c-orange); }
.status-chip--pending { --dot: var(--c-amber); }

.status-chip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.status-chip__link::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: var(--dot, var(--c-cyan));
  box-shadow: 0 0 6px var(--dot, var(--c-cyan));
}

.status-chip__link:hover {
  color: var(--dot, var(--c-cyan));
  background-color: rgba(53, 240, 206, 0.07);
}

/* ---------- 悬浮胶囊导航 ---------- */
.nav-shell { padding: 0 var(--gutter); }

.nav-shell__inner {
  position: relative;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0.45rem 0.5rem 0.45rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  background-color: rgba(16, 48, 42, 0.88);
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  margin-block: 0.55rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-mid);
  color: var(--c-cyan);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 -3px 0 0 var(--c-orange);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--c-muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background-color: transparent;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--c-cyan);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: var(--c-cyan);
  transition: transform 0.2s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

.primary-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav__link {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.primary-nav__link:hover {
  color: var(--c-cyan);
  background-color: rgba(53, 240, 206, 0.08);
}

.primary-nav__link[aria-current="page"] {
  color: var(--c-ink-text);
  background-color: var(--c-cyan);
  font-weight: 600;
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1.05rem;
  background-color: var(--c-orange);
  border: 1px solid var(--c-orange);
  border-radius: 999px;
  color: var(--c-ink-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-cta:hover {
  background-color: transparent;
  color: var(--c-orange);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 移动导航 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .nav-shell__inner {
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    border-radius: 999px;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: min(72vh, 540px);
    overflow-y: auto;
    padding: 0.5rem;
    background-color: var(--c-ink-2);
    border: 1px solid var(--line-mid);
    border-radius: 0;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  }

  .primary-nav[data-open="true"] {
    display: flex;
    animation: navDrop 0.2s var(--ease) both;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__item { border-bottom: 1px solid var(--c-grid); }

  .primary-nav__link {
    display: block;
    padding: 0.85rem 0.75rem;
    border-radius: 0;
    font-size: 15px;
  }

  .primary-nav__link[aria-current="page"] {
    background-color: rgba(53, 240, 206, 0.12);
    color: var(--c-cyan);
    box-shadow: inset 3px 0 0 0 var(--c-cyan);
  }

  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 0;
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .status-rail__title { display: none; }
  .brand__tag { display: none; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(2rem, 6vw, 5rem);
  background-color: var(--c-ink);
  border-top: 1px solid var(--c-grid);
}

.footer-shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(110px, 0.7fr)) minmax(220px, 1.3fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding-right: 1rem;
  border-right: 1px solid var(--c-grid);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-text);
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-mid);
  box-shadow: inset 0 -3px 0 0 var(--c-orange);
  color: var(--c-cyan);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-brand__note {
  max-width: 26em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list { display: flex; flex-direction: column; }

.contact-list__row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-grid);
}

.contact-list__row dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.contact-list__row dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  word-break: break-word;
}

.footer-contact__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-muted);
}

.footer-base {
  background-color: rgba(16, 48, 42, 0.4);
  border-top: 1px solid var(--c-grid);
}

.footer-base__inner {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.footer-base__legal { color: var(--c-text); }
.footer-base__meta { color: var(--c-cyan); }

@media (max-width: 1080px) {
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-lead {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--c-grid);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 620px) {
  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-base__inner { justify-content: flex-start; }
}

/* ---------- 容器与分区 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }

.section--ink { background-color: var(--c-ink); }

.section--ink2 {
  background-color: var(--c-ink-2);
  border-block: 1px solid var(--c-grid);
}

.section--paper {
  background-color: var(--c-paper);
  color: var(--c-ink-text);
}

.section--paper .display-1,
.section--paper .display-2,
.section--paper .serif-quote { color: var(--c-ink-text); }

.section--paper .lede { color: rgba(10, 31, 26, 0.72); }

.section--paper .eyebrow { color: #0E7A66; }

.section--paper .muted { color: rgba(10, 31, 26, 0.62); }

/* ---------- 文本层级 ---------- */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
}

.lede {
  max-width: 42em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--c-muted);
}

.serif-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.65;
  color: var(--c-text);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.muted { color: var(--c-muted); }

.signal-text { color: var(--c-orange); }

/* ---------- 数据 ---------- */
.data-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--c-cyan);
}

.data-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--c-muted);
}

/* ---------- 卡片与标签 ---------- */
.card {
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background-color: var(--c-ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--c-cyan);
  transform: translateY(-2px);
}

.card--paper {
  background-color: var(--c-paper);
  border-color: var(--line-paper);
  color: var(--c-ink-text);
}

.tag {
  display: inline-block;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.tag--cyan {
  color: var(--c-cyan);
  border-color: rgba(53, 240, 206, 0.45);
}

.tag--signal {
  color: var(--c-orange);
  border-color: rgba(255, 90, 51, 0.5);
}

.tag--amber {
  color: var(--c-amber);
  border-color: rgba(243, 176, 60, 0.5);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  background-color: transparent;
  border: 1px solid var(--line-mid);
  border-radius: 2px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background-color 0.16s var(--ease), transform 0.16s var(--ease);
}

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

.btn--primary {
  background-color: var(--c-cyan);
  border-color: var(--c-cyan);
  color: var(--c-ink-text);
  font-weight: 600;
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--c-cyan);
}

.btn--signal {
  background-color: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-ink-text);
  font-weight: 600;
}

.btn--signal:hover {
  background-color: transparent;
  color: var(--c-orange);
  border-color: var(--c-orange);
}

.btn--ghost {
  border-color: var(--line-dark);
  color: var(--c-muted);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}

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

.section--paper .btn {
  border-color: var(--line-paper);
  color: var(--c-ink-text);
}

.section--paper .btn:hover {
  border-color: #0E7A66;
  color: #0E7A66;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--c-grid);
}

.breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
}

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

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

/* ---------- 正文 ---------- */
.prose {
  max-width: 42em;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: inherit;
}

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

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.6em;
}

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

.section--paper .prose a { color: #0E7A66; }

.prose ul,
.prose ol {
  padding-left: 1.2em;
  list-style: none;
}

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

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

/* ---------- 栅格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}

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

.bleed-right {
  margin-right: calc(var(--gutter) * -1);
}

@media (max-width: 900px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bleed-right { margin-right: 0; }
}

/* ---------- 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--c-ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 0;
}

.media-frame img,
.media-frame > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.06) brightness(0.9);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(125deg, rgba(10, 31, 26, 0.6), rgba(10, 31, 26, 0) 58%);
  pointer-events: none;
}

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

.media-frame__caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

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

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

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

  .status-rail__pulse { animation: none; }

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

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