/* ============ 设计令牌 ============ */
:root {
  --bg: #0e1320;
  --panel: #151c2c;
  --panel-2: #1a2336;
  --line: #2b3652;
  --text: #e8edf7;
  --muted: #97a3bc;
  --vue: #42d392;
  --vue-dim: rgba(66, 211, 146, .14);
  --react: #61dafb;
  --react-dim: rgba(97, 218, 251, .13);
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --mono: "Cascadia Code", Consolas, "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 500px at 15% -5%, rgba(66, 211, 146, .07), transparent 60%),
    radial-gradient(1200px 500px at 85% -5%, rgba(97, 218, 251, .07), transparent 60%);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}
code { font-family: var(--mono); font-size: .92em; background: rgba(255,255,255,.06); padding: .1em .35em; border-radius: 4px; }
a { color: var(--react); }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 28px;
  background: rgba(14, 19, 32, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand .vs { color: var(--amber); }
.brand em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); border-color: var(--line); background: var(--panel-2); }
.nav a.lab-entry { color: var(--amber); border-color: rgba(251, 191, 36, .45); }
.nav a.lab-entry:hover { border-color: var(--amber); background: rgba(251, 191, 36, .08); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }

/* ============ 首页 ============ */
.hero { padding: 72px 0 56px; }
.kicker { color: var(--amber); font-size: 13.5px; letter-spacing: .08em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.45; font-weight: 700; }
.hero h1 .vue { font-style: normal; color: var(--vue); }
.hero h1 .react { font-style: normal; color: var(--react); }
.hero-sub { margin-top: 20px; max-width: 760px; color: var(--muted); font-size: 15.5px; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.mini-card {
  display: block; text-decoration: none; padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  transition: transform .15s, border-color .15s;
}
.mini-card:hover { transform: translateY(-2px); }
.mini-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.mini-card span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.mc-vue:hover { border-color: var(--vue); } .mc-vue b { color: var(--vue); }
.mc-mid:hover { border-color: var(--amber); } .mc-mid b { color: var(--amber); }
.mc-react:hover { border-color: var(--react); } .mc-react b { color: var(--react); }
.mc-fx:hover { border-color: var(--purple); } .mc-fx b { color: var(--purple); }

/* ============ 概念页骨架 ============ */
.concept { padding: 56px 0 8px; }
.concept-head { margin-bottom: 22px; }
.concept-no { color: var(--amber); font-size: 13px; letter-spacing: .08em; }
.concept-head h2 { font-size: clamp(21px, 3vw, 28px); margin: 8px 0 12px; }
.lede { color: var(--muted); max-width: 860px; font-size: 15px; }
.lede b { color: var(--text); }

/* ============ 演示卡片与控件 ============ */
.demo-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px 22px; margin-bottom: 18px;
}
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.controls { display: flex; gap: 8px; }
.btn {
  font: inherit; font-size: 13.5px; cursor: pointer;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--vue-dim); border-color: var(--vue); color: var(--vue); }
.btn.primary.playing { background: rgba(251, 191, 36, .12); border-color: var(--amber); color: var(--amber); }
.btn.ghost { background: transparent; color: var(--muted); }
.dots { display: flex; gap: 7px; align-items: center; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0;
}
.dot.on { background: var(--amber); border-color: var(--amber); }
.dot.past { background: rgba(251, 191, 36, .35); border-color: transparent; }

.caption { margin-top: 16px; color: var(--muted); font-size: 14px; min-height: 3.2em; }
.caption b { color: var(--text); }
.caption .hot-word { color: var(--amber); font-weight: 700; }

