/* ==========================================================================
   bet365赛场 · 共享样式 /assets/site.css
   视觉系统：深墨绿球场底 + 荧光黄绿刻度 + 暖橙数据标注 + 冷白正文
   形状：2px 粗边框、6px 硬阴影、2px 圆角
   ========================================================================== */

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

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --court: #0B2B26;
  --night: #061A17;
  --lime: #C8F04A;
  --orange: #F2793B;
  --orange-deep: #B4501F;
  --paper: #F3F7F4;
  --gray: #9AAFA6;
  --indigo: #142F45;
  --wine: #5E2233;
  --white: #FFFFFF;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "HarmonyOS Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Sarasa Mono SC", monospace;

  --wrap: 1360px;
  --gutter: 32px;
  --gap: 24px;
  --radius: 2px;
  --dur: 140ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--court);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(38px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }

p { max-width: 42em; }

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

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- 4. 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--court);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top var(--dur) ease-out;
}

.skip-link:focus { top: 10px; }

/* ---------- 5. 容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 32px;
  }
  .split--4-8 > .split__aside { grid-column: span 4; }
  .split--4-8 > .split__main { grid-column: span 8; }
  .split--3-9 > .split__aside { grid-column: span 3; }
  .split--3-9 > .split__main { grid-column: span 9; }
  .split--5-7 > .split__aside { grid-column: span 5; }
  .split--5-7 > .split__main { grid-column: span 7; }
  .split--7-5 > .split__aside { grid-column: span 7; }
  .split--7-5 > .split__main { grid-column: span 5; }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(243, 247, 244, 0.18);
}

.section-head__title { font-size: 34px; }
.section-head__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.rule {
  height: 2px;
  border: 0;
  background: rgba(243, 247, 244, 0.16);
  margin: 32px 0;
}

/* ---------- 6. 头部：双层信息导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--court);
}

/* 6.1 上层品牌条 */
.brand-bar {
  background: var(--court);
  border-bottom: 2px solid rgba(243, 247, 244, 0.14);
  overflow: hidden;
  max-height: 140px;
  transition: max-height 180ms ease-out, opacity var(--dur) ease-out, border-color var(--dur) ease-out;
}

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

.brand-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 14px;
}

.brand-bar__sig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  max-width: none;
}

.brand-bar__mark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: color var(--dur) ease-out;
}

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

.brand-bar__tag {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

.brand-bar__stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  max-width: none;
}

.brand-bar__stamp .mono {
  font-size: 13px;
  color: var(--orange);
}

.brand-bar__cta { display: flex; margin-left: 4px; max-width: none; }

/* 6.2 下层栏目导航 */
.nav-bar {
  position: relative;
  background: var(--night);
  border-bottom: 2px solid rgba(243, 247, 244, 0.14);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.primary-nav { display: block; width: 100%; }

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.primary-nav__item { display: flex; }

.primary-nav__link {
  position: relative;
  display: block;
  padding: 18px 16px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(243, 247, 244, 0.76);
  transition: color var(--dur) ease-out;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) ease-out;
}

.primary-nav__link:hover { color: var(--paper); }
.primary-nav__link:hover::after { transform: scaleX(0.45); }
.primary-nav__link[aria-current="page"] { color: var(--paper); }
.primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 6.3 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-left: auto;
  border: 2px solid rgba(243, 247, 244, 0.35);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--dur) ease-out, color var(--dur) ease-out;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: top var(--dur) ease-out, transform var(--dur) ease-out;
}

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

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

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

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--night);
    border-top: 2px solid var(--lime);
    border-bottom: 2px solid rgba(243, 247, 244, 0.14);
    max-height: 70vh;
    overflow-y: auto;
  }

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

  .primary-nav__list { flex-direction: column; flex-wrap: nowrap; padding: 6px 0; }
  .primary-nav__item { display: block; }

  .primary-nav__link {
    padding: 16px 20px 18px;
    font-size: 20px;
    border-bottom: 1px solid rgba(243, 247, 244, 0.1);
  }

  .primary-nav__link::after { left: 20px; right: auto; bottom: 8px; width: 34px; transform-origin: left center; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: block; max-height: none; border: 0; }
}

