/* ==========================================================================
   易倍体育官方版 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

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

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

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

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

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

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

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

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

table { border-collapse: collapse; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 色板 */
  --ink: #0B1F1A;
  --carbon: #121417;
  --slate: #1E3B33;
  --paper: #F4F1E9;
  --paper-ink: #12100C;
  --lime: #C6FF3D;
  --amber: #E08A2B;
  --coral: #FF6B5A;
  --mute: #8C9A93;
  --signal: #4FD8C4;
  --edge: #D8D2C4;
  --on-lime: #08201A;
  --on-signal: #05231D;
  --paper-link: #0A5B4E;

  /* 线条 */
  --line: rgba(244, 241, 233, 0.12);
  --line-strong: rgba(244, 241, 233, 0.22);
  --line-soft: rgba(244, 241, 233, 0.07);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;

  /* 尺度 */
  --w-page: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --r-pill: 999px;
  --r-card: 18px;
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(79, 216, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 196, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.6vw, 38px); }
h3 { font-size: clamp(19px, 2.4px + 1vw, 24px); }
h4 { font-size: 17px; }

p { text-wrap: pretty; }

::selection {
  background: var(--lime);
  color: var(--on-lime);
}

/* ---------- 4. 工具类 ---------- */
.sr-only {
  position: absolute;
  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;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 92px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--mute);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime);
  flex: 0 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 2vw, 18px);
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section-head__num {
  flex: 0 0 auto;
  padding-top: 0.55em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 1.05em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.85;
  color: rgba(244, 241, 233, 0.88);
}

.chapter-band {
  padding-block: clamp(20px, 3vw, 32px);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(79, 216, 196, 0.12), transparent 58%),
    var(--carbon);
}

/* ---------- 5. 按钮 / 胶囊 / 徽章 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

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

.btn--primary {
  --btn-bg: var(--lime);
  --btn-fg: var(--on-lime);
  --btn-bd: var(--lime);
  font-weight: 700;
}

.btn--primary:hover {
  box-shadow: 0 12px 28px -16px rgba(198, 255, 61, 0.9);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bd: var(--signal);
  --btn-fg: var(--signal);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 154, 147, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
}

.pill-row::-webkit-scrollbar { height: 4px; }
.pill-row::-webkit-scrollbar-thumb {
  background: rgba(140, 154, 147, 0.35);
  border-radius: 4px;
}

.pill {
  flex: 0 0 auto;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(244, 241, 233, 0.74);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.pill:hover {
  color: var(--paper);
  border-color: var(--signal);
}

.pill[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--on-signal);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--mute);
  background: rgba(18, 20, 23, 0.35);
}

.badge--live { color: var(--lime); }
.badge--legacy { color: var(--amber); }
.badge--alert { color: var(--coral); }
.badge--info { color: var(--signal); }

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
}

.progress {
  height: 3px;
  background: rgba(79, 216, 196, 0.12);
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--lime));
  transition: width 0.12s linear;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; }

/* 更新条 */
.update-bar {
  max-height: 240px;
  overflow: hidden;
  background: var(--carbon);
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  transition:
    max-height 0.36s var(--ease),
    opacity 0.26s ease,
    border-color 0.3s ease;
}

.site-header[data-condensed] .update-bar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.update-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: 9px var(--gutter);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.update-bar__stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}

.update-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16);
  flex: 0 0 auto;
}

.update-bar__cell { display: flex; align-items: center; gap: 6px; }

.update-bar__countdown {
  color: var(--lime);
  letter-spacing: 0.08em;
}

/* 悬浮胶囊 */
.nav-shell {
  padding: 10px var(--gutter) 12px;
  transition: padding 0.3s var(--ease), background-color 0.3s ease;
}

.site-header[data-condensed] .nav-shell {
  padding-top: 8px;
  padding-bottom: 10px;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(11, 31, 26, 0.62) 68%, rgba(11, 31, 26, 0) 100%);
}

.nav-shell__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: 8px 10px 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(18, 20, 23, 0.86);
  box-shadow:
    0 22px 44px -30px #000,
    inset 0 1px 0 rgba(244, 241, 233, 0.06);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: padding 0.3s var(--ease), border-color 0.3s ease;
}

.site-header[data-condensed] .nav-shell__inner {
  border-color: rgba(79, 216, 196, 0.28);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--paper);
}

.brand__bar {
  width: 5px;
  height: 19px;
  border-radius: 1px;
  background: var(--lime);
  transition: height 0.25s var(--ease);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand__tag {
  padding: 4px 6px 3px;
  border: 1px solid rgba(224, 138, 43, 0.55);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--amber);
}

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

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__list a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: rgba(244, 241, 233, 0.74);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.primary-nav__list a:hover {
  color: var(--paper);
  background: rgba(244, 241, 233, 0.07);
}

