/* ============================================================
   千亿球友会指南 · /assets/site.css
   共享外壳：侧轨页头、档案式页脚、基础组件
   ============================================================ */

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

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

body { margin: 0; }

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 { display: block; max-width: 100%; height: auto; }

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

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

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --qb-ink: #071A2B;
  --qb-rock: #1E2A33;
  --qb-graphite: #0E2F44;
  --qb-cream: #F3EFE6;
  --qb-teal: #2FBF9F;
  --qb-amber: #E8A13A;
  --qb-amber-soft: #F0B056;
  --qb-electric: #26A8FF;
  --qb-clay: #B86F4B;
  --qb-mist: #8FA3AD;

  --qb-line: rgba(143, 163, 173, 0.24);
  --qb-line-strong: rgba(143, 163, 173, 0.48);

  --qb-font-head: "Noto Sans SC", "Archivo Black", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --qb-font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --qb-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --qb-rail: 264px;
  --qb-bar-h: 64px;
  --qb-max: 1180px;
  --qb-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版（中文优先） ---------- */
body {
  font-family: var(--qb-font-body);
  font-size: clamp(15px, 0.55vw + 13.6px, 17px);
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: var(--qb-cream);
  background-color: var(--qb-ink);
  background-image:
    linear-gradient(to right, rgba(143, 163, 173, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 173, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: normal;
  padding-top: var(--qb-bar-h);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--qb-font-head);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p { line-height: 1.78; }

strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--qb-electric);
  outline-offset: 3px;
}

#main-content { display: block; scroll-margin-top: 84px; }

/* ---------- 4. 工具类 ---------- */
.qb-mono {
  font-family: var(--qb-font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

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

.qb-rule {
  height: 1px;
  background: var(--qb-line);
}

/* ---------- 5. 页头：移动端顶栏 + 抽屉 ---------- */
.qb-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--qb-amber);
  color: var(--qb-ink);
  font-family: var(--qb-font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  transform: translateY(-200%);
  transition: transform 0.18s var(--qb-ease);
}

.qb-skip:focus { transform: translateY(0); }

.qb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--qb-ink);
  border-bottom: 1px solid var(--qb-line-strong);
}

.qb-head-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--qb-bar-h);
  padding: 10px clamp(16px, 4vw, 24px);
  background: var(--qb-ink);
}

.qb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qb-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(47, 191, 159, 0.7);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(47, 191, 159, 0.2), transparent 72%);
}

.qb-brand__mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid var(--qb-teal);
  border-radius: 50%;
}

.qb-brand__mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  background: var(--qb-amber);
}

.qb-brand__text { display: block; min-width: 0; }

.qb-brand__name {
  display: block;
  font-family: var(--qb-font-head);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.qb-brand__sub {
  display: block;
  font-family: var(--qb-font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--qb-mist);
  white-space: nowrap;
}

.qb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--qb-line-strong);
  color: var(--qb-cream);
  font-family: var(--qb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.18s var(--qb-ease), color 0.18s var(--qb-ease);
}

.qb-toggle:hover { border-color: var(--qb-electric); color: var(--qb-electric); }

.qb-toggle__bars { display: grid; gap: 4px; width: 16px; }

.qb-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s var(--qb-ease);
}

.qb-header[data-open="true"] .qb-toggle__bars i:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}

.qb-header[data-open="true"] .qb-toggle__bars i:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* 抽屉导航 */
.qb-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  max-height: calc(100dvh - var(--qb-bar-h));
  overflow-y: auto;
  padding: 18px clamp(18px, 5vw, 32px) 24px;
  background: var(--qb-rock);
  border-bottom: 1px solid var(--qb-line-strong);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.22s var(--qb-ease), transform 0.22s var(--qb-ease),
    visibility 0.22s var(--qb-ease);
}

.qb-header[data-open="true"] .qb-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.qb-nav__label {
  font-family: var(--qb-font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--qb-mist);
  margin-bottom: 12px;
}

.qb-nav__list { display: grid; gap: 0; }

.qb-nav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 12px 12px 14px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--qb-line);
  transition: background 0.2s var(--qb-ease), border-color 0.2s var(--qb-ease),
    transform 0.2s var(--qb-ease), color 0.2s var(--qb-ease);
}

.qb-nav__num {
  font-family: var(--qb-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--qb-mist);
  transition: color 0.2s var(--qb-ease);
}