@media (max-width: 767px) {
  .brand-bar__inner { flex-wrap: nowrap; gap: 8px 14px; padding-block: 10px; }
  .brand-bar__tag { display: none; }
  .brand-bar__cta { display: none; }
  .brand-bar__stamp { margin-left: auto; }
  .brand-bar__mark { font-size: 21px; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--night);
  color: var(--paper);
  border-top: 2px solid var(--lime);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 32px;
  padding-block: 64px 48px;
}

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

.footer-mark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: none;
}

.footer-tag {
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray);
  max-width: none;
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 20px;
}

.footer-nav__list a {
  font-size: 14px;
  color: rgba(243, 247, 244, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease-out, border-color var(--dur) ease-out;
}

.footer-nav__list a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.spec-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 247, 244, 0.12);
  font-size: 13.5px;
}

.spec-list__row dt { color: var(--gray); }
.spec-list__row dd { color: var(--paper); font-size: 14px; }

.footer-text {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(243, 247, 244, 0.82);
  max-width: 34em;
}

.footer-text--warn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--orange);
}

.footer-text--note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--gray);
}

.contact-list__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 247, 244, 0.12);
}

.contact-list__item--wide { align-items: flex-start; }

.contact-list__label {
  min-width: 38px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-list__value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: var(--paper);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 20px 32px;
  border-top: 1px solid rgba(243, 247, 244, 0.14);
  font-size: 12.5px;
  color: var(--gray);
}

.footer-base p { max-width: none; }
.footer-base__legal { font-family: var(--font-mono); letter-spacing: 0.06em; }

.footer-base__links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-base__links a {
  color: rgba(243, 247, 244, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease-out, border-color var(--dur) ease-out;
}

.footer-base__links a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.footer-base__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid rgba(243, 247, 244, 0.3);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--dur) ease-out, color var(--dur) ease-out, transform var(--dur) ease-out;
}

.footer-base__top:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
}

@media (max-width: 599px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px 36px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-base__links { margin-left: 0; }
  .footer-base__top { align-self: flex-start; }
}

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative;
  background: var(--paper);
  color: var(--court);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--night);
  padding: 24px;
  transition: transform var(--dur) ease-out, box-shadow var(--dur) ease-out;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: 6px 8px 0 var(--night);
}

.card--flat { box-shadow: none; }
.card--flat:hover,
.card--flat:focus-within { transform: none; box-shadow: 2px 2px 0 var(--night); }

.card--ink {
  background: var(--court);
  color: var(--paper);
  border-color: rgba(243, 247, 244, 0.42);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.card--ink:hover,
.card--ink:focus-within { box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.62); }

.card--indigo {
  background: var(--indigo);
  color: var(--paper);
  border-color: rgba(243, 247, 244, 0.32);
  box-shadow: 6px 6px 0 var(--night);
}

.card--wine {
  background: var(--wine);
  color: var(--paper);
  border-color: rgba(243, 247, 244, 0.32);
  box-shadow: 6px 6px 0 var(--night);
}

.card--lime {
  background: var(--lime);
  color: var(--court);
  border-color: var(--night);
}

.card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.16;
}

.card__meta {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.card--ink .card__meta,
.card--indigo .card__meta,
.card--wine .card__meta { color: var(--lime); }

.card__body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 40em;
}

