/* =========================================================
   各场景样式
   ========================================================= */

.scene [data-until] { transition: opacity .5s ease, transform .6s var(--ease-out); }
.lesson-tag.sm { min-width: 32px; height: 32px; font-size: 18px; border-radius: 9px; margin-right: 2px; letter-spacing: 0; }
.lesson-tag.t3, .lesson-tag.rose { background: var(--rose); }
.lesson-tag.teal { background: var(--teal); }
.kicker .lesson-tag { text-transform: none; }

/* =========================================================
   00 封面
   ========================================================= */
.s-title { padding: 0; }
.pcb { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }
.title-wrap { position: absolute; left: 130px; top: 112px; width: 1170px; }
.venue { display: flex; align-items: center; gap: 18px; }
.venue-badge {
  font-family: var(--font-mono); font-weight: 700; font-size: 20px; letter-spacing: .14em;
  padding: 8px 16px; border-radius: 10px; background: var(--accent); color: var(--ink-inv);
}
.venue-meta { font-family: var(--font-mono); font-size: 19px; color: var(--ink-2); letter-spacing: .04em; }
.title-quote {
  font-family: var(--font-display); font-size: 82px; line-height: 1.04; font-weight: 700;
  letter-spacing: -.028em; margin: 44px 0 0; color: var(--ink);
}
.title-quote em {
  font-style: normal;
  background: linear-gradient(92deg, var(--cyan) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-sub { font-size: 30px; line-height: 1.38; color: var(--ink); margin: 30px 0 0; font-weight: 550; max-width: 1020px; letter-spacing: -.005em; }
.title-cn { font-size: 26px; color: var(--ink-2); margin: 14px 0 0; }
.authors { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 1160px; }
.authors .names { font-size: 23px; color: var(--ink); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.authors sup { color: var(--accent); font-size: .62em; margin-left: 1px; font-weight: 700; }
.authors .affs { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px 30px; margin-top: 16px; font-size: 18px; color: var(--ink-3); }
.presenter { margin-top: 38px; display: flex; align-items: center; gap: 18px; font-size: 21px; color: var(--ink-2); }
.presenter i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.presenter b { color: var(--ink); }

.title-chip { position: absolute; right: 120px; top: 300px; width: 480px; height: 480px; }
.chip-svg { width: 100%; height: 100%; overflow: visible; }
.chip-body { fill: var(--panel); stroke: var(--line-2); stroke-width: 2; }
.chip-inner { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.chip-die { stroke: color-mix(in srgb, var(--cyan) 50%, transparent); stroke-width: 1.5; }
.chip-lock { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.chip-lock rect { fill: color-mix(in srgb, var(--bg) 60%, transparent); }
.chip-label { font-family: var(--font-mono); font-size: 15px; fill: var(--ink-3); text-anchor: middle; letter-spacing: .12em; }
.chip-dot { fill: var(--ink-3); }
.core-glow { animation: coreGlow 3.2s ease-in-out infinite; transform-origin: 220px 220px; }
@keyframes coreGlow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }
.pins rect { fill: var(--line-2); }
.pins rect.lit { fill: var(--cyan); animation: pinLit 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes pinLit { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* =========================================================
   01 MCU
   ========================================================= */
.s-mcu .fill { position: relative; }
.devices { position: absolute; inset: 0 0 40px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 34px; }
.dev {
  width: 340px; height: 330px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.dev-ico { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 10px; }
.dev-ico > svg { width: 128px; height: 128px; stroke: var(--ink-2); stroke-width: 1.15; }
.dev-chip {
  position: absolute; right: 4px; bottom: 6px; width: 46px; height: 46px; border-radius: 11px;
  background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 34px var(--accent);
  animation: devChip 2.6s ease-in-out infinite;
}
.dev-chip::after { content: ""; position: absolute; inset: 12px; border-radius: 4px; border: 2px solid var(--ink-inv); opacity: .7; }
.dev:nth-child(2) .dev-chip { animation-delay: .4s; } .dev:nth-child(3) .dev-chip { animation-delay: .8s; } .dev:nth-child(4) .dev-chip { animation-delay: 1.2s; }
@keyframes devChip { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.dev b { font-size: 31px; color: var(--ink); }
.dev span { font-size: 18px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .06em; }
.dev-cap { width: 100%; text-align: center; font-size: 27px; color: var(--ink-2); margin: 18px 0 0; }

.s-mcu .anatomy {
  position: absolute; top: 0; left: 460px; width: 760px; height: 560px;
  transition: opacity .6s ease, transform .75s var(--ease-out), left .9s var(--ease-out), top .9s var(--ease-out), width .9s var(--ease-out), height .9s var(--ease-out);
}
.s-mcu:is([data-step="2"], [data-step="3"]) .anatomy { left: -20px; top: 10px; width: 700px; height: 516px; }
.anat-svg { width: 100%; height: 100%; overflow: visible; }
.anat-body { fill: var(--panel); stroke: var(--line-2); stroke-width: 2; }
.anat-pins rect { fill: var(--line-2); }
.anat-title { font-family: var(--font-mono); font-size: 18px; fill: var(--ink-3); letter-spacing: .14em; }
.anat-trace { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-dasharray: 6 6; }
.anat-flow { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.anat-flow.f2 { fill: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }
.blk rect { stroke-width: 2; }
.blk-cpu rect { fill: color-mix(in srgb, var(--cyan) 13%, var(--panel)); stroke: color-mix(in srgb, var(--cyan) 60%, transparent); }
.blk-flash rect { fill: color-mix(in srgb, var(--amber) 12%, var(--panel)); stroke: color-mix(in srgb, var(--amber) 60%, transparent); }
.blk-sram rect { fill: color-mix(in srgb, var(--violet) 13%, var(--panel)); stroke: color-mix(in srgb, var(--violet) 60%, transparent); }
.blk-io rect { fill: color-mix(in srgb, var(--teal) 12%, var(--panel)); stroke: color-mix(in srgb, var(--teal) 60%, transparent); }
.blk text { text-anchor: middle; }
.blk-t { font-family: var(--font-display); font-weight: 700; font-size: 40px; fill: var(--ink); }
.blk-t.sm { font-size: 30px; }
.blk-s { font-size: 21px; fill: var(--ink-2); }
.blk-m { font-family: var(--font-mono); font-size: 19px; fill: var(--ink-3); }

.compare { position: absolute; right: 0; top: 0; width: 930px; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 100px 250px 300px 1fr; align-items: center; gap: 14px; }
.cmp-head { padding: 0 0 14px; font-size: 21px; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cmp-head span { display: inline-flex; align-items: center; gap: 10px; }
.cmp-head svg { width: 24px; height: 24px; }
.cmp-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cmp-row .k { font-size: 24px; color: var(--ink-3); }
.cmp-row .v { font-family: var(--font-display); font-size: 36px; font-weight: 650; color: var(--ink-2); letter-spacing: -.01em; }
.cmp-row:last-of-type .v { font-family: var(--font-sans); font-size: 27px; }
.cmp-row .v.hl { color: var(--accent); }
.cmp-row .ratio { justify-self: end; font-family: var(--font-mono); font-size: 22px; color: var(--amber); padding: 6px 14px; border-radius: 10px; background: color-mix(in srgb, var(--amber) 10%, transparent); }
.cmp-row .ratio:empty { display: none; }
.ram-btn { margin-top: 26px; }

.missing {
  position: absolute; right: 0; top: 448px; width: 930px; padding: 24px 30px;
  border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--rose) 55%, transparent);
  background: color-mix(in srgb, var(--rose) 6%, transparent);
}
.miss-title { font-size: 26px; color: var(--ink-2); margin-bottom: 18px; }
.miss-title b { color: var(--rose); }
.miss-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.miss { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.miss b { font-size: 24px; color: var(--ink); }
.miss em { font-style: normal; font-size: 17px; color: var(--ink-3); font-family: var(--font-mono); }
.miss::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 30px; height: 3px; border-radius: 3px;
  background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
  transition-delay: calc(.5s + var(--i) * .18s);
}
.missing.shown .miss::after { transform: scaleX(1); }
.missing.shown .miss b { color: var(--ink-3); transition: color .3s calc(.5s + var(--i) * .18s); }

.ram-overlay {
  position: absolute; inset: -10px -20px 0; z-index: 8; border-radius: 26px;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.ram-overlay.open { opacity: 1; pointer-events: auto; }
.ram-canvas { border-radius: 10px; }
.ram-cap { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 26px; color: var(--ink-2); }
.ram-cap b { color: var(--ink); }
.ram-cap-b { color: var(--amber); opacity: 0; transition: opacity .5s ease; }
.ram-cap-b b { color: var(--amber); }
.ram-overlay.phase2 .ram-cap-b { opacity: 1; }
.ram-close { position: absolute; right: 24px; top: 20px; }

/* =========================================================
   02 eCTF
   ========================================================= */
.s-ectf .fill { display: flex; flex-direction: column; justify-content: center; gap: 56px; padding-bottom: 30px; }
.phases { display: flex; align-items: center; }
.ph { display: grid; grid-template-columns: 84px auto; grid-template-rows: auto auto auto; column-gap: 20px; align-items: center; width: 400px; }
.ph-ico { grid-row: 1 / span 3; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.ph-ico svg { width: 40px; height: 40px; stroke: var(--ink); }
.ph-attack .ph-ico { background: color-mix(in srgb, var(--rose) 16%, transparent); border-color: color-mix(in srgb, var(--rose) 55%, transparent); }
.ph-attack .ph-ico svg { stroke: var(--rose); }
.ph-n { font-family: var(--font-mono); font-size: 16px; color: var(--accent); letter-spacing: .12em; }
.ph b { font-size: 32px; color: var(--ink); line-height: 1.2; }
.ph span { font-size: 20px; color: var(--ink-3); line-height: 1.45; }
.ph-line { flex: 1; height: 2px; margin: 0 26px; position: relative; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }
.ph-line .pkg {
  position: absolute; top: -21px; left: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line-2); animation: pkgMove 3.4s var(--ease-out) infinite;
}
.ph-line .pkg svg { width: 24px; height: 24px; stroke: var(--cyan); }
.ph-line .pkg.flagged::after { content: ""; position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.ph-line:last-of-type .pkg { animation-delay: 1.7s; }
@keyframes pkgMove { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 42px); opacity: 0; } }

.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.theme { padding: 30px 34px 34px; }
.theme-top { display: flex; align-items: center; gap: 18px; }
.theme-top b { font-size: 34px; color: var(--ink); }
.yr { font-family: var(--font-mono); font-weight: 700; font-size: 20px; padding: 6px 14px; border-radius: 10px; color: var(--ink-inv); background: var(--cyan); }
.yr.y24 { background: var(--violet); }
.theme-svg { width: 100%; height: 236px; margin: 22px 0 18px; overflow: visible; }
.theme-svg .board rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 2; }
.theme-svg .board.ap rect, .arena-svg .board.ap rect { stroke: color-mix(in srgb, var(--violet) 70%, transparent); }
.theme-svg .board text, .arena-svg .board text { text-anchor: middle; font-size: 30px; font-weight: 700; fill: var(--ink); }
.theme-svg .board text.sub, .arena-svg .board text.sub { font-size: 19px; font-weight: 400; fill: var(--ink-3); }
.theme-svg .wire, .arena-svg .wire { stroke: var(--line-2); stroke-width: 3; fill: none; }
.theme-svg .bus, .arena-svg .bus { stroke: var(--amber); stroke-width: 5; stroke-linecap: round; opacity: .75; }
.theme-svg .wire-l { font-family: var(--font-mono); font-size: 18px; fill: var(--ink-3); text-anchor: middle; }
.theme-svg .wire-l.end { text-anchor: start; fill: var(--amber); }
.pkt { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.pkt.p2 { fill: var(--violet); filter: drop-shadow(0 0 6px var(--violet)); }
.reqs { display: flex; flex-wrap: wrap; gap: 10px; }
.reqs .chip { font-size: 20px; padding: 8px 16px; }

/* =========================================================
   03 威胁模型
   ========================================================= */
.threat-grid { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: center; padding-bottom: 20px; }
.caps { display: flex; flex-direction: column; gap: 16px; }
.cap {
  display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.cap svg { grid-row: 1 / span 2; width: 42px; height: 42px; stroke: var(--cyan); }
.cap b { font-size: 29px; color: var(--ink); }
.cap span { font-size: 20px; color: var(--ink-3); }
.cap-eq { margin-top: 8px; font-size: 32px; color: var(--ink-2); padding-left: 6px; }
.cap-eq b { color: var(--rose); font-size: 40px; }

.arena { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: center; }
.arena-svg { width: 100%; height: auto; overflow: visible; }
.arena-svg .board rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 2; }
.arena-svg .atk { opacity: 0; transition: opacity .45s ease; }
.arena.show-1 .arena-svg .atk-1, .arena.show-2 .arena-svg .atk-2, .arena.show-3 .arena-svg .atk-3, .arena.show-4 .arena-svg .atk-4, .arena.show-5 .arena-svg .atk-5 { opacity: 1; }
.scope-box, .sniff-box, .dump-box { fill: var(--panel); stroke: var(--rose); stroke-width: 2; }
.scope-wave { fill: none; stroke: var(--rose); stroke-width: 3; stroke-dasharray: 260; animation: wave 1.6s linear infinite; }
@keyframes wave { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.probe { fill: none; stroke: var(--rose); stroke-width: 2.5; stroke-dasharray: 5 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.zap { fill: var(--amber); stroke: none; animation: zap 1.1s steps(2) infinite; filter: drop-shadow(0 0 10px var(--amber)); }
@keyframes zap { 0% { opacity: 1; } 50% { opacity: .2; } }
.atk-code { font-family: var(--font-mono); font-size: 22px; fill: var(--rose); }
.sniff-t { font-family: var(--font-mono); font-size: 21px; fill: var(--rose); text-anchor: middle; }
.dump-t { font-family: var(--font-mono); font-size: 20px; font-weight: 700; fill: var(--rose); text-anchor: middle; }
.dump-t.sm { font-size: 14px; font-weight: 400; }
.thermo { fill: none; stroke: var(--cyan); stroke-width: 3; }
.thermo-in { stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; animation: thermo 2s ease-in-out infinite; }
@keyframes thermo { 0%, 100% { stroke-dasharray: 34 100; } 50% { stroke-dasharray: 8 100; } }
.hot { cursor: pointer; }
.hot circle { fill: var(--panel); stroke: var(--ink-3); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
.hot text { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-anchor: middle; fill: var(--ink-2); pointer-events: none; }
.hot.on circle { fill: var(--rose); stroke: var(--rose); animation: hotPulse 1.4s ease-out infinite; }
.hot.on text { fill: #fff; }
@keyframes hotPulse { 0% { stroke-width: 2.5; stroke-opacity: 1; } 100% { stroke-width: 22; stroke-opacity: 0; } }
.atk-list { display: flex; flex-direction: column; gap: 12px; }
.atk-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: opacity .3s, border-color .3s, background-color .3s, transform .35s var(--ease-out); }
.atk-item .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; background: var(--surface-3); color: var(--ink-2); }
.atk-item b { display: block; font-size: 25px; color: var(--ink); }
.atk-item span { font-size: 19px; color: var(--ink-3); line-height: 1.4; }
.arena.has-active .atk-item { opacity: .42; }
.arena .atk-item.on { opacity: 1; border-color: color-mix(in srgb, var(--rose) 60%, transparent); background: color-mix(in srgb, var(--rose) 9%, transparent); transform: translateX(-6px); }
.arena .atk-item.on .n { background: var(--rose); color: #fff; }

/* =========================================================
   04 洞察
   ========================================================= */
.ins-grid { display: grid; grid-template-columns: 600px 70px 1fr; grid-template-rows: 1fr auto; gap: 26px 20px; }
.ins-old, .ins-new { padding: 32px 36px; }
.ins-tag { display: inline-block; font-family: var(--font-mono); font-size: 18px; letter-spacing: .1em; padding: 6px 14px; border-radius: 9px; background: var(--surface-3); color: var(--ink-2); }
.ins-tag.v { background: var(--violet); color: var(--ink-inv); }
.ins-q { font-size: 32px; line-height: 1.45; color: var(--ink-2); margin: 20px 0 22px; }
.ins-q b { color: var(--ink); }
.ins-new .ins-q b { color: var(--violet); }
.bench { display: flex; flex-direction: column; gap: 13px; }
.bench-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 19px; color: var(--ink-3); }
.bench-row i { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), color-mix(in srgb, var(--cyan) 40%, transparent)); width: var(--w); transform-origin: left; animation: benchGrow 1.2s var(--ease-out) both; }
.bench-row:nth-child(2) i { animation-delay: .1s; } .bench-row:nth-child(3) i { animation-delay: .2s; } .bench-row:nth-child(4) i { animation-delay: .3s; } .bench-row:nth-child(5) i { animation-delay: .4s; }
@keyframes benchGrow { from { transform: scaleX(0); } }
.ins-foot { margin: 18px 0 0; font-size: 17px; color: var(--ink-3); }
.s-insight:is([data-step="1"], [data-step="2"]) .ins-old.shown { opacity: .42; filter: saturate(.2); transform: scale(.97); }
.ins-arrow { display: grid; place-items: center; }
.ins-arrow svg { width: 54px; height: 54px; stroke: var(--violet); stroke-width: 2.2; }
.ins-new { border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: color-mix(in srgb, var(--violet) 6%, var(--surface)); }
.cloud { position: relative; height: 300px; }
.dev-avatar {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--violet); box-shadow: 0 0 0 12px color-mix(in srgb, var(--violet) 18%, transparent), 0 0 60px color-mix(in srgb, var(--violet) 60%, transparent);
}
.dev-avatar svg { width: 54px; height: 54px; stroke: var(--ink-inv); stroke-width: 2; }
.cq {
  position: absolute; left: 50%; top: 50%; transform: translate(var(--x), var(--y)); white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; font-size: 22px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2);
  animation: cqFloat 4.2s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes cqFloat { 0%, 100% { transform: translate(var(--x), var(--y)); } 50% { transform: translate(var(--x), calc(var(--y) - 12px)); } }
.rqs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rq { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 22px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.rq-n { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink-inv); background: var(--violet); border-radius: 14px; padding: 12px 14px; }
.rq b { font-size: 29px; color: var(--ink); }
.rq span:not(.rq-n) { font-size: 20px; color: var(--ink-3); }

/* =========================================================
   05 方法
   ========================================================= */
.method-grid { display: grid; grid-template-columns: 430px 56px 1fr 270px; grid-auto-rows: auto; gap: 20px 18px; align-items: stretch; }
.m-src { padding: 22px 26px; }
.m-src-top { display: flex; align-items: center; gap: 18px; }
.m-big { font-size: 78px; font-weight: 700; line-height: 1; }
.m-src-top b { display: block; font-size: 27px; color: var(--ink); }
.m-src-top div span { font-size: 18px; color: var(--ink-3); }
.glyphs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.glyphs .g { width: 20px; height: 20px; border-radius: 5px; background: var(--cyan); opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .4s var(--ease-spring); }
.glyphs .g.y24 { background: var(--violet); }
.glyphs.ppl .g { width: 26px; height: 26px; border-radius: 50%; background: none; border: 2px solid var(--violet); position: relative; }
.glyphs.ppl .g::after { content: ""; position: absolute; left: 7px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.glyphs .g.on { opacity: 1; transform: none; }
.m-legend { display: flex; gap: 18px; font-size: 17px; color: var(--ink-3); }
.m-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.m-legend .g23 { background: var(--cyan); } .m-legend .g24 { background: var(--violet); }
.m-arrow { display: grid; place-items: center; }
.m-arrow svg { width: 40px; height: 40px; stroke: var(--ink-3); stroke-width: 2; }
.m-proc { padding: 22px 26px; }
.m-proc-t { display: flex; align-items: center; gap: 12px; font-size: 27px; color: var(--ink); }
.m-proc-t svg { width: 30px; height: 30px; }
.m-steps { margin: 14px 0 0; padding-left: 26px; font-size: 22px; line-height: 1.75; color: var(--ink-2); }
.m-steps b { color: var(--ink); }
.m-sub { font-size: 18px; color: var(--ink-3); margin: 8px 0 6px; }
.codebook { display: block; margin: 0 auto; }
.cb-count { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 18px; color: var(--ink-3); }
.cb-n { font-size: 34px; font-weight: 700; color: var(--violet); }
.cb-count i { font-style: normal; margin: 0 6px; }
.m-out { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 22px 26px; }
.m-out .rq-n { grid-row: auto; font-size: 22px; padding: 8px 12px; border-radius: 12px; }
.m-out:nth-of-type(4) .rq-n { background: var(--cyan); }
.m-out b { font-size: 28px; color: var(--ink); }
.m-merge {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding: 20px 28px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--teal) 50%, transparent); background: color-mix(in srgb, var(--teal) 7%, transparent);
}
.merge-l { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; color: var(--teal); }
.merge-l svg { width: 32px; height: 32px; }
.merge-cats { display: flex; gap: 12px; }
.merge-s { margin-left: auto; font-size: 21px; color: var(--ink-2); }

/* =========================================================
   06 总览
   ========================================================= */
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-content: center; gap: 64px 40px; padding-bottom: 20px; }
.ov-group { display: flex; flex-direction: column; gap: 18px; }
.ov-g-t { font-family: var(--font-mono); font-size: 19px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.ov-card {
  display: flex; align-items: center; gap: 24px; padding: 32px 34px; border-radius: 24px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease-out), background-color .25s;
}
.ov-card:hover { border-color: var(--accent); transform: translateX(6px); }
.ov-card .lesson-tag { min-width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.ov-card b { display: block; font-size: 33px; color: var(--ink); line-height: 1.3; }
.ov-card span:not(.lesson-tag) { font-family: var(--font-mono); font-size: 17px; color: var(--ink-3); }
.quant { grid-column: 1 / -1; display: grid; grid-template-columns: 320px 1fr; grid-template-rows: auto auto; column-gap: 26px; align-items: center; }
.quant-l { grid-row: 1 / span 2; font-size: 21px; color: var(--ink-3); }
.quant-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.quant-bar span { width: var(--w); display: grid; place-items: center; font-size: 18px; color: var(--ink-2); border-right: 1px solid var(--line); background: var(--surface); }
.quant-bar span:nth-child(1) { background: color-mix(in srgb, var(--amber) 6%, var(--surface)); }
.quant-bar span:nth-child(2) { background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.quant-bar span.mid { background: color-mix(in srgb, var(--amber) 26%, var(--surface)); color: var(--ink); font-size: 15px; }
.quant-bar span:nth-child(4) { background: color-mix(in srgb, var(--amber) 36%, var(--surface)); }
.quant-bar span:nth-child(5) { background: color-mix(in srgb, var(--amber) 48%, var(--surface)); color: var(--ink); border-right: 0; }
.quant-ticks { position: relative; height: 26px; font-family: var(--font-mono); font-size: 15px; color: var(--ink-3); }
.quant-ticks span { position: absolute; top: 4px; transform: translateX(-50%); }
.quant-ticks span:nth-child(1) { left: 0; transform: none; } .quant-ticks span:nth-child(2) { left: 25%; } .quant-ticks span:nth-child(3) { left: 45%; }
.quant-ticks span:nth-child(4) { left: 55%; } .quant-ticks span:nth-child(5) { left: 75%; } .quant-ticks span:nth-child(6) { left: auto; right: 0; transform: none; }

/* =========================================================
   07 Figure 1
   ========================================================= */
.fig-grid { display: grid; grid-template-columns: 1120px 1fr; gap: 40px; }
.fig-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 12px; }
.fig-y { font-family: var(--font-mono); font-size: 19px; color: var(--cyan); letter-spacing: .06em; }
.fig-y.r { text-align: right; color: var(--violet); }
.fig-seg button { font-size: 18px; padding: 8px 18px; }
.fig-body { position: relative; }
.fg-group { font-size: 16px; font-family: var(--font-mono); letter-spacing: .1em; margin: 8px 0 3px; display: flex; align-items: center; gap: 10px; }
.fg-group::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.fg-row { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; height: 31px; transition: opacity .35s ease; position: relative; }
.fg-name { text-align: center; font-size: 19px; font-weight: 600; color: var(--ink); }
.fg-side { position: relative; height: 22px; display: flex; align-items: center; }
.fg-side.l { justify-content: flex-end; }
.fg-bar { height: 22px; border-radius: 5px; background: var(--c); width: 0; transition: width 1s var(--ease-out); position: relative; overflow: hidden; }
.fg-side.l .fg-bar { border-radius: 5px 0 0 5px; }
.fg-side.r .fg-bar { border-radius: 0 5px 5px 0; }
.fg-ecb { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .55) 0 5px, transparent 5px 10px); opacity: 0; transition: opacity .4s; }
.fg-side.l .fg-ecb { right: 0; } .fg-side.r .fg-ecb { left: 0; }
.fg-val { font-family: var(--font-mono); font-size: 16px; color: var(--ink-2); padding: 0 10px; white-space: nowrap; }
.fg-row.dim { opacity: .22; }
.fg-row.focus .fg-name { color: var(--accent); }
.fg-row.focus .fg-bar { box-shadow: 0 0 0 2px var(--ink), 0 0 20px var(--c); }
.fg-row.risk .fg-name::after { content: "风险"; margin-left: 8px; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--rose); color: #fff; vertical-align: 2px; }
.fig.risk-mode .fg-ecb { opacity: 1; }
.fig.risk-mode .fg-row.aes .fg-name::after { content: "斜线=ECB"; margin-left: 8px; font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--rose); color: #fff; vertical-align: 2px; }
.fg-axis { position: absolute; top: 0; bottom: 0; left: calc(50% - 75px); width: 150px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none; }
.fg-tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 17px; color: var(--ink-2); white-space: nowrap; opacity: 0; transition: opacity .15s;
}
.fg-tip b { color: var(--ink); }
.fig-notes { display: flex; flex-direction: column; gap: 14px; }
.fn { padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.fn b { font-size: 24px; color: var(--ink); }
.fn span { font-size: 20px; color: var(--ink-2); line-height: 1.45; }
.fn .num { font-family: var(--font-display); font-size: 30px; color: var(--accent); font-weight: 700; }
.fn em { font-style: normal; font-weight: 700; color: var(--rose); font-size: 1.15em; }
.fn.bad { border-color: color-mix(in srgb, var(--rose) 55%, transparent); background: color-mix(in srgb, var(--rose) 7%, var(--surface)); }
.fn.bad b { color: var(--rose); }

/* =========================================================
   08 ECB
   ========================================================= */
.ecb-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; }
.ecb-side { display: flex; flex-direction: column; gap: 26px; }
.ecb-side .stat .v { font-size: 130px; color: var(--rose); }
.ecb-rule { padding: 20px 22px; }
.rule-row { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 19px; margin-bottom: 10px; }
.rule-row svg { width: 22px; height: 22px; stroke: var(--ink-3); }
.blk-a, .blk-c { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); }
.blk-a { background: var(--surface-2); color: var(--ink); }
.blk-c { background: color-mix(in srgb, var(--rose) 14%, transparent); color: var(--rose); border-color: color-mix(in srgb, var(--rose) 50%, transparent); }
.ecb-rule p { margin: 8px 0 0; font-size: 20px; color: var(--ink-2); }
.ecb-rule p b { color: var(--ink); }
.ecb-side .quote p { font-size: 23px; }
.ecb-more { display: flex; flex-wrap: wrap; gap: 10px; }
.ecb-more .chip { font-size: 18px; }
.ecb-demo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding-bottom: 30px; }
.ecb-panels { display: flex; align-items: flex-start; gap: 18px; }
.ecb-panels figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ecb-panels canvas { width: 380px; height: 380px; border-radius: 16px; image-rendering: pixelated; border: 1px solid var(--line-2); background: #fff; }
.ecb-src { cursor: crosshair; touch-action: none; }
.ecb-panels figcaption { font-size: 24px; font-weight: 700; color: var(--ink); }
.ecb-panels figcaption em { font-style: normal; font-weight: 400; font-size: 19px; color: var(--ink-3); }
.ecb-panels figure.bad canvas { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 70%, transparent); }
.ecb-panels figure.bad figcaption { color: var(--rose); }
.ecb-panels figure.good figcaption { color: var(--green); }
.ecb-arrow { align-self: center; margin-top: -40px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 15px; color: var(--ink-3); }
.ecb-arrow svg { width: 44px; height: 44px; stroke: var(--ink-3); stroke-width: 2; }
.ecb-tools { display: flex; align-items: center; gap: 14px; }
.ecb-tools .seg button { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; padding: 9px 18px; }
.ecb-tools .seg button svg { width: 20px; height: 20px; }
.ecb-pen button[data-c="2"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #f59e0b; display: inline-block; }
.ecb-cap { margin: 0; font-size: 18px; color: var(--ink-3); }

/* =========================================================
   09 为什么
   ========================================================= */
.s-why .head { margin-bottom: 10px; }
.why-wrap { display: flex; flex-direction: column; justify-content: center; gap: 46px; padding-bottom: 40px; }
.why-quote {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 78px; line-height: 1.08; letter-spacing: -.025em; color: var(--ink);
}
.why-quote em { font-style: normal; color: var(--accent); }
.why-quote cite { display: block; margin-top: 18px; font-family: var(--font-sans); font-style: normal; font-weight: 400; font-size: 23px; letter-spacing: 0; color: var(--ink-3); }
.factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.factor { padding: 30px 28px 30px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }
.f-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); margin-bottom: 8px; }
.f-ico svg { width: 32px; height: 32px; stroke: currentColor; }
.factor > b { font-size: 32px; color: var(--ink); }
.f-sub { font-size: 19px; color: var(--ink-3); }
.factor p { margin: auto 0 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.factor cite { font-style: normal; font-family: var(--font-mono); font-size: 16px; color: var(--accent); margin-left: 4px; }
.factor:first-child { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.why-low { display: flex; align-items: center; gap: 12px; font-size: 21px; }

/* =========================================================
   10 侧信道
   ========================================================= */
.side-grid { position: relative; }
.s-side .leak {
  position: absolute; top: 0; left: 400px; width: 880px; height: 640px; padding: 20px;
  transition: opacity .6s ease, transform .75s var(--ease-out), left .9s var(--ease-out), width .9s var(--ease-out), height .9s var(--ease-out);
}
.s-side:not([data-step="0"]) .leak { left: 0; width: 560px; height: 470px; }
.leak-svg { width: 100%; height: 100%; overflow: visible; }
.lk-io { font-size: 26px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.lk-arrow { stroke: var(--ink-3); stroke-width: 3; marker-end: none; }
.lk-chip rect { fill: var(--panel-2); stroke: var(--cyan); stroke-width: 2.5; }
.lk-chip text { text-anchor: middle; font-size: 32px; font-weight: 700; fill: var(--ink); }
.lk-chip text.sub { font-size: 18px; font-weight: 400; fill: var(--ink-3); }
.ring { fill: none; stroke: var(--rose); stroke-width: 2; opacity: 0; transform-origin: 280px 205px; animation: ring 3s ease-out infinite; }
.ring.r2 { animation-delay: 1s; } .ring.r3 { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.lk-l { font-size: 24px; font-weight: 700; fill: var(--rose); text-anchor: middle; }
.tdemo { position: absolute; top: 0; left: 600px; right: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.td-top { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: stretch; }
.td-code { font-size: 19px; padding: 16px 20px; }
.td-req { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 18px; color: var(--ink-2); line-height: 1.5; background: color-mix(in srgb, var(--amber) 9%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.td-req svg { flex: none; width: 24px; height: 24px; stroke: var(--amber); margin-top: 2px; }
.td-req b { color: var(--amber); }
.td-pin { display: flex; gap: 14px; justify-content: center; }
.slot {
  width: 70px; height: 84px; border-radius: 16px; border: 2px dashed var(--line-2); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--ink); transition: all .35s var(--ease-spring);
}
.slot.cur { border-color: var(--amber); border-style: solid; box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 20%, transparent); }
.slot.got { border-style: solid; border-color: var(--rose); background: color-mix(in srgb, var(--rose) 14%, transparent); color: var(--rose); transform: scale(1.04); }
.slot.fail { border-color: var(--green); border-style: solid; color: var(--ink-3); }
.td-chart { position: relative; padding-left: 40px; }
.td-msg {
  position: absolute; left: 50%; top: 52px; z-index: 3; transform: translate(-50%, 10px); padding: 14px 24px; border-radius: 14px;
  font-size: 23px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .45s var(--ease-spring);
}
.td-msg.show { opacity: 1; transform: translate(-50%, 0); }
.td-msg.bad { background: var(--rose); color: #fff; box-shadow: 0 16px 40px -10px var(--rose); }
.td-msg.ok { background: var(--green); color: #04150b; box-shadow: 0 16px 40px -10px var(--green); }
.td-bars { height: 215px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px; align-items: end; border-bottom: 1px solid var(--line-2); }
.td-bars i { display: block; height: 0; border-radius: 8px 8px 0 0; background: var(--surface-3); transition: height .18s ease, background-color .2s; }
.td-bars i.max { background: var(--rose); box-shadow: 0 0 24px color-mix(in srgb, var(--rose) 60%, transparent); }
.td-bars i.ct { background: color-mix(in srgb, var(--green) 55%, var(--surface-3)); }
.td-axis { display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px; text-align: center; font-family: var(--font-mono); font-size: 18px; color: var(--ink-3); padding-top: 6px; }
.td-ylab { position: absolute; left: 0; top: 60px; writing-mode: vertical-rl; font-size: 16px; color: var(--ink-3); letter-spacing: .1em; }
.td-ctrl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.td-count { margin-left: auto; font-size: 19px; color: var(--ink-3); display: flex; align-items: baseline; gap: 8px; }
.td-count b { color: var(--ink); font-size: 30px; }
.td-count .td-n { color: var(--rose); font-size: 40px; }
.side-def { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; }
.side-def .chip { font-size: 18px; }
.side-def .chip em { font-style: normal; font-family: var(--font-mono); font-size: 14px; opacity: .8; }

/* =========================================================
   11 明文密钥悖论
   ========================================================= */
.flash-grid { display: grid; grid-template-columns: 300px 590px 1fr; grid-template-rows: auto 1fr; gap: 24px 28px; }
.fl-front { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.fl-door { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 14%, transparent); }
.fl-door svg { width: 42px; height: 42px; stroke: var(--green); }
.fl-front b { font-size: 26px; color: var(--ink); }
.fl-front ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fl-front li { display: flex; gap: 10px; align-items: center; font-size: 21px; color: var(--ink-2); }
.fl-front li svg { width: 22px; height: 22px; stroke: var(--green); stroke-width: 2.6; }
.fl-cost { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.fl-cost span { font-size: 16px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .08em; }
.fl-cost .bar { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.fl-cost .bar i { display: block; height: 100%; border-radius: 6px; }
.fl-cost .bar.hi i { width: 92%; background: var(--green); }
.fl-cost .bar.lo i { width: 6%; background: var(--rose); }
.fl-cost em { font-style: normal; font-size: 17px; color: var(--ink-2); }
.fl-mid { display: flex; flex-direction: column; gap: 20px; }
.fl-code { font-size: 18px; line-height: 1.65; padding: 20px 22px; }
.fl-sec { transition: background-color .4s, color .4s, box-shadow .4s; border-radius: 5px; }
.s-flash.leaked .fl-sec { background: color-mix(in srgb, var(--rose) 22%, transparent); color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rose) 45%, transparent); }
.s-flash.protected .fl-sec { background: color-mix(in srgb, var(--green) 16%, transparent); box-shadow: none; }
.fl-defs { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.fl-defs .switch { font-size: 21px; }
.fl-back { display: flex; flex-direction: column; gap: 16px; }
.fl-term { height: 356px; }
.fl-dump { font-size: 15px; line-height: 1.55; height: 308px; overflow: hidden; white-space: pre; }
.fl-dump .addr { color: #5f6f89; }
.fl-dump .hx { color: #8fa3bf; }
.fl-dump .asc { color: #56657d; }
.fl-dump .hit { color: #fff; background: #e0375d; border-radius: 3px; box-shadow: 0 0 12px rgba(255, 80, 120, .6); }
.fl-dump .safe { color: #5ef0a0; }
.fl-ctrl { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.fl-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; padding-top: 6px; }
.fl-fact { display: flex; gap: 18px; align-items: center; }
.fl-fact b { font-size: 46px; white-space: nowrap; font-family: var(--font-display); }
.fl-fact span { font-size: 20px; color: var(--ink-2); line-height: 1.45; }
.fl-fact em { font-style: normal; color: var(--ink-3); font-size: 18px; }
.fl-facts .quote p { font-size: 23px; }

/* =========================================================
   12 纵向
   ========================================================= */
.long-wrap { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 40px; }
.lg-head, .lg-row { display: grid; grid-template-columns: 220px 290px 70px 360px 1fr; align-items: center; gap: 16px; }
.lg-head { padding: 0 22px 8px; font-size: 18px; color: var(--ink-3); }
.lg-head .yr { justify-self: start; }
.lg-row { padding: 22px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lg-k { font-size: 23px; color: var(--ink-3); }
.lg-a, .lg-b { font-size: 27px; font-weight: 650; position: relative; }
.lg-a { color: var(--ink-3); }
.lg-a::after { content: ""; position: absolute; left: 0; top: 52%; height: 2px; width: 0; background: var(--ink-3); transition: width .6s var(--ease-out); transition-delay: calc(.35s + var(--i, 0) * .07s); }
.lg-row.shown .lg-a::after { width: 100%; }
.lg-row i { height: 2px; background: var(--line-2); position: relative; }
.lg-row i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 10px solid var(--line-2); border-right: 0; }
.lg-b { color: var(--green); }
.lg-why { font-size: 20px; color: var(--ink-2); line-height: 1.4; }
.lg-why em { font-style: normal; font-family: var(--font-mono); font-size: 15px; color: var(--accent); margin-left: 6px; }
.lg-row.same { border-color: color-mix(in srgb, var(--rose) 60%, transparent); background: color-mix(in srgb, var(--rose) 8%, var(--surface)); }
.lg-row.same .lg-a, .lg-row.same .lg-b { color: var(--rose); }
.lg-row.same .lg-a::after { display: none; }
.lg-row.same i { background: var(--rose); }
.lg-row.same i::after { border-left-color: var(--rose); }
.lg-row.same.shown .lg-b { animation: samePulse 1.6s ease-in-out infinite .6s; }
@keyframes samePulse { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 22px var(--rose); } }

/* =========================================================
   13 口令哈希
   ========================================================= */
.pw-grid { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-bottom: 30px; }
.pw-tug { display: grid; grid-template-columns: 360px 1fr 360px; align-items: center; gap: 22px; }
.team { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background-color .3s, box-shadow .3s; }
.team svg { flex: none; width: 44px; height: 44px; stroke: var(--ink-2); }
.team b { display: block; font-size: 25px; color: var(--ink); }
.team span { font-size: 19px; color: var(--ink-3); }
.team.right { flex-direction: row-reverse; text-align: right; }
.team.bad { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, transparent); box-shadow: 0 0 30px -8px var(--rose); }
.team.bad svg { stroke: var(--rose); }
.team.good { border-color: color-mix(in srgb, var(--green) 60%, transparent); }
.team.good svg { stroke: var(--green); }
.rope { position: relative; height: 60px; }
.rope-line { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--amber) 70%, #000) 0 10px, var(--amber) 10px 20px); opacity: .85; }
.zone { position: absolute; top: 50%; height: 30px; margin-top: -15px; border-radius: 8px; background: color-mix(in srgb, var(--green) 25%, transparent); border: 1px dashed var(--green); left: 40%; width: 20%; transition: left .4s var(--ease-out), width .4s var(--ease-out), opacity .3s; }
.knot { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--ink); border: 6px solid var(--amber); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); transition: left .45s var(--ease-out); z-index: 2; }
.pw-ctrl { display: flex; align-items: center; gap: 36px; }
.pw-slider { flex: 1; display: grid; grid-template-columns: auto 1fr 210px; align-items: center; gap: 20px; }
.pw-sl-l { font-size: 21px; color: var(--ink-2); }
.pw-sl-v { font-size: 20px; color: var(--accent); text-align: right; }
.pw-slider.disabled { opacity: .35; pointer-events: none; }
.pw-panels { display: grid; grid-template-columns: 1fr 1fr 330px; gap: 22px; }
.pw-p { padding: 26px 30px; }
.pw-p-t { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--ink-3); }
.pw-p-t svg { width: 22px; height: 22px; stroke: currentColor; }
.pw-p.atk .pw-p-t { color: var(--rose); }
.pw-big { font-size: 76px; font-weight: 700; color: var(--ink); line-height: 1.15; margin: 14px 0 4px; white-space: nowrap; }
.pw-p-s { font-size: 18px; color: var(--ink-3); }
.logbar { position: relative; height: 12px; border-radius: 6px; background: var(--surface-3); margin: 18px 0 26px; }
.logbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--rose), var(--amber), var(--green)); width: 10%; transition: width .45s var(--ease-out); }
.logbar span { position: absolute; top: 18px; transform: translateX(-50%); font-size: 14px; color: var(--ink-3); font-family: var(--font-mono); white-space: nowrap; }
.logbar span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 8px; background: var(--ink-3); }
.pw-metric { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 19px; color: var(--ink-3); }
.pw-metric b { font-size: 42px; color: var(--ink); }
.meter { position: relative; height: 14px; border-radius: 7px; background: var(--surface-3); margin: 30px 0 24px; overflow: visible; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--green); width: 2%; max-width: 100%; transition: width .45s var(--ease-out), background-color .3s; }
.meter i.over { background: var(--rose); }
.meter .lim { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink-2); }
.meter .lim::after { content: attr(data-l); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font-size: 14px; font-family: var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.pw-verdict { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background-color .3s; }
.pw-v-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; background: var(--ink-3); }
.pw-v-t { font-size: 30px; color: var(--ink); }
.pw-v-s { font-size: 19px; color: var(--ink-2); line-height: 1.45; }
.pw-verdict.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, transparent); }
.pw-verdict.ok .pw-v-ico { background: var(--green); }
.pw-verdict.bad { border-color: var(--rose); background: color-mix(in srgb, var(--rose) 9%, transparent); }
.pw-verdict.bad .pw-v-ico { background: var(--rose); }
.pw-story { display: flex; flex-wrap: wrap; gap: 10px; }
.pw-story .chip { font-size: 18px; }
.lim-l { position: absolute; top: -26px; transform: translateX(-50%); font-size: 14px; font-family: var(--font-mono); color: var(--ink-2); white-space: nowrap; }

