/* ============================================================
   ch27「量子灵境」章节样式
   化神二层·量子灵境（化神期量子计算章）
   境界色：玄青 #3D3B4F（底）+ 七彩概率云（量子效应点缀）
   子纹：布洛赫球 + 纠缠光丝 + 干涉条纹圆环
   ============================================================ */
:root {
  --realm-color: #3D3B4F;          /* 玄青 · 化神二层境界身份色 */
  --realm-glow: #3D3B4F55;
  --realm-ink: #8B89A8;            /* 浅玄青，用于暗底可读文字 */
  --prob-1: #FF6B6B;               /* 七彩概率云粒子 */
  --prob-2: #4ECDC4;
  --prob-3: #FFE66D;
  --prob-4: #95E1D3;
  --prob-5: #C7CEEA;
  --prob-6: #FFAAA5;
  --prob-7: #A8E6CF;
  --deco-red: #7F1D1D;             /* 退相干墙暗红 */
  --gold-quantum: #D4A853;         /* 量子金（擂台判定/子纹） */
  --silicon-blue: #60A5FA;         /* 硅自旋冷蓝 */
  --transmon-purple: #A78BFA;      /* 超导 Transmon 紫 */
}

/* 开场标题（玄青 + 七彩概率云渐变） */
.op-title span {
  color: var(--realm-ink);
  text-shadow: 0 0 14px #3D3B4F88;
}
.op-sub {
  color: var(--realm-ink);
}
.op-quote {
  border-left-color: var(--realm-color);
}

/* 化神期·玄青光晕：开场与场景头点缀 */
.op-kicker,
.scene-kicker {
  color: var(--realm-ink);
}

/* 顿悟框边色（玄青） */
.insight {
  border-left-color: var(--realm-color);
}

/* focus-breath 呼吸光晕（玄青，引导下一场景） */
.focus-breath {
  box-shadow: 0 0 0 0 #3D3B4F66;
  animation: ch27Breath 2s ease-in-out infinite;
}
@keyframes ch27Breath {
  0%, 100% { box-shadow: 0 0 0 0 #3D3B4F66; }
  50% { box-shadow: 0 0 16px 4px #3D3B4F44; }
}

/* S9 Boss 战触发按钮：玄青描边 + 七彩概率云光晕 */
#s9-start {
  border-color: var(--realm-ink);
  color: var(--realm-ink);
  position: relative;
}
#s9-start::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #FF6B6B22, #4ECDC422, #FFE66D22, transparent 70%);
  animation: ch27BossPulse 2.4s ease-in-out infinite;
}
@keyframes ch27BossPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
#s9-start:hover {
  background: var(--realm-ink);
  color: #1a1a1a;
}

