/* 全本地原生高清字体栈（移除外部字体 @import，避免国内网络偶发阻塞首屏渲染） */
:root {
  --canvas: #f5f4ee;
  --surface: rgba(255, 255, 255, 0.95);
  --forest-950: #041d1a;
  --forest-900: #08322c;
  --forest-700: #0f5c54;
  --forest-500: #158074;
  --accent-gold: #d99b26;
  --bili-pink: #fb7299;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background-color: var(--canvas);
  background-image:
    radial-gradient(at 12% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 46%),
    radial-gradient(at 88% 10%, rgba(217, 155, 38, 0.07) 0px, transparent 42%),
    radial-gradient(rgba(15, 92, 84, 0.048) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: #132220;
  -webkit-tap-highlight-color: transparent;
}

.tabular-nums { font-variant-numeric: tabular-nums; }
@keyframes panelReveal { from { opacity: 0.25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel-anim { opacity: 1; animation: panelReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* 物理实验装置动画 */
@keyframes dashFlow { to { stroke-dashoffset: -28; } }
@keyframes bubbleRise { 0% { transform: translateY(8px); opacity: 0; } 35% { opacity: 0.9; } 100% { transform: translateY(-22px); opacity: 0; } }
@keyframes dropFall { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }
@keyframes sonarPulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes bandElute { 0% { transform: translateY(0); } 50% { transform: translateY(16px); } 100% { transform: translateY(0); } }
.anim-flow { stroke-dasharray: 7 7; animation: dashFlow 1.2s linear infinite; }
.anim-bubble-1 { animation: bubbleRise 1.7s ease-in infinite; }
.anim-bubble-2 { animation: bubbleRise 2.1s ease-in 0.6s infinite; }
.anim-bubble-3 { animation: bubbleRise 1.5s ease-in 1.1s infinite; }
.anim-drop { animation: dropFall 1.3s ease-in infinite; }
.anim-sonar { transform-box: fill-box; transform-origin: center; animation: sonarPulse 1.8s ease-out infinite; }
.anim-sonar-2 { transform-box: fill-box; transform-origin: center; animation: sonarPulse 1.8s ease-out 0.9s infinite; }
.anim-band { animation: bandElute 3.8s ease-in-out infinite; }

/* 实验室精密卡片体系 */
.lab-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 92, 84, 0.10);
  box-shadow: 0 1px 2px rgba(5, 33, 29, 0.03), 0 16px 36px -12px rgba(5, 33, 29, 0.07);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.22s ease;
}
.lab-card:hover {
  border-color: rgba(15, 92, 84, 0.18);
  box-shadow: 0 4px 12px rgba(5, 33, 29, 0.04), 0 18px 38px -12px rgba(5, 33, 29, 0.09);
}

.pick-card {
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(5, 33, 29, 0.03);
}
.pick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 84, 0.52);
  box-shadow: 0 12px 26px -6px rgba(15, 92, 84, 0.13);
}
.pick-card.selected {
  border-color: #0f5c54;
  background: linear-gradient(150deg, #e8f8f3 0%, #ffffff 78%);
  box-shadow: 0 0 0 2px rgba(15, 92, 84, 0.18), 0 12px 26px -6px rgba(15, 92, 84, 0.12);
}

.step-chip { transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.step-chip:hover { border-color: rgba(15, 92, 84, 0.4); color: #0a3630; }
.step-chip.active {
  background: linear-gradient(135deg, #062420 0%, #0f5c54 100%);
  color: #ffffff;
  border-color: #062420;
  box-shadow: 0 4px 14px rgba(10, 54, 48, 0.28);
}
.step-chip.done { background: #e3f4f0; color: #0a3630; border-color: #a9dbd0; }

/* 独立工艺装置库切换按钮 */
.hub-nav-pill {
  transition: all 0.22s ease;
  border: 1px solid rgba(217, 155, 38, 0.45);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
}
.hub-nav-pill:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  transform: translateY(-1px);
}
.hub-nav-pill.active {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  color: #ffffff;
  border-color: #92400e;
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.28);
}

/* 精准 B站微视频推荐胶囊 */
.bili-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #fff1f5;
  color: #be185d;
  border: 1px solid #fbcfe8;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.bili-pill:hover {
  background: #fce7f3;
  border-color: #f472b6;
  color: #9d174d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(251, 114, 153, 0.18);
}

/* 小分支时间轴操作卡片 */
.subbranch-item {
  position: relative;
  border-left: 3px solid #0f5c54;
  background: linear-gradient(90deg, #f5fbf9 0%, #ffffff 45%);
  border-top: 1px solid #e2ece8;
  border-right: 1px solid #e2ece8;
  border-bottom: 1px solid #e2ece8;
  border-radius: 14px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.subbranch-item:hover {
  border-left-color: #d99b26;
  box-shadow: 0 6px 16px -6px rgba(10, 54, 48, 0.12);
}

/* AI 前置条件选择控件 */
.ai-precond-select {
  appearance: none;
  background-color: #f8faf9;
  border: 1px solid #d5e5e0;
  color: #0a3630;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 5px 10px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.ai-precond-select:focus {
  outline: none;
  border-color: #0f5c54;
  background-color: #ffffff;
}

.formula-box { font-family: 'Cambria Math', 'Times New Roman', serif; }
.hotspot-btn { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform 0.18s ease; }
.hotspot-btn:hover { transform: scale(1.16); }
.a4-paper { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); }
.custom-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.45); border-radius: 999px; }

/* 资源抽屉宽屏拓展阅读模式 */
#rightDrawer.drawer-wide {
  width: min(940px, 98vw) !important;
}
.theory-mode-btn {
  cursor: pointer;
  user-select: none;
}

