/* ============================================================
   pindoutuzhi100.com · 毒蘑菇测试官网 · 设计系统
   volumeshader_bm 在线 GPU/CPU 压力测试
   手写 CSS，无框架。深空/荧光「毒蘑菇」气质：
   墨色底 + 荧光紫/绿强调、8/14/24 圆角、4px 间距刻度
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-soft: #f1eafd;
  --primary-softer: #faf7ff;
  --accent: #10b981;              /* 荧光毒绿 */
  --accent-dark: #059669;
  --accent-soft: #e7f9f1;
  --cyan: #22d3ee;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #10141c;
  --text-muted: #5c6474;
  --text-faint: #98a1b3;
  --border: #e2e5ee;
  --border-strong: #c7ccda;
  --ink: #0a0e1c;                  /* 深空底 */
  --ink-2: #111830;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Helvetica, Arial, "Apple Color Emoji",
          "Segoe UI Emoji", sans-serif;

  --fs-hero: clamp(1.75rem, 3.4vw + 1rem, 2.7rem);
  --fs-h2: clamp(1.25rem, 1.3vw + .95rem, 1.6rem);
  --fs-h3: 1rem;
  --fs-body: .9rem;      /* 14.4px */
  --fs-small: .78rem;    /* 12.5px */
  --fs-tiny: .72rem;     /* 11.5px */

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-full: 9999px;

  --sh-card: rgba(15,23,42,.05) 0 0 0 1px, rgba(15,23,42,.1) 0 2px 10px;
  --sh-bar: rgba(15,23,42,.03) 0 0 0 1px, rgba(15,23,42,.05) 0 2px 6px, rgba(15,23,42,.08) 0 8px 20px;
  --sh-pop: rgba(15,23,42,.06) 0 0 0 1px, rgba(15,23,42,.18) 0 12px 32px;
  --sh-btn: rgba(124,58,237,.35) 0 8px 20px;

  --header-h: 62px;
  --maxw: 1180px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body);
  line-height: 1.7; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary-soft); }
[hidden] { display: none !important; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
@media (min-width: 744px){ .container { padding: 0 var(--sp-6); } }
section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- 通用块 ---------- */
.section { padding: var(--sp-8) 0; }
.section-tight { padding: var(--sp-6) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 820px; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--fs-h2); }
.section-sub { margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--fs-body); }

.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-small); font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 4px 12px; border-radius: var(--r-full);
  margin-bottom: var(--sp-2); letter-spacing: .03em;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 面包屑 */
.crumbs { font-size: var(--fs-small); color: var(--text-muted); padding: var(--sp-4) 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-faint); }
.crumbs a:hover { color: var(--primary); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: var(--fs-body); font-weight: 600;
  line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-full);
  padding: 12px 22px; min-height: 42px; transition:
    background-color .2s ease, color .2s ease, border-color .2s ease,
    box-shadow .2s ease, transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #a21caf); color: #fff; }
.btn-primary:hover { box-shadow: var(--sh-btn); filter: brightness(1.06); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); box-shadow: rgba(16,185,129,.35) 0 8px 20px; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 15px; min-height: 34px; font-size: var(--fs-small); }
.btn-block { width: 100%; }
.btn .ic { width: 16px; height: 16px; }
svg.ic { width: 16px; height: 16px; flex: none; }
.backtop .ic { width: 20px; height: 20px; }

