/* 《农业新技术经济效果分析》Agent 原生三栏式教学系统设计样式表
 * 深度传承 Knowledge Studio：Obsidian 式克制布局 + Apple 式细节设计 + DeepSeek Harness 原生设施
 */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Microsoft YaHei UI", monospace;

  /* 默认暗黑模式 (严格对齐 Knowledge Studio) */
  --bg-0: #19191b;           /* 标题栏 / ribbon / 状态栏 */
  --bg-1: #1f1f22;           /* 侧栏 / 检查栏 */
  --bg-2: #2a2a2d;           /* 卡片 / 悬浮窗 / 输入区 */
  --bg-3: #343438;           /* 高亮面板 / 悬停背景 */
  --hover: rgba(255, 255, 255, 0.06);
  --active: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf0;
  --text-2: #a1a1a8;
  --text-3: #6b6b72;
  --accent: #0a84ff;         /* DeepSeek 科技蓝 */
  --accent-soft: rgba(10, 132, 255, 0.18);
  --accent-text: #4da3ff;
  --dot: #0a84ff;
  --danger: #ff453a;
  --ok: #30d158;             /* 农业生态绿 */
  --warn: #ffd60a;           /* 标准警示黄 */
  --stage: #090a15;          /* 3D 舞台深空背景 */
  --glass: rgba(30, 30, 34, 0.78);
  --glass-capsule: rgba(24, 24, 28, 0.88);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --radius: 8px;
  --sidebar-w: 300px;
  --inspector-w: 380px;
  color-scheme: dark;
}

body.light-mode {
  --bg-0: #ececee;
  --bg-1: #f7f7f8;
  --bg-2: #ffffff;
  --bg-3: #f0f0f3;
  --hover: rgba(0, 0, 0, 0.05);
  --active: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --accent-text: #0062cc;
  --dot: #0a84ff;
  --danger: #ff3b30;
  --ok: #34c759;
  --warn: #ff9f0a;
  --stage: #eef1f8;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-capsule: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  font: 13px/1.5 var(--font);
  color: var(--text);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

kbd {
  font: 11px var(--mono);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: var(--bg-2);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
*:hover::-webkit-scrollbar-thumb { background-color: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }

.ico { flex: none; display: block; }
i[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

#app {
  display: grid;
  grid-template-rows: 38px 1fr 24px;
  height: 100vh;
}

/* ==================== 1. 顶栏 Titlebar (对齐 Knowledge Studio) ==================== */
.titlebar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2fr) 1fr;
  align-items: center;
  padding: 0 8px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  -webkit-app-region: drag;
  z-index: 20;
}
.titlebar button, .titlebar .tb-center, .titlebar .search-trigger { -webkit-app-region: no-drag; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 4px; }
.tb-right { justify-content: flex-end; }
.tb-center {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px;
}

.crumb-home { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.crumb-home .badge { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); }

/* 模式切换胶囊 */
.mode-pills {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.mode-pill {
  padding: 2px 10px;
  font-size: 11.5px;
  border-radius: 5px;
  color: var(--text-2);
  transition: all .12s;
}
.mode-pill:hover { color: var(--text); }
.mode-pill.active {
  background: #0a84ff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 6px rgba(10, 132, 255, 0.4) !important;
}

/* 角色胶囊 (教师 / 学生) */
.role-pills {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.role-pill {
  padding: 2px 9px;
  font-size: 11px;
  border-radius: 5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.role-pill.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.role-pill.teacher.active {
  background: #bf5af2;
  color: #fff;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2);
  transition: background .12s, color .12s;
}
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.active { color: var(--accent); }
.icon-btn.sm { width: 22px; height: 22px; border-radius: 5px; }

.search-trigger {
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 6px 0 10px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg-1); color: var(--text-3); font-size: 12px; min-width: 200px;
}
.search-trigger span { flex: 1; text-align: left; }
.search-trigger:hover { border-color: var(--line-strong); color: var(--text-2); }

/* ==================== 2. 三栏工作区 (Workspace) ==================== */
.workspace {
  display: grid;
  grid-template-columns: 44px var(--sidebar-w) 1px minmax(0, 1fr) 1px var(--inspector-w);
  min-height: 0;
  height: 100%;
}
body.left-closed .workspace { grid-template-columns: 44px 0 0 minmax(0, 1fr) 1px var(--inspector-w); }
body.right-closed .workspace { grid-template-columns: 44px var(--sidebar-w) 1px minmax(0, 1fr) 0 0; }
body.left-closed.right-closed .workspace { grid-template-columns: 44px 0 0 minmax(0, 1fr) 0 0; }
body.left-closed .sidebar, body.right-closed .inspector { visibility: hidden; }

/* 竖直 Ribbon 工具条 */
.ribbon {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 6px 0; background: var(--bg-0); border-right: 1px solid var(--line);
}
.ribbon-top, .ribbon-bottom { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ribbon-btn {
  position: relative; width: 32px; height: 32px; border: 0; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-3);
  transition: all .12s;
}
.ribbon-btn:hover { background: var(--hover); color: var(--text); }
.ribbon-btn.active { color: var(--text); }
.ribbon-btn.active::before {
  content: ""; position: absolute; left: -6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent);
}
.ribbon-btn.dsh-badge::after {
  content: "DSH"; position: absolute; bottom: 2px; right: 2px; font-size: 8px; font-weight: 700;
  background: var(--accent); color: white; padding: 0 2px; border-radius: 3px; transform: scale(0.8);
}

.resizer { background: var(--line); cursor: col-resize; position: relative; z-index: 5; }
.resizer::after { content: ""; position: absolute; inset: 0 -3px; }
.resizer:hover, .resizer.dragging { background: var(--accent); }

/* ==================== 3. 左栏 Sidebar 与各个 Pane ==================== */
.sidebar, .inspector { background: var(--bg-1); min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

.pane { display: none; flex-direction: column; min-height: 0; height: 100%; }
.pane.active { display: flex; }
.pane-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; padding: 0 8px 0 14px; flex: none;
  border-bottom: 1px solid var(--line);
}
.pane-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--text-2); text-transform: uppercase; }
.pane-actions { display: flex; gap: 2px; }
.pane-scroll { flex: 1; overflow: auto; padding: 8px 12px 16px; user-select: text; }

