/* ==========================================================================
   必发体育 · 共享样式 /assets/site.css
   设计语言：战术室报头 + 纸张叠层 + 刻度分隔 + 荧光青/信号橙状态色
   ========================================================================== */

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

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

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

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

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

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

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid #B7FFE8;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061A14;
  --tactical: #0D2A21;
  --panel: #143B2F;
  --cyan: #4DF0D0;
  --orange: #FF7A3D;
  --white: #F6F1E7;
  --sand: #D8CDB8;
  --sage: #8FAEA2;
  --blue: #7FB8FF;
  --mint: #B7FFE8;

  --line: rgba(143, 174, 162, 0.24);
  --line-strong: rgba(143, 174, 162, 0.44);
  --line-cyan: rgba(77, 240, 208, 0.38);
  --line-orange: rgba(255, 122, 61, 0.42);

  --font-display: "Barlow Condensed", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 3px;
  --stack-shadow: 6px 6px 0 rgba(4, 18, 14, 0.85), 7px 7px 0 rgba(143, 174, 162, 0.12);

  color-scheme: dark;
}

/* ---------- 3. 基底排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(to right, rgba(143, 174, 162, 0.055) 0 1px, transparent 1px 96px),
    radial-gradient(1100px 560px at 82% -12%, rgba(77, 240, 208, 0.10), transparent 62%),
    radial-gradient(900px 520px at 4% 2%, rgba(127, 184, 255, 0.06), transparent 58%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(77, 240, 208, 0.28);
  color: var(--mint);
}

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

.bf-shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- 4. Skip link ---------- */
.bf-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--cyan);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(255, 122, 61, 0.6);
  transition: top 0.18s ease;
}

.bf-skip:focus { top: 12px; }

/* ---------- 5. 头部 ---------- */
.bf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    linear-gradient(180deg, rgba(6, 26, 20, 0.985), rgba(6, 26, 20, 0.93));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-cyan);
  box-shadow:
    0 5px 0 -4px #04120E,
    0 6px 0 -4px var(--line-strong);
}

/* 顶部信息窄条 */
.bf-header__strip {
  background:
    linear-gradient(90deg, rgba(20, 59, 47, 0.92), rgba(13, 42, 33, 0.55) 60%, rgba(6, 26, 20, 0.4));
  border-bottom: 1px solid var(--line);
}

.bf-strip__inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.bf-strip__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--sage);
}

.bf-dot {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(77, 240, 208, 0.14);
  animation: bf-pulse 3.6s ease-in-out infinite;
}

@keyframes bf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.bf-quick {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bf-quick__link {
  display: inline-block;
  padding: 3px 11px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sage);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bf-quick__link:hover {
  color: var(--mint);
  border-color: var(--line-cyan);
  background: rgba(77, 240, 208, 0.08);
}

/* 刊头 */
.bf-masthead__inner {
  position: relative;
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  padding: clamp(14px, 2vw, 20px) 0 clamp(8px, 1.2vw, 11px);
  transition: padding 0.22s ease;
}

.bf-masthead__inner::before,
.bf-masthead__inner::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  min-width: 40px;
}

.bf-masthead__inner::before {
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.bf-masthead__inner::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.bf-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding-inline: 4px;
}

.bf-brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.02;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--white);
  transition: color 0.2s ease;
}

.bf-brand:hover .bf-brand__mark { color: var(--mint); }

.bf-brand__descriptor {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--cyan);
}

/* 移动栏目按钮 */
.bf-navtoggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(20, 59, 47, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.bf-navtoggle:hover { border-color: var(--line-cyan); background: rgba(20, 59, 47, 0.95); }

.bf-navtoggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.bf-navtoggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.bf-navtoggle[aria-expanded="true"] .bf-navtoggle__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.bf-navtoggle[aria-expanded="true"] .bf-navtoggle__bars i:nth-child(2) { opacity: 0; }

.bf-navtoggle[aria-expanded="true"] .bf-navtoggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 导航 */
.bf-nav {
  border-top: 1px solid rgba(143, 174, 162, 0.14);
  background: linear-gradient(180deg, rgba(13, 42, 33, 0.55), rgba(6, 26, 20, 0));
}

.bf-nav__list {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.bf-nav__list > li + li { box-shadow: inset 1px 0 0 rgba(143, 174, 162, 0.22); }

.bf-nav__link {
  position: relative;
  display: block;
  padding: 11px clamp(10px, 1.9vw, 22px) 13px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sage);
  transition: color 0.18s ease;
}

.bf-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(10px, 1.9vw, 22px);
  right: clamp(10px, 1.9vw, 22px);
  bottom: 6px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease, background 0.22s ease;
}

.bf-nav__link:hover { color: var(--mint); }
.bf-nav__link:hover::after { transform: scaleX(1); }

.bf-nav__link[aria-current="page"] { color: var(--white); }

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

/* 滚动进度 */
.bf-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(143, 174, 162, 0.14);
  overflow: hidden;
  pointer-events: none;
}