/* =========================================================
   14 编译模拟
   ========================================================= */
.build-grid { display: grid; grid-template-columns: 820px 1fr; grid-template-rows: auto auto; gap: 22px 30px; align-content: start; }
.bd-left { display: flex; flex-direction: column; gap: 14px; }
.bd-term { height: 372px; }
.bd-out { height: 324px; overflow: hidden; font-size: 17px; }
.bd-out .line { display: block; animation: lineIn .25s ease both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } }
.bd-ctrl { display: flex; align-items: center; gap: 14px; }
.bd-hint { margin-left: 6px; font-size: 19px; color: var(--ink-2); line-height: 1.4; }
.bd-hint b { color: var(--amber); }
.bd-hint .tag { display: inline-block; font-size: 14px; font-family: var(--font-mono); padding: 2px 8px; border-radius: 6px; margin-right: 8px; vertical-align: 2px; }
.bd-hint .tag.plat { background: color-mix(in srgb, var(--rose) 18%, transparent); color: var(--rose); }
.bd-hint .tag.doc { background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }
.bd-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bd-flags-t { font-size: 20px; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.bd-flags-t b { font-family: var(--font-mono); }
.bd-flags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.flag {
  font-family: var(--font-mono); font-size: 12.5px; padding: 4px 7px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink-3);
  background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: all .25s;
}
.flag:hover { color: var(--ink); border-color: var(--line-2); }
.flag.on { color: var(--ink-inv); background: var(--green); border-color: transparent; }
.flag.need { color: var(--amber); border-color: var(--amber); animation: needPulse 1.1s ease-in-out infinite; }
@keyframes needPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 60%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 0%, transparent); } }
.bd-doc { padding: 16px 20px; }
.bd-doc-t { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.bd-doc-t svg { width: 22px; height: 22px; stroke: var(--amber); }
.bd-doc-b { font-size: 18px; color: var(--ink-2); line-height: 1.5; min-height: 54px; }
.bd-doc-b .x { color: var(--rose); }
.bd-doc-b .o { color: var(--green); }
.bd-quotes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.bq { font-size: 20px; color: var(--ink-2); line-height: 1.45; padding-left: 16px; border-left: 3px solid var(--amber); font-style: italic; }
.bq b { font-style: normal; font-family: var(--font-mono); font-size: 16px; color: var(--amber); margin-right: 10px; }
.bq em { font-style: normal; color: var(--ink-3); font-size: 18px; }

/* =========================================================
   15 测试
   ========================================================= */
.test-grid { display: grid; grid-template-columns: 640px 1fr; gap: 40px; }
.ts-left { display: flex; flex-direction: column; gap: 28px; }
.ts-term { height: 450px; }
.ts-out { height: 402px; font-size: 20px; line-height: 1.65; overflow: hidden; }
.ts-out .hang { display: inline-block; width: 12px; height: 22px; background: #cfe3f5; vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ts-out .note { color: #ffd166; }
.ts-stat .v { font-size: 92px; color: var(--teal); }
.ts-right { display: flex; flex-direction: column; gap: 22px; }
.ts-right .quote p { font-size: 25px; }
.ts-bug { padding: 18px 22px; }
.ts-bug-t { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--ink-2); }
.ts-bug-t b { color: var(--ink); }
.ts-bug-t svg { width: 26px; height: 26px; stroke: var(--rose); }
.ovf { position: relative; height: 56px; margin: 16px 0 10px; }
.ovf-buf { position: absolute; left: 0; top: 0; width: 62%; height: 56px; border: 2px dashed var(--ink-3); border-radius: 10px; }
.ovf-buf span { position: absolute; left: 10px; top: -22px; font-family: var(--font-mono); font-size: 15px; color: var(--ink-3); }
.ovf-a, .ovf-b { position: absolute; top: 8px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 18px; color: #fff; }
.ovf-a { left: 6px; width: 40%; background: var(--blue); }
.ovf-b { left: calc(6px + 40% + 6px); width: 40%; background: var(--violet); }
.ts-bug.shown .ovf-b { animation: ovfSlide 2.6s var(--ease-out) infinite; }
.ts-bug.shown .ovf-b::after { content: ""; position: absolute; left: 51%; right: 0; top: 0; bottom: 0; border-radius: 0 8px 8px 0; background: repeating-linear-gradient(45deg, var(--rose) 0 6px, color-mix(in srgb, var(--rose) 60%, #000) 6px 12px); animation: ovfRed 2.6s ease infinite; }
@keyframes ovfSlide { 0% { transform: translateX(120%); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
@keyframes ovfRed { 0%, 35% { opacity: 0; } 50%, 100% { opacity: 1; } }
.ts-bug-s { font-size: 18px; color: var(--ink-3); }
.ladder { display: flex; flex-direction: column; gap: 8px; position: relative; }
.lad-t { font-size: 18px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .08em; margin-bottom: 4px; }
.lad { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 16px; padding: 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-left: calc((4 - var(--i)) * 0px); }
.lad b { font-size: 21px; color: var(--ink); }
.lad span { font-size: 17px; color: var(--ink-3); }
.lad em { font-style: normal; font-family: var(--font-mono); color: var(--accent); font-size: 14px; margin-left: 6px; }
.lad:nth-of-type(2) { opacity: .55; } .lad:nth-of-type(3) { opacity: .68; } .lad:nth-of-type(4) { opacity: .8; } .lad:nth-of-type(5) { opacity: .9; }
.lad.base { border-color: color-mix(in srgb, var(--teal) 60%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent); opacity: 1; }
.lad.base b { color: var(--teal); }

/* =========================================================
   16 随机数
   ========================================================= */
.rng-grid { display: grid; grid-template-columns: 430px 1fr; grid-template-rows: 1fr auto; gap: 22px 34px; }
.rng-concepts { display: flex; flex-direction: column; gap: 16px; }
.rc { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); flex: 1; }
.rc b { display: block; font-size: 25px; color: var(--teal); margin-bottom: 6px; }
.rc span { font-size: 20px; color: var(--ink-2); line-height: 1.55; }
.rc em { font-style: normal; font-weight: 700; }
.rng-lab { position: relative; padding: 26px 30px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: hidden; }
.rl-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 18px; }
.rl-label { font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.rl-label span { display: block; font-size: 15px; font-weight: 400; color: var(--ink-3); }
.osc { display: block; }
.rawbits, .outbits { font-size: 23px; letter-spacing: .12em; white-space: nowrap; overflow: hidden; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); }
.rawbits .o { color: var(--teal); }
.rawbits .z { color: var(--ink-3); }
.outbits { color: var(--ink); }
.rl-meters { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 18px; margin-top: 4px; }
.em { padding: 14px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.em span { font-size: 16px; color: var(--ink-3); }
.em-bar { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.em-fill { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--teal); transition: width .3s ease, background-color .3s; }
.em b { font-size: 26px; color: var(--ink); }
.em b.big { font-size: 38px; }
.rng-lab.weak .em-fill { background: var(--rose); }
.rng-lab.weak .eff-v, .rng-lab.weak .crack-v { color: var(--rose); }
.rl-ctrl { display: flex; align-items: center; gap: 30px; margin-top: 4px; }
.rl-slider { flex: 1; display: grid; grid-template-columns: auto auto 1fr 70px; align-items: center; gap: 12px; font-size: 20px; color: var(--ink-2); }
.rl-slider svg { width: 28px; height: 28px; stroke: var(--cyan); }
.rl-slider b { text-align: right; font-size: 22px; color: var(--ink); }
.rng-atk { --p: 0%; }
.ht-alarm {
  position: absolute; left: calc(50% + 100px); top: 262px; transform: translate(-50%, -50%) scale(.9); padding: 18px 28px; border-radius: 18px;
  background: var(--rose); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 60px -10px rgba(224, 55, 93, .6); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring);
}
.ht-alarm svg { width: 32px; height: 32px; stroke: #fff; }
.rng-lab.alarm .ht-alarm { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rng-lab.alarm .outbits { color: var(--ink-3); text-decoration: line-through; }
.rng-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.rng-foot .chip { font-size: 18px; white-space: normal; }

/* =========================================================
   17 建议
   ========================================================= */
.recs-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; grid-template-rows: auto auto; align-content: center; gap: 34px 24px; padding-bottom: 30px; }
.rc-col { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; min-height: 540px; }
.rc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.rc-h svg { width: 34px; height: 34px; stroke: var(--green); }
.rc-h b { font-size: 29px; color: var(--ink); }
.rc-n { margin-left: auto; font-size: 44px; font-weight: 700; color: var(--green); line-height: 1; }
.rc-i { font-size: 22px; color: var(--ink-2); line-height: 1.5; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rc-i em { font-style: normal; font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--green); margin-right: 8px; }
.rc-col:first-child { border-color: color-mix(in srgb, var(--green) 55%, transparent); background: color-mix(in srgb, var(--green) 5%, var(--surface)); }
.recs-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 24px; color: var(--ink-2); }
.recs-note svg { width: 30px; height: 30px; stroke: var(--amber); }
.recs-note b { color: var(--ink); }

/* =========================================================
   18 收获
   ========================================================= */
.take-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; align-content: center; gap: 30px 24px; padding-bottom: 30px; }
.tk { padding: 32px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 290px; }
.tk-n { font-size: 60px; font-weight: 700; color: var(--violet); line-height: 1; }
.tk b { font-size: 31px; color: var(--ink); line-height: 1.3; }
.tk span:not(.tk-n) { font-size: 22px; color: var(--ink-2); line-height: 1.5; }
.recipe { grid-column: 1 / -1; padding: 22px 28px; border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.rp-t { font-family: var(--font-mono); font-size: 17px; letter-spacing: .1em; color: var(--violet); margin-bottom: 14px; }
.rp-flow { display: flex; align-items: center; gap: 16px; }
.rp-flow i { font-style: normal; font-size: 30px; color: var(--ink-3); }
.rp-s { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rp-s b { font-size: 23px; color: var(--ink); }
.rp-s em { font-style: normal; font-size: 17px; color: var(--ink-3); }
.rp-s.hl { background: var(--violet); border-color: transparent; }
.rp-s.hl b, .rp-s.hl em { color: var(--ink-inv); }
.limits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lm-t { font-size: 20px; color: var(--ink-3); margin-right: 6px; }
.limits .chip { font-size: 19px; }

/* =========================================================
   19 研究方向
   ========================================================= */
.idea-grid { display: grid; grid-template-columns: 1040px 1fr; gap: 28px; align-content: center; padding-bottom: 30px; }
.idea1, .idea2 { padding: 26px 30px; display: flex; flex-direction: column; gap: 20px; }
.id-t { font-size: 27px; color: var(--ink-2); line-height: 1.4; }
.id-t b { color: var(--ink); }
.id-n { display: inline-block; font-size: 17px; font-family: var(--font-mono); padding: 4px 12px; border-radius: 8px; margin-right: 14px; background: var(--violet); color: var(--ink-inv); vertical-align: 4px; }
.pipe { display: flex; align-items: stretch; gap: 0; }
.pp { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.pp-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--violet) 16%, transparent); margin-bottom: 4px; }
.pp-ico svg { width: 28px; height: 28px; stroke: var(--violet); }
.pp b { font-size: 20px; color: var(--ink); line-height: 1.25; }
.pp span { font-size: 15px; color: var(--ink-3); }
.pp.in b { font-family: var(--font-mono); font-size: 17px; }
.pp.cex .pp-ico { background: color-mix(in srgb, var(--rose) 16%, transparent); }
.pp.cex .pp-ico svg { stroke: var(--rose); }
.pp.rep .pp-ico { background: color-mix(in srgb, var(--green) 16%, transparent); }
.pp.rep .pp-ico svg { stroke: var(--green); }
.pp.act { border-color: var(--violet); box-shadow: 0 0 26px -6px var(--violet); }
.pp.cex.act { border-color: var(--rose); box-shadow: 0 0 26px -6px var(--rose); }
.pp.rep.act { border-color: var(--green); box-shadow: 0 0 26px -6px var(--green); }
.scanline { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, var(--violet), transparent); opacity: 0; }
.pp.scan.act .scanline { opacity: 1; animation: scan 1s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.pp-arrow { width: 34px; display: grid; place-items: center; }
.pp-arrow i { width: 22px; height: 2px; background: var(--line-2); position: relative; }
.pp-arrow i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--line-2); border-right: 0; }
.viol { display: flex; flex-direction: column; gap: 10px; }
.vl { display: grid; grid-template-columns: 170px 1fr 1.25fr; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); opacity: .35; transition: all .45s var(--ease-out); }
.vl-loc { font-size: 18px; color: var(--ink); }
.vl-what { font-size: 20px; color: var(--ink-2); }
.vl-rule { font-size: 18px; color: var(--ink-3); }
.vl.hit { opacity: 1; border-color: color-mix(in srgb, var(--rose) 60%, transparent); background: color-mix(in srgb, var(--rose) 8%, var(--surface)); transform: translateX(6px); }
.vl.hit .vl-loc { color: var(--rose); }
.vl.hit .vl-rule { color: var(--ink); }
.vl.done { opacity: .85; }
.vl.done .vl-loc::before { content: "✗ "; color: var(--rose); }
.pairs { display: flex; flex-direction: column; gap: 12px; }
.pair-h { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; font-size: 19px; color: var(--ink-3); text-align: center; }
.pair { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: center; }
.pair span { padding: 18px 14px; border-radius: 14px; font-size: 21px; text-align: center; line-height: 1.35; }
.pair .ok { background: color-mix(in srgb, var(--green) 11%, transparent); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); color: var(--ink); }
.pair .ok::before { content: "✓ "; color: var(--green); font-weight: 700; }
.pair .no { background: color-mix(in srgb, var(--rose) 11%, transparent); border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent); color: var(--ink); opacity: 0; transform: translateX(14px); transition: opacity .5s ease, transform .6s var(--ease-out); transition-delay: calc(.5s + var(--i) * .35s); }
.pair .no::before { content: "✗ "; color: var(--rose); font-weight: 700; }
.idea2.shown .pair .no { opacity: 1; transform: none; }
.pair i { font-style: normal; text-align: center; font-size: 26px; color: var(--ink-3); }

