/* ==========================================================================
   爱游戏赛事 — /assets/site.css
   夜间赛事控制室外壳：Bento 网格 · 玻璃层 · 电光青 / 荧光橙状态色
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--warm);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #071019;
  --console: #0C1B26;
  --glass: #12343D;
  --cyan: #2DE2E6;
  --orange: #FF7A1A;
  --warm: #F4F1E8;
  --mute: #8CA2AD;
  --jade: #0D5B5B;
  --indigo: #25275C;
  --wine: #5B2140;

  --line: rgba(140, 162, 173, 0.2);
  --line-soft: rgba(140, 162, 173, 0.12);
  --line-cyan: rgba(45, 226, 230, 0.38);
  --glass-bg: rgba(18, 52, 61, 0.62);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --gutter: clamp(18px, 4vw, 56px);
  --shell: 1280px;
  --header-h: 76px;

  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-block: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
  --shadow-lift: 0 28px 60px -34px rgba(0, 0, 0, 0.95);
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.55em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--warm);
}

h1 { letter-spacing: -0.03em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
li { margin-bottom: 0.35em; }

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

a:hover { color: #8AF3F5; }

strong, b { font-weight: 700; }

code, kbd, samp, pre, .mono { font-family: var(--font-mono); }

hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

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

button { font-family: inherit; }

::selection { background: rgba(45, 226, 230, 0.32); color: #FFFFFF; }

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

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

/* ---------- 4. 容器与章节 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 36px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.section-note {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mute);
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.display-xl {
  margin: 0 0 0.35em;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.display-l {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.025em;
}

.display-m {
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: rgba(244, 241, 232, 0.82);
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(90deg, rgba(45, 226, 230, 0.55), rgba(140, 162, 173, 0.16) 45%, transparent);
}

/* ---------- 5. 面包屑 ---------- */
.breadcrumb { padding-block: 20px 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.breadcrumb-item { margin: 0; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-inline: 9px;
  color: rgba(140, 162, 173, 0.45);
}

.breadcrumb-link {
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible { color: var(--cyan); }

.breadcrumb-current { color: var(--warm); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #190a01;
  box-shadow: 0 14px 30px -20px rgba(255, 122, 26, 0.95);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #FF8F3D;
  color: #190a01;
  box-shadow: 0 18px 34px -18px rgba(255, 122, 26, 0.9);
}

.btn-ghost {
  color: var(--warm);
  border-color: rgba(244, 241, 232, 0.26);
  background: rgba(244, 241, 232, 0.04);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--cyan);
  border-color: var(--line-cyan);
  background: rgba(45, 226, 230, 0.08);
}

.btn-cyan {
  background: var(--cyan);
  color: #04141A;
  box-shadow: 0 14px 30px -22px rgba(45, 226, 230, 0.95);
}

.btn-cyan:hover,
.btn-cyan:focus-visible { background: #6FF0F3; color: #04141A; }

.btn-block { width: 100%; }

/* ---------- 7. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04141A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #04141A;
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

/* ---------- 8. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--warm);
  background: linear-gradient(180deg, rgba(7, 16, 25, 0.9) 0%, rgba(7, 16, 25, 0.42) 68%, rgba(7, 16, 25, 0) 100%);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(9, 22, 33, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -28px #000000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 28px);
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 12px var(--gutter);
  min-height: var(--header-h);
}

.header-scanline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(45, 226, 230, 0.75), rgba(255, 122, 26, 0.5), transparent);
  opacity: 0.25;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-scrolled .header-scanline { opacity: 0.7; }

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

/* 品牌锁 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--warm);
  text-decoration: none;
}

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

.brand-mark {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--cyan), var(--jade) 58%, var(--indigo));
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, 0.5), 0 0 22px -8px var(--cyan);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 3px;
  background: var(--ink);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -6px 0 rgba(255, 122, 26, 0.9), 0 6px 0 rgba(244, 241, 232, 0.5);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-descriptor {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--mute);
}

/* 主导航 */
.primary-nav { margin-inline-start: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 241, 232, 0.78);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.nav-link:hover { color: var(--warm); background: rgba(45, 226, 230, 0.1); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(45, 226, 230, 0.12);
  box-shadow: inset 0 0 0 1px rgba(45, 226, 230, 0.32);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: translateX(-50%);
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: 6px;
}

.update-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 52, 61, 0.55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--mute);
  white-space: nowrap;
}

