/* ============================================================
   四季体育 · 共享样式 /assets/site.css
   外壳：双层头部 + 四栏页脚 + 通用组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

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

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

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

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

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.25; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1F17;
  --ink-deep: #071510;
  --paper: #F7F4EC;
  --spring: #2FBF71;
  --summer: #FF7A1A;
  --autumn: #F2B705;
  --winter: #1F6FEB;
  --flare: #D7FF3F;
  --text-dark: #2A1F17;
  --grid: #1E3A2C;
  --muted: #8FA79A;
  --glass: rgba(247, 244, 236, 0.08);
  --line-paper: rgba(42, 31, 23, 0.14);

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

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --mid: 240ms;

  --shell: min(100% - 2.5rem, 1180px);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

p { text-wrap: pretty; }

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

.visually-hidden {
  position: absolute;
  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;
}

.container {
  width: var(--shell);
  margin-inline: auto;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -200%;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  background: var(--flare);
  color: var(--ink-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus {
  top: 0.6rem;
}

/* ---------- 5. 双层头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--grid);
}

/* 5.1 品牌层 */
.header-top {
  background: var(--ink-deep);
  border-bottom: 1px solid var(--grid);
}

.header-top__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 56px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(4, 4px);
  gap: 3px;
  align-items: end;
  height: 22px;
  flex: none;
}

.brand__mark i {
  display: block;
  width: 4px;
  border-radius: 1px;
}

.brand__mark i:nth-child(1) { height: 60%;  background: var(--spring); }
.brand__mark i:nth-child(2) { height: 100%; background: var(--summer); }
.brand__mark i:nth-child(3) { height: 78%;  background: var(--autumn); }
.brand__mark i:nth-child(4) { height: 44%;  background: var(--winter); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__wordmark {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--paper);
}

.brand__tagline {
  display: none;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 5.2 赛季进度条 */
.season-meter {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin-left: auto;
  flex: 0 1 200px;
  min-width: 108px;
}

.season-meter__seg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.season-meter__bar {
  position: relative;
  display: block;
  height: 8px;
  background: rgba(247, 244, 236, 0.09);
  overflow: hidden;
}

.season-meter__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.season-meter__seg--spring .season-meter__fill { background: var(--spring); }
.season-meter__seg--summer .season-meter__fill { background: var(--summer); }
.season-meter__seg--autumn .season-meter__fill { background: var(--autumn); }
.season-meter__seg--winter .season-meter__fill { background: var(--winter); }

.season-meter__label {
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* 5.3 栏目层 */
.header-bar {
  background: var(--ink);
}

.header-bar__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  min-height: 52px;
  padding-block: 0.4rem;
}

.nav-toggle {
  display: inline-flex;
  order: 1;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  background: transparent;
  border: 1px solid var(--grid);
  color: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-toggle__text {
  line-height: 1;
}

.primary-nav {
  display: none;
  order: 3;
  flex: 0 0 100%;
  padding-top: 0.3rem;
  border-top: 1px solid var(--grid);
}

.primary-nav[data-open] {
  display: block;
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 0 0.4rem;
  list-style: none;
}

.primary-nav__link {
  position: relative;
  display: block;
  padding: 0.62rem 0.65rem;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--flare);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--mid) var(--ease), background-color var(--mid) var(--ease);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  color: var(--flare);
}

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

.primary-nav__link[aria-current="page"] {
  color: var(--flare);
  font-weight: 700;
}

.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--summer);
}

/* 5.4 联赛切换条 */
.league-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.league-strip__label {
  flex: none;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.league-strip__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0.2rem 0.15rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.league-strip__list::-webkit-scrollbar { display: none; }

.league-chip {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--grid);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}

.league-chip:hover,
.league-chip:focus-visible {
  background: var(--flare);
  border-color: var(--flare);
  color: var(--ink-deep);
}

/* 5.5 桌面端展开 */
@media (min-width: 980px) {
  .header-top__inner {
    flex-wrap: nowrap;
    min-height: 64px;
    gap: 1.25rem;
  }

  .brand__wordmark { font-size: 1.2rem; }
  .brand__tagline { display: block; }

  .season-meter {
    flex: 0 1 300px;
    min-width: 140px;
  }

  .header-bar__inner {
    flex-wrap: nowrap;
    min-height: 54px;
    padding-block: 0.3rem;
  }

  .nav-toggle { display: none; }

  .primary-nav {
    display: block;
    order: 0;
    flex: 0 1 auto;
    padding-top: 0;
    border-top: 0;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding-bottom: 0;
  }

  .primary-nav__link {
    padding: 0.5rem 0.7rem;
  }

  .league-strip {
    order: 0;
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
  }
}