@media print {
  .no-print { display: none !important; }
  body { background: #ffffff !important; background-image: none !important; }
  main > *:not(#wpanel-6) { display: none !important; }
  #wpanel-6 > *:not(#reportPreviewCard) { display: none !important; }
  #printableReportMount { box-shadow: none !important; border: none !important; padding: 0 !important; }
}

/* ============ AI 实验设计方案 · 全景展示区 ============ */
.ai-sc { font-size: 13px; line-height: 1.65; }
.ai-sc-hero { background: linear-gradient(135deg,#052a25 0%,#0b4a40 55%,#12695c 100%); }
.ai-sec-title { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:800; color:#0a3630; margin:0 0 10px; }
.ai-sec-title .ai-sec-idx { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:8px; background:#0a3630; color:#fff; font-size:11px; font-weight:800; flex:none; }
.ai-chip { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; background:#f1f6f4; border:1px solid #d7e8e2; color:#0f5c54; }
.ai-innov { background:linear-gradient(100deg,#fffbeb,#fef3c7); border:1px solid #fcd34d; border-radius:14px; padding:11px 14px; }
.ai-flow-wrap { overflow-x:auto; padding:4px 2px 12px; }
.ai-flow { display:flex; align-items:stretch; min-width:760px; }
.ai-flow-node { flex:1 1 0; min-width:112px; position:relative; border:1.5px solid #d9e8e3; border-radius:16px; padding:11px 10px; background:#fff; cursor:pointer; text-align:left; transition:transform .25s,box-shadow .25s,border-color .25s; animation:aiNodeIn .55s ease both; }
.ai-flow-node:hover { transform:translateY(-3px); box-shadow:0 10px 22px rgba(10,54,48,.13); }
.ai-flow-node.active { border-color:#0f7a68; background:linear-gradient(160deg,#f0fbf7,#fff); box-shadow:0 0 0 3px rgba(15,122,104,.14),0 10px 22px rgba(10,54,48,.15); }
.ai-flow-node .ai-n-num { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#0a3630; color:#fff; font-size:11px; font-weight:800; margin-bottom:7px; }
.ai-flow-node.active .ai-n-num { animation:aiPulse 1.9s ease-in-out infinite; }
.ai-flow-node .ai-n-stage { font-size:10px; font-weight:800; color:#0f7a68; letter-spacing:.04em; text-transform:uppercase; }
.ai-flow-node .ai-n-title { font-size:12px; font-weight:800; color:#0f172a; margin-top:3px; line-height:1.4; }
.ai-flow-node .ai-n-meta { font-size:10px; color:#64748b; margin-top:5px; }
.ai-flow-arrow { flex:0 0 26px; display:flex; align-items:center; justify-content:center; position:relative; }
.ai-flow-arrow::before { content:''; height:2px; width:100%; background:linear-gradient(90deg,#8fd4c2,#0f7a68,#8fd4c2); background-size:200% 100%; animation:aiFlowDash 1.5s linear infinite; }
.ai-flow-arrow::after { content:'›'; position:absolute; right:-1px; top:50%; transform:translateY(-52%); color:#0f7a68; font-size:18px; font-weight:800; line-height:1; }
@keyframes aiFlowDash { from{background-position:0 0} to{background-position:200% 0} }
@keyframes aiFlowDashV { from{background-position:0 0} to{background-position:0 200%} }
@keyframes aiNodeIn { from{opacity:0;transform:translateY(14px) scale(.96)} to{opacity:1;transform:none} }
@keyframes aiPulse { 0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.5)} 50%{box-shadow:0 0 0 9px rgba(16,185,129,0)} }
.ai-step-card { border:1px solid #e2e8f0; border-radius:16px; background:#fff; overflow:hidden; }
.ai-step-card .ai-step-hd { display:flex; align-items:center; gap:9px; padding:10px 13px; background:linear-gradient(90deg,#f2f8f6,#fff); border-bottom:1px solid #edf2f0; }
.ai-step-badge { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:7px; background:#0a3630; color:#fff; font-size:11px; font-weight:800; flex:none; }
.ai-kv { display:flex; gap:8px; padding:7px 13px; border-top:1px dashed #eef2f1; }
.ai-kv .ai-k { flex:0 0 66px; font-size:11px; font-weight:800; color:#0f5c54; }
.ai-kv .ai-v { flex:1; font-size:12px; color:#475569; }
.ai-sop-item { display:flex; gap:10px; padding:9px 12px; border:1px solid #e6eeeb; border-radius:12px; background:#fbfdfc; }
.ai-sop-no { flex:none; width:22px; height:22px; border-radius:50%; background:#dff3ec; color:#0a3630; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.ai-ref-item { padding:9px 12px; border-left:3px solid #0f7a68; background:#f7faf9; border-radius:0 10px 10px 0; font-size:12px; color:#475569; }
.ai-ref-item.ai-ref-rec { border-left-color:#d97706; background:#fffbeb; }
.ai-trouble { padding:9px 12px; border-radius:12px; background:#fffbeb; border:1px solid #fde68a; font-size:12px; }
.ai-concl { padding:12px 14px; border-radius:14px; background:#0a3630; color:#d1fae5; font-size:12px; }
.ai-scroll-hint { font-size:10px; color:#94a3b8; }
.ai-sec-anchor { scroll-margin-top: 92px; }
@media (max-width:640px){
  .ai-kv .ai-v, .ai-sop-item span:last-child { font-size:12.5px; }
  .ai-flow-node .ai-n-title { font-size:13px; }
  .ai-ref-item, .ai-concl, .ai-innov { font-size:12.5px; }
  .ai-flow { flex-direction:column; min-width:0; }
  .ai-flow-node { min-width:0; width:100%; }
  .ai-flow-arrow { flex:0 0 22px; width:2px; margin:0 auto; }
  .ai-flow-arrow::before { width:2px; height:100%; background:linear-gradient(180deg,#8fd4c2,#0f7a68,#8fd4c2); background-size:100% 200%; animation:aiFlowDashV 1.5s linear infinite; }
  .ai-flow-arrow::after { content:'⌄'; right:auto; top:auto; bottom:-6px; transform:none; }
  .ai-kv .ai-k { flex-basis:58px; }
}
/* 装置图轻量动态效果 */
.rig-live svg { animation:aiRigFloat 4.5s ease-in-out infinite; }
@keyframes aiRigFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.ai-live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#10b981; animation:aiPulse 1.9s ease-in-out infinite; }
@media print { #aiPlanShowcase { break-inside:avoid; } .ai-sc .no-print { display:none !important; } }


/* ============ v7.0 深色护眼实验室模式 (Dark Lab Mode) ============ */
body.dark-lab {
  background-color: #071513;
  background-image:
    radial-gradient(at 15% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 88% 12%, rgba(217, 155, 38, 0.08) 0px, transparent 42%);
  color: #e2f1ed;
}
body.dark-lab header {
  background: rgba(7, 24, 21, 0.92) !important;
  border-color: rgba(45, 212, 191, 0.16) !important;
}
body.dark-lab .lab-card,
body.dark-lab #qwenCommandBar,
body.dark-lab #aiPlanShowcase,
body.dark-lab #rightDrawer {
  background: rgba(13, 36, 32, 0.94) !important;
  border-color: rgba(45, 212, 191, 0.18) !important;
  color: #e2f1ed !important;
}
body.dark-lab .bg-white,
body.dark-lab .bg-slate-50,
body.dark-lab .bg-\[\#f7f7f4\],
body.dark-lab .bg-\[\#fbfcfa\] {
  background-color: #0f2c27 !important;
  border-color: rgba(45, 212, 191, 0.16) !important;
}
body.dark-lab .text-slate-900,
body.dark-lab .text-slate-800 { color: #f0fdfa !important; }
body.dark-lab .text-slate-700,
body.dark-lab .text-slate-600 { color: #cbd5e1 !important; }
body.dark-lab .text-slate-500 { color: #94a3b8 !important; }
body.dark-lab input,
body.dark-lab select,
body.dark-lab textarea {
  background-color: #081e1b !important;
  color: #f0fdfa !important;
  border-color: rgba(45, 212, 191, 0.25) !important;
}
body.dark-lab .a4-paper {
  background: #ffffff !important;
  color: #0f172a !important;
}
body.dark-lab .a4-paper * { color: inherit; }

/* ============ v7.1 移动端 Netlify 浮标智能避让 ============ */
@media (max-width: 1023px) {
  body.on-netlify {
    padding-bottom: 124px !important;
  }
  body.on-netlify #mobStepBar {
    bottom: 62px !important;
    left: 12px !important;
    right: 12px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(15, 92, 84, 0.22) !important;
    box-shadow: 0 10px 28px -4px rgba(5, 33, 29, 0.18) !important;
  }
  body.dark-lab #mobStepBar {
    background: rgba(10, 32, 28, 0.96) !important;
    border-color: rgba(45, 212, 191, 0.25) !important;
  }
}

/* ============ v8.0 宽屏双栏实验室工作站 & 动态UI美学 ============ */
@keyframes hexDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(18px, -24px, 0) rotate(12deg); }
}
@keyframes hexDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-22px, 20px, 0) rotate(-15deg); }
}
@keyframes dockHeatPulse {
  0%, 100% { opacity: 0.45; transform: scaleX(0.92); }
  50% { opacity: 0.95; transform: scaleX(1.08); }
}
@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#ambientLabBg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
#ambientLabBg .ambient-hex-1 {
  position: absolute;
  top: 7%;
  right: 4%;
  width: 280px;
  height: 280px;
  opacity: 0.055;
  animation: hexDriftA 18s ease-in-out infinite;
}
#ambientLabBg .ambient-hex-2 {
  position: absolute;
  bottom: 8%;
  left: 22%;
  width: 240px;
  height: 240px;
  opacity: 0.045;
  animation: hexDriftB 22s ease-in-out infinite;
}
body.dark-lab #ambientLabBg .ambient-hex-1,
body.dark-lab #ambientLabBg .ambient-hex-2 {
  opacity: 0.085;
}
@media (prefers-reduced-motion: reduce) {
  #ambientLabBg .ambient-hex-1,
  #ambientLabBg .ambient-hex-2,
  .dock-heat-pulse { animation: none !important; }
}

.dock-heat-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: dockHeatPulse 2s ease-in-out infinite;
}

/* 顶栏独立功能分区切换条 */
.workspace-zone-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(15, 92, 84, 0.065);
  border: 1px solid rgba(15, 92, 84, 0.12);
}
.zone-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.zone-tab:hover {
  color: #062420;
  background: rgba(255, 255, 255, 0.72);
}
.zone-tab.active {
  background: linear-gradient(135deg, #062420 0%, #0f5c54 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(6, 36, 32, 0.35);
}
.zone-tab.zone-tab-hub.active {
  background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(146, 64, 14, 0.35);
}
.zone-tab .zone-badge {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(146, 64, 14, 0.14);
  color: #92400e;
}
.zone-tab.active .zone-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* 独立 6 步连线进度条 */
#stepperZoneBar {
  border-top: 1px solid rgba(15, 92, 84, 0.08);
  padding-top: 10px;
}
.stepper-track {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 1px;
}
.stepper-track::-webkit-scrollbar { display: none; }
.stepper-track .step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 92, 84, 0.14);
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.stepper-track .step-chip .step-num-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #e2ede9;
  color: #0a3630;
  transition: all 0.22s ease;
}
.stepper-track .step-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 92, 84, 0.45);
  color: #062420;
  box-shadow: 0 4px 12px rgba(15, 92, 84, 0.10);
}
.stepper-track .step-chip.active {
  background: linear-gradient(135deg, #062420 0%, #0f5c54 100%);
  color: #ffffff;
  border-color: #062420;
  box-shadow: 0 6px 18px -4px rgba(10, 54, 48, 0.38);
}
.stepper-track .step-chip.active .step-num-dot {
  background: #34d399;
  color: #041d1a;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
}
.stepper-track .step-chip.done {
  background: #e7f6f1;
  color: #0a3630;
  border-color: #9dd8c8;
}
.stepper-track .step-chip.done .step-num-dot {
  background: #0f5c54;
  color: #ffffff;
}
.stepper-conn {
  flex: 1 1 18px;
  min-width: 14px;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(15, 92, 84, 0.14);
  transition: background 0.35s ease;
}
.stepper-conn.filled {
  background: linear-gradient(90deg, #0f5c54 0%, #10b981 100%);
}

/* AI 总控台动态流光边框 */
#qwenCommandBar {
  position: relative;
  border: 1.5px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 12px 32px -12px rgba(6, 36, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* 右侧常驻动态可视化驾驶舱 */
.studio-dock-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 92, 84, 0.12);
  box-shadow: 0 2px 6px rgba(5, 33, 29, 0.03), 0 18px 40px -14px rgba(5, 33, 29, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.studio-dock-card:hover {
  border-color: rgba(15, 92, 84, 0.22);
  box-shadow: 0 6px 16px rgba(5, 33, 29, 0.05), 0 22px 44px -14px rgba(5, 33, 29, 0.12);
}
.dock-step-row {
  background: #f8faf9;
  color: #475569;
  border: 1px solid transparent;
}
.dock-step-row:hover {
  background: #eef7f4;
  color: #062420;
}
.dock-step-row .dock-step-dot {
  background: #e2e8f0;
  color: #475569;
}
.dock-step-row.active {
  background: linear-gradient(135deg, #062420 0%, #0f5c54 100%);
  color: #ffffff;
  border-color: #062420;
  box-shadow: 0 6px 14px -4px rgba(6, 36, 32, 0.35);
}
.dock-step-row.active .dock-step-dot {
  background: #34d399;
  color: #041d1a;
}
.dock-step-row.done {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.dock-step-row.done .dock-step-dot {
  background: #10b981;
  color: #ffffff;
}

/* 桌面端手动收起右侧驾驶舱 */
body.dock-collapsed #rightVisualDock {
  display: none !important;
}

/* Dark Lab Mode 适配 v8.0 新组件 */
body.dark-lab .workspace-zone-bar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(45, 212, 191, 0.18);
}
body.dark-lab .zone-tab { color: #cbd5e1; }
body.dark-lab .zone-tab:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
body.dark-lab .stepper-track .step-chip {
  background: rgba(15, 44, 39, 0.9);
  border-color: rgba(45, 212, 191, 0.2);
  color: #cbd5e1;
}
body.dark-lab .stepper-track .step-chip .step-num-dot {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}
body.dark-lab .stepper-track .step-chip.done {
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.35);
}
body.dark-lab .stepper-conn { background: rgba(45, 212, 191, 0.18); }
body.dark-lab .studio-dock-card {
  background: rgba(12, 34, 30, 0.92) !important;
  border-color: rgba(45, 212, 191, 0.2) !important;
}
body.dark-lab .dock-step-row {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
body.dark-lab .dock-step-row:hover { background: rgba(45, 212, 191, 0.12); color: #ffffff; }
body.dark-lab .dock-step-row.done {
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
}
body.dark-lab #dockValEff,
body.dark-lab #dockValGreen,
body.dark-lab #dockValFit {
  color: #f1f5f9 !important;
}
body.dark-lab .studio-dock-card .bg-slate-50\/80 {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(45, 212, 191, 0.15) !important;
}

/* v8.0 宽屏双栏工作站显式响应式布局（不受 .hidden !important 影响） */
.studio-layout-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.studio-right-dock {
  display: none;
  width: 356px;
  flex-shrink: 0;
}
.studio-dock-toggle-btn {
  display: none;
}
@media (min-width: 1280px) {
  .studio-layout-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .studio-right-dock {
    display: block;
  }
  .studio-dock-toggle-btn {
    display: inline-flex;
  }
}
@media (min-width: 1536px) {
  .studio-right-dock {
    width: 392px;
  }
}

/* ============ v9.0 小板块美化与高阶 DIY 积木工坊样式 ============ */
.v9-visual-card {
  position: relative;
  overflow: hidden;
}
.v9-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #062420 0%, #10b981 48%, #d99b26 100%);
  opacity: 0.85;
}
.v9-polar-node {
  transition: transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.v9-polar-node:hover {
  transform: scale(1.16);
}
.v9-brick-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.v9-brick-btn:hover {
  border-color: rgba(15, 92, 84, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(15, 92, 84, 0.16);
}
.v9-brick-btn.active {
  background: linear-gradient(135deg, #062420 0%, #0f5c54 100%);
  border-color: #062420;
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(6, 36, 32, 0.35);
}
body.dark-lab .v9-chart-surface {
  background: rgba(8, 28, 25, 0.92) !important;
  border-color: rgba(45, 212, 191, 0.2) !important;
}
body.dark-lab .v9-brick-btn {
  background: rgba(13, 38, 34, 0.92);
  border-color: rgba(45, 212, 191, 0.18);
  color: #cbd5e1;
}
body.dark-lab .v9-brick-btn.active {
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
  border-color: #34d399;
  color: #ffffff;
}

/* ============ v10.0 互动实验流程卡片与沙盒美化 ============ */
.v10-flow-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.v10-flow-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 84, 0.45);
  box-shadow: 0 10px 22px -8px rgba(15, 92, 84, 0.16);
}
.v10-flow-card.done {
  background: linear-gradient(155deg, #ecfdf5 0%, #ffffff 85%);
  border-color: #10b981;
  color: #064e3b;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.25);
}
body.dark-lab .v10-flow-card {
  background: rgba(13, 38, 34, 0.92);
  border-color: rgba(45, 212, 191, 0.2);
  color: #cbd5e1;
}
body.dark-lab .v10-flow-card.done {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.22) 0%, rgba(13, 38, 34, 0.95) 90%);
  border-color: #34d399;
  color: #ecfdf5;
}

/* ============ 舒适阅读排版体系 & 交互体验深度美化 ============ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[data-font-scale="large"] { font-size: 17.5px; }
html[data-font-scale="xlarge"] { font-size: 19px; }

body {
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei', 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.72;
  color: #102421;
}

/* 全面抬升中文微小字号，杜绝“凑近屏幕才能看清”的问题 */
.text-\[9px\]  { font-size: 0.76rem !important; line-height: 1.48 !important; }
.text-\[10px\] { font-size: 0.80rem !important; line-height: 1.52 !important; }
.text-\[11px\] { font-size: 0.86rem !important; line-height: 1.60 !important; }
.text-xs         { font-size: 0.90rem !important; line-height: 1.64 !important; }
.text-sm         { font-size: 0.98rem !important; line-height: 1.70 !important; }
.text-base       { font-size: 1.10rem !important; line-height: 1.66 !important; }
.text-lg         { font-size: 1.24rem !important; line-height: 1.50 !important; }

/* 提高说明文字与正文对比度 */
.text-slate-500 { color: #475569 !important; }
.text-slate-600 { color: #334155 !important; }
.text-slate-700 { color: #1e293b !important; }

/* 方案全景卡与步骤卡阅读体验放大 */
.ai-sc { font-size: 0.96rem !important; line-height: 1.76 !important; }
.ai-sec-title { font-size: 1.05rem !important; margin-bottom: 12px !important; }
.ai-kv .ai-k { flex: 0 0 82px !important; font-size: 0.88rem !important; }
.ai-kv .ai-v, .ai-ref-item, .ai-trouble, .ai-concl, .ai-innov { font-size: 0.92rem !important; line-height: 1.72 !important; }
.ai-flow-node .ai-n-title { font-size: 0.92rem !important; }
.ai-flow-node .ai-n-meta  { font-size: 0.80rem !important; }
.bili-pill { font-size: 0.82rem !important; padding: 5px 12px !important; }

/* 顶栏与分区导航更宽松大气 */
.zone-tab {
  font-size: 0.88rem !important;
  padding: 8px 16px !important;
}
.stepper-track .step-chip {
  font-size: 0.88rem !important;
  padding: 8px 16px 8px 10px !important;
}
.stepper-track .step-chip .step-num-dot {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.78rem !important;
}

/* 实验室卡片更有呼吸感与层次感 */
.lab-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 92, 84, 0.12);
  box-shadow: 0 2px 6px rgba(5, 33, 29, 0.03), 0 18px 40px -14px rgba(5, 33, 29, 0.08);
}

/* 左侧配置栏文字更清晰，滑块手感更顺滑 */
#leftSidebar {
  width: 300px;
}
@media (min-width: 1024px) {
  body > div.lg\:pl-72 {
    padding-left: 300px !important;
  }
}
input[type="range"] {
  height: 6px;
  border-radius: 999px;
  cursor: pointer;
}
input[type="text"], input[type="number"], select, textarea {
  font-size: 0.92rem !important;
}

/* 右侧可视化驾驶舱稍微加宽，图表字更清晰 */
@media (min-width: 1280px) {
  .studio-right-dock { width: 376px !important; }
}
@media (min-width: 1536px) {
  .studio-right-dock { width: 416px !important; }
}

/* 悬浮快捷操作浮球（一键回顶 / 下一环节） */
#quickAssistFab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body.on-netlify #quickAssistFab {
  bottom: 74px;
}
@media (max-width: 1023px) {
  #quickAssistFab { bottom: 78px; right: 14px; }
  body.on-netlify #quickAssistFab { bottom: 136px; }
}
.quick-fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(6, 36, 32, 0.92);
  color: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 10px 26px -6px rgba(6, 36, 32, 0.42);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.quick-fab-btn:hover {
  transform: translateY(-2px);
  background: #0f5c54;
}
body.dark-lab .text-slate-500 { color: #cbd5e1 !important; }
body.dark-lab .text-slate-600 { color: #e2e8f0 !important; }
body.dark-lab .text-slate-700 { color: #f1f5f9 !important; }

/* ============ 全站可切换视觉主题皮肤（科研冰蓝 / 典籍琥珀） ============ */
body.theme-clinical:not(.dark-lab) {
  --canvas: #f1f5f9;
  background-color: #f1f5f9;
  background-image:
    radial-gradient(at 14% 0%, rgba(14, 165, 233, 0.10) 0px, transparent 48%),
    radial-gradient(at 88% 12%, rgba(99, 102, 241, 0.08) 0px, transparent 44%),
    radial-gradient(rgba(30, 58, 138, 0.045) 1px, transparent 0);
}
body.theme-clinical:not(.dark-lab) #leftSidebar {
  background: #0b1f3a !important;
}
body.theme-clinical:not(.dark-lab) .zone-tab.active,
body.theme-clinical:not(.dark-lab) .stepper-track .step-chip.active {
  background: linear-gradient(135deg, #0b1f3a 0%, #0284c7 100%) !important;
  border-color: #0b1f3a !important;
}
body.theme-clinical:not(.dark-lab) .v9-visual-card::before {
  background: linear-gradient(90deg, #0b1f3a 0%, #0ea5e9 50%, #6366f1 100%);
}

body.theme-amber:not(.dark-lab) {
  --canvas: #f9f5ec;
  background-color: #f9f5ec;
  background-image:
    radial-gradient(at 14% 0%, rgba(217, 119, 6, 0.11) 0px, transparent 48%),
    radial-gradient(at 88% 12%, rgba(180, 83, 9, 0.08) 0px, transparent 44%),
    radial-gradient(rgba(120, 53, 15, 0.045) 1px, transparent 0);
}
body.theme-amber:not(.dark-lab) #leftSidebar {
  background: #2b1810 !important;
}
body.theme-amber:not(.dark-lab) .zone-tab.active,
body.theme-amber:not(.dark-lab) .stepper-track .step-chip.active {
  background: linear-gradient(135deg, #3b1f12 0%, #b45309 100%) !important;
  border-color: #3b1f12 !important;
}
body.theme-amber:not(.dark-lab) .v9-visual-card::before {
  background: linear-gradient(90deg, #3b1f12 0%, #d97706 50%, #f59e0b 100%);
}