/* S0 量子门开·七彩概率云序章 */
.scene[data-scene="s0"] .scene-kicker {
  background: linear-gradient(90deg, var(--prob-1) 0%, var(--prob-2) 33%, var(--prob-3) 66%, var(--prob-5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* S1 双缝见叠·冷蓝辉光 */
.scene[data-scene="s1"] .scene-kicker {
  color: #67E8F9;
}

/* S2 贝尔之绊·纠缠蓝红 */
.scene[data-scene="s2"] .scene-kicker {
  background: linear-gradient(90deg, var(--silicon-blue) 0%, #FB923C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* S3 量子门阵·金色门符 */
.scene[data-scene="s3"] .scene-kicker {
  color: var(--gold-quantum);
}

/* S4 硅点与超导·硅蓝+超导紫 */
.scene[data-scene="s4"] .scene-kicker {
  background: linear-gradient(90deg, var(--silicon-blue) 0%, var(--transmon-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* S5 退相干劫·暗红示波器 */
.scene[data-scene="s5"] .scene-kicker {
  color: var(--deco-red);
}
.scene[data-scene="s5"] .insight {
  border-left-color: var(--deco-red);
}

/* S6 量子算法·七彩擂台 */
.scene[data-scene="s6"] .scene-kicker {
  background: linear-gradient(90deg, #3B82F6 0%, var(--gold-quantum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* S7 老祖降世·七彩概率云道袍（最深虚空） */
.scene[data-scene="s7"] .scene-kicker {
  background: linear-gradient(90deg, var(--prob-1) 0%, var(--prob-2) 25%, var(--prob-3) 50%, var(--transmon-purple) 75%, var(--prob-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.scene[data-scene="s7"] .insight {
  border-left-color: var(--prob-1);
}

/* S8 异构顿悟·金绿平衡光 */
.scene[data-scene="s8"] .scene-kicker {
  background: linear-gradient(90deg, #3B82F6 0%, var(--gold-quantum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* S9 三问台·玄青与七彩交战（境界总验收） */
.scene[data-scene="s9"] .scene-title {
  background: linear-gradient(90deg, var(--realm-ink) 0%, var(--prob-1) 50%, var(--gold-quantum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   子纹（S10 本命石第二十七痕）
   布洛赫球（青色球面）+ 纠缠光丝（七彩）+ 干涉条纹圆环（明暗交替）
   ============================================================ */
.s10-scar-ziwen {
  display: inline-block;
  position: relative;
  width: 96px;
  height: 56px;
  vertical-align: middle;
  margin: 0 0.4rem;
}
.s10-scar-ziwen svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* 布洛赫球面（青色） */
.s10-scar-ziwen .ziwen-sphere {
  stroke: #67E8F9;
  stroke-width: 1.4;
  fill: rgba(103, 232, 249, 0.06);
  filter: drop-shadow(0 0 4px #67E8F966);
}
/* 赤道线 */
.s10-scar-ziwen .ziwen-equator {
  stroke: #67E8F9;
  stroke-width: 0.9;
  fill: none;
  opacity: 0.7;
}
/* 纠缠光丝（七彩，两条相反旋转） */
.s10-scar-ziwen .ziwen-ent-a {
  stroke: var(--prob-1);
  filter: drop-shadow(0 0 3px #FF6B6B88);
}
.s10-scar-ziwen .ziwen-ent-b {
  stroke: var(--prob-2);
  filter: drop-shadow(0 0 3px #4ECDC488);
}
.s10-scar-ziwen .ziwen-entangle {
  stroke-width: 1.3;
  fill: none;
  stroke-dasharray: 3 2;
  animation: ch27Entangle 3s linear infinite;
}
@keyframes ch27Entangle {
  to { stroke-dashoffset: -20; }
}
/* 干涉条纹圆环（明暗交替） */
.s10-scar-ziwen .ziwen-interfere {
  stroke: var(--gold-quantum);
  stroke-width: 1.1;
  fill: none;
  stroke-dasharray: 2 2;
  opacity: 0.8;
  filter: drop-shadow(0 0 3px #D4A85366);
  animation: ch27Interfere 4s linear infinite;
}
@keyframes ch27Interfere {
  to { stroke-dashoffset: -16; }
}
/* 极点 |0⟩ |1⟩ */
.s10-scar-ziwen .ziwen-pole {
  fill: #67E8F9;
  filter: drop-shadow(0 0 3px #67E8F9);
}

/* S10 碎片归位·量子灵境容器（K-264~K-273） */
.s10-curve-host {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}
.frag-node:hover {
  border-color: var(--realm-ink);
  color: var(--realm-ink);
}
.frag-node.lit {
  border-color: var(--realm-ink);
  background: rgba(139,137,168,0.14);
  color: var(--prob-5);
  box-shadow: 0 0 12px rgba(139,137,168,0.3);
}

/* 境界突破铭刻（化神二层圆满） */
.inscription {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--realm-color);
  border-radius: 8px;
  background: rgba(61,59,79,0.22);
  color: var(--prob-5);
  font-family: var(--font-serif, serif);
  text-align: center;
  animation: ch27Inscription 1.2s var(--ease-out, ease);
}
@keyframes ch27Inscription {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* S10 类神机枢之门（量子灵境稳定后的下一境预告） */
.s10-xuan-gate {
  display: block;
  margin: 1.4rem auto;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  position: relative;
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(180deg, rgba(139,137,168,0.18) 0%, rgba(212,168,83,0.20) 55%, rgba(212,168,83,0.40) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(212,168,83,0.55) 0%, transparent 70%);
  border: 1px solid rgba(212,168,83,0.5);
  box-shadow: 0 0 32px rgba(212,168,83,0.30), inset 0 -20px 40px rgba(212,168,83,0.18);
  overflow: hidden;
}
.s10-xuan-gate::before {
  content: '类 神 机 枢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif, serif);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: rgba(212,168,83,0.9);
  text-shadow: 0 0 12px rgba(212,168,83,0.5), 0 0 20px rgba(139,137,168,0.6);
}
.s10-xuan-gate::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(139,137,168,0.5), rgba(212,168,83,0.7));
}

/* ch28 类脑预告粒子（神经元脉冲暖金色） */
.s10-neuro-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}
.s10-neuro-preview .np-chip {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  background: rgba(0,0,0,0.25);
  animation: ch27NpBlink 2.6s ease-in-out infinite;
}
.s10-neuro-preview .np-chip:nth-child(1) { color: var(--gold-quantum); border-color: #D4A8553; } /* 860亿神经元 金 */
.s10-neuro-preview .np-chip:nth-child(2) { color: var(--prob-6); border-color: #FFAAA555; animation-delay: .3s; } /* 20W 功耗 暖 */
.s10-neuro-preview .np-chip:nth-child(3) { color: var(--prob-2); border-color: #4ECDC455; animation-delay: .6s; } /* 脉冲编码 青 */
.s10-neuro-preview .np-chip:nth-child(4) { color: var(--prob-5); border-color: #C7CEEA55; animation-delay: .9s; } /* 存算一体 浅蓝 */
.s10-neuro-preview .np-chip:nth-child(5) { color: var(--prob-7); border-color: #A8E6CF55; animation-delay: 1.2s; } /* 100万亿突触 绿 */
@keyframes ch27NpBlink {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; box-shadow: 0 0 10px currentColor; }
}

/* 章末 ch28 解锁链接：从玄青渐变到暖金（类脑过渡） */
.s10-next-link {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 8px;
  border: 1px solid;
  border-image: linear-gradient(90deg, var(--realm-ink), var(--gold-quantum)) 1;
  background: linear-gradient(90deg, rgba(139,137,168,0.10), rgba(212,168,83,0.22));
  color: var(--prob-5);
  text-decoration: none;
  transition: all 0.3s var(--ease-out, ease);
}
.s10-next-link:hover {
  background: linear-gradient(90deg, rgba(139,137,168,0.20), rgba(212,168,83,0.34));
  box-shadow: 0 0 18px rgba(212,168,83,0.45);
}
/* ============================================================
   S0 预测挑战 · 薛定谔猫四选一（.pc-* 组件样式）
   境界色：化神期赤红 #EF4444 + 七彩概率云
   ============================================================ */
.pc-cat-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 0.8rem;
  padding: 1.4rem 1rem;
  border-radius: 14px;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(139, 137, 168, 0.25);
  overflow: hidden;
}
.pc-box-glow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 50%, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.pc-cat-box.all-data-lit .pc-box-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(239, 68, 68, 0.20) 0%, rgba(129, 140, 248, 0.14) 50%, transparent 75%);
  opacity: 1;
}
.pc-box-frame {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(139, 137, 168, 0.4);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}
.pc-cat-silhouette {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.4));
  transition: all 0.5s ease;
}
.pc-cat-superpose {
  animation: ch27Superpose 0.5s ease-in-out infinite alternate;
}
@keyframes ch27Superpose {
  0% { opacity: 0.5; filter: drop-shadow(0 0 6px #10B98166); transform: scale(0.96); }
  100% { opacity: 1; filter: drop-shadow(0 0 10px #7F1D1D88); transform: scale(1.04); }
}
.pc-cat-alive {
  filter: drop-shadow(0 0 12px var(--realm-5)) !important;
}
.pc-cat-dead {
  filter: drop-shadow(0 0 12px var(--deco-red)) !important;
  opacity: 0.7;
}
.pc-cat-box.opened .pc-box-frame {
  border-color: #EF4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.pc-mechanism {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--realm-ink);
  font-family: var(--font-mono, monospace);
}
.pc-cat-box.shake {
  animation: ch27Shake 0.4s ease;
}
@keyframes ch27Shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.pc-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--prob-5);
  margin-bottom: 0.6rem;
}
.pc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
@media (max-width: 480px) {
  .pc-options { grid-template-columns: 1fr; }
}
.pc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 2px solid #475569;
  border-radius: 8px;
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0;
  cursor: pointer;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}
.pc-option:hover { border-color: var(--realm-ink); background: rgba(139, 137, 168, 0.1); }
.pc-option.selected {
  border-width: 2px;
  background: rgba(139, 137, 168, 0.18);
  box-shadow: 0 0 10px rgba(139, 137, 168, 0.25);
}
.pc-option-letter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.pc-option-text { flex: 1; }
.pc-option-stance {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--realm-ink);
}
.pc-feedback {
  margin: 0.4rem 0 0.8rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--realm-ink);
  border-radius: 0 8px 8px 0;
  background: rgba(139, 137, 168, 0.08);
  font-size: 0.82rem;
  line-height: 1.6;
}
.pc-feedback-stance {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.pc-feedback-text { color: var(--prob-5); }
.pc-hotspots {
  margin: 0.6rem 0;
}
.pc-hotspots-title {
  font-size: 0.8rem;
  color: var(--realm-ink);
  margin-bottom: 0.4rem;
}
.pc-hotspot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.4rem;
  border: 2px solid #475569;
  border-radius: 8px;
  background: rgba(30, 25, 35, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}
.pc-hotspot:hover { border-color: var(--realm-ink); }
.pc-hotspot.lit {
  border-width: 2px;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.2);
}
.pc-hotspot-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.pc-hotspot-value {
  font-size: 0.72rem;
  color: #94A3B8;
}
.pc-transition-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  margin-top: 0.6rem;
  border: 2px solid #EF4444;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pc-transition-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}
.pc-transition-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #475569;
  color: #475569;
}

/* ============================================================
   S3 量子电路画布 · 门符拖放+布洛赫球+测量（.qc-* 组件样式）
   境界色：化神期赤红 #EF4444 + 布洛赫球靛蓝 #818CF8
   ============================================================ */
.qc-head { margin-bottom: 0.6rem; }
.qc-title {
  font-size: 0.9rem;
  color: var(--prob-5);
  margin-bottom: 0.3rem;
}
.qc-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.qc-gate-palette {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(139, 137, 168, 0.2);
  border-radius: 10px;
  background: rgba(26, 26, 46, 0.4);
  min-width: 120px;
}
.qc-palette-title {
  font-size: 0.72rem;
  color: var(--realm-ink);
  margin-bottom: 0.2rem;
}
.qc-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border: 2px solid #475569;
  border-radius: 8px;
  background: rgba(30, 25, 35, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}
.qc-gate:hover { background: rgba(139, 137, 168, 0.1); }
.qc-gate.active {
  background: rgba(139, 137, 168, 0.18);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.25);
}
.qc-gate-icon {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}
.qc-gate-desc {
  font-size: 0.65rem;
  color: #94A3B8;
}
.qc-circuit-area {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qc-circuit-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(139, 137, 168, 0.2);
  border-radius: 10px;
  background: rgba(13, 13, 31, 0.5);
}
.qc-qubit-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qc-qubit-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  color: var(--realm-ink);
  width: 50px;
}
.qc-slots {
  display: flex;
  gap: 0.3rem;
  flex: 1;
}
.qc-gate-slot {
  flex: 1;
  min-height: 36px;
  border: 1.5px dashed rgba(139, 137, 168, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.qc-gate-slot:hover { border-color: var(--realm-ink); background: rgba(139, 137, 168, 0.06); }
.qc-gate-slot.has-gate { border-style: solid; border-color: transparent; }
.qc-placed-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  border: 1.5px solid;
  border-radius: 6px;
  background: rgba(26, 26, 46, 0.6);
  cursor: default;
}
.qc-cnot-control {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  color: #8B5CF6;
  font-weight: 700;
}
.qc-controls {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.qc-btn {
  padding: 0.4rem 0.7rem;
  border: 1.5px solid #475569;
  border-radius: 6px;
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.qc-btn:hover { border-color: var(--realm-ink); background: rgba(139, 137, 168, 0.1); }
.qc-btn-measure { border-color: #EF4444; color: #EF4444; }
.qc-btn-measure:hover { background: rgba(239, 68, 68, 0.12); }
.qc-hint {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(139, 137, 168, 0.06);
  font-size: 0.75rem;
  color: #94A3B8;
}
.qc-right-panel {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .qc-right-panel { flex: 1 1 100%; }
}
.qc-bloch-box {
  padding: 0.5rem;
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 10px;
  background: rgba(13, 13, 31, 0.4);
  text-align: center;
}
.qc-bloch-title {
  font-size: 0.72rem;
  color: var(--realm-ink);
  margin-bottom: 0.3rem;
}
.qc-bloch-canvas {
  width: 100%;
  max-width: 180px;
  height: 160px;
  display: block;
  margin: 0 auto;
}
.qc-state-label {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  color: var(--prob-5);
}
.qc-measure-panel {
  padding: 0.5rem;
  border: 1px solid rgba(139, 137, 168, 0.2);
  border-radius: 10px;
  background: rgba(13, 13, 31, 0.4);
}
.qc-measure-title {
  font-size: 0.72rem;
  color: var(--realm-ink);
  margin-bottom: 0.4rem;
}
.qc-prob-bars { display: flex; flex-direction: column; gap: 0.3rem; }
.qc-prob-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.qc-prob-label {
  flex-shrink: 0;
  width: 32px;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: #94A3B8;
}
.qc-prob-track {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: rgba(74, 74, 106, 0.3);
  overflow: hidden;
}
.qc-prob-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #818CF8, var(--tech-cyan-light));
  transition: width 0.4s ease;
}
.qc-prob-val {
  flex-shrink: 0;
  width: 42px;
  text-align: right;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: var(--prob-5);
}
.qc-prob-bar.measuring .qc-prob-fill {
  animation: ch27MeasurePulse 0.4s ease-in-out;
}
@keyframes ch27MeasurePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 0 6px #EF4444; }
}
.qc-prob-bar.collapsed .qc-prob-fill {
  background: linear-gradient(90deg, #EF4444, #F59E0B);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* ============================================================
   S6 四选一推演器 · 量子算法擂台（.ac-* 组件样式）
   境界色：化神期赤红 #EF4444 + 经典蓝 #4169E1 + 量子靛蓝 #818CF8
   ============================================================ */
.ac-head { margin-bottom: 0.6rem; }
.ac-title {
  font-size: 0.9rem;
  color: var(--prob-5);
}
.ac-arena {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  background: rgba(15, 15, 34, 0.4);
}
.ac-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.4s ease;
}
.ac-classical { border-color: rgba(65, 105, 225, 0.25); }
.ac-quantum { border-color: rgba(129, 140, 248, 0.25); }
.ac-fighter-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.ac-fighter-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E0E0F0;
}
.ac-fighter-stat {
  font-size: 0.72rem;
  color: #94A3B8;
}
.ac-fighter-bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(74, 74, 106, 0.3);
  overflow: hidden;
}
.ac-fighter-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.1s linear;
}
.ac-classical .ac-fighter-fill { background: linear-gradient(90deg, #4169E1, var(--silicon-blue)); }
.ac-quantum .ac-fighter-fill { background: linear-gradient(90deg, #818CF8, var(--tech-cyan-light)); }
.ac-fighter-complexity {
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  color: var(--realm-ink);
}
.ac-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #EF4444;
  padding: 0 0.3rem;
}
.ac-fighter.winner {
  border-color: var(--gold-quantum);
  box-shadow: 0 0 16px rgba(212, 168, 83, 0.25);
}
.ac-fighter.loser {
  opacity: 0.5;
  filter: grayscale(0.4);
}
.ac-result {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}
.ac-result.quantum-win {
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.08);
  color: var(--prob-5);
}
.ac-result.classical-win {
  border: 1px solid rgba(65, 105, 225, 0.3);
  background: rgba(65, 105, 225, 0.08);
  color: #93C5FD;
}
.ac-result.tie {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.08);
  color: #CBD5E1;
}
.ac-result.warn {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #FCA5A5;
}
.ac-scenario-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.ac-sel-title {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--realm-ink);
  margin-bottom: 0.2rem;
}
.ac-scenario {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border: 1.5px solid #475569;
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.4);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.ac-scenario:hover { border-color: var(--realm-ink); background: rgba(139, 137, 168, 0.08); }
.ac-scenario.done {
  opacity: 0.55;
  border-color: rgba(212, 168, 83, 0.3);
}
.ac-scenario-egg {
  border-color: rgba(239, 68, 68, 0.25);
}
.ac-scenario-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #E0E0F0;
}
.ac-scenario-desc {
  font-size: 0.68rem;
  color: #94A3B8;
}
.ac-scenario-result {
  font-size: 0.68rem;
  color: var(--gold-quantum);
}
.ac-hybrid-panel {
  margin-top: 0.6rem;
  padding: 0.7rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
  background: rgba(13, 13, 31, 0.4);
}
.ac-hybrid-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #67E8F9;
  margin-bottom: 0.5rem;
}
.ac-hybrid-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.ac-hybrid-node {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.5;
}
.ac-hybrid-node.classical {
  border: 1px solid rgba(65, 105, 225, 0.3);
  background: rgba(65, 105, 225, 0.08);
  color: #93C5FD;
}
.ac-hybrid-node.quantum {
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.08);
  color: var(--prob-5);
}
.ac-hybrid-arrow {
  font-size: 1.2rem;
  color: var(--gold-quantum);
}
.ac-hybrid-desc {
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* ============================================================
   S1 双缝见叠 · 单电子双缝+布洛赫球（.ds-* 组件样式）
   ============================================================ */
.ds-head { margin-bottom: 0.6rem; }
.ds-title { font-size: 0.9rem; color: var(--prob-5); }
.ds-main {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.ds-exp-box, .ds-bloch-box {
  flex: 1; min-width: 280px;
  padding: 0.8rem; border-radius: 10px;
  border: 1px solid rgba(103, 232, 249, 0.12);
  background: rgba(15, 15, 34, 0.35);
}
.ds-section-title {
  font-size: 0.8rem; font-weight: 600;
  color: #67E8F9; margin-bottom: 0.5rem;
}
.ds-slit-canvas {
  width: 100%; height: 200px; display: block;
  border-radius: 6px; background: rgba(0,0,0,0.4);
}
.ds-bloch-canvas {
  width: 100%; height: 220px; display: block;
  border-radius: 6px; background: rgba(0,0,0,0.4);
  cursor: grab; touch-action: none;
}
.ds-bloch-canvas:active { cursor: grabbing; }
.ds-controls {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: 0.5rem;
}
.ds-slider-label {
  font-size: 0.72rem; color: #94A3B8;
}
.ds-slider {
  width: 100%; accent-color: #67E8F9;
}
.ds-toggle, .ds-btn {
  padding: 0.35rem 0.7rem; border-radius: 6px;
  border: 1px solid rgba(139, 137, 168, 0.3);
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.ds-toggle:hover, .ds-btn:hover {
  border-color: var(--realm-ink); background: rgba(139, 137, 168, 0.1);
}
.ds-toggle.active {
  border-color: #EF4444; color: #FCA5A5;
  background: rgba(239, 68, 68, 0.1);
}
.ds-status {
  margin-top: 0.4rem; font-size: 0.72rem;
  color: #94A3B8; line-height: 1.5;
}
.ds-prob-display {
  margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.ds-prob-row {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; padding: 0.2rem 0.4rem;
  border-radius: 4px; background: rgba(0,0,0,0.2);
}
.ds-prob-label { color: #94A3B8; }
.ds-prob-val { color: #67E8F9; font-family: monospace; }
.ds-bloch-hint {
  margin-top: 0.4rem; font-size: 0.68rem;
  color: #6B7280; text-align: center;
}

/* ============================================================
   S2 贝尔之绊 · CHSH+超光速通信测试（.bl-* 组件样式）
   ============================================================ */
.bl-spdc-box {
  margin-bottom: 0.8rem; padding: 0.6rem;
  border-radius: 10px; border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(15, 15, 34, 0.35);
}
.bl-spdc-canvas {
  width: 100%; height: 100px; display: block;
  border-radius: 6px; background: rgba(0,0,0,0.4);
}
.bl-basis-box, .bl-dash-box, .bl-comm-box {
  margin-bottom: 0.8rem; padding: 0.8rem;
  border-radius: 10px; border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(15, 15, 34, 0.35);
}
.bl-section-title {
  font-size: 0.8rem; font-weight: 600;
  color: var(--silicon-blue); margin-bottom: 0.5rem;
}
.bl-basis-row {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.4rem; flex-wrap: wrap;
}
.bl-basis-label {
  font-size: 0.75rem; color: #94A3B8; min-width: 2.5rem;
}
.bl-basis-btn {
  padding: 0.3rem 0.6rem; border-radius: 6px;
  border: 1px solid rgba(139, 137, 168, 0.3);
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0; font-size: 0.72rem;
  cursor: pointer; transition: all 0.2s;
}
.bl-basis-btn:hover { border-color: var(--realm-ink); }
.bl-basis-btn.active {
  border-color: var(--silicon-blue); color: #93C5FD;
  background: rgba(96, 165, 250, 0.12);
}
.bl-measure-btn {
  width: 100%; margin-top: 0.4rem; padding: 0.5rem;
  border-radius: 8px; border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.08);
  color: #93C5FD; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s;
}
.bl-measure-btn:hover { background: rgba(96, 165, 250, 0.18); }
.bl-measure-btn:disabled { opacity: 0.5; cursor: default; }
.bl-s-gauge { margin: 0.5rem 0; }
.bl-s-track {
  position: relative; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(96,165,250,0.15) 0%, rgba(96,165,250,0.15) 66%, rgba(239,68,68,0.15) 66%, rgba(239,68,68,0.15) 100%);
  border: 1px solid rgba(139, 137, 168, 0.2);
  overflow: hidden;
}
.bl-s-redline {
  position: absolute; left: 66.7%; top: 0; bottom: 0;
  width: 2px; background: #EF4444; z-index: 2;
}
.bl-s-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; border-radius: 5px;
  background: linear-gradient(90deg, var(--silicon-blue), var(--transmon-purple));
  transition: width 0.6s ease; z-index: 1;
}
.bl-s-labels {
  display: flex; justify-content: space-between;
  font-size: 0.62rem; color: #6B7280; margin-top: 0.2rem;
}
.bl-s-value {
  text-align: center; font-size: 1.1rem; font-weight: 700;
  color: var(--prob-5); font-family: monospace; margin: 0.3rem 0;
}
.bl-s-verdict {
  text-align: center; font-size: 0.72rem; color: #94A3B8;
}
.bl-comm-desc { font-size: 0.72rem; color: #94A3B8; margin-bottom: 0.4rem; }
.bl-comm-input {
  width: 100%; padding: 0.4rem; border-radius: 6px;
  border: 1px solid rgba(139, 137, 168, 0.3);
  background: rgba(0,0,0,0.3); color: #E0E0F0;
  font-size: 0.8rem; margin-bottom: 0.4rem;
}
.bl-comm-btn {
  padding: 0.4rem 0.8rem; border-radius: 6px;
  border: 1px solid rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.08);
  color: #FDBA74; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.bl-comm-btn:hover { background: rgba(251, 146, 60, 0.18); }
.bl-comm-result {
  margin-top: 0.4rem; padding: 0.5rem; border-radius: 6px;
  background: rgba(0,0,0,0.3); font-size: 0.72rem;
  color: #FCA5A5; line-height: 1.6;
}

/* ============================================================
   S4 硅点与超导 · 四路线探索+对比表（.rt-* 组件样式）
   ============================================================ */
.rt-tab-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.rt-tab {
  padding: 0.4rem 0.7rem; border-radius: 8px;
  border: 1px solid rgba(139, 137, 168, 0.3);
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.rt-tab:hover { border-color: var(--realm-ink); }
.rt-tab.active {
  border-color: var(--transmon-purple); color: #C4B5FD;
  background: rgba(167, 139, 250, 0.12);
}
.rt-content {
  margin-bottom: 0.8rem; min-height: 100px;
}
.rt-route-card {
  padding: 0.8rem; border-radius: 10px;
  border: 1px solid rgba(139, 137, 168, 0.15);
  background: rgba(15, 15, 34, 0.35);
}
.rt-param-row {
  display: flex; gap: 0.5rem; padding: 0.3rem 0;
  border-bottom: 1px solid rgba(139, 137, 168, 0.08);
  font-size: 0.72rem; line-height: 1.5;
}
.rt-param-row:last-child { border-bottom: none; }
.rt-param-key {
  min-width: 5rem; color: #94A3B8; flex-shrink: 0;
}
.rt-param-val { color: #E0E0F0; }
.rt-table-box {
  padding: 0.8rem; border-radius: 10px;
  border: 1px solid rgba(139, 137, 168, 0.12);
  background: rgba(15, 15, 34, 0.35);
}
.rt-section-title {
  font-size: 0.8rem; font-weight: 600;
  color: var(--transmon-purple); margin-bottom: 0.5rem;
}
.rt-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.68rem;
}
.rt-table th {
  padding: 0.35rem 0.3rem; text-align: left;
  color: #94A3B8; border-bottom: 1px solid rgba(139, 137, 168, 0.2);
}
.rt-table td {
  padding: 0.35rem 0.3rem; color: #E0E0F0;
  border-bottom: 1px solid rgba(139, 137, 168, 0.08);
}
.rt-row-label { color: #94A3B8; font-weight: 500; }
.rt-cell { color: #6B7280; }
.rt-cell.filled { color: #E0E0F0; }

/* ============================================================
   S5 退相干劫 · T1/T2+表面码+QV（.dc-* 组件样式）
   ============================================================ */
.dc-decay-box, .dc-noise-box, .dc-sc-box, .dc-qv-box {
  margin-bottom: 0.8rem; padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(127, 29, 29, 0.15);
  background: rgba(15, 15, 34, 0.35);
}
.dc-section-title {
  font-size: 0.8rem; font-weight: 600;
  color: #F87171; margin-bottom: 0.5rem;
}
.dc-decay-canvas, .dc-sc-canvas {
  width: 100%; height: 160px; display: block;
  border-radius: 6px; background: rgba(0,0,0,0.4);
}
.dc-slider-box {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-top: 0.5rem;
}
.dc-slider-label { font-size: 0.72rem; color: #94A3B8; }
.dc-slider { width: 100%; accent-color: #F87171; }
.dc-noise-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.dc-noise-btn {
  padding: 0.3rem 0.6rem; border-radius: 6px;
  border: 1px solid rgba(139, 137, 168, 0.3);
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0; font-size: 0.7rem;
  cursor: pointer; transition: all 0.2s;
}
.dc-noise-btn:hover { opacity: 0.85; }
.dc-sc-verdict {
  margin-top: 0.4rem; font-size: 0.72rem;
  color: #94A3B8; line-height: 1.5;
}
.dc-qv-display {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin: 0.5rem 0;
}
.dc-qv-row {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; padding: 0.25rem 0.4rem;
  border-radius: 4px; background: rgba(0,0,0,0.2);
}
.dc-qv-label { color: #94A3B8; }
.dc-qv-val { color: #FCA5A5; font-family: monospace; }
.dc-qv-note {
  font-size: 0.68rem; color: #6B7280;
  text-align: center; margin-top: 0.3rem;
}
.dc-qv-btn {
  width: 100%; margin-top: 0.4rem; padding: 0.4rem;
  border-radius: 6px; border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #FCA5A5; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.dc-qv-btn:hover { background: rgba(248, 113, 113, 0.18); }
.dc-qv-btn:disabled { opacity: 0.5; cursor: default; }

/* ============================================================
   S7 老祖降世 · 六幻象审视+崩碎演出（.il-* 组件样式）
   ============================================================ */
.il-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.il-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem; padding: 0.7rem 0.6rem;
  border-radius: 10px; border: 1px solid;
  background: rgba(15, 15, 34, 0.4);
  color: #E0E0F0; font-size: 0.75rem;
  cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.il-card:hover {
  background: rgba(30, 25, 35, 0.6);
  transform: translateY(-2px);
}
.il-card.examined {
  border-style: dashed; opacity: 0.85;
}
.il-card-icon { font-size: 1.6rem; }
.il-card-name { font-weight: 600; font-size: 0.8rem; color: var(--prob-5); }
.il-card-claim { font-size: 0.68rem; color: #94A3B8; line-height: 1.5; }
.il-card-hint { font-size: 0.65rem; color: #6B7280; margin-top: 0.2rem; }
.il-card-omitted {
  margin-top: 0.4rem; padding: 0.4rem; border-radius: 6px;
  background: rgba(127, 29, 29, 0.12);
  border: 1px solid rgba(127, 29, 29, 0.2);
  font-size: 0.65rem; color: #FCA5A5; line-height: 1.6;
  text-align: left; width: 100%;
}
/* 各幻象色 */
.il-card-shor { border-color: rgba(255, 107, 107, 0.25); }
.il-card-shor .il-card-icon { color: var(--prob-1); }
.il-card-phone { border-color: rgba(78, 205, 196, 0.25); }
.il-card-phone .il-card-icon { color: var(--prob-2); }
.il-card-robot { border-color: rgba(255, 230, 109, 0.25); }
.il-card-robot .il-card-icon { color: var(--prob-3); }
.il-card-ai { border-color: rgba(167, 139, 250, 0.25); }
.il-card-ai .il-card-icon { color: var(--transmon-purple); }
.il-card-drug { border-color: rgba(149, 225, 211, 0.25); }
.il-card-drug .il-card-icon { color: var(--prob-4); }
.il-card-internet { border-color: rgba(199, 206, 234, 0.25); }
.il-card-internet .il-card-icon { color: var(--prob-5); }

.il-collapse-box {
  margin-bottom: 0.8rem; padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(127, 29, 29, 0.15);
  background: rgba(5, 3, 16, 0.5);
}
.il-section-title {
  font-size: 0.8rem; font-weight: 600;
  color: var(--realm-ink); margin-bottom: 0.5rem;
}
.il-collapse-canvas {
  width: 100%; height: 160px; display: block;
  border-radius: 6px; background: rgba(0,0,0,0.6);
}
.il-collapse-status {
  margin-top: 0.4rem; font-size: 0.72rem;
  color: #94A3B8; line-height: 1.6; min-height: 2rem;
}
.il-collapse-status b { color: var(--prob-5); }
.il-admit-btn {
  display: block; width: 100%; padding: 0.6rem;
  border-radius: 8px;
  border: 2px solid rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.06);
  color: #FCA5A5; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.il-admit-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
  border-color: rgba(139, 137, 168, 0.2);
  color: #6B7280;
}
.il-admit-btn.ready {
  animation: ilAdmitPulse 1.8s ease-in-out infinite;
}
.il-admit-btn:not(:disabled):hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: var(--prob-1);
}
@keyframes ilAdmitPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3); }
  50% { box-shadow: 0 0 16px 4px rgba(255, 107, 107, 0.15); }
}

/* ============================================================
   S8 异构顿悟 · 三层温度拼图+室温测试（.hg-* 组件样式）
   ============================================================ */
.hg-pool-box {
  margin-bottom: 0.8rem; padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: rgba(15, 15, 34, 0.35);
}
.hg-section-title {
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold-quantum); margin-bottom: 0.5rem;
}
.hg-pool-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.hg-comp-btn {
  padding: 0.35rem 0.6rem; border-radius: 6px;
  border: 1px solid rgba(139, 137, 168, 0.3);
  background: rgba(30, 25, 35, 0.5);
  color: #E0E0F0; font-size: 0.72rem;
  cursor: pointer; transition: all 0.2s;
}
.hg-comp-btn:hover { border-color: var(--realm-ink); }
.hg-comp-btn.selected {
  border-color: var(--gold-quantum); color: #FDE68A;
  background: rgba(212, 168, 83, 0.12);
}
.hg-comp-btn.placed {
  opacity: 0.3; cursor: default;
  text-decoration: line-through;
}
.hg-layers-box {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.hg-layer {
  padding: 0.7rem; border-radius: 10px;
  border: 1px solid rgba(139, 137, 168, 0.15);
  background: rgba(15, 15, 34, 0.35);
  cursor: pointer; transition: all 0.2s;
}
.hg-layer:hover { border-color: rgba(212, 168, 83, 0.3); }
.hg-layer-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.hg-layer-temp {
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; font-family: monospace;
}
.hg-layer-name { font-size: 0.8rem; font-weight: 600; color: var(--prob-5); }
.hg-layer-desc { font-size: 0.68rem; color: #94A3B8; margin-bottom: 0.4rem; }
.hg-layer-slots {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  min-height: 2rem;
}
.hg-slot-placed {
  padding: 0.25rem 0.5rem; border-radius: 4px;
  font-size: 0.68rem; font-family: monospace;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}
/* 三层温度色 */
.hg-layer-room .hg-layer-temp {
  background: rgba(248, 113, 113, 0.15); color: #FCA5A5;
}
.hg-layer-room { border-left: 3px solid #F87171; }
.hg-layer-helium .hg-layer-temp {
  background: rgba(96, 165, 250, 0.15); color: #93C5FD;
}
.hg-layer-helium { border-left: 3px solid var(--silicon-blue); }
.hg-layer-mk .hg-layer-temp {
  background: rgba(167, 139, 250, 0.15); color: #C4B5FD;
}
.hg-layer-mk { border-left: 3px solid var(--transmon-purple); }

.hg-test-box {
  padding: 0.8rem; border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.15);
  background: rgba(15, 15, 34, 0.35);
}
.hg-test-canvas {
  width: 100%; height: 120px; display: block;
  border-radius: 6px; background: rgba(0,0,0,0.4);
}
.hg-test-status {
  margin: 0.4rem 0; font-size: 0.72rem;
  color: #94A3B8; line-height: 1.6;
}
.hg-test-status b { color: #FCA5A5; }
.hg-test-btn {
  padding: 0.4rem 0.8rem; border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #FCA5A5; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.hg-test-btn:hover { background: rgba(248, 113, 113, 0.18); }
.hg-test-btn:disabled { opacity: 0.5; cursor: default; }