.qb-nav__name {
  font-family: var(--qb-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.qb-nav__link:hover,
.qb-nav__link:focus-visible {
  background: var(--qb-graphite);
  border-left-color: var(--qb-amber);
}

.qb-nav__link:focus-visible { outline-offset: -2px; }

.qb-nav__link[aria-current="page"] {
  background: rgba(47, 191, 159, 0.1);
  border-left-color: var(--qb-teal);
}

.qb-nav__link[aria-current="page"] .qb-nav__name { color: var(--qb-teal); }

.qb-nav__link[aria-current="page"] .qb-nav__num { color: var(--qb-amber); }

.qb-nav__foot {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.qb-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--qb-amber);
  color: var(--qb-ink);
  font-family: var(--qb-font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 0.18s var(--qb-ease), transform 0.18s var(--qb-ease);
}

.qb-cta::after { content: "→"; font-family: var(--qb-font-mono); }

.qb-cta:hover { background: var(--qb-amber-soft); transform: translateX(2px); }

.qb-nav__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--qb-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--qb-mist);
}

.qb-dot {
  width: 6px;
  height: 6px;
  background: var(--qb-teal);
  flex: 0 0 auto;
}

.qb-scrim {
  position: fixed;
  top: var(--qb-bar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(7, 26, 43, 0.76);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--qb-ease), visibility 0.22s var(--qb-ease);
}

.qb-header[data-open="true"] .qb-scrim { opacity: 1; visibility: visible; }

.qb-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--qb-teal), var(--qb-amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

body.qb-nav-open { overflow: hidden; }

/* ---------- 6. 页头：桌面侧轨 ---------- */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--qb-rail);
  }

  .qb-header {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--qb-rail);
    height: 100dvh;
    border-bottom: 0;
    border-right: 1px solid var(--qb-line-strong);
  }

  .qb-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: repeating-linear-gradient(
      to bottom,
      rgba(143, 163, 173, 0.4) 0 1px,
      transparent 1px 16px
    );
    pointer-events: none;
    z-index: 0;
  }

  .qb-head-bar {
    display: block;
    min-height: 0;
    padding: 26px 22px 20px;
    border-bottom: 1px solid var(--qb-line);
  }

  .qb-brand { align-items: flex-start; gap: 12px; }

  .qb-brand__name { white-space: normal; font-size: 16px; }

  .qb-brand__sub { white-space: normal; font-size: 10px; letter-spacing: 0.14em; }

  .qb-toggle { display: none; }

  .qb-nav {
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    padding: 22px 14px 22px 18px;
    background: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .qb-nav__list { min-height: 0; }

  .qb-nav__link { padding: 11px 8px 11px 12px; }

  .qb-nav__link:hover,
  .qb-nav__link:focus-visible { transform: translateX(3px); }

  .qb-nav__foot { margin-top: auto; padding-top: 20px; }

  .qb-scrim { display: none !important; }

  .qb-progress { height: 2px; }

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

/* ---------- 7. 页脚 ---------- */
.qb-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--qb-ink);
  border-top: 1px solid var(--qb-line-strong);
  color: var(--qb-cream);
}

.qb-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--qb-teal) 0 33%,
    var(--qb-amber) 33% 66%,
    var(--qb-electric) 66% 100%
  );
  opacity: 0.9;
}

.qb-footer__inner {
  max-width: var(--qb-max);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 66px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px);
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  .qb-footer__inner {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  }
}

.qb-footer__mark {
  font-family: var(--qb-font-head);
  font-weight: 900;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.qb-footer__tagline {
  margin-top: 10px;
  max-width: 24em;
  font-size: 14px;
  color: var(--qb-mist);
}

.qb-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.qb-chip {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--qb-line-strong);
  color: var(--qb-mist);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.qb-chip--accent {
  color: var(--qb-teal);
  border-color: rgba(47, 191, 159, 0.5);
}

.qb-footer__nav {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
}

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

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

.qb-fgroup__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--qb-line);
  font-family: var(--qb-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qb-teal);
}

.qb-fgroup__list {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.qb-fgroup__list a {
  display: inline-block;
  color: rgba(243, 239, 230, 0.86);
  transition: color 0.18s var(--qb-ease), padding-left 0.18s var(--qb-ease);
}

.qb-fgroup__list a:hover,
.qb-fgroup__list a:focus-visible { color: var(--qb-electric); padding-left: 5px; }

.qb-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px dashed var(--qb-line-strong);
  color: var(--qb-cream);
  font-size: 13px;
  text-align: left;
  transition: color 0.18s var(--qb-ease), border-color 0.18s var(--qb-ease);
}

.qb-copy:hover { color: var(--qb-electric); border-color: var(--qb-electric); }

.qb-copy__flag {
  font-family: var(--qb-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--qb-mist);
}

.qb-copy.is-copied { color: var(--qb-teal); border-color: var(--qb-teal); }

.qb-copy.is-copied .qb-copy__flag { color: var(--qb-teal); }

.qb-footer__addr {
  display: inline-block;
  font-size: 13px;
  color: var(--qb-mist);
  line-height: 1.7;
}