.text-btn { border: 0; background: none; color: var(--accent-text); font-size: 12px; padding: 2px 6px; border-radius: 5px; }
.text-btn:hover { background: var(--accent-soft); }

/* 树状资源管理 */
.files-body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.tree-section { flex: none; }
.section-header {
  display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--text-2);
  cursor: pointer; position: sticky; top: 0; z-index: 2; background: var(--bg-1);
}
.section-header:hover { color: var(--text); }
.section-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.twisty { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; color: var(--text-3); transition: transform .12s; flex: none; }
.open > .section-header .twisty, .tree-row.open .twisty { transform: rotate(90deg); }
.badge { font-size: 10px; font-weight: 500; padding: 0 6px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); letter-spacing: 0; }
.section-body { display: none; }
.open > .section-body { display: block; }

.tree-row {
  display: flex; align-items: center; height: 24px; padding-right: 8px;
  padding-left: calc(8px + var(--depth, 0) * 12px);
  white-space: nowrap; cursor: pointer; color: var(--text); position: relative;
  border-radius: 4px; margin: 1px 4px;
}
.tree-row:hover { background: var(--hover); }
.tree-row.selected { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.tree-row .ficon { width: 16px; height: 16px; margin-right: 6px; color: var(--text-3); display: inline-flex; align-items: center; }
.tree-row .name { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; font-size: 12px; }

/* 控件元素 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 28px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text); font-size: 12px; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { height: 24px; padding: 0 8px; font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 11.5px; color: var(--text-2); cursor: pointer; transition: all .12s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 500; }

.item-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: all .12s;
}
.item-card:hover { border-color: var(--line-strong); background: var(--bg-3); }
.item-card.active { border-color: var(--accent); background: var(--accent-soft); }
.item-card .card-head-title { font-weight: 600; font-size: 12px; color: var(--text); margin-bottom: 3px; display: flex; justify-content: space-between; }
.item-card .card-desc { font-size: 11px; color: var(--text-3); line-height: 1.4; }

/* ==================== 4. 中栏 Stage 沉浸式多模态视区 ==================== */
.stage {
  background: var(--stage);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.visual-view {
  width: 100%; height: 100%; position: absolute; inset: 0;
}
#canvas3d { width: 100%; height: 100%; display: block; }

/* HUD 悬浮按钮栏 */
.hud {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.hud-btn {
  padding: 4px 8px; font-size: 11px; color: var(--text-2); border-radius: 5px;
  display: inline-flex; align-items: center; gap: 4px;
}
.hud-btn:hover { background: var(--hover); color: var(--text); }
.hud-btn.active { color: var(--accent); background: var(--accent-soft); }

.hud-legend {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  display: flex; gap: 12px; padding: 6px 10px; border-radius: 8px;
  background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line);
  font-size: 11px; color: var(--text-2);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ==================== 5. 正下方：可展开的 AI 对话与搜索胶囊 (核心需求 3) ==================== */
.chat-capsule-wrap {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 680px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all .24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 常驻收起状态的胶囊 */
.chat-capsule {
  width: 100%;
  height: 42px;
  background: var(--glass-capsule);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  padding: 0 8px 0 14px;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.chat-capsule:focus-within, .chat-capsule:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent);
}
.capsule-icon { color: var(--accent); font-size: 14px; }
.capsule-input {
  flex: 1; background: none; border: 0; outline: none;
  font-size: 13px; color: var(--text); padding: 0;
}
.capsule-input::placeholder { color: var(--text-3); font-size: 12.5px; }

.capsule-actions { display: flex; align-items: center; gap: 6px; }
.capsule-model-badge {
  font-size: 10px; font-family: var(--mono);
  background: var(--bg-3); color: var(--accent-text);
  padding: 2px 7px; border-radius: 10px; border: 1px solid var(--line);
}

/* 向上展开的会话抽屉 */
.chat-drawer {
  width: 100%;
  max-height: 520px;
  background: var(--glass-capsule);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawerSlideUp .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawerSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--bg-1);
}
.drawer-title { font-size: 12px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }

.drawer-chat-list {
  flex: 1; max-height: 380px; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}

.chat-bubble {
  max-width: 88%; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.55;
}
.chat-bubble.user {
  margin-left: auto; background: var(--accent); color: white;
}
.chat-bubble.agent {
  margin-right: auto; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
}

.cot-box {
  background: rgba(10, 132, 255, 0.08); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 4px; font-size: 11px; margin-bottom: 6px;
}
.cot-box summary { cursor: pointer; color: var(--accent-text); font-weight: 600; outline: none; }
.cot-box-body { margin-top: 4px; font-family: var(--mono); color: var(--text-2); line-height: 1.4; }

.drawer-pills {
  display: flex; gap: 6px; padding: 6px 12px; overflow-x: auto; border-top: 1px solid var(--line); background: var(--bg-1);
}
.drawer-pill-btn {
  padding: 2px 8px; font-size: 11px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); white-space: nowrap; transition: all .12s;
}
.drawer-pill-btn:hover { background: var(--hover); color: var(--text); border-color: var(--accent); }

/* ==================== 6. 右栏 Inspector 卡片池 ==================== */
.insp-tabs {
  padding: 0 6px; background: var(--bg-0); border-bottom: 1px solid var(--line); flex: none;
}
.tabstrip { display: flex; gap: 2px; }
.tab-item {
  padding: 8px 10px; font-size: 11.5px; font-weight: 500; color: var(--text-3);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

.insp-body { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.res-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.res-card.highlight { border-color: var(--accent); }
.res-card-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.res-card-title { font-size: 12px; font-weight: 600; color: var(--text); }

.metrics-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric-tile { background: var(--bg-3); padding: 8px; border-radius: 5px; }
.metric-tile .k { font-size: 10.5px; color: var(--text-3); display: block; }
.metric-tile .v { font-size: 16px; font-weight: 700; color: var(--accent-text); font-family: var(--mono); margin-top: 2px; display: block; }

/* ==================== 7. 底部状态栏 Statusbar ==================== */
.statusbar {
  display: flex; align-items: center; padding: 0 10px;
  background: var(--bg-0); border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-3); gap: 12px;
}
.sb-item { display: flex; align-items: center; gap: 5px; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.sb-spacer { flex: 1; }
/* Workspace refinement: restrained navigation and permanent conversation / evidence split. */
:root { --sidebar-w: 252px; --inspector-w: 340px; --text-3: #a1a1ab; }
body.light-mode { --bg-0: #f0f1f3; --bg-1: #f7f8fa; --bg-2: #ffffff; --bg-3: #eef0f3; --text-2: #535b67; --text-3: #626b78; --accent: #1769c2; --accent-text: #165fab; --stage: #edf0f5; --ok: #247747; }
#app { grid-template-rows: 48px minmax(0,1fr) 26px; }
.titlebar { grid-template-columns: minmax(290px,1fr) auto minmax(350px,1fr); padding: 0 16px; gap: 16px; }
.crumb-home { font-size: 14px; white-space: nowrap; }
.tb-center { color: var(--text-2); }
.tb-right { gap: 10px; }
.search-trigger { width: auto; min-width: 0; height: 32px; background: transparent; }
.role-pill { font-size: 12px; padding: 4px 8px; color: var(--text-2); }
.taskbar { display: flex; align-items: center; padding: 14px 22px; gap: 24px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.task-title { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
#taskName { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#taskHint { font-size: 12px; }
.workflow { display: flex; gap: 3px; padding: 3px; background: var(--bg-1); border-radius: 7px; }
.workflow button { padding: 6px 16px; color: var(--text-2); border-radius: 5px; }
.workflow button.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.workspace { grid-template-columns: 44px var(--sidebar-w) 1px minmax(0,1fr) 1px var(--inspector-w); }
.ribbon { padding-top: 16px; }
.ribbon-top { gap: 12px; }
.ribbon-divider { width: 20px; border-top: 1px solid var(--line-strong); margin: 6px; }
.pane-header { height: 48px; padding: 0 12px; }
.pane-title { font-size: 12px; letter-spacing: 0; }
.section-header { height: auto; min-height: 38px; padding: 8px; font-size: 12px; letter-spacing: 0; position: static; }
.section-title { white-space: normal; line-height: 1.6; }
.tree-row { min-height: 34px; height: auto; padding: 7px 10px 7px 22px; }
.tree-row .name { font-size: 12px; white-space: normal; }
.tree-section { margin-bottom: 8px; }
.pane-actions #btnRefreshTree { display: none; }
.stage { display: grid; grid-template-columns: minmax(310px, 0.85fr) minmax(310px,1.15fr); background: var(--bg-2); }
.tutor-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tutor-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tutor-heading h2 { font-size: 13px; margin: 0; font-weight: 600; }
#agentStatus { font-size: 11px; color: var(--text-2); }
.chat-capsule-wrap { position: static; transform: none; width: 100%; max-width: none; min-height: 0; flex: 1; padding: 0 16px 16px; transition: none; }
.chat-drawer { display: flex; flex: 1; min-height: 0; max-height: none; background: transparent; backdrop-filter: none; border: 0; border-radius: 0; box-shadow: none; animation: none; margin: 0; }
.drawer-chat-list { max-height: none; flex: 1; padding: 26px 4px 20px; gap: 24px; user-select: text; }
.chat-bubble { max-width: 100%; font-size: 14px; line-height: 1.85; padding: 0; border-radius: 0; overflow-wrap: anywhere; }
.chat-bubble.agent { background: transparent; border: 0; }
.chat-bubble.user { max-width: 94%; background: var(--bg-3); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.chat-bubble p:first-child { margin-top: 0; } .chat-bubble p:last-child { margin-bottom: 0; }
.cot-box { border: 1px solid var(--line); background: var(--bg-1); padding: 7px 10px; border-radius: 6px; margin: 0 0 12px; }
.cot-box-body { font-family: var(--font); line-height: 1.7; }
.drawer-pills { background: transparent; border: 0; flex-wrap: wrap; padding: 12px 0; gap: 6px; overflow: visible; }
.drawer-pill-btn { border-radius: 5px; padding: 5px 8px; background: transparent; font-size: 11px; }
.chat-capsule { background: var(--bg-2); backdrop-filter: none; height: auto; min-height: 64px; border-radius: 10px; padding: 12px; box-shadow: none; gap: 8px; }
.chat-capsule:hover, .chat-capsule:focus-within { box-shadow: none; border-color: var(--accent); }
.capsule-input { min-width: 0; font-size: 13px; }
.capsule-input::placeholder { color: var(--text-3); font-size: 12px; }
.capsule-model-badge { font-family: var(--font); background: none; border: 0; padding: 0; font-size: 10px; color: var(--text-2); white-space: nowrap; }
#btnCapsuleExpand { background: var(--accent); color: white; border-radius: 6px; width: 28px; height: 28px; }
.canvas-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--stage); }
.canvas-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; background: var(--bg-1); border-bottom: 1px solid var(--line); }
.mode-pills { background: none; border: 0; padding: 0; gap: 3px; }
.mode-pill { font-size: 12px; padding: 5px 8px; white-space: nowrap; border-radius: 6px; cursor: pointer; border: 1px solid transparent; transition: all .15s ease-in-out; }
.mode-pill:hover:not(.active) { background: var(--bg-2); color: var(--text); }
.mode-pill.active { background: #0a84ff !important; color: #ffffff !important; border-color: #0070df !important; font-weight: 600 !important; box-shadow: 0 2px 8px rgba(10, 132, 255, 0.45) !important; }
.canvas-source { font-size: 10px; color: var(--text-2); white-space: nowrap; }
.hud { top: 16px; bottom: auto; right: 16px; background: var(--bg-2); backdrop-filter: none; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.resource-menu { position: relative; color: var(--text-2); font-size: 12px; }
.resource-menu summary { cursor: pointer; padding: 5px 8px; }
.resource-menu > div { position: absolute; top: 32px; right: 0; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; z-index: 12; box-shadow: var(--shadow); }
#econCanvas { width: 100%; height: auto; display: block; border-radius: 8px; }
#chartLegend { line-height: 1.8; text-align: center; width: 100%; }

/* 极简穿透式 · 学生实训向导卡片 */
.method-student-guide {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.method-student-guide .guide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.45;
}
.method-student-guide .guide-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.method-student-guide .guide-tag.aim { background: rgba(10, 132, 255, 0.15); color: #0a84ff; border: 1px solid rgba(10, 132, 255, 0.3); }
.method-student-guide .guide-tag.why { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.method-student-guide .guide-tag.how { background: rgba(48, 209, 88, 0.15); color: #30d158; border: 1px solid rgba(48, 209, 88, 0.3); }
.method-student-guide .guide-text {
  color: var(--text);
  font-weight: 500;
}
.method-student-guide .guide-text strong {
  color: var(--accent);
}
#chartLegend { line-height: 1.8; text-align: center; }
.inspector { border-left: 1px solid var(--line); }
.insp-tabs { background: var(--bg-1); padding: 0 10px; }
.tabstrip { justify-content: space-between; }
.tab-item { font-size: 12px; padding: 14px 8px; color: var(--text-2); }
.insp-body { padding: 20px; user-select: text; }
h3 { font-size: 14px; font-weight: 600; margin: 24px 0 12px; }
.inspector-heading h3, .pane-scroll h3:first-child { margin-top: 0; }
.muted, .empty-note { font-size: 12px; color: var(--text-2); line-height: 1.8; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; line-height: 1.6; }
label:has(input[type="checkbox"]), label.indicator-item-compact, label.compact-rule-item, label.indicator-item { flex-direction: row; align-items: center; }
#calculationForm { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
input[type="number"], textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-2); font-size: 13px; caret-color: var(--accent); }
input[type="number"] { font-variant-numeric: tabular-nums; }
textarea { resize: vertical; min-height: 100px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn { height: 34px; } .btn:disabled, button:disabled { opacity: .5; cursor: default; }
.result-row { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.result-row strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.evidence-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.evidence-row small { color: var(--text-2); }
.review-list { padding-left: 18px; font-size: 12px; line-height: 1.9; }
#traceList { padding-left: 18px; font-size: 12px; } #traceList li { padding: 8px 0; } #traceList time { display: block; color: var(--text-2); font-size: 11px; }
#reportMarkdownPreview { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; } #reportMarkdownPreview h1 { font-size: 19px; } #reportMarkdownPreview h2 { font-size: 14px; margin-top: 24px; }
.reflection-label { margin-top: 24px; } .report-actions { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.capability-row { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; } .capability-row span:last-child { color: var(--text-2); }
.settings-links { display: flex; flex-direction: column; align-items: start; gap: 10px; margin: 16px 0 24px; }
.item-card { background: transparent; border-width: 0 0 1px; border-radius: 0; padding: 14px 0; }
.item-card.active { background: transparent; border-color: var(--line); }
.resource-empty { max-width: 360px; text-align: center; color: var(--text-2); line-height: 1.8; }
.statusbar { gap: 18px; color: var(--text-2); font-size: 10px; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#searchDialog { padding: 20px; width: min(560px, calc(100vw - 32px)); max-height: 75vh; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); box-shadow: var(--shadow); }
#searchDialog::backdrop { background: rgba(0,0,0,.3); }
.search-head { display: flex; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
#searchInput { min-width: 0; flex: 1; border: 0; background: transparent; padding: 6px; }
#searchResults { overflow: auto; max-height: 48vh; padding: 12px 0; }
#searchResults button { display: block; width: 100%; padding: 12px; text-align: left; border-radius: 6px; }
#searchResults button:hover, #searchResults button:focus { background: var(--accent-soft); }
@media (max-width: 1400px) { .titlebar { grid-template-columns: 1fr auto; } .tb-center { display: none; } }
@media (max-width: 1100px) { .inspector { position: fixed; top: 140px; right: 0; bottom: 28px; width: min(380px,calc(100vw - 44px)); z-index: 40; box-shadow: -12px 0 30px rgba(0,0,0,.12); } .workspace, body.right-closed .workspace { grid-template-columns: 44px var(--sidebar-w) 1px minmax(0,1fr) 0 0; } body.left-closed .workspace, body.left-closed.right-closed .workspace { grid-template-columns: 44px 0 0 minmax(0,1fr) 0 0; } body:not(.right-closed) .stage { grid-template-columns: minmax(280px,.85fr) minmax(280px,1.15fr); } body:not(.right-closed) .canvas-panel { display: flex; } #taskHint { display: none; } }
@media (max-width: 760px) { #app { grid-template-rows: 48px minmax(0,1fr) 26px; } .titlebar { padding: 0 8px; gap: 8px; } .crumb-home { font-size: 12px; } .tb-right { gap: 3px; } .search-trigger span, .search-trigger kbd, .role-pills, #btnThemeToggle { display: none; } .search-trigger { padding: 6px; border: 0; } .taskbar { padding: 10px 14px; flex-wrap: wrap; gap: 10px; } .task-title { flex-basis: calc(100% - 120px); } #taskName { font-size: 15px; } .workflow { order: 3; width: 100%; } .workflow button { flex: 1; padding: 5px; } #btnArtifacts { font-size: 11px; padding: 0 8px; } .sidebar { position: fixed; left: 44px; top: 158px; bottom: 26px; width: min(285px,calc(100vw - 44px)); z-index: 45; box-shadow: 10px 0 24px rgba(0,0,0,.12); } .workspace, body.left-closed .workspace, body.right-closed .workspace, body.left-closed.right-closed .workspace { grid-template-columns: 44px 0 0 minmax(0,1fr) 0 0; } .stage, body:not(.right-closed) .stage { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(260px,1fr) minmax(180px,.7fr); overflow: auto; } .tutor-panel { border-right: 0; } .tutor-heading { padding: 0 14px; } .chat-capsule-wrap { padding: 0 12px 12px; } .chat-bubble { font-size: 13px; } .canvas-toolbar { padding: 0 8px; } .mode-pill { font-size: 11px; padding: 5px 6px; } .canvas-source { display: none; } .hud-legend { display: none; } .hud { bottom: 8px; } .capsule-model-badge { display: none; } .statusbar #sbRoleDisplay { display: none; } .statusbar { padding: 0 8px; gap: 8px; font-size: 9px; } .inspector { top: 158px; bottom: 26px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { html, body { height: auto; overflow: visible; background: white; color: black; } #app { display: block; height: auto; } .titlebar, .taskbar, .statusbar, .ribbon, .sidebar, .stage, .resizer, .insp-tabs, #viewResultsTab, #viewComplianceTab, #viewKgCardTab, .report-actions, .reflection-label { display: none !important; } .workspace { display: block !important; } .inspector, body.right-closed .inspector { display: block !important; visibility: visible !important; position: static; width: auto; border: 0; box-shadow: none; background: white; } .insp-body { overflow: visible; padding: 0; } #viewReportTab[hidden] { display: block !important; } #reportMarkdownPreview { color: black; } }
#modelWorkbench { margin-top: 28px; border-top: 1px solid var(--line); padding: 18px 0; }
#modelWorkbench summary { font-size: 13px; cursor: pointer; font-weight: 600; }
#modelForm { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
#modelForm select, #modelSource { padding: 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-2); }
#modelResult { white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.7 var(--mono); user-select: text; }
.raw-output { margin-top: 18px; } .raw-output summary { cursor: pointer; } .raw-output pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.7 var(--mono); }
#modelResult { font-family: var(--font); }

#taskName { border: 0; background: transparent; color: var(--text); width: 100%; padding: 0; border-radius: 4px; font-family: var(--font); }
#taskName:hover { background: var(--hover); }
/* Explicit placement keeps fixed overlay panels from shifting auto-placed grid items. */
.ribbon { grid-column: 1; grid-row: 1; }
.sidebar { grid-column: 2; grid-row: 1; }
#resizerLeft { grid-column: 3; grid-row: 1; }
.stage { grid-column: 4; grid-row: 1; }
#resizerRight { grid-column: 5; grid-row: 1; }
.inspector { grid-column: 6; grid-row: 1; }

/* ??? 四川ʡ 181 ʾ范县域ʱ空数据地ͼ增ǿ样ʽ */
#countyMapView { background: var(--bg-0); border-radius: 8px; }
.map-view-toolbar .btn.glass { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-2); }
.map-view-toolbar .btn.glass.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.map-region-filter .btn.glass { background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.15); color: #e2e8f0; }
.map-region-filter .btn.glass.active { background: #0a84ff; color: #fff; border-color: #38bdf8; font-weight: 600; box-shadow: 0 0 10px rgba(10, 132, 255, 0.4); }


/* ==================== 3D 运行仿真控制̨与物联感֪层样ʽ ==================== */
.sim-controls-3d .btn.glass { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #e2e8f0; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.sim-controls-3d .btn.glass:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.sim-controls-3d .btn.glass.active { background: rgba(10, 132, 255, 0.35); border-color: #38bdf8; color: #fff; box-shadow: 0 0 12px rgba(14, 165, 233, 0.35); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.live-dot.green { background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse-dot 1.5s infinite; }
.live-dot.amber { background: #facc15; box-shadow: 0 0 8px #facc15; animation: pulse-dot 1s infinite; }
.live-dot.red { background: #f87171; box-shadow: 0 0 8px #f87171; animation: pulse-dot 0.8s infinite; }
@keyframes pulse-dot { 0% { transform: scale(0.9); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.8; } }
.telem-tag-3d { position: absolute; transform: translate(-50%, -100%); background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(6px); border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 6px; padding: 5px 9px; color: #fff; font-size: 10px; pointer-events: auto; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); transition: transform 0.15s ease, border-color 0.15s ease; user-select: none; white-space: nowrap; }
.telem-tag-3d:hover { transform: translate(-50%, -105%) scale(1.04); border-color: #38bdf8; box-shadow: 0 0 16px rgba(56, 189, 248, 0.5); z-index: 25; }
.telem-tag-3d::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid rgba(15, 23, 42, 0.88); }
.telem-header { font-weight: 700; color: #38bdf8; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
.telem-line { color: #cbd5e1; font-family: var(--mono); font-size: 9.5px; line-height: 1.4; }
.telem-line strong { color: #facc15; }


/* ==================== 三大产业微观生产与经济行为透视抽屉 (9大微观决策节点) ==================== */
.econ-behavior-drawer {
  position: absolute;
  top: 56px;
  right: 14px;
  bottom: 74px;
  width: 380px;
  max-width: calc(100% - 28px);
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(14, 165, 233, 0.15);
  z-index: 28;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f1f5f9;
  animation: ebdSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode .econ-behavior-drawer {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(10, 132, 255, 0.1);
  color: #0f172a;
}

@keyframes ebdSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.ebd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

body.light-mode .ebd-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.ebd-header-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ebd-sector-badge {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ebd-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

body.light-mode .ebd-title {
  color: #0f172a;
}

.ebd-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ebd-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

body.light-mode .ebd-section {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.06);
}

.ebd-sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
}

body.light-mode .ebd-sec-title {
  color: #475569;
}

.ebd-sec-sub {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 600;
}

/* 步进流程图 */
.ebd-process-pipeline {
  display: flex;
  align-items: stretch;
  gap: 6px;
  position: relative;
}

.ebd-proc-step {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 7px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  transition: all 0.2s ease;
}

body.light-mode .ebd-proc-step {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ebd-proc-step:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.ebd-proc-icon {
  font-size: 15px;
}

.ebd-proc-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

body.light-mode .ebd-proc-label {
  color: #1e293b;
}

.ebd-proc-detail {
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.25;
}

body.light-mode .ebd-proc-detail {
  color: #64748b;
}

.ebd-proc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 10px;
  opacity: 0.8;
}

/* 决策与模拟器 */
.ebd-theory-desc {
  font-size: 11px;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 8px;
  background: rgba(10, 132, 255, 0.08);
  border-left: 3px solid #0a84ff;
  padding: 6px 8px;
  border-radius: 0 4px 4px 0;
}

body.light-mode .ebd-theory-desc {
  color: #334155;
  background: rgba(10, 132, 255, 0.06);
}

.ebd-slider-group {
  margin-bottom: 10px;
}

.ebd-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #e2e8f0;
  margin-bottom: 4px;
}

body.light-mode .ebd-slider-header {
  color: #1e293b;
}

.ebd-slider-val {
  font-family: var(--mono);
  font-size: 13px;
  color: #facc15;
}

#ebdSliderInput {
  width: 100%;
  accent-color: #0a84ff;
  cursor: pointer;
  height: 5px;
}

.ebd-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #64748b;
  margin-top: 3px;
}

.ebd-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ebd-metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.light-mode .ebd-metric-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ebd-metric-k {
  font-size: 9.5px;
  color: #94a3b8;
}

body.light-mode .ebd-metric-k {
  color: #64748b;
}

.ebd-metric-v {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}

.ebd-metric-sub {
  font-size: 9px;
  color: #cbd5e1;
}

body.light-mode .ebd-metric-sub {
  color: #475569;
}

/* 学术与标准 */
.ebd-academic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.ebd-acad-tag {
  font-size: 9.5px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

body.light-mode .ebd-acad-tag {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
}

.ebd-formula-box {
  font-family: var(--mono);
  font-size: 10px;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.8);
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  line-height: 1.4;
  word-break: break-all;
}

body.light-mode .ebd-formula-box {
  background: #f1f5f9;
  border-color: rgba(10, 132, 255, 0.2);
  color: #0369a1;
}

/* 底部操作 */
.ebd-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.light-mode .ebd-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

/* 3D 浮动经济行为热点微章 */
.hotspot-pill-3d {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #38bdf8;
  border-radius: 20px;
  padding: 4px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 22;
}

.hotspot-pill-3d:hover {
  transform: translate(-50%, -58%) scale(1.08);
  border-color: #facc15;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(250, 204, 21, 0.5);
  z-index: 26;
}

.hotspot-pill-3d.active {
  border-color: #34d399;
  background: rgba(6, 78, 59, 0.92);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.6);
}

.hotspot-pill-3d .pulse-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-dot 1.4s infinite;
}

.hotspot-pill-3d.swine { border-color: #fb923c; }
.hotspot-pill-3d.swine .pulse-ring { background: #fb923c; box-shadow: 0 0 8px #fb923c; }

.hotspot-pill-3d.biogas { border-color: #34d399; }
.hotspot-pill-3d.biogas .pulse-ring { background: #34d399; box-shadow: 0 0 8px #34d399; }

.hotspot-pill-3d.citrus { border-color: #38bdf8; }
.hotspot-pill-3d.citrus .pulse-ring { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }

/* ==================== Phase 1: 极简去文字化视觉胶囊卡 (1滑块 + 2数字 + 1动态曲线) ==================== */
.econ-behavior-drawer.compact-visual-card {
  top: 72px;
  right: 14px;
  bottom: auto;
  width: 280px;
  max-height: 395px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.econ-behavior-drawer.compact-visual-card .ebd-header {
  padding: 8px 12px;
}
.econ-behavior-drawer.compact-visual-card .ebd-title {
  font-size: 12.5px;
}
.econ-behavior-drawer.compact-visual-card .ebd-body {
  padding: 10px 12px;
  gap: 8px;
}
.ebd-mini-chart-wrap {
  position: relative;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.light-mode .ebd-mini-chart-wrap {
  background: #0f172a;
}
#ebdMiniCurveCanvas {
  width: 100%;
  height: 90px;
  display: block;
}
.ebd-curve-tag {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: #93c5fd;
  pointer-events: none;
}
.ebd-metrics-grid.two-col-only {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.ebd-metrics-grid.two-col-only .ebd-metric-card {
  padding: 8px 10px;
  text-align: center;
  align-items: center;
}
.ebd-metrics-grid.two-col-only .ebd-metric-v {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.econ-behavior-drawer.compact-visual-card .ebd-footer {
  padding: 8px 12px;
  justify-content: space-between;
}
.sector-cycle-tabs .btn.xs.glass.active {
  background: rgba(14, 165, 233, 0.38);
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 700;
}


/* ==================== Phase 2 & 3: 5维农场主经营决策盘 & 10年结算成绩单 ==================== */
.farm-manage-deck {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  color: #f8fafc;
  max-width: 820px;
}

.fmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #facc15;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fmd-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 8px;
}

.fmd-cell {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.fmd-cell-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #cbd5e1;
}

.fmd-cell-title strong {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #38bdf8;
}

.fmd-cell input[type="range"] {
  width: 100%;
  accent-color: #facc15;
  cursor: pointer;
  margin: 2px 0;
}

.fmd-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  gap: 4px;
}

.fmd-select {
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-size: 10px;
  padding: 1px 4px;
  outline: none;
}

.fmd-toggle-row {
  display: flex;
  gap: 4px;
}

.fmd-toggle-row .btn.xs {
  font-size: 9.5px;
  padding: 2px 4px;
}

.fmd-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: #e2e8f0;
}

.fmd-checks label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* 10年经营成绩单弹窗 */
.scorecard-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.scorecard-modal-backdrop[hidden] {
  display: none !important;
}

.scorecard-modal-card {
  width: 660px;
  max-width: 95%;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.scm-table-wrap {
  overflow-x: auto;
}

.scm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.scm-table th,
.scm-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scm-table th {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
}

.scm-table td {
  font-family: var(--mono);
  font-weight: 600;
}

.scm-ai-review-box {
  background: rgba(30, 41, 59, 0.75);
  border-left: 3px solid #c084fc;
  border-radius: 6px;
  padding: 10px 12px;
}

.scm-ai-title {
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 4px;
}

.scm-ai-text {
  font-size: 12px;
  line-height: 1.55;
  color: #e2e8f0;
}

.scm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}


/* ==================== 渐进式导学与极简降噪布局样式 ==================== */
.sim-controls-3d {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  max-width: 980px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.stage-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

.stage-view-toggle {
  display: inline-flex;
  gap: 2px;
  background: rgba(2, 6, 23, 0.6);
  padding: 2px;
  border-radius: 5px;
}

.stage-stepper-buttons {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.stage-step-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.stage-step-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.stage-step-btn.active {
  background: #0a84ff;
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.5);
}

.stage-stepper-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 当前阶段核心向导提示卡片 */
.teaching-stage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-left: 3px solid #facc15;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.tsb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tsb-badge {
  font-size: 11px;
  font-weight: 700;
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tsb-text {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.4;
}

.tsb-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* 极慢速时间轴推进栏 */
.timeline-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 11px;
  flex-wrap: wrap;
}

.tpb-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.speed-selector {
  display: inline-flex;
  gap: 1px;
  background: rgba(2, 6, 23, 0.6);
  padding: 1px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.speed-selector .btn.xs {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 3px;
  border: none;
}

.speed-selector .btn.xs.active {
  background: #0a84ff;
  color: #fff;
  font-weight: 700;
}

.tpb-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tpb-date-label {
  font-family: var(--mono);
  font-weight: 700;
  color: #facc15;
  min-width: 86px;
}

.tpb-summary {
  font-size: 10.5px;
  color: #cbd5e1;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 8px;
}

.tpb-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

/* 可折叠工具箱抽屉 */
.sim-tools-collapse-deck {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sim-tools-collapse-deck[hidden] {
  display: none !important;
}

.stcd-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 优化热点微标外观：极简、呼吸微光、不挡画面 */
.hotspot-pill-3d {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 19;
  white-space: nowrap;
}

.hotspot-pill-3d:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(15, 23, 42, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.hotspot-pill-3d .pulse-ring {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}


/* ==================== 场景左下角极简播放胶囊与悬浮展开调节箱 ==================== */
.sim-controls-3d.bottom-timeline-dock,
.sim-controls-3d.bottom-left-playback-deck {
  position: absolute;
  top: auto !important;
  bottom: 14px !important;
  left: 14px !important;
  right: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: 440px;
  z-index: 40 !important;
  pointer-events: none;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  transition: all 0.25s ease;
}

/* 常驻左下角的极简播放胶囊栏 (仅几个必要按钮，极致通透干净) */
.sim-compact-capsule {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  font-size: 11px;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.shtd-step-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shtd-step-group .icon-only-btn {
  font-size: 10px;
  padding: 2px 7px;
  height: 22px;
  border-radius: 4px;
}

.sim-compact-capsule:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
}

.sim-compact-capsule .btn.xs {
  font-size: 11px;
  padding: 3px 8px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sim-compact-capsule .btn-play-pulse {
  font-weight: 700;
  min-width: 58px;
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

.sim-compact-capsule .icon-only-btn {
  padding: 2px 7px;
  min-width: 24px;
  font-size: 11px;
}

.compact-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #facc15;
  cursor: pointer;
}

.compact-date-pill .cal-icon {
  font-size: 11px;
}

.btn-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #38bdf8 !important;
  font-weight: 600;
}

.btn-tools-trigger .trigger-arrow {
  font-size: 9px;
  transition: transform 0.25s ease;
}

.sim-compact-capsule .btn-tools-trigger.active .trigger-arrow,
.sim-controls-3d.is-expanded .btn-tools-trigger .trigger-arrow {
  transform: rotate(180deg);
}

.btn-scorecard-compact {
  font-size: 11px;
  padding: 2px 8px;
}

/* ==================== 独立独立弹出式微型菜单 ==================== */
/* 独立浮层图层容器：置于胶囊按钮正上方 8px */
.sim-popovers-layer {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  pointer-events: none;
  width: auto;
}

/* 基础独立浮窗样式 */
.sim-popover {
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom left;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 0 0 16px rgba(14, 165, 233, 0.15);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 30;
}

.sim-popover.is-visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* 弹窗 1: 播放倍速 (小巧横向胶囊) */
.sim-popover-play {
  left: 0;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  width: auto;
}

.sim-popover-play .popover-mini-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.sim-popover-play .speed-selector {
  display: inline-flex;
  gap: 3px;
}

.sim-popover-play .speed-selector .btn {
  padding: 1px 6px;
  height: 20px;
  font-size: 10px;
  border-radius: 4px;
}

/* 弹窗 2: 调控滑块与产业 (极简 3 行，无任何冗余文字) */
.sim-popover-tools {
  left: 10px;
  width: 265px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-popover-tools .popover-row {
  display: flex;
  align-items: center;
}

.sim-popover-tools .nav-row {
  justify-content: space-between;
  gap: 4px;
}

.sim-popover-tools .compact-date-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.7);
  color: #facc15;
  font-family: var(--mono);
  font-weight: 700;
}

.sim-popover-tools .icon-only-btn {
  padding: 1px 5px;
  font-size: 10px;
  height: 20px;
}

.sim-popover-tools .shtd-month-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.sim-popover-tools .slider-row {
  width: 100%;
}

.sim-popover-tools .shtd-slider {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #1e293b;
  accent-color: #0a84ff;
  cursor: pointer;
  outline: none;
}

.sim-popover-tools .sectors-row {
  width: 100%;
}

.sim-popover-tools .sector-tabs-group {
  display: flex;
  gap: 2px;
  background: rgba(2, 6, 23, 0.65);
  padding: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

.sim-popover-tools .sector-tabs-group button {
  flex: 1;
  font-size: 9.5px;
  padding: 2px 0;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.sim-popover-tools .sector-tabs-group button.active {
  background: #0284c7;
  color: #fff;
  font-weight: 700;
}

/* 弹窗 3: 账单财务快照 */
.sim-popover-scorecard {
  left: 60px;
  width: 280px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-popover-scorecard:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 16px 42px rgba(14, 165, 233, 0.25);
}

.sim-popover-scorecard .popover-scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3px;
}

.sim-popover-scorecard .psh-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
}

.sim-popover-scorecard .psh-hint {
  font-size: 9.5px;
  color: #94a3b8;
}

.sim-popover-scorecard:hover .psh-hint {
  color: #38bdf8;
}

.sim-popover-scorecard .shtd-stage-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  color: #38bdf8;
  background: rgba(10, 132, 255, 0.14);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.sim-popover-scorecard .shtd-summary {
  font-size: 10px;
  line-height: 1.4;
  color: #cbd5e1;
}

/* 数字化生产技术工艺三步法卡片 */
.fnc-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.fnc-pipe-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fnc-pipe-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

.fnc-pipe-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.fnc-pipe-detail {
  font-size: 9.5px;
  color: var(--text-3);
  line-height: 1.35;
  margin-top: 2px;
}

/* 右栏 5维农场主经营决策盘自适应 */
#view3dGuideTab .farm-manage-deck {
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 8px;
}

#view3dGuideTab .fmd-grid {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