.bf-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--mint) 55%, var(--orange));
}

/* 头部滚动收缩 */
.bf-header[data-scrolled] .bf-masthead__inner { padding-block: 8px 6px; }
.bf-header[data-scrolled] .bf-brand__mark { font-size: clamp(21px, 2.4vw, 27px); }
.bf-header[data-scrolled] .bf-nav__link { padding-block: 8px 10px; }

/* ---------- 6. 移动导航 ---------- */
@media (max-width: 899px) {
  .bf-navtoggle { display: inline-flex; }

  .bf-masthead__inner::before,
  .bf-masthead__inner::after { display: none; }

  .bf-masthead__inner { padding-right: 96px; padding-left: 4px; justify-content: flex-start; }
  .bf-brand { align-items: flex-start; text-align: left; }

  .bf-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--tactical), #08211A);
    border-top: 1px solid var(--line-cyan);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .bf-nav[data-open] {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
  }

  .bf-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 6px 0 12px;
  }

  .bf-nav__list > li + li { box-shadow: none; }

  .bf-nav__link {
    padding: 15px var(--gutter);
    font-size: 17px;
    border-bottom: 1px solid rgba(143, 174, 162, 0.14);
  }

  .bf-nav__link::after {
    left: var(--gutter);
    right: auto;
    width: 26px;
    bottom: 10px;
  }

  .bf-nav__link[aria-current="page"] {
    background: rgba(77, 240, 208, 0.08);
    box-shadow: inset 3px 0 0 var(--orange);
  }
}

@media (max-width: 760px) {
  .bf-quick { display: none; }
  .bf-strip__item { font-size: 11px; letter-spacing: 0.06em; }
}

/* ---------- 7. 页脚 ---------- */
.bf-footer {
  margin-top: clamp(52px, 8vw, 100px);
  background: linear-gradient(180deg, var(--ink) 0%, #04120E 100%);
  border-top: 1px solid var(--line-cyan);
  color: var(--sage);
}

.bf-footer__tape {
  height: 9px;
  background: repeating-linear-gradient(
    135deg,
    rgba(77, 240, 208, 0.42) 0 11px,
    rgba(6, 26, 20, 1) 11px 22px
  );
  opacity: 0.4;
}

.bf-footer__inner {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(28px, 4.5vw, 56px) clamp(20px, 3vw, 32px);
}

.bf-footer__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.bf-footer__brandline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.09em;
  color: var(--white);
}

.bf-footer__note {
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--sage);
}

.bf-footer__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 40px);
  padding-block: clamp(22px, 3.2vw, 38px);
}

.bf-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.bf-col__title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 8px;
  background: var(--line-orange);
}

.bf-col__list { display: grid; gap: 9px; }

.bf-col__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.bf-col__link:hover {
  color: var(--mint);
  border-bottom-color: var(--line-cyan);
}

.bf-contact__list { display: grid; gap: 10px; }

.bf-contact__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}

.bf-contact__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--sage);
}

.bf-contact__value {
  color: var(--white);
  overflow-wrap: anywhere;
}

.bf-contact__value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--mint);
}

.bf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-top: clamp(16px, 2.4vw, 22px);
  border-top: 1px solid var(--line);
}

.bf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--sage);
}

.bf-footer__legal--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--sand);
}

.bf-footer__legal-link {
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.bf-footer__legal-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--line-cyan);
}

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

@media (min-width: 1000px) {
  .bf-footer__grid { grid-template-columns: 1fr 1fr 1.35fr; }
  .bf-footer__contact { grid-column: auto; }
}

/* ---------- 8. 通用排版与章节 ---------- */
.bf-section { padding-block: clamp(34px, 5.6vw, 72px); }

.bf-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: clamp(16px, 2.6vw, 28px);
}

.bf-section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.1vw, 36px);
  line-height: 1.14;
  letter-spacing: 0.06em;
  color: var(--white);
}

.bf-lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--sage);
}

.bf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.bf-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.bf-ruler {
  height: 12px;
  margin-block: clamp(20px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-strong);
  background-image: repeating-linear-gradient(
    to right,
    rgba(143, 174, 162, 0.4) 0 1px,
    transparent 1px 22px
  );
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: bottom left;
  opacity: 0.9;
}

.bf-slant {
  height: clamp(18px, 3vw, 34px);
  background: linear-gradient(180deg, transparent 0 50%, rgba(20, 59, 47, 0.7) 50% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}

/* ---------- 9. 按钮 / 标签 / 提示 ---------- */
.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--cyan);
  border: 1px solid rgba(183, 255, 232, 0.6);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(255, 122, 61, 0);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.bf-btn:hover {
  background: var(--mint);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(255, 122, 61, 0.62);
}

.bf-btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 rgba(255, 122, 61, 0.5); }

.bf-btn--ghost {
  color: var(--white);
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
}

.bf-btn--ghost:hover {
  color: var(--mint);
  background: rgba(77, 240, 208, 0.1);
  border-color: var(--line-cyan);
  box-shadow: 4px 4px 0 rgba(6, 26, 20, 0.9);
}