.tlink { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tlink:hover { color: var(--primary); }
.accent-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.accent-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 状态点/徽标 ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ok { background: #0aa64e; box-shadow: 0 0 0 3px rgba(10,166,78,.15); }
.dot-warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  font-size: var(--fs-tiny); font-weight: 600; border-radius: var(--r-full);
  background: var(--surface); color: var(--text);
  box-shadow: rgba(15,23,42,.06) 0 0 0 1px, rgba(15,23,42,.08) 0 1px 3px;
}
.badge-new { background: linear-gradient(135deg, var(--primary), #a21caf); color: #fff; box-shadow: none; }
.badge-accent { background: var(--accent); color: #fff; box-shadow: none; }
.badge-soft { background: var(--primary-soft); color: var(--primary); box-shadow: none; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #0e0f1f, #312e81 60%, #7c3aed);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), rgba(124,58,237,.4) 0 4px 12px;
}
.brand-mark .mush { filter: drop-shadow(0 0 6px rgba(34,211,238,.8)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.02rem; font-weight: 800; color: var(--text); letter-spacing: .01em; }
.brand-sub { font-size: var(--fs-tiny); color: var(--text-muted); letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 7px 11px; font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; border-radius: var(--r-full); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.active { color: var(--text); font-weight: 700; background: var(--primary-soft); color: var(--primary-dark); }
.site-nav .nav-cta-btn {
  margin-left: var(--sp-2); color: #fff; background: linear-gradient(135deg, var(--primary), #a21caf);
  padding: 9px 17px; font-weight: 700; flex: none;
}
.site-nav .nav-cta-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), #86198f);
  box-shadow: 0 4px 14px rgba(124,58,237,.45);
  filter: brightness(1.08);
}

.menu-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; flex: none;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; align-items: center; justify-content: center; color: var(--text);
}
.menu-toggle .ic { width: 20px; height: 20px; }

/* 移动端抽屉 */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(8,10,20,.45); }
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--surface); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
  box-shadow: var(--sh-pop);
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.mobile-nav a.mlink {
  padding: 13px 12px; font-size: .95rem; font-weight: 500; text-decoration: none;
  border-radius: var(--r-md); color: var(--text); border-bottom: 1px solid var(--surface-2);
}
.mobile-nav a.mlink.active { color: var(--primary); font-weight: 700; background: var(--primary-softer); }
.mobile-nav .mlink-cta {
  margin-top: var(--sp-4); background: linear-gradient(135deg, var(--primary), #a21caf);
  color: #fff !important; text-align: center; font-weight: 700; border-bottom: none;
}

/* ---------- Hero（首页深色） ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 85% -12%, rgba(124,58,237,.55), transparent 62%),
    radial-gradient(820px 420px at -8% 108%, rgba(16,185,129,.32), transparent 58%),
    radial-gradient(600px 300px at 45% 120%, rgba(34,211,238,.2), transparent 60%),
    var(--ink);
  border-bottom: 1px solid #1d2540;
}
.hero::before {            /* 星点纹理 */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent 60%),
    radial-gradient(1px 1px at 78% 12%, #c4b5fd, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 68%, #6ee7b7, transparent 60%),
    radial-gradient(1px 1px at 30% 84%, #a5f3fc, transparent 60%),
    radial-gradient(1px 1px at 58% 40%, #fff, transparent 60%);
}
.hero-inner { padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 64px); position: relative; z-index: 1; }
.hero-inner.light-on-dark h1 { color: #fff; }
.hero-inner.light-on-dark .hero-sub { color: #c7cfe6; }
.hero .kicker-on-dark { background: rgba(255,255,255,.1); color: #d8c7ff; }
.hero-title { font-size: var(--fs-hero); font-weight: 800; color: #fff; }
.hero-title .hl { background: linear-gradient(90deg, #a78bfa, #22d3ee 60%, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: var(--sp-4); max-width: 40em; color: #c7cfe6; font-size: 1.02rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-actions .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.16); }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3);
  margin-top: var(--sp-8); padding: var(--sp-4); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); background: rgba(255,255,255,.05);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat-num small { font-size: .85rem; color: #34d399; }
.stat-label { font-size: var(--fs-small); color: #aab4d4; }

/* Hero 双栏(左文右图) */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(var(--sp-5), 4vw, var(--sp-8)); align-items: center;
}
.hero-grid > .hero-inner { min-width: 0; }
.hero-media { min-width: 0; position: relative; z-index: 1; }
.hero-media img {
  display: block; width: 100%; height: auto; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(124,58,237,.25),
              0 0 60px -12px rgba(124,58,237,.45), 0 0 90px -30px rgba(34,211,238,.35);
  transform: translateZ(0);
}
.hero-media::after {
  content: ""; position: absolute; inset: -22px; z-index: -1; pointer-events: none;
  background: radial-gradient(320px 260px at 50% 50%, rgba(124,58,237,.28), transparent 70%);
  filter: blur(10px);
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 次级页头 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head-inner { padding: var(--sp-6) 0 var(--sp-5); }
.page-head h1 { font-size: var(--fs-h2); }
.page-head .lead { margin-top: var(--sp-2); color: var(--text-muted); max-width: 52em; }

/* ---------- 卡片/瓦片 ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--sp-4); }
.tile {
  display: flex; flex-direction: column; gap: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5);
  text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
a.tile:hover { border-color: var(--border-strong); box-shadow: var(--sh-card); transform: translateY(-2px); }
.tile-ic { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; }
.tile-ic .ic { width: 22px; height: 22px; }
.tile h3 { font-size: 1rem; }
.tile p { color: var(--text-muted); font-size: var(--fs-small); flex: 1; }
.tile .tile-go { color: var(--primary); font-weight: 700; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 4px; }
.tile:hover .tile-go { text-decoration: underline; text-underline-offset: 3px; }
.tint-violet { background: var(--primary-soft); color: var(--primary); }
.tint-green { background: var(--accent-soft); color: var(--accent-dark); }
.tint-cyan { background: #e0f7fb; color: #0e7490; }
.tint-amber { background: #fdf1e3; color: #a05a1a; }
.tint-pink { background: #fce8f0; color: #be185d; }
.tint-blue { background: #e5effb; color: #1d4ed8; }

/* ---------- Benchmark 工具区 ---------- */
.tool-shell { background: var(--ink); border-radius: var(--r-lg); padding: clamp(6px, 1.4vw, 14px); }
.bench-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: var(--sp-4); align-items: stretch; }
.bench-main { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.bench-side { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); display: flex; flex-direction: column; }

#stage { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border: 1px solid #232a45; border-radius: 10px; background: #05060c; }
#stage::before {
  content: ""; position: absolute; inset: -6px; z-index: 0;
  background:
    radial-gradient(400px 300px at 30% 20%, rgba(124,58,237,.25), transparent 60%),
    radial-gradient(400px 300px at 75% 70%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(300px 220px at 60% 30%, rgba(16,185,129,.16), transparent 60%);
  filter: blur(1px);
}
#stageInner { position: absolute; inset: 0; z-index: 1; transform-origin: 0 0; }
#c1 { display: block; background: transparent; }

.stage-idle {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center;
  gap: 13px; padding: 24px; text-align: center; color: #fff;
}
.stage-idle strong { font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.3; text-shadow: 0 2px 8px #000, 0 0 18px rgba(124,58,237,.6); }
.stage-idle > span { max-width: 430px; color: #d5d9ea; font-size: var(--fs-small); line-height: 1.8; text-shadow: 0 1px 4px #000; }
.stage-idle .button-start { min-width: 200px; pointer-events: auto; }
.stage-idle .button-start svg { width: 18px; height: 18px; }

.metrics { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 4; }
.metric, .hint {
  background: rgba(255,255,255,.94); border: 1px solid rgba(0,0,0,.12);
  border-radius: 7px; padding: 5px 9px; font-size: var(--fs-tiny);
  box-shadow: 0 1px 3px rgba(0,0,0,.06); color: var(--text);
}
.metric-label { color: var(--text-muted); }
.metric-value { color: var(--primary); font-weight: 700; }
.hint { position: absolute; right: 10px; bottom: 10px; color: var(--text-muted); z-index: 4; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.button {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border-strong); border-radius: var(--r-full); background: var(--surface-2);
  color: var(--text); padding: 7px 14px; font-size: var(--fs-small); font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.button svg { width: 16px; height: 16px; flex: none; }
.button:hover:not(:disabled) { background: #e4e7f0; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #a21caf); border-color: transparent; }
.button-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--primary-dark), #86198f); box-shadow: var(--sh-btn); }
.button-green { color: #fff; background: var(--accent); border-color: transparent; }
.button-green:hover:not(:disabled) { background: var(--accent-dark); }
.pause-button { color: #fff; background: #f59e0b; border-color: transparent; }
.pause-button:hover:not(:disabled) { background: #d97706; }
.button-start { margin-left: auto; min-width: 150px; }
.stage-idle .button-start { margin-left: 0; }
.status { color: var(--text-muted); font-size: var(--fs-tiny); white-space: nowrap; }

.section-title-sm { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-4); font-size: 1.02rem; font-weight: 700; }
.section-title-sm .ic { width: 19px; height: 19px; color: var(--primary); flex: none; }

.control { margin-bottom: var(--sp-4); }
.control-row { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: var(--fs-small); }
.control-row > span:first-child { color: var(--text-muted); }
.control-value { color: var(--primary); font-weight: 700; }
input[type="range"] { display: block; width: 100%; height: 4px; margin: 0; accent-color: var(--primary); }
input[type="range"]:disabled { opacity: .5; }
.notice {
  padding: 10px 12px; border: 1px solid #dcd2f5; border-radius: var(--r-sm);
  background: var(--primary-softer); color: #5b21b6; font-size: var(--fs-small); line-height: 1.7;
}
.notice.warn-y { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.parameter-reset { width: 100%; margin-top: var(--sp-3); background: #fff; color: var(--primary); border-color: #cfc0ef; }
.parameter-reset:hover:not(:disabled) { background: var(--primary-softer); }

/* ---------- 性能等级 ---------- */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; text-align: center; font-size: var(--fs-small); }
.level { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 6px; background: var(--surface); }
.level-label { color: var(--text-muted); font-size: var(--fs-tiny); }
.level-score { font-weight: 700; margin-top: 3px; }
.level-gold { border-color: #e7c86a; background: #fdf8e7; }
.level-gold .level-score { color: #a16207; }
.level-beast { border-color: #10b981; background: linear-gradient(160deg, #e7f9f1, #d1fae5); }
.level-beast .level-score { color: #047857; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-4); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); position: relative; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #a21caf); color: #fff; font-weight: 700; margin-bottom: var(--sp-3);
}
.step h3 { font-size: .98rem; margin-bottom: var(--sp-1); }
.step p { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- 富文本正文 ---------- */
.prose { font-size: var(--fs-body); line-height: 1.9; color: var(--text); }
.prose > h2 { font-size: 1.35rem; margin: var(--sp-7) 0 var(--sp-3); padding-top: var(--sp-3); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: var(--sp-5) 0 var(--sp-2); }
.prose p { margin: var(--sp-3) 0; }
.prose ul, .prose ol { margin: var(--sp-3) 0 var(--sp-4); }
.prose li { margin: 5px 0; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--primary); background: var(--primary-softer); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-muted); }
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.prose .table-wrap { margin: var(--sp-4) 0; }

/* 提示框 */
.note, .warn, .tip { display: flex; gap: 10px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); margin: var(--sp-4) 0; font-size: var(--fs-body); line-height: 1.7; }
.note { background: #edf4fe; color: #1c4e8c; }
.warn { background: #fdf3e3; color: #8a5a0a; }
.warn-red { background: #fdeef0; color: #a31538; }
.tip { background: #e7f7ee; color: #0a6b38; }
.note strong, .warn strong, .tip strong { font-weight: 700; }

/* ---------- FAQ ---------- */
.qa-list { display: flex; flex-direction: column; gap: var(--sp-3); }
details.qa { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
details.qa summary {
  list-style: none; cursor: pointer; padding: var(--sp-3) var(--sp-4);
  font-weight: 600; display: flex; align-items: center; gap: 10px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  transition: transform .2s;
}
details.qa[open] summary::before { content: "−"; background: var(--primary); color: #fff; }
details.qa summary:hover { background: var(--surface-2); }
details.qa .qa-body { padding: 0 var(--sp-4) var(--sp-3) calc(var(--sp-4) + 32px); color: var(--text-muted); font-size: var(--fs-body); line-height: 1.8; }
details.qa .qa-body p { margin: 6px 0; }

/* ---------- 阅读卡片 ---------- */
.read-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--sp-4); }
.read-card { display: flex; flex-direction: column; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.read-card:hover { box-shadow: var(--sh-card); transform: translateY(-2px); }
.read-card .rc-tag { font-size: var(--fs-tiny); font-weight: 700; color: var(--primary); }
.read-card h3 { font-size: .98rem; line-height: 1.45; }
.read-card p { color: var(--text-muted); font-size: var(--fs-small); flex: 1; }
.read-card .rc-meta { font-size: var(--fs-tiny); color: var(--text-faint); }

/* ---------- CTA 带 ---------- */
.cta-band {
  background: linear-gradient(120deg, #151a33 0%, #2a1f5e 55%, #0f3a33 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(26px, 5vw, 44px);
  display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: space-between;
  margin: var(--sp-7) 0 var(--sp-6); border: 1px solid rgba(255,255,255,.1);
}
.cta-band h2 { font-size: 1.4rem; }
.cta-band p { color: #c9d0e6; margin-top: 5px; max-width: 36em; }

/* ---------- 双栏正文 ---------- */
.layout-2col { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--sp-7); align-items: start; }
.layout-2col > .main-col { min-width: 0; }
.layout-2col > .side-col { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: var(--sp-4); }
.card-soft { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.card-soft h3 { font-size: var(--fs-small); margin-bottom: var(--sp-3); letter-spacing: .05em; color: var(--text-muted); }
.card-soft ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.card-soft ul a { color: var(--text-muted); text-decoration: none; font-size: var(--fs-body); }
.card-soft ul a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
table.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-weight: 700; font-size: var(--fs-tiny); color: var(--text-muted); letter-spacing: .02em; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--primary-softer); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #c6cde2; margin-top: var(--sp-8); }
.site-footer .container { padding-top: var(--sp-7); padding-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.f-brand .brand-name { color: #fff; }
.f-brand .brand-sub { color: #8b94b8; }
.f-brand p { color: #98a2c3; margin-top: var(--sp-3); font-size: var(--fs-small); line-height: 1.9; }
.f-title { font-size: var(--fs-small); font-weight: 700; margin-bottom: var(--sp-3); color: #fff; letter-spacing: .03em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer ul a { color: #98a2c3; text-decoration: none; font-size: var(--fs-small); }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #232a45; padding: var(--sp-4) 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between;
  color: #7d87ab; font-size: var(--fs-tiny);
}
.footer-icp a { color: #98a2c3; text-decoration: none; }
.footer-icp a:hover { color: #fff; }

/* ---------- 回到顶部 / Toast ---------- */
.backtop {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-card);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background-color .2s;
}
.backtop.show { opacity: 1; pointer-events: auto; transform: none; }
.backtop:hover { background: var(--primary-soft); }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-full);
  font-size: var(--fs-small); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: var(--sh-pop);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- 时间线/更新日志 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 var(--sp-5) 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); }
.timeline time { font-weight: 700; font-size: var(--fs-body); }
.timeline p { color: var(--text-muted); font-size: var(--fs-small); margin-top: 2px; }

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border);
  border-radius: var(--r-full); background: var(--surface); color: var(--text-muted);
  font-size: var(--fs-small); text-decoration: none; transition: all .15s;
}
.tag-cloud a:hover { color: var(--primary); border-color: #c4b5fd; background: var(--primary-softer); }

/* ---------- 广告位（空时隐藏） ---------- */
.ad-slot { display: block; overflow: hidden; }
.ad-slot:empty { display: none; }

/* ---------- 404 ---------- */
.err-body { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--sp-8) var(--sp-5); gap: var(--sp-4); }
.err-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(135deg, var(--primary), #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px){
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { margin: 0 auto; width: min(100%, 460px); }
  .hero-media img { border-radius: var(--r-md); }
}
@media (max-width: 1024px){
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .layout-2col > .side-col { position: static; }
  .bench-layout { grid-template-columns: 1fr; }
}
@media (max-width: 950px){
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 743px){
  .section { padding: var(--sp-6) 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .level:last-child { grid-column: span 2; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .status { white-space: normal; max-width: 100%; }
}
@media (max-width: 600px){
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
}
.mobile-hint { display: none; }