/* =========================================================
   20 Q&A
   ========================================================= */
.s-qa { padding: 0; }
.qa-wrap { position: absolute; left: 0; right: 0; top: 200px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.qa-big { font-family: var(--font-display); font-size: 128px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.qa-big span { color: var(--accent); margin: 0 10px; }
.qa-quote { margin: 0; font-family: var(--font-display); font-size: 36px; color: var(--ink-2); font-style: italic; }
.qa-qs { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.qa-q { display: flex; align-items: center; gap: 14px; font-size: 27px; color: var(--ink); padding: 14px 26px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); }
.qa-q svg { width: 28px; height: 28px; stroke: var(--accent); }
.qa-ref { margin-top: 26px; font-size: 18px; color: var(--ink-3); }

/* ---------- 补充 ---------- */
.ov-ico { margin-left: auto; flex: none; width: 44px; height: 44px; stroke: var(--ink-3); opacity: .55; transition: opacity .25s, stroke .25s; }
.ov-card:hover .ov-ico { opacity: 1; stroke: var(--accent); }
.presenter-name { outline: none; border-bottom: 1px dashed transparent; cursor: text; transition: border-color .2s; }
.presenter-name:hover, .presenter-name:focus { border-bottom-color: var(--ink-3); }
.bd-ctrl .btn, .td-ctrl .btn, .fl-ctrl .btn, .ecb-tools .btn { flex: none; white-space: nowrap; }
.btn { white-space: nowrap; }