/* ---------- 9. 标签与按钮 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--gray);
  transition: color var(--dur) ease-out, background-color var(--dur) ease-out;
}

.tag--lime { color: var(--lime); }
.tag--orange { color: var(--orange); }
.tag--paper { color: var(--paper); }

.tag[aria-pressed="true"] {
  background: var(--lime);
  color: var(--court);
  border-color: var(--lime);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color var(--dur) ease-out, color var(--dur) ease-out,
              border-color var(--dur) ease-out, transform var(--dur) ease-out,
              box-shadow var(--dur) ease-out;
}

.btn--lime {
  background: var(--lime);
  color: var(--court);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 var(--night);
}

.btn--lime:hover {
  background: var(--paper);
  border-color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--night);
}

.btn--ghost { border-color: rgba(243, 247, 244, 0.45); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--sm { padding: 9px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--night); }

.btn--xs {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}

.btn[data-copied] {
  background: var(--lime);
  color: var(--court);
  border-color: var(--lime);
}

/* ---------- 10. 数据与图例 ---------- */
.stat { display: block; }

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.stat--lime .stat__value { color: var(--lime); }
.stat--orange .stat__value { color: var(--orange); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.legend__swatch {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(243, 247, 244, 0.5);
  border-radius: 1px;
}

.legend__swatch--lime { background: var(--lime); border-color: var(--lime); }
.legend__swatch--orange { background: var(--orange); border-color: var(--orange); }
.legend__swatch--wine { background: var(--wine); }
.legend__swatch--indigo { background: var(--indigo); }

/* ---------- 11. 竖排时间轴 ---------- */
.timeline { display: block; }

.timeline__list {
  padding-left: 22px;
  border-left: 2px solid rgba(154, 175, 166, 0.45);
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--gray);
  transition: width var(--dur) ease-out, background-color var(--dur) ease-out;
}

.timeline__item[data-active]::before {
  width: 32px;
  background: var(--lime);
}

.timeline__node {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.timeline__item[data-active] .timeline__time { color: var(--lime); }

.timeline__title {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(243, 247, 244, 0.86);
}

.timeline__item[data-active] .timeline__title { color: var(--paper); }

.timeline__readout {
  margin-top: 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--lime);
  background: rgba(243, 247, 244, 0.05);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(243, 247, 244, 0.85);
  max-width: none;
}

/* ---------- 12. 折叠区 ---------- */
.fold {
  border-top: 2px solid rgba(243, 247, 244, 0.18);
  border-bottom: 2px solid rgba(243, 247, 244, 0.18);
  margin-bottom: -2px;
}

.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper);
}

.fold__head::-webkit-details-marker { display: none; }

.fold__head::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--lime);
}

.fold[open] .fold__head::after { content: "\2013"; }

.fold__body {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243, 247, 244, 0.86);
  animation: foldIn 180ms ease-out;
}

@keyframes foldIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 13. 图片容器（页生成阶段放置图片） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--indigo);
  border: 2px solid var(--night);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--night);
}

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

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

.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background-image: repeating-linear-gradient(
    135deg,
    var(--indigo) 0,
    var(--indigo) 10px,
    rgba(243, 247, 244, 0.05) 10px,
    rgba(243, 247, 244, 0.05) 20px
  );
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.media__caption {
  padding: 10px 12px;
  background: var(--night);
  border-top: 2px solid var(--night);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- 14. 面包屑与正文容器 ---------- */
.breadcrumb { margin-bottom: 24px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.breadcrumb__list li { display: flex; align-items: center; gap: 8px; }

.breadcrumb__list li + li::before {
  content: "/";
  color: rgba(154, 175, 166, 0.55);
}

.breadcrumb__list a {
  color: var(--gray);
  text-decoration: none;
  transition: color var(--dur) ease-out;
}

.breadcrumb__list a:hover { color: var(--lime); }
.breadcrumb__list [aria-current="page"] { color: var(--paper); }

.prose {
  max-width: 42em;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(243, 247, 244, 0.9);
}

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

.prose h2, .prose h3 { margin: 32px 0 12px; }

.prose ul { margin-bottom: 1em; }

.prose ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--lime);
}

.prose ol {
  list-style: decimal;
  margin: 0 0 1em 1.2em;
  padding-left: 0.6em;
}

.prose ol li { margin-bottom: 6px; }

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

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

.prose blockquote {
  margin: 24px 0;
  padding: 12px 0 12px 18px;
  border-left: 3px solid var(--lime);
  color: rgba(243, 247, 244, 0.86);
}

/* ---------- 15. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 400;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 16. 状态工具类 ---------- */
.is-hidden { display: none !important; }
.is-dim { opacity: 0.3; }

/* ---------- 17. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }

  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .card:hover,
  .card:focus-within,
  .btn:hover,
  .footer-base__top:hover { transform: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .section-head__title { font-size: 28px; }
}