/* ============ 概念一：双泳道时间轴 ============ */
.stage-heads {
  display: grid; grid-template-columns: 190px repeat(5, 1fr); gap: 8px; margin-bottom: 8px;
}
.stage-h { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.stage-h.cur { color: var(--amber); border-bottom-color: var(--amber); }
.lane { display: grid; grid-template-columns: 190px repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.lane-head {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 10px 12px; border-radius: 10px; background: var(--panel-2);
  border: 1px solid var(--line); font-size: 13px;
}
.lane.vue .lane-head { border-left: 3px solid var(--vue); }
.lane.react .lane-head { border-left: 3px solid var(--react); }
.lane-name { font-weight: 700; font-size: 14px; }
.lane-mode { font-size: 11.5px; color: var(--muted); }
.lane.vue .lane-mode { color: var(--vue); }
.lane.react .lane-mode { color: var(--react); }
.lane-counter { font-size: 11.5px; color: var(--amber); min-height: 1.4em; }

.cell {
  position: relative; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); padding: 10px 11px; font-size: 12.5px;
  display: flex; flex-direction: column; gap: 4px; min-height: 96px;
  transition: border-color .25s, box-shadow .25s, background .25s, opacity .25s;
}
.cell .cell-title { font-weight: 700; font-size: 12.5px; }
.cell .cell-desc { color: var(--muted); line-height: 1.5; }
.cell .cell-tag { margin-top: auto; font-size: 11px; color: var(--muted); }
.cell.past { opacity: .55; }
.cell.cur { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.cell.lit { border-color: var(--vue); background: var(--vue-dim); box-shadow: 0 0 14px rgba(66, 211, 146, .25); }
.cell.lit .cell-title { color: var(--vue); }
.cell.void { border-style: dashed; background: transparent; }
.cell.void .cell-title { color: var(--muted); }
.lane.react .cell.lit { border-color: var(--react); background: var(--react-dim); box-shadow: 0 0 14px rgba(97, 218, 251, .25); }
.lane.react .cell.lit .cell-title { color: var(--react); }

.lamp {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #3a465f; margin-right: 5px; vertical-align: 1px; transition: background .25s, box-shadow .25s;
}
.cell.lit .lamp { background: var(--vue); box-shadow: 0 0 8px var(--vue); animation: pulse 1.2s ease-in-out infinite; }
.lane.react .cell.lit .lamp { background: var(--react); box-shadow: 0 0 8px var(--react); }
@keyframes pulse { 50% { opacity: .55; } }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0; }
.mini-grid i {
  height: 9px; border-radius: 3px; background: #31405f; transition: background .25s, box-shadow .25s;
}
.cell.hotgrid .mini-grid i { background: var(--react); box-shadow: 0 0 6px rgba(97, 218, 251, .8); }
.cell.hotgrid .mini-grid i:nth-child(2n) { transition-delay: .12s; }
.cell.hotgrid .mini-grid i:nth-child(3n) { transition-delay: .24s; }
.solo-dot { height: 9px; width: 34%; border-radius: 3px; background: #31405f; margin: 4px 0; transition: background .25s, box-shadow .25s; }
.cell.lit .solo-dot { background: var(--vue); box-shadow: 0 0 6px rgba(66, 211, 146, .8); }

/* ============ 概念二：对象与双面板 ============ */
.obj-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.obj-card {
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px;
  padding: 12px 16px; min-width: 400px;
}
.obj-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.obj-row { display: grid; grid-template-columns: 110px 1fr 130px; gap: 10px; font-size: 13px; padding: 4px 6px; border-radius: 8px; align-items: center; }
.obj-row .f-key { color: var(--purple); font-family: var(--mono); }
.obj-row .f-val { font-family: var(--mono); }
.obj-row .f-bind { color: var(--muted); font-size: 11.5px; text-align: right; font-family: var(--mono); }
.obj-row.target { outline: 1px dashed var(--amber); outline-offset: 2px; }
.obj-row.changed { background: rgba(251, 191, 36, .14); }
.obj-row.changed .f-val { color: var(--amber); font-weight: 700; }
.obj-note { margin-top: 8px; font-size: 12px; color: var(--amber); min-height: 1.5em; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel-2); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.panel.vue .panel-head b { color: var(--vue); }
.panel.react .panel-head b { color: var(--react); }
.panel-note { font-size: 11.5px; color: var(--muted); }

.comp-frame {
  position: relative; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px; transition: border-color .3s, box-shadow .3s;
}
.comp-frame.queued { border-color: var(--vue); box-shadow: 0 0 10px rgba(66, 211, 146, .2); }
.comp-frame.rerun { animation: framePulse 1s ease-in-out 2; }
.panel.react .comp-frame.rerun { border-color: var(--red); }
@keyframes framePulse { 50% { box-shadow: 0 0 22px rgba(248, 113, 113, .45); } }
.frame-badge {
  position: absolute; top: -11px; left: 12px; font-size: 11px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted);
}
.frame-badge.show { color: var(--vue); border-color: var(--vue); }
.panel.react .frame-badge.show { color: var(--red); border-color: var(--red); }

.bind-node {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 6px 10px; margin-top: 8px; font-size: 12.5px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.bind-node .bn-name { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.bind-node .bn-val { font-family: var(--mono); font-size: 11.5px; }
.bind-node.lit { border-color: var(--vue); background: var(--vue-dim); box-shadow: 0 0 10px rgba(66, 211, 146, .3); }
.bind-node.lit .bn-name { color: var(--vue); }
.panel.react .bind-node.rerun-flash { animation: nodeFlash .8s ease-in-out 2; }
@keyframes nodeFlash { 50% { border-color: var(--red); box-shadow: 0 0 10px rgba(248, 113, 113, .4); } }
.bind-node.hot { border-color: var(--amber); background: rgba(251, 191, 36, .14); box-shadow: 0 0 10px rgba(251, 191, 36, .35); }
.bind-node.hot .bn-val { color: var(--amber); font-weight: 700; }
.bind-node.cached { border-color: var(--react); box-shadow: inset 0 0 0 1px var(--react); }
.bind-node .bn-cache {
  font-size: 10.5px; color: var(--react); border: 1px solid var(--react);
  border-radius: 999px; padding: 0 7px; white-space: nowrap;
}

.queue-chip, .banner {
  margin-top: 10px; font-size: 12px; border-radius: 8px; padding: 5px 10px;
  border: 1px dashed var(--line); color: var(--muted); display: none;
}
.queue-chip.show { display: block; border-color: var(--react); color: var(--react); }
.banner.show { display: block; border-style: solid; border-color: var(--red); color: var(--red); }
.banner.vue-show { display: block; border-style: solid; border-color: var(--vue); color: var(--vue); }

/* ============ 概念三：插槽链 ============ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel-2); }
.side-head { font-size: 14px; margin-bottom: 10px; }
.side-react .side-head b { color: var(--react); }
.side-vue .side-head b { color: var(--vue); }

.code {
  font-family: var(--mono); font-size: 12px; line-height: 1.75;
  background: #0b101c; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; overflow-x: auto; white-space: pre; margin-bottom: 12px;
}
.code .kw { color: var(--purple); }
.code .fx { color: var(--react); }
.side-vue .code .fx { color: var(--vue); }
.code .str { color: var(--amber); }
.code .bool { color: var(--amber); }
.code .cm { color: #5c6b8a; }
.hl-if { display: block; border-left: 3px solid transparent; margin-left: -14px; padding-left: 11px; transition: background .3s, border-color .3s; }
.hl-if.warn { background: rgba(248, 113, 113, .1); border-left-color: var(--red); }
.hl-if.dimmed { opacity: .38; }

.slot-label { font-size: 11.5px; color: var(--muted); margin: 10px 0 6px; }
.slot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.slot { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); min-height: 62px; padding: 6px 8px; transition: border-color .3s, box-shadow .3s; }
.slot .slot-idx { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.slot .slot-body { margin-top: 4px; }
.slot.lit { border-color: var(--react); box-shadow: 0 0 9px rgba(97, 218, 251, .25); }
.slot.conflict { border-color: var(--red); box-shadow: 0 0 14px rgba(248, 113, 113, .5); animation: shake .45s ease-in-out 2; }
.slot.orphan { opacity: .4; border-style: dashed; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.token {
  display: inline-flex; flex-direction: column; gap: 1px;
  border-radius: 7px; padding: 3px 8px; font-size: 11px; font-family: var(--mono);
  border: 1px solid var(--line); background: var(--panel-2); line-height: 1.4;
}
.token .tk-name { font-weight: 700; }
.t-name  { border-color: var(--react); } .t-name .tk-name { color: var(--react); }
.t-dark  { border-color: var(--purple); } .t-dark .tk-name { color: var(--purple); }
.t-tip   { border-color: var(--amber); } .t-tip .tk-name { color: var(--amber); }
.t-fx    { border-color: var(--vue); } .t-fx .tk-name { color: var(--vue); }
.token.dupe { position: absolute; }
.slot .slot-body { position: relative; }
.slot.conflict .token.crash { border-color: var(--red); box-shadow: 0 0 8px rgba(248, 113, 113, .6); }
.slot.conflict .token.crash .tk-name { color: var(--red); }
.crash-mark { display: none; font-size: 10.5px; color: var(--red); font-weight: 700; }
.slot.conflict .crash-mark { display: block; }

.call-list { margin-top: 12px; font-family: var(--mono); font-size: 12px; }
.call-list .call-title { font-family: inherit; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.call { display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; border-radius: 6px; color: var(--muted); }
.call.ok { color: var(--react); }
.call.ok b { color: var(--text); font-weight: 400; }
.call.skip { color: var(--muted); text-decoration: line-through; opacity: .6; }
.call.crash { color: var(--red); font-weight: 700; background: rgba(248, 113, 113, .1); }

.ref-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ref-box { border: 1px solid var(--vue); border-radius: 9px; background: var(--vue-dim); padding: 6px 8px; min-height: 62px; }
.ref-box .slot-idx { font-size: 10.5px; color: var(--vue); font-family: var(--mono); }
.ref-box .tk-name { color: var(--text); }
.setup-badge {
  margin-top: 12px; font-size: 12px; color: var(--vue);
  border: 1px solid var(--vue); border-radius: 999px; display: inline-block; padding: 2px 12px;
}

/* ============ 概念四：effect 家族 ============ */
.ef-source { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ef-state {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px;
  padding: 8px 14px; font-size: 13px; transition: border-color .25s, box-shadow .25s;
}
.ef-state.changed { border-color: var(--amber); box-shadow: 0 0 12px rgba(251, 191, 36, .35); }
.ef-count { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--vue); min-width: 2ch; text-align: center; }

.ef-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.ef-card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
  padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 158px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.ef-card .ef-name { font-weight: 700; font-size: 13.5px; }
.ef-card .ef-src { font-size: 10.5px; color: var(--muted); line-height: 1.5; font-family: var(--mono); }
.ef-tag { align-self: flex-start; font-size: 10.5px; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; color: var(--muted); }
.ef-tag.eager { color: var(--react); border-color: var(--react); }
.ef-tag.lazy { color: var(--amber); border-color: var(--amber); }
.ef-card .ef-status { margin-top: auto; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.ef-card .ef-val { font-family: var(--mono); font-style: normal; }

.ef-card.flash-sync { border-color: var(--amber); background: rgba(251, 191, 36, .12); box-shadow: 0 0 14px rgba(251, 191, 36, .4); }
.ef-card.flash-sync .ef-status { color: var(--amber); }
.ef-card.flash-sync .ef-name { color: var(--amber); }

.ef-card.queued { border-color: var(--react); box-shadow: 0 0 0 1px var(--react); }
.ef-card.queued .ef-status { color: var(--react); }
.ef-card.queued .ef-name { color: var(--react); }

.ef-card.ran { border-color: var(--vue); background: var(--vue-dim); box-shadow: 0 0 12px rgba(66, 211, 146, .3); }
.ef-card.ran .ef-status { color: var(--vue); }
.ef-card.ran .ef-name { color: var(--vue); }

.ef-dirty {
  display: none; align-self: flex-start;
  font-size: 10px; font-weight: 700; color: #0e1320;
  background: var(--amber); border-radius: 999px; padding: 0 9px; line-height: 1.7;
}
.ef-card.dirty { border-color: var(--amber); }
.ef-card.dirty .ef-name { color: var(--amber); }
.ef-card.dirty .ef-dirty { display: inline-block; animation: pulse 1.2s ease-in-out infinite; }

.ef-queue-wrap { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px 12px; background: rgba(0, 0, 0, .15); }
.ef-queue-label { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.ef-queue { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 32px; }
.ef-chip {
  font-family: var(--mono); font-size: 11.5px;
  border: 1px solid var(--react); color: var(--react); background: rgba(97, 218, 251, .08);
  border-radius: 999px; padding: 3px 12px; animation: efFly .4s ease;
  transition: border-color .3s, color .3s, background .3s;
}
@keyframes efFly { from { opacity: 0; transform: translateY(-10px); } }
.ef-chip.done { border-color: var(--vue); color: var(--vue); background: var(--vue-dim); }
.ef-queue-empty { font-size: 11.5px; color: #5c6b8a; }
.ef-nexttick {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-family: var(--mono);
  color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 12px;
  transition: color .3s, border-color .3s, border-style .3s;
}
.ef-nexttick.fired { color: var(--vue); border-color: var(--vue); border-style: solid; }

.ef-log {
  margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  display: flex; flex-direction: column; gap: 3px; max-height: 150px; overflow-y: auto;
}
.ef-log .l-sync { color: var(--amber); }
.ef-log .l-lazy { color: var(--purple); }
.ef-log .l-queue { color: var(--react); }
.ef-log .l-tick { color: var(--vue); }

/* ============ 概念四：代码示例墙 ============ */
.ef-code-sec { margin-top: 4px; }
.ef-code-title { color: var(--text); font-size: 15px; margin: 26px 0 12px; }
.ef-code-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ef-code-item {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
  padding: 12px 14px 14px; min-width: 0;
}
.ef-code-item.span2 { grid-column: 1 / -1; }
.ef-code-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.ef-code-name { font-weight: 700; font-size: 13.5px; }
.ef-code-sub { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; }
.ef-beat { font-size: 11px; color: var(--amber); font-family: var(--mono); }
.ef-code-item .code { margin-bottom: 0; font-size: 11.5px; background: #0b101c; }
.ef-code-item .code .fx { color: var(--vue); }
.ef-code-item.react-side { border-color: rgba(97, 218, 251, .45); }
.ef-code-item.react-side .code .fx { color: var(--react); }

/* ============ 汇总 / 注释卡 / 页脚 ============ */
.verdict {
  margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px;
  font-size: 13.5px; color: var(--muted);
}
.verdict h3 { color: var(--text); font-size: 15px; margin-bottom: 10px; }
.verdict table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.verdict th, .verdict td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.verdict thead th { color: var(--text); }
.verdict .th-vue { color: var(--vue); }
.verdict .th-react { color: var(--react); }
.verdict tbody th { color: var(--amber); white-space: nowrap; font-weight: 600; width: 90px; }
.verdict td b { color: var(--text); }
.verdict-punch { margin-top: 12px; color: var(--text); }
.verdict-punch b { color: var(--amber); }

.notes { display: grid; gap: 12px; margin-bottom: 30px; }
.callout { border-radius: 12px; padding: 13px 16px; font-size: 13.5px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.callout b { color: var(--text); }
.callout.c-intent { border-left: 3px solid var(--amber); }
.callout.c-trap { border-left: 3px solid var(--red); }
.callout.c-sum { border-left: 3px solid var(--vue); }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 22px 28px 30px; color: var(--muted); font-size: 12.5px; text-align: center;
}
.site-footer .fine { margin-top: 6px; color: #6b7690; font-size: 11.5px; }
.site-footer a { color: var(--react); }

@media (max-width: 860px) {
  .hero-cards, .panels, .duo { grid-template-columns: 1fr; }
  .ef-cards { grid-template-columns: repeat(2, 1fr); }
  .ef-code-wall { grid-template-columns: 1fr; }
  .stage-heads, .lane { grid-template-columns: 96px repeat(5, 1fr); gap: 5px; }
  .lane-head { font-size: 11px; padding: 6px; }
  .lane-name { font-size: 12px; }
  .cell { font-size: 11px; padding: 7px; min-height: 88px; }
  .obj-card { min-width: 0; width: 100%; }
  .topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero-cards, .ef-cards { grid-template-columns: 1fr; }
}

/* ============ 概念五：组件树双泳道 ============ */
.mc-store:hover { border-color: var(--purple); } .mc-store b { color: var(--purple); }
.mc-compiler:hover { border-color: var(--amber); } .mc-compiler b { color: var(--amber); }

.case-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-tab-label { font-size: 12px; color: var(--muted); }
.case-tab {
  font: inherit; font-size: 12.5px; cursor: pointer;
  color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  transition: border-color .15s, color .15s, background .15s;
}
.case-tab:hover { color: var(--text); }
.case-tab.on { color: var(--react); border-color: var(--react); background: var(--react-dim); }

.ct-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-side { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel-2); min-width: 0; }
.ct-side-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; font-size: 13px; }
.ct-side.vue .ct-side-head b { color: var(--vue); }
.ct-side.react .ct-side-head b { color: var(--react); }
.ct-side-head span { font-size: 11px; color: var(--muted); }
.ct-tree { min-width: 0; }

.ct-node {
  position: relative; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--panel); padding: 8px 12px;
  transition: border-color .3s, background .3s, box-shadow .3s, opacity .3s;
}
.ct-name { font-weight: 700; font-size: 13px; font-family: var(--mono); }
.ct-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); line-height: 1.5; }
.ct-badge {
  position: absolute; top: -10px; right: 10px; max-width: calc(100% - 16px);
  font-size: 10.5px; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 9px; color: var(--muted); display: none;
}
.ct-node.show-badge .ct-badge { display: inline-block; }
.ct-node.lit { border-color: var(--vue); background: var(--vue-dim); box-shadow: 0 0 12px rgba(66, 211, 146, .28); }
.ct-side.react .ct-node.lit { border-color: var(--react); background: var(--react-dim); box-shadow: 0 0 12px rgba(97, 218, 251, .28); }
.ct-node.skip { border-style: dashed; opacity: .55; }
.ct-node.drag { border-color: var(--red); background: rgba(248, 113, 113, .08); }
.ct-node.rerun { animation: framePulse 1s ease-in-out 2; border-color: var(--red); }
.ct-kids {
  margin: 8px 0 0 20px; border-left: 1px dashed var(--line); padding-left: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.ct-note { margin-top: 12px; font-size: 12px; color: var(--muted); min-height: 4.5em; line-height: 1.7; }
.ct-note b { color: var(--text); }

/* ============ 概念六：分段开关与树 ============ */
.c6-toggles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button {
  font: inherit; font-size: 12px; border: none; background: transparent;
  color: var(--muted); padding: 5px 13px; cursor: pointer;
  transition: color .15s, background .15s;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--panel-2); color: var(--amber); }
.c6-round { font-size: 12px; color: var(--muted); margin-left: 10px; font-family: var(--mono); }
.c6-tree { margin-bottom: 4px; }
.c6-tree > .ct-kids { margin-top: 10px; }

@media (max-width: 860px) {
  .ct-wrap { grid-template-columns: 1fr; }
}

/* ============ 首页新卡片 ============ */
.mc-ssr:hover { border-color: var(--vue); } .mc-ssr b { color: var(--vue); }
.mc-qa:hover { border-color: var(--amber); } .mc-qa b { color: var(--amber); }

/* ============ 概念七：渲染模式选择器 ============ */
.c7-mode-title { color: var(--text); font-size: 15px; margin-bottom: 12px; }
.c7-toggles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.c7-mode-text { color: var(--muted); font-size: 13px; line-height: 1.8; }
.c7-mode-text b { color: var(--text); }

/* ============ 章节八：面试题手风琴 ============ */
.c8-progress { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-item {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.qa-item:hover { border-color: var(--muted); }
.qa-item.open { border-color: var(--purple); box-shadow: 0 0 12px rgba(167, 139, 250, .18); }
.qa-q {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  font: inherit; text-align: left; color: var(--text); background: transparent;
  border: none; cursor: pointer; padding: 13px 16px;
}
.qa-no { font-family: var(--mono); font-weight: 700; color: var(--amber); flex: none; }
.qa-text { font-size: 14px; font-weight: 600; line-height: 1.55; }
.qa-tag {
  flex: none; align-self: center; font-size: 10.5px; font-family: var(--mono);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted);
}
.qa-tag.t-vue { color: var(--vue); border-color: var(--vue); }
.qa-tag.t-react { color: var(--react); border-color: var(--react); }
.qa-tag.t-both { color: var(--amber); border-color: var(--amber); }
.qa-tag.t-ssr { color: var(--purple); border-color: var(--purple); }
.qa-q .chev { margin-left: auto; flex: none; color: var(--muted); transition: transform .2s; }
.qa-item.open .chev { transform: rotate(90deg); }
.qa-a { display: none; padding: 0 18px 15px; }
.qa-item.open .qa-a { display: block; }
.qa-a p { font-size: 13.5px; color: var(--muted); line-height: 1.8; border-top: 1px dashed var(--line); padding-top: 12px; }
.qa-a p b { color: var(--text); }
.qa-plus { margin-top: 8px; color: var(--vue) !important; font-size: 12.5px; }
.qa-plus::before { content: '✚ 加分点 · '; font-weight: 700; }

@media (max-width: 640px) {
  .qa-q { flex-wrap: wrap; }
  .qa-tag { order: 3; margin-left: 32px; }
  .qa-q .chev { align-self: center; }
}