@media (min-width: 1200px) {
  .primary-nav__link { font-size: 0.97rem; }
}

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

.site-footer__inner {
  width: var(--shell);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

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

.footer-col__title {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col__title::before {
  content: "";
  width: 14px;
  height: 3px;
  flex: none;
  background: linear-gradient(90deg, var(--spring) 0 25%, var(--summer) 25% 50%, var(--autumn) 50% 75%, var(--winter) 75% 100%);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: var(--flare);
}

.footer-note {
  font-size: 0.84rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 34ch;
}

.footer-note + .footer-note { margin-top: 0.6rem; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.1rem;
  font-size: 0.9rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--flare);
  border-bottom-color: var(--flare);
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-block: 0.35rem;
  border-bottom: 1px dashed var(--grid);
}

.footer-contact__row:last-child { border-bottom: 0; }

.footer-contact__row dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-contact__row dd {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.footer-versions {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.footer-versions li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.28rem;
  border-bottom: 1px dashed var(--grid);
  font-size: 0.88rem;
}

.footer-versions__k {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-filing {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem 1.4rem;
  border-top: 1px solid var(--grid);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-base__copy,
.footer-base__meta {
  line-height: 1.7;
}

.footer-base__meta {
  letter-spacing: 0.14em;
}

.season-bar {
  display: block;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--spring) 0 25%,
    var(--summer) 25% 50%,
    var(--autumn) 50% 75%,
    var(--winter) 75% 100%
  );
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  }

  .footer-links { grid-template-columns: 1fr; }
}

/* ---------- 7. 章节与标题 ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

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

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

.section--dark a { color: var(--flare); }

.section-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head__kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-head__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--summer);
}

.section-head__title {
  font-size: clamp(1.55rem, 3.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.28;
}

.annotation-v {
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.section--dark .divider { background: var(--grid); }

/* ---------- 8. 网格与内容层 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 640px) and (max-width: 859px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid-lines {
  background-image:
    linear-gradient(to right, rgba(30, 58, 44, 0.85) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 44, 0.85) 1px, transparent 1px);
  background-size: 88px 88px;
}

.panel {
  padding: clamp(1.15rem, 2.5vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line-paper);
}

.panel--dark {
  background: var(--ink);
  border-color: var(--grid);
  color: var(--paper);
}

.panel--glass {
  background: var(--glass);
  border: 1px solid rgba(247, 244, 236, 0.16);
  color: var(--paper);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.prose {
  max-width: 68ch;
}

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

.prose h2,
.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

/* ---------- 9. 数据卡 ---------- */
.stat {
  position: relative;
  padding: 1.15rem 1.25rem 1.3rem;
  background: var(--ink);
  border: 1px solid var(--grid);
  color: var(--paper);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--spring);
}

.stat--summer::before { background: var(--summer); }
.stat--autumn::before { background: var(--autumn); }
.stat--winter::before { background: var(--winter); }

.stat__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.stat__value {
  display: block;
  margin-block: 0.3rem 0.15rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--flare);
}

.stat__meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--mid) var(--ease),
              color var(--mid) var(--ease),
              border-color var(--mid) var(--ease);
}

.btn--primary {
  background: var(--summer);
  color: var(--ink-deep);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--flare);
}

.btn--ghost {
  background: transparent;
  border-color: var(--grid);
  color: var(--paper);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--flare);
  color: var(--flare);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-paper);
  color: var(--text-dark);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--summer);
  color: var(--summer);
}

.btn--link {
  padding: 0.2rem 0;
  background: none;
  border: 0;
  color: inherit;
  border-bottom: 1px solid currentColor;
}

.btn--link:hover,
.btn--link:focus-visible {
  color: var(--summer);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumbs {
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "/";
  opacity: 0.5;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--summer);
}

/* ---------- 12. 标签筛选 ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-paper);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              background-color var(--fast) var(--ease);
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--summer);
  color: var(--summer);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- 13. 页签 ---------- */
.tabs {
  display: block;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line-paper);
}

.section--dark .tab-list { border-bottom-color: var(--grid); }

.tab {
  padding: 0.55rem 0.9rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.tab:hover,
.tab:focus-visible {
  color: var(--summer);
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--flare);
  color: var(--flare);
}

.tab-panel {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.tab-panel[hidden] { display: none; }

/* ---------- 14. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--grid);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(247, 244, 236, 0.05) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.7;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(11, 31, 23, 0.16) 0 1px,
    transparent 1px 3px
  );
}

.media-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(to top, rgba(11, 31, 23, 0.9), rgba(11, 31, 23, 0));
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

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

html[data-reveal="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}

html[data-reveal="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 减少动效 ---------- */
@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[data-reveal="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