.qb-footer__note {
  margin-top: 16px;
  max-width: 34em;
  font-size: 12px;
  line-height: 1.8;
  color: var(--qb-mist);
}

.qb-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  max-width: var(--qb-max);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 48px) 24px;
  border-top: 1px solid var(--qb-line);
  font-family: var(--qb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--qb-mist);
}

.qb-footer__legal { line-height: 1.7; }

.qb-totop {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--qb-line-strong);
  background: var(--qb-graphite);
  color: var(--qb-cream);
  font-family: var(--qb-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--qb-ease), transform 0.2s var(--qb-ease),
    border-color 0.2s var(--qb-ease), color 0.2s var(--qb-ease),
    visibility 0.2s var(--qb-ease);
}

.qb-totop[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qb-totop:hover { border-color: var(--qb-teal); color: var(--qb-teal); }

/* ---------- 8. 页面骨架组件 ---------- */
.qb-container {
  width: 100%;
  max-width: var(--qb-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.qb-section { padding-block: clamp(48px, 7vw, 96px); }

.qb-section--light {
  background: var(--qb-cream);
  color: var(--qb-ink);
}

.qb-section--rock { background: var(--qb-rock); }

.qb-section--graphite { background: var(--qb-graphite); }

.qb-section--light .qb-lede,
.qb-section--light .qb-card__meta { color: #46565f; }

.qb-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--qb-font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--qb-teal);
}

.qb-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.qb-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.14;
}

.qb-title--xl {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.qb-lede {
  margin-top: 14px;
  max-width: 38em;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.8;
  color: var(--qb-mist);
}

.qb-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.qb-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.qb-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.qb-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--qb-graphite);
  border: 1px solid var(--qb-line);
  transition: transform 0.2s var(--qb-ease), border-color 0.2s var(--qb-ease),
    background 0.2s var(--qb-ease);
}

.qb-card:hover,
.qb-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--qb-teal);
}

.qb-card__title {
  font-family: var(--qb-font-head);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.qb-card__meta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--qb-mist);
}

.qb-card--light {
  background: var(--qb-cream);
  color: var(--qb-ink);
  border-color: rgba(7, 26, 43, 0.14);
}

.qb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--qb-line-strong);
  color: var(--qb-mist);
  font-family: var(--qb-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}

.qb-tag--teal { color: var(--qb-teal); border-color: rgba(47, 191, 159, 0.55); }

.qb-tag--amber { color: var(--qb-amber); border-color: rgba(232, 161, 58, 0.55); }

.qb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--qb-amber);
  border: 1px solid var(--qb-amber);
  color: var(--qb-ink);
  font-family: var(--qb-font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background 0.18s var(--qb-ease), border-color 0.18s var(--qb-ease),
    color 0.18s var(--qb-ease), transform 0.18s var(--qb-ease);
}

.qb-btn:hover { background: var(--qb-amber-soft); border-color: var(--qb-amber-soft); transform: translateY(-2px); }

.qb-btn--ghost {
  background: transparent;
  color: var(--qb-cream);
  border-color: var(--qb-line-strong);
}

.qb-btn--ghost:hover {
  background: rgba(38, 168, 255, 0.08);
  border-color: var(--qb-electric);
  color: var(--qb-electric);
}

.qb-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  font-family: var(--qb-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--qb-mist);
}

.qb-crumbs__item { display: inline-flex; align-items: center; }

.qb-crumbs__item + .qb-crumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--qb-line-strong);
}

.qb-crumbs a:hover { color: var(--qb-electric); }

.qb-crumbs [aria-current="page"] { color: var(--qb-cream); }

/* 图片占位容器（页面阶段放入 img / svg） */
.qb-figure { margin: 0; }

.qb-figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--qb-graphite);
  border: 1px solid var(--qb-line);
}

.qb-figure__media img,
.qb-figure__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qb-figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(143, 163, 173, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 163, 173, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.qb-figure--wide .qb-figure__media { aspect-ratio: 21 / 9; }

.qb-figure--square .qb-figure__media { aspect-ratio: 1 / 1; }

.qb-figure--tall .qb-figure__media { aspect-ratio: 4 / 5; }

.qb-figure__cap {
  margin-top: 10px;
  font-family: var(--qb-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--qb-mist);
}

/* ---------- 9. 响应式微调 ---------- */
@media (max-width: 420px) {
  .qb-brand__sub { display: none; }
  .qb-brand__name { font-size: 14px; }
  .qb-nav__name { font-size: 14px; }
}

@media (min-width: 720px) {
  .qb-toggle { padding: 10px 14px; }
}

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

  .qb-card:hover,
  .qb-card:focus-within,
  .qb-btn:hover,
  .qb-cta:hover,
  .qb-nav__link:hover,
  .qb-nav__link:focus-visible { transform: none; }
}