.primary-nav__list a[aria-current="page"] {
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
}

/* 右侧行动区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(244, 241, 233, 0.05);
  color: var(--paper);
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: 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); }

@media (max-width: 1080px) {
  .primary-nav__list a { padding: 8px 10px; font-size: 14px; }
  .nav-shell__inner { padding-left: 16px; }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }

  .nav-actions__cta { display: none; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--carbon);
    box-shadow: 0 32px 64px -32px #000;
  }

  .primary-nav[data-open] {
    display: block;
    animation: nav-drop 0.22s var(--ease) both;
  }

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

  .primary-nav__list a {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .update-bar__inner { font-size: 11.5px; gap: 2px 18px; }
}

@media (max-width: 560px) {
  .nav-shell__inner { padding: 7px 8px 7px 14px; }
  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 9px; padding: 3px 5px 2px; }
  .brand__bar { height: 16px; width: 4px; }
  .nav-toggle { width: 36px; height: 36px; }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 9vw, 110px);
  border-top: 1px solid var(--line);
  background: var(--carbon);
}

.footer-cta {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(79, 216, 196, 0.12), transparent 58%),
    var(--ink);
}

.footer-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: clamp(26px, 5vw, 46px) var(--gutter);
}

.footer-cta__line {
  max-width: 24ch;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.5;
  color: var(--paper);
}

.footer-cta__line em {
  font-style: normal;
  color: var(--lime);
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-body {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 52px);
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 58px) var(--gutter) clamp(26px, 4vw, 42px);
}

.footer-brand__line {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(244, 241, 233, 0.62);
}

.footer-brand__meta {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--signal);
}

.brand--footer .brand__name { font-size: 23px; }
.brand--footer .brand__bar { height: 22px; }

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--mute);
}

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

.footer-col a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 241, 233, 0.72);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-col a:hover {
  color: var(--signal);
  transform: translateX(2px);
}

.footer-contact {
  border-top: 1px solid var(--line);
}

.footer-contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 30px;
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: clamp(22px, 3vw, 32px) var(--gutter);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(244, 241, 233, 0.8);
}

.footer-contact__k {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--mute);
}

.footer-contact__note {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--mute);
}

.footer-base {
  border-top: 1px solid var(--line);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
}

.footer-legal { max-width: 62ch; }

.footer-sign { color: rgba(244, 241, 233, 0.6); }

.to-top {
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.to-top:hover {
  color: var(--lime);
  border-color: var(--lime);
}

@media (max-width: 900px) {
  .footer-body {
    grid-template-columns: 1fr 1fr;
    gap: 30px clamp(20px, 5vw, 40px);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-body { grid-template-columns: 1fr; }
  .footer-cta__actions .btn { flex: 1 1 auto; }
  .footer-base__inner { justify-content: flex-start; }
}

/* ---------- 8. 面包屑 / 卡片 / 纸面 / 图片容器 ---------- */
.crumb {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding: 18px var(--gutter) 0;
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.crumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumb li + li::before {
  content: "/";
  color: rgba(140, 154, 147, 0.45);
}

.crumb a {
  color: var(--mute);
  transition: color 0.18s ease;
}

.crumb a:hover { color: var(--signal); }

.crumb [aria-current="page"] { color: var(--paper); }

.card {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--slate);
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.card__label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--mute);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 216, 196, 0.34);
  }
}

.prose {
  padding: clamp(24px, 4.5vw, 52px);
  border: 1px solid rgba(18, 16, 12, 0.16);
  border-radius: 4px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow:
    6px 6px 0 rgba(216, 210, 196, 0.32),
    12px 12px 0 rgba(216, 210, 196, 0.14);
}

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

.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--paper-ink);
}

.prose h3 {
  margin-top: 1.7em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--paper-ink);
}

.prose p,
.prose li {
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(18, 16, 12, 0.86);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }

.prose a {
  color: var(--paper-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(140deg, var(--slate), var(--carbon));
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 216, 196, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 196, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.img-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.96);
}

.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--wide { aspect-ratio: 21 / 9; }

.img-frame__tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(11, 31, 26, 0.82);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

/* ---------- 9. 滚动显隐协议 ---------- */
[data-reveal] {
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

html[data-reveal-ready] [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- 10. 焦点与可访问性 ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible,
.pill:focus-visible,
.to-top:focus-visible {
  outline-offset: 2px;
}

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

  html[data-reveal-ready] [data-reveal]:not([data-revealed]) {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover,
  .footer-col a:hover {
    transform: none;
  }
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }
}