.bf-btn--sm {
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.bf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(77, 240, 208, 0.1);
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
  white-space: nowrap;
}

.bf-tag--warn {
  color: var(--orange);
  background: rgba(255, 122, 61, 0.12);
  border-color: var(--line-orange);
}

.bf-tag--muted {
  color: var(--sage);
  background: rgba(143, 174, 162, 0.08);
  border-color: var(--line);
}

.bf-note {
  padding: 10px 0 10px 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--sand);
  border-left: 2px solid var(--orange);
  background: linear-gradient(90deg, rgba(255, 122, 61, 0.1), transparent 72%);
}

/* ---------- 10. 面板 / 数据块 / 列表 ---------- */
.bf-panel {
  position: relative;
  padding: clamp(18px, 2.8vw, 30px);
  background: linear-gradient(180deg, var(--tactical), #0A231B);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--stack-shadow);
}

.bf-panel--paper {
  color: #0B241C;
  background:
    linear-gradient(180deg, rgba(246, 241, 231, 0.98), rgba(226, 219, 204, 0.98));
  border-color: var(--sand);
  box-shadow: 6px 6px 0 rgba(4, 18, 14, 0.85), 7px 7px 0 rgba(216, 205, 184, 0.35);
}

.bf-panel--paper .bf-panel__title,
.bf-panel--paper .bf-prose { color: #0B241C; }

.bf-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.bf-panel--paper .bf-panel__head { border-bottom-color: rgba(11, 36, 28, 0.2); }

.bf-panel__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: 0.07em;
  color: var(--white);
}

.bf-panel__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--sage);
}

.bf-stat {
  padding: 12px 16px;
  background: rgba(20, 59, 47, 0.55);
  border-left: 2px solid var(--cyan);
}

.bf-stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--mint);
}

.bf-stat__label {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.bf-list { display: grid; gap: 10px; }

.bf-list__item {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: #D5E0DA;
}

.bf-list__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

/* ---------- 11. 网格 ---------- */
.bf-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.bf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.bf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.bf-grid--sidebar { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 960px) {
  .bf-grid--sidebar {
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

/* ---------- 12. 图片容器（页面阶段放置 img） ---------- */
.bf-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: rgba(13, 42, 33, 0.9);
  background-image:
    linear-gradient(135deg, rgba(77, 240, 208, 0.14), rgba(6, 26, 20, 0.92) 70%),
    repeating-linear-gradient(45deg, rgba(143, 174, 162, 0.16) 0 1px, transparent 1px 14px);
}

.bf-media img,
.bf-media video,
.bf-media picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bf-media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mint);
  background: rgba(6, 26, 20, 0.88);
  border-top: 1px solid var(--line-cyan);
  border-right: 1px solid var(--line-cyan);
}

.bf-media--wide { aspect-ratio: 21 / 9; }
.bf-media--square { aspect-ratio: 1 / 1; }
.bf-media--slice { clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }

/* ---------- 13. 正文与面包屑 ---------- */
.bf-prose {
  max-width: 72ch;
  font-size: clamp(16px, 0.5vw + 15px, 18px);
  line-height: 1.8;
  color: #DCE6E0;
}

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

.bf-prose h2,
.bf-prose h3 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--white);
}

.bf-prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.7em; }
.bf-prose h3 { font-size: clamp(18px, 1.8vw, 22px); margin-top: 1.5em; }

.bf-prose a {
  color: var(--cyan);
  border-bottom: 1px solid var(--line-cyan);
}

.bf-prose a:hover { color: var(--mint); }

.bf-prose ul,
.bf-prose ol { display: grid; gap: 8px; }

.bf-prose li {
  position: relative;
  padding-left: 20px;
}

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

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

.bf-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 6px;
  color: var(--mint);
  background: rgba(77, 240, 208, 0.1);
  border-radius: 2px;
}

.bf-crumb { padding-block: clamp(12px, 1.8vw, 18px); }

.bf-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.bf-crumb__list > li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(143, 174, 162, 0.55);
}

.bf-crumb__link { transition: color 0.18s ease; }
.bf-crumb__link:hover { color: var(--cyan); }

.bf-crumb__current { color: var(--white); }

/* ---------- 14. 回到顶部（JS 注入） ---------- */
.bf-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid rgba(6, 26, 20, 0.35);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(6, 26, 20, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.bf-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.bf-top:hover { background: var(--cyan); }

/* ---------- 15. 滚动显现 ---------- */
.bf-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

/* ---------- 16. 响应式与可访问性 ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .bf-section { padding-block: clamp(28px, 7vw, 44px); }
  .bf-panel { box-shadow: 4px 4px 0 rgba(4, 18, 14, 0.85), 5px 5px 0 rgba(143, 174, 162, 0.12); }
  .bf-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@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;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

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

  .bf-dot { animation: none; }
}

@media print {
  .bf-header, .bf-footer__tape, .bf-top, .bf-skip, .bf-progress { display: none; }
  body { background: #fff; color: #111; }
}