.update-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

.header-cta { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(18, 52, 61, 0.75);
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover { background: rgba(45, 226, 230, 0.12); }

.nav-toggle-bars { position: relative; width: 16px; height: 12px; }

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: 9px; }

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

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

.nav-panel-foot { display: none; }

/* ---------- 9. 头部响应式 ---------- */
@media (max-width: 1180px) {
  .update-chip { display: none; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-actions { margin-inline-start: auto; }

  .primary-nav {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header-h) + 10px);
    max-height: calc(100vh - var(--header-h) - 28px);
    overflow-y: auto;
    margin-inline-start: 0;
    padding: 14px;
    border: 1px solid var(--line-cyan);
    border-radius: var(--radius-l);
    background: rgba(8, 20, 30, 0.985);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.99);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
                visibility 0.22s linear;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

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

  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: var(--radius-s);
    font-size: 16px;
    color: rgba(244, 241, 232, 0.86);
  }

  .nav-link[aria-current="page"] {
    border-radius: var(--radius-s);
    box-shadow: inset 2px 0 0 var(--orange);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-panel-foot {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-panel-foot .update-chip {
    display: inline-flex;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark::before { inset: 6px; }
  .brand-mark::after { left: 10px; right: 10px; }
  .brand-name { font-size: 17px; }
  .brand-descriptor { font-size: 10.5px; letter-spacing: 0.04em; }
  .header-inner { gap: 10px; padding-inline: var(--gutter); }
}

@media (max-width: 420px) {
  .brand-descriptor { display: none; }
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 6vw, 96px);
  color: var(--warm);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(37, 39, 92, 0.55), transparent 62%),
    radial-gradient(90% 80% at 94% 6%, rgba(13, 91, 91, 0.45), transparent 60%),
    var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 226, 230, 0.7), rgba(255, 122, 26, 0.55), transparent);
}

.footer-inner {
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(38px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

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

.brand--footer { gap: 10px; }
.brand--footer .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand--footer .brand-mark::before { inset: 6px; }
.brand--footer .brand-mark::after { left: 9px; right: 9px; }
.brand--footer .brand-name { font-size: 17px; }

.footer-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.footer-summary {
  margin: 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 241, 232, 0.74);
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: rgba(244, 241, 232, 0.74);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact .contact-list { margin: 0; display: grid; gap: 12px; }

.contact-row { display: grid; gap: 2px; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.contact-value {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 241, 232, 0.9);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 20px 28px;
  font-size: 12.5px;
  color: var(--mute);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-note { margin: 0; max-width: 48ch; line-height: 1.6; }

@media (max-width: 1040px) {
  .footer-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
  .footer-contact .contact-list { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 11. 通用内容组件 ---------- */
.card {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--console);
  box-shadow: var(--shadow-block);
}

.card-title {
  margin: 0 0 0.45em;
  font-size: clamp(19px, 2vw, 22px);
  letter-spacing: -0.02em;
}

.card-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(244, 241, 232, 0.8);
}

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

.bento-cell {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--console);
  box-shadow: var(--shadow-block);
}

.bento-cell--glass {
  background: var(--glass-bg);
  border-color: rgba(45, 226, 230, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(140, 162, 173, 0.24);
  border-radius: 999px;
  background: rgba(140, 162, 173, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--warm);
}

.tag--cyan { color: var(--cyan); border-color: rgba(45, 226, 230, 0.42); background: rgba(45, 226, 230, 0.1); }
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 26, 0.42); background: rgba(255, 122, 26, 0.1); }
.tag--wine { color: #FFD9E8; border-color: rgba(91, 33, 64, 0.95); background: rgba(91, 33, 64, 0.78); }
.tag--jade { color: #B8F5EC; border-color: rgba(13, 91, 91, 0.95); background: rgba(13, 91, 91, 0.62); }
.tag--indigo { color: #C9CBFF; border-color: rgba(37, 39, 92, 0.95); background: rgba(37, 39, 92, 0.72); }

.data-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cyan);
}

.data-num--orange { color: var(--orange); }

.data-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

/* 图片容器基础规则（页面阶段放入 img 即可） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--glass), var(--console));
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 16, 25, 0) 44%, rgba(7, 16, 25, 0.74));
}

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

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--mute);
}

/* ---------- 12. 入场显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* ---------- 13. 动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .footer-link:hover,
  .footer-link:focus-visible { transform: none; }
}
