/* ==========================================================================
   第二阶段任务舞台：一个全屏宿主 + 五套互不相同的软件皮肤
   任务1 智能体（skin coze）｜任务2 影刀 RPA｜任务3 WPS 表格
   任务4 审批中心｜支线任务 林业保险方案智能决策系统（skin topsis）
   每套皮肤的配色、圆角、字号、边框都在自己的作用域里定义，不污染主题。
   蓝底格子（.p2-blue）一律表示「学生手动输入」，未编辑前内容为空。
   ========================================================================== */

/* ---------------- 岗位面板上的任务入口卡 ---------------- */
.p2-entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; margin-top: 10px; }
.p2-entry { position: relative; display: flex; flex-direction: column; padding: 14px 15px 15px; border: 1px solid rgba(0,0,0,.08); border-left: 4px solid var(--p2c, #10b981); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.p2-entry:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.p2-entry.skin-coze { --p2c: #4d53e8; }
.p2-entry.skin-rpa { --p2c: #2b6cb0; }
.p2-entry.skin-sheet { --p2c: #217346; }
.p2-entry.skin-erp { --p2c: #1b6ac9; }
.p2-entry.skin-approval { --p2c: #1677ff; }
.p2-entry.skin-dataworks { --p2c: #0a4f9c; }
.p2-entry.skin-bi { --p2c: #7c5cff; }
.p2-entry.skin-decision, .p2-entry.skin-topsis { --p2c: #10b981; }
.p2-entry.done { background: linear-gradient(180deg, rgba(16,185,129,.05), #fff); }
.p2-entry-top { display: flex; justify-content: space-between; align-items: center; }
.p2-entry-task { font-size: 11px; font-weight: 700; color: var(--p2c, #10b981); letter-spacing: .04em; }
.p2-entry-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f0f2f5; color: #86868b; }
.p2-entry-status.ing { background: #fff4e5; color: #b25e09; }
.p2-entry-status.done { background: #ecfdf5; color: #059669; }
.p2-entry h4 { margin: 8px 0 14px; font-size: 14px; font-weight: 700; color: #1d1d1f; }
.p2-entry-product { margin: 0 0 8px; font-size: 11.5px; color: #86868b; }
/* 协办卡：主办岗不是本岗，用虚线左边框区分，避免误以为整个任务归自己 */
.p2-entry.co { border-left-style: dashed; background: linear-gradient(180deg, rgba(22,119,255,.04), #fff); }
.p2-entry-co { display: inline-block; padding: 1px 6px; border-radius: 999px; background: #eef4ff; color: #1a48a8; font-size: 10.5px; font-weight: 700; }
.p2-entry-result { margin: 0 0 12px; font-size: 12px; color: #48484a; line-height: 1.55; min-height: 34px; }
.p2-entry-result b { color: var(--p2c, #10b981); }
.p2-entry-open { margin-top: auto; width: 100%; min-height: 32px; border: 1px solid var(--p2c, #10b981); border-radius: 8px; background: var(--p2c, #10b981); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; display: block; text-align: center; }
.p2-entry-open:hover { filter: brightness(1.08); }
.p2-entry-open:disabled { border-color: #d2d2d7; background: #f0f2f5; color: #a1a1a6; cursor: not-allowed; filter: none; }

/* 入口卡附件：任务6 的测算底稿，下载后才解锁「打开扣子 Coze」 */
.p2-entry-file { margin: 0 0 12px; padding: 9px 10px; border: 1px dashed rgba(0,0,0,.16); border-radius: 9px; background: #fafafc; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.p2-entry-file.got { border-style: solid; border-color: rgba(5,150,105,.34); background: #f4fdf8; }
.p2-entry-file-name { font-size: 11.5px; color: #48484a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p2-entry-dl { padding: 4px 10px; border: 1px solid var(--p2c); border-radius: 7px; background: #fff; color: var(--p2c); font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.p2-entry-dl:hover { background: var(--p2c); color: #fff; }
.p2-entry-file-hint { grid-column: 1 / -1; font-size: 11px; color: #86868b; line-height: 1.45; }
.p2-entry-file.got .p2-entry-file-hint { color: #059669; }

/* ---------------- 全屏宿主 ---------------- */
body.stage-open { overflow: hidden; }
.task-stage-host { position: fixed; inset: 0; left: 0; top: 0; right: 0; bottom: 0; z-index: 900; width: 100vw; height: 100vh; min-height: 100dvh; background: #fff; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; color: #1d1d1f; }
.task-stage-host[hidden] { display: none; }
.task-stage-host [hidden] { display: none !important; }
.task-stage-host > div { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.task-stage-host > .stage-readonly { flex: none; display: block; }
.stage-readonly { flex: none; padding: 7px 16px; background: #fff8e1; border-bottom: 1px solid #ffe082; color: #8a6d00; font-size: 12px; }
/* 部分可写（协办岗）：舞台大部分只读，但本岗有一块要点 */
.stage-readonly--partial { background: #eef4ff; border-bottom-color: #b6cdfb; color: #1a48a8; }
/* 协办入口打开后短暂高亮本岗要操作的卡片 */
.stage-focus { animation: stageFocusPulse 2.4s ease-out 1; }
@keyframes stageFocusPulse {
  0%, 100% { box-shadow: none; }
  8%, 60% { box-shadow: 0 0 0 2px #1677ff, 0 6px 18px rgba(22,119,255,.22); }
}
body.stage-running .task-stage-host::after { content: "运行中…"; position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(255,255,255,.55); backdrop-filter: blur(1px); font-size: 14px; font-weight: 600; color: #1d1d1f; }

/* ---------------- 舞台内通用表单件 ---------------- */
.p2f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.p2f > span { font-size: 11.5px; color: #6b7280; display: flex; align-items: center; gap: 4px; }
.p2f > span i { font-style: normal; color: #9ca3af; }
.p2f-req { color: #ef4444; font-weight: 400; }
.p2f input, .p2f select { min-height: 32px; padding: 0 9px; border: 1px solid #d9dce3; border-radius: 6px; background: #fff; font-size: 12.5px; color: inherit; font-family: inherit; }
.p2f input:focus, .p2f select:focus { outline: none; border-color: var(--skin, #4d53e8); box-shadow: 0 0 0 2px color-mix(in srgb, var(--skin, #4d53e8) 18%, transparent); }
.p2f input[readonly] { background: #f4f5f7; color: #6b7280; }
.p2chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p2chip { padding: 5px 10px; border: 1px dashed #cbd0d9; border-radius: 999px; background: #fff; font-size: 12px; color: #6b7280; cursor: pointer; }
.p2chip.on { border-style: solid; border-color: var(--skin, #4d53e8); background: color-mix(in srgb, var(--skin, #4d53e8) 10%, #fff); color: var(--skin, #4d53e8); font-weight: 600; }
.p2waiting { padding: 16px; border: 1px dashed #d9dce3; border-radius: 8px; background: #fafbfc; color: #8b90a0; font-size: 12.5px; line-height: 1.7; text-align: center; }
/* 上游占位：任务并行操作时，某个值还没被上游任务算出来，标出该去哪一步补 */
.p2-upstream { display: inline-block; padding: 0 5px; border: 1px dashed #c8ccd8; border-radius: 4px; background: #f7f8fa; color: #98a0b0; font-size: 11px; font-family: inherit; white-space: nowrap; cursor: help; }
.bi .p2-upstream { border-color: #2b3550; background: #131a2a; color: #6b7694; }
.p2btn { min-height: 30px; padding: 0 12px; border: 1px solid #d9dce3; border-radius: 6px; background: #fff; font-size: 12.5px; cursor: pointer; }
.p2btn:disabled, .task-stage-host button:disabled { opacity: .5; cursor: not-allowed; }

/* 蓝色单元格：需要手工填写的格子，对应底稿里的蓝底格；核对通过后仍保留蓝底但变成只读数值 */
.p2-blue { background: #dbe5f6 !important; padding: 3px 6px !important; }
.p2-blue .p2-blue-input { width: 100%; min-width: 88px; min-height: 26px; padding: 2px 7px; border: 1px solid #9db4d8; border-radius: 3px; background: #eaf1fb; color: #1d2b3f; font-size: 12.5px; text-align: right; font-family: "Consolas", "Segoe UI", monospace; }
.p2-blue .p2-blue-input:focus { outline: none; border-color: #2f6fd6; box-shadow: 0 0 0 2px rgba(47,111,214,.18); background: #fff; }
.p2-blue .p2-blue-input::placeholder { color: #8ea3c4; font-family: inherit; text-align: center; }
.p2-blue .p2-blue-input:disabled { background: #e3eaf5; color: #8ea3c4; }
.p2-blue i { font-style: normal; margin-left: 4px; color: #5b6e8c; font-size: 11px; }
.p2-blue-done { text-align: right; }
.p2-blue-done b { color: #1d3f78; font-family: "Consolas", monospace; }
.p2-blue-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; border: 1px solid #9db4d8; background: #dbe5f6; }

/* 蓝色背景表单控件：对应Excel中的蓝色手填参数输入框与下拉选择框 */
.p2f-blue > span { color: #1d3f78; font-weight: 600; }
.p2f-blue input, .p2f-blue select {
  border-color: #9db4d8 !important;
  background: #eaf1fb !important;
  color: #1d2b3f !important;
  font-weight: 500;
}
.p2f-blue input:focus, .p2f-blue select:focus {
  outline: none;
  border-color: #2f6fd6 !important;
  box-shadow: 0 0 0 2px rgba(47,111,214,.22) !important;
  background: #fff !important;
}
.p2f-blue input::placeholder {
  color: #8ea3c4;
}

/* ---------------- 节点连线（任务6/7 共用） ---------------- */
.p2wires { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.p2wire-glow { fill: none; stroke: var(--wire, #5b6be8); stroke-opacity: .16; stroke-width: 9; stroke-linecap: round; }
.p2wire-line { fill: none; stroke: var(--wire, #5b6be8); stroke-width: 2.5; stroke-linecap: round; }
.p2wires marker path { fill: var(--wire, #5b6be8); stroke: none; }
.p2wire-temp { fill: none; stroke: var(--wire-temp, #f59e0b); stroke-width: 2.5; stroke-dasharray: 7 5; stroke-linecap: round; animation: p2dash .6s linear infinite; }
.p2wire-temp[d=""] { display: none; }
@keyframes p2dash { to { stroke-dashoffset: -12; } }
.is-playing .p2wire-line { stroke-dasharray: 10 6; animation: p2flow 1s linear infinite; }
@keyframes p2flow { to { stroke-dashoffset: -32; } }
/* 任务6 画布：连线是流动的水流——底下一条淡色实线，上面一串水珠顺着线往下游走 */
.cz-wires .p2wire-line { stroke-opacity: .38; stroke-width: 2.2; }
.cz-wires .p2wire-glow { stroke-opacity: .1; stroke-width: 11; }
.p2wire-flow { fill: none; stroke: var(--wire, #5b6be8); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1 17; animation: p2water 1.05s linear infinite; }
@keyframes p2water { to { stroke-dashoffset: -18; } }
.is-playing .cz-wires .p2wire-line { stroke-dasharray: none; animation: none; }
.is-playing .cz-wires .p2wire-flow { animation-duration: .45s; }
/* 新拖进来的节点：从库里“落”到画布上 */
@keyframes p2enter { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   任务6 · 扣子 Coze
   ========================================================================== */
/* skin 名沿用 coze（节点画布引擎），配色已换成 Dify 蓝 */
.stage--coze { --skin: #1c64f2; --wire: #2f6fe4; --wire-temp: #f59e0b; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.cz { background: #f4f5fa; }
.cz-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 16px; background: #fff; border-bottom: 1px solid #ebedf5; }
.cz-crumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; }
.cz-back { width: 28px; height: 28px; border: 1px solid #e5e7f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 15px; color: #5b6070; }
.cz-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #1c64f2, #4f8bf7); color: #fff; font-size: 13px; font-weight: 700; }
.cz-crumb-path { color: #8a8fa3; white-space: nowrap; }
.cz-crumb-path b { color: #1d2033; }
.cz-badge { margin-left: 6px; padding: 3px 9px; border-radius: 999px; background: #fff4e5; color: #b25e09; font-size: 11px; white-space: nowrap; }
.cz-badge.ok { background: #f0f1fb; color: #4d53e8; }
.cz-seg { display: flex; padding: 3px; border-radius: 10px; background: #f0f1f6; }
.cz-seg-btn { position: relative; min-height: 30px; padding: 0 18px; border: none; border-radius: 8px; background: transparent; font-size: 12.5px; color: #5b6070; cursor: pointer; }
.cz-seg-btn.on { background: #fff; color: #1d2033; font-weight: 600; box-shadow: 0 1px 3px rgba(40,44,90,.12); }
.cz-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #22c55e; vertical-align: 1px; }
.cz-top-actions { display: flex; align-items: center; gap: 9px; }
.cz-count { font-size: 11.5px; color: #8a8fa3; white-space: nowrap; }
.cz-ghost { min-height: 32px; padding: 0 14px; border: 1px solid #dfe1ee; border-radius: 8px; background: #fff; font-size: 12.5px; color: #4a4f66; cursor: pointer; }
.cz-run { min-height: 32px; padding: 0 18px; border: none; border-radius: 8px; background: linear-gradient(135deg, #4d53e8, #7b5cf5); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(77,83,232,.28); }
.cz-primary { min-height: 32px; padding: 0 16px; border: none; border-radius: 8px; background: #4d53e8; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; width: 100%; }
.cz-primary--auto { width: auto; }
.cz-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; }
.cz-lib { border-right: 1px solid #ebedf5; background: #fff; overflow: auto; padding: 12px; }
.cz-lib-search { margin-bottom: 12px; padding: 7px 10px; border: 1px solid #eaecf4; border-radius: 8px; background: #f7f8fc; color: #a0a4b8; font-size: 12px; }
.cz-lib-group-title { margin: 12px 0 6px; font-size: 11px; font-weight: 700; color: #a0a4b8; letter-spacing: .05em; }
.cz-lib-item { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid #eef0f7; border-radius: 10px; margin-bottom: 7px; cursor: pointer; background: #fff; }
.cz-lib-item[draggable="true"] { cursor: grab; }
.cz-lib-item[draggable="true"]:active { cursor: grabbing; }
.cz-lib-item:hover { border-color: #c9ccf5; background: #fbfbff; box-shadow: 0 2px 8px rgba(77,83,232,.08); }
.cz-lib-item.added { background: #f8f9ff; opacity: .75; }
.cz-lib-item b { display: block; font-size: 12px; font-weight: 600; color: #1d2033; line-height: 1.35; }
.cz-lib-item small { display: block; font-size: 10.5px; color: #a0a4b8; margin-top: 2px; }
.cz-lib-item > div { flex: 1; min-width: 0; }
.cz-add { flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid #4d53e8; border-radius: 6px; background: #fff; color: #4d53e8; font-size: 13px; line-height: 1; cursor: pointer; }
.cz-add:disabled { border-color: #dfe1ee; color: #b6bacb; }
.cz-node-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; font-size: 12px; color: #fff; background: #8a8fa3; }
.cz-node-icon.g-开始 { background: #22c55e; } .cz-node-icon.g-输入 { background: #3b82f6; }
.cz-node-icon.g-知识库 { background: #f59e0b; } .cz-node-icon.g-大模型 { background: linear-gradient(135deg, #1c64f2, #7c3aed); }
.cz-node-icon.g-代码 { background: #0ea5e9; } .cz-node-icon.g-输出 { background: #ec4899; }
/* Dify 财务分析工作流新增的三类节点 */
.cz-node-icon.g-请求 { background: #0ea5e9; } .cz-node-icon.g-判断 { background: #f97316; }
.cz-node-icon.g-聚合 { background: #14b8a6; }
/* 画布：点阵背景 + 可平移缩放的内层；抓手模式改光标 */
.cz-canvas { position: relative; overflow: hidden; background-color: #f4f5fa; background-image: radial-gradient(#d3d6e6 1.1px, transparent 1.1px); background-size: 20px 20px; cursor: default; }
.cz-canvas.hand { cursor: grab; }
.cz-canvas.hand .cz-node { cursor: grab; }
.cz-canvas.panning { cursor: grabbing; }
.cz-canvas.drop { box-shadow: inset 0 0 0 2px #4d53e8; background-color: #f0f1fb; }
.cz-canvas-inner { position: absolute; left: 0; top: 0; width: 4000px; height: 2600px; transform-origin: 0 0; }
.cz-canvas-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #a0a4b8; font-size: 14px; line-height: 1.9; pointer-events: none; }
.cz-canvas-empty small { font-size: 12px; }
.cz-node { position: absolute; padding: 11px 13px 10px; border: 1px solid #e1e3f0; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(40,44,90,.08); cursor: pointer; user-select: none; transition: box-shadow .15s, border-color .15s; }
.cz-node:hover { border-color: #b9bdea; box-shadow: 0 6px 18px rgba(40,44,90,.12); }
.cz-node.sel { border-color: #4d53e8; box-shadow: 0 0 0 3px rgba(77,83,232,.16), 0 6px 18px rgba(40,44,90,.12); }
.cz-node.unset { border-style: dashed; border-color: #f2c48b; }
.cz-node.linking { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.cz-node.dragging { box-shadow: 0 14px 30px rgba(40,44,90,.22); z-index: 5; transition: none; }
.cz-node.enter { animation: p2enter .32s ease-out; }
.cz-node-head { display: flex; align-items: center; gap: 8px; }
.cz-node-head b { flex: 1; font-size: 12.5px; font-weight: 600; color: #1d2033; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-node-mark { font-style: normal; font-size: 12px; color: #b6bacb; }
.cz-node-mark.ok { color: #22c55e; } .cz-node-mark.unset { color: #f59e0b; }
.cz-node-desc { margin-top: 6px; font-size: 11px; color: #8a8fa3; }
.cz-node-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 7px; border-top: 1px dashed #eef0f7; font-size: 10.5px; }
.cz-node-tag { padding: 1px 7px; border-radius: 999px; background: #f4f5fa; color: #8a8fa3; }
.cz-node-state { color: #b6bacb; }
.cz-node-state.ok { color: #22c55e; } .cz-node-state.unset { color: #f59e0b; }
/* 端口：左入右出，悬停放大，拖线经过时高亮 */
.cz-port { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid #fff; border-radius: 50%; background: #9aa0c8; box-shadow: 0 0 0 1px #c9ccf5; cursor: crosshair; padding: 0; transition: transform .12s, background .12s; z-index: 2; }
.cz-port:hover, .cz-port.target { background: #4d53e8; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(77,83,232,.18); }
.cz-port.in { left: -8px; } .cz-port.out { right: -8px; }
.cz-node.linking .cz-port.out { background: #f59e0b; }
.cz-node.ok .cz-port { background: #6b74e0; }
/* 画布左下角工具条：抓手 / 选择 / 缩放 / 适应 */
.cz-canvas-tools { position: absolute; left: 14px; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid #e4e6f2; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(40,44,90,.12); }
.cz-tool { width: 30px; height: 28px; border: none; border-radius: 7px; background: transparent; color: #4a4f66; font-size: 13px; cursor: pointer; }
.cz-tool:hover { background: #f0f1fb; }
.cz-tool.on { background: #eceefc; color: #4d53e8; box-shadow: inset 0 0 0 1px #c9ccf5; }
.cz-tool-sep { width: 1px; height: 18px; margin: 0 3px; background: #e4e6f2; }
.cz-zoom { min-width: 44px; text-align: center; font-size: 11.5px; color: #4a4f66; font-variant-numeric: tabular-nums; }
.cz-linking-tip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; padding: 7px 14px; border-radius: 999px; background: #fff7e6; border: 1px solid #ffd591; color: #b25e09; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cz-linking-tip button { border: none; background: none; color: #4d53e8; cursor: pointer; text-decoration: underline; }
.cz-inspect { border-left: 1px solid #ebedf5; background: #fff; overflow: auto; }
.cz-ins-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #f0f1f7; background: #fff; }
.cz-ins-head b { font-size: 13px; }
.cz-ins-head span { font-size: 11px; color: #a0a4b8; }
.cz-ins-state.ok { color: #22c55e; } .cz-ins-state.unset { color: #f59e0b; }
.cz-ins-body { padding: 14px; }
.cz-ins-foot { margin-top: 14px; }
.cz-ins-empty { padding: 28px 18px; color: #a0a4b8; font-size: 12.5px; line-height: 1.9; text-align: center; }
.cz-note { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: #f7f8fc; color: #8a8fa3; font-size: 11.5px; line-height: 1.6; }
/* 节点参数分区标题：把「A 区原始调研数据」和「C 区 Excel 先算」分开，对应测算底稿的分段 */
.cz-ins-sec { margin: 4px 0 9px; padding-bottom: 5px; border-bottom: 1px solid #f0f1f7; font-size: 11px; font-weight: 700; color: #4d53e8; letter-spacing: .03em; }
/* 公式提示：底稿里的计算口径，填错了保存时会被服务端拦下 */
.cz-formula { margin: -2px 0 12px; padding: 7px 9px; border-left: 2px solid #c7cafc; border-radius: 0 6px 6px 0; background: #f9f9ff; color: #7a7f96; font-size: 11px; line-height: 1.7; }
.cz-formula b { color: #4d53e8; }
/* 节点3 回归模型参照表：只读展示底稿 D 区，不提供手填 */
.cz-ins-table { width: 100%; margin: 0 0 10px; border-collapse: collapse; font-size: 11.5px; }
.cz-ins-table th, .cz-ins-table td { padding: 5px 7px; border: 1px solid #eceef6; text-align: left; }
.cz-ins-table th { background: #f7f8fc; color: #6b7280; font-weight: 600; }
.cz-ins-table b { color: #4d53e8; }
/* 运行结果页：独立一页，日志逐行打出、结果卡逐个浮现 */
.cz-result { flex: 1; min-height: 0; overflow: auto; padding: 22px 26px 30px; }
.cz-result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cz-result-head b { font-size: 17px; color: #1d2033; }
.cz-result-head small { display: block; margin-top: 3px; font-size: 11.5px; color: #8a8fa3; }
.cz-result-state { display: none; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cz-result-state.done { display: inline-flex; background: #ecfdf5; color: #059669; }
.cz-result-state.playing { background: #eceefc; color: #4d53e8; }
.cz-result-state.playing i { width: 10px; height: 10px; border: 2px solid #c9ccf5; border-top-color: #4d53e8; border-radius: 50%; animation: czspin .8s linear infinite; }
.is-playing .cz-result-state.playing { display: inline-flex; }
.is-playing .cz-result-state.done { display: none; }
@keyframes czspin { to { transform: rotate(360deg); } }
.cz-result-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 16px; align-items: start; }
.cz-result-card { padding: 16px 18px; border: 1px solid #e6e8f2; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(40,44,90,.05); }
.cz-result-card h4 { margin: 0 0 12px; font-size: 13.5px; color: #1d2033; }
.cz-result-card h4 small { margin-left: 8px; font-weight: 400; font-size: 11.5px; color: #a0a4b8; }
.cz-result-empty { grid-column: 1 / -1; max-width: 560px; margin: 40px auto; }
.cz-out-log { max-height: 60vh; overflow: auto; padding: 14px 16px; border-radius: 12px; background: #14161f; color: #b9f5c8; font-family: "Consolas", "Menlo", monospace; font-size: 12px; line-height: 1.9; }
.cz-out-line { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; }
.cz-out-no { flex: none; min-width: 18px; color: #6b7694; }
.cz-out-text { flex: 1; white-space: pre-wrap; word-break: break-all; }
/* 逐字显现：用剪裁动画模拟打字 */
.is-playing .cz-out-line .cz-out-text { animation: czType 1.05s steps(38, end); }
.is-playing .cz-out-line:last-of-type .cz-out-text::after, .is-playing .cz-out-log .cz-out-line:not([hidden]) ~ .cz-out-line[hidden] { }
@keyframes czType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cz-out-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cz-out-card { padding: 12px 14px; border: 1px solid #eef0f7; border-radius: 12px; background: #fbfbff; animation: p2enter .3s ease-out; }
.cz-out-card span { display: block; font-size: 11px; color: #8a8fa3; }
.cz-out-card b { display: block; margin-top: 6px; font-size: 19px; color: #4d53e8; }
.cz-out-card.ok b { color: #22c55e; }
.cz-out-json { margin: 12px 0 0; padding: 11px 13px; border-radius: 10px; background: #f7f8fc; border: 1px solid #eef0f7; color: #4a4f66; font-family: "Consolas", monospace; font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; animation: p2enter .3s ease-out; }
.cz-out-actions { display: flex; gap: 8px; margin-top: 12px; }
/* 输出：测算项目 / 结果 结论表 */
.cz-out-table { width: 100%; border-collapse: collapse; font-size: 12.5px; animation: p2enter .3s ease-out; }
.cz-out-table th, .cz-out-table td { padding: 9px 12px; border: 1px solid #e6e8f2; text-align: left; }
.cz-out-table thead th { background: #f4f5fb; color: #6b7089; font-weight: 600; font-size: 11.5px; }
.cz-out-table td:first-child { color: #4a4f66; width: 46%; }
.cz-out-table td b { color: #1c64f2; font-size: 15px; }
.cz-out-table td b.ok { color: #22c55e; }
/* 运行日志里被自动兜底的那一步标黄，观众一眼看出哪步被纠正过 */
.cz-out-line.warn .cz-out-text { color: #b45309; }
.cz-out-line.warn .cz-out-no { color: #b45309; font-weight: 700; }
.cz-out-text b { color: #1d2033; font-weight: 600; }
/* 流程变量表：跟在运行日志下面，展示每个节点写进去的值 */
.cz-out-vars { margin-top: 12px; }
.cz-out-vars td:first-child { width: 38%; }
.cz-out-var { color: #1c64f2; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
/* 两年对比表的数值列右对齐，单位列灰化 */
.cz-out-table td.cz-num { text-align: right; font-variant-numeric: tabular-nums; color: #1d2033; font-weight: 600; width: auto; }
.cz-out-table td.cz-out-unit { color: #8a8fa3; font-size: 11.5px; width: auto; }
/* 财务分析报告正文 */
.cz-out-report { margin-top: 14px; padding: 12px 14px; border: 1px solid #dbe6fb; border-radius: 12px; background: #f6f9ff; animation: p2enter .3s ease-out; }
.cz-out-report h5 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: #1c64f2; }
.cz-out-report ol { margin: 0; padding-left: 18px; }
.cz-out-report li { margin-bottom: 7px; font-size: 12.5px; line-height: 1.75; color: #2b3040; animation: p2enter .3s ease-out; }
.cz-out-report li:last-child { margin-bottom: 0; }

/* 任务1 第二步：扣子 9 节点固定编排 —— 节点卡片里的输入/输出参数、只读端口小圆点 */
.cz-port.dot { width: 9px; height: 9px; margin-top: -4.5px; background: #c4c7e4; box-shadow: 0 0 0 2px #fff; cursor: default; }
.cz-port.dot.in { left: -5px; } .cz-port.dot.out { right: -5px; }
.cz-node.ok .cz-port.dot { background: #8a92e0; }
.cz-node .cz-np-group { margin-top: 8px; padding-top: 7px; border-top: 1px dashed #eef0f7; display: flex; flex-direction: column; gap: 3px; }
.cz-node .cz-np-group.out { align-items: flex-end; }
.cz-np { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #5b6070; max-width: 100%; }
.cz-np i { font-style: normal; color: #b6bacb; }
.cz-np em { font-style: normal; font-size: 9px; color: #9096ac; background: #f2f3f8; border-radius: 4px; padding: 0 4px; }
.cz-np.more { color: #a0a4b8; font-size: 9.5px; }
/* 右侧检查器：只读参数表 + 代码块 + 提示词 */
.cz-pv-table td { padding: 5px 7px; border: 1px solid #eceef6; }
.cz-pv-table td:first-child { color: #4a4f66; font-weight: 600; }
.cz-pt { font-size: 10px; color: #8a8fa3; white-space: nowrap; width: 1%; }
.cz-pv { text-align: right; color: #1c64f2; font-variant-numeric: tabular-nums; }
.cz-pv-pending { color: #b6bacb; font-weight: 400; }
.cz-code { margin: 0 0 6px; padding: 10px 12px; border-radius: 9px; background: #1e2130; color: #d6dbf0; font-family: "Consolas", "Menlo", monospace; font-size: 11px; line-height: 1.65; white-space: pre; overflow-x: auto; }
.cz-prompt { white-space: pre-wrap; background: #f7f8fc; color: #5b6070; border: 1px solid #eef0f7; }
/* 节点参数可填表单 */
.cz-nf-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 7px; }
.cz-nf-row.wide { grid-template-columns: 1fr; gap: 4px; }
.cz-nf-row > label { font-size: 11px; color: #657987; line-height: 1.35; }
.cz-nf-row > label em { font-style: normal; color: #a0a4b8; }
.cz-nf { width: 100%; min-width: 0; border: 1px solid #d3dbe2; border-radius: 7px; padding: 6px 8px; font-size: 11.5px; color: #1d2033; background: #fff; font-family: inherit; }
.cz-nf:focus { outline: none; border-color: #4d53e8; box-shadow: 0 0 0 2px rgba(77,83,232,.14); }
.cz-nf-area { resize: vertical; line-height: 1.55; font-family: "Consolas", "Menlo", monospace; font-size: 11px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
/* 结果页：方案说明文本 + 采购口径小表 */
.cz-plan { margin: 0; padding: 13px 15px; border: 1px solid #e6e8f2; border-radius: 12px; background: #f9faff; color: #2b3040; font-size: 12.5px; line-height: 1.85; white-space: pre-wrap; font-family: inherit; animation: p2enter .3s ease-out; }
.cz-out-table tr.cz-out-total td { background: #f4f7ff; }
.cz-out-table tr.cz-out-total td b { color: #1c64f2; }

/* ② 智能体编排：空状态 / 新建方案 / 方案栏 / 参考方案 */
.cz-empty-arrange { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 24px; text-align: center; background: #f7f8fc; }
.cz-empty-ill { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #4d53e8, #7b5cf5); box-shadow: 0 10px 24px rgba(77,83,232,.28); }
.cz-empty-arrange h3 { margin: 6px 0 0; font-size: 16px; color: #1d2033; }
.cz-empty-arrange p { margin: 0; max-width: 420px; font-size: 12.5px; color: #8a8fa3; line-height: 1.7; }
.cz-empty-btns { display: flex; gap: 10px; margin-top: 6px; }
.cz-ref-card { margin-top: 14px; width: min(480px, 90%); text-align: left; padding: 13px 15px; border: 1px solid #e1e3f0; border-radius: 12px; background: #fff; cursor: pointer; box-shadow: 0 1px 3px rgba(40,44,90,.05); display: block; }
.cz-ref-card:hover { border-color: #b9bdea; box-shadow: 0 6px 18px rgba(40,44,90,.1); }
.cz-ref-card-tag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; background: #eceefc; color: #4d53e8; font-size: 10.5px; font-weight: 600; }
.cz-ref-card b { display: block; font-size: 13px; color: #1d2033; }
.cz-ref-card small { display: block; margin-top: 4px; font-size: 11px; color: #a0a4b8; line-height: 1.6; }
.cz-ref-hint { margin-bottom: 10px; padding: 9px 10px; border-radius: 8px; background: #eceefc; color: #4d53e8; font-size: 11.5px; line-height: 1.6; }
.cz-ref-hint small { color: #7b7fb0; }
.cz-plan-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 8px 9px; border: 1px solid #e6e8f2; border-radius: 9px; background: #fafbff; font-size: 12px; }
.cz-plan-bar b { color: #1d2033; }
.cz-plan-bar span { color: #a0a4b8; font-size: 10.5px; margin-right: auto; }
.cz-plan-bar button { border: 1px solid #d7d9ec; border-radius: 6px; background: #fff; color: #4d53e8; font-size: 10.5px; padding: 3px 7px; cursor: pointer; }
.cz-plan-bar button:hover { background: #eceefc; }
.cz-lib-clear { width: 100%; margin-top: 10px; padding: 7px; border: 1px dashed #d7d9ec; border-radius: 8px; background: #fff; color: #8a8fa3; font-size: 11.5px; cursor: pointer; }
.cz-lib-clear:hover { border-color: #f0a; color: #d33; }
.cz-node-del { width: 18px; height: 18px; flex: none; border: 0; border-radius: 5px; background: transparent; color: #b6bacb; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.cz-node-del:hover { background: #fdecec; color: #d84a4a; }
/* 新建方案弹窗 */
.cz-modal-mask { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(24,26,42,.4); }
.cz-modal { width: min(560px, 92%); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(24,26,42,.3); }
.cz-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #f0f1f7; font-size: 14px; font-weight: 600; color: #1d2033; }
.cz-modal-x { width: 28px; height: 28px; border: 0; background: transparent; color: #a0a4b8; font-size: 18px; border-radius: 7px; cursor: pointer; }
.cz-modal-x:hover { background: #f2f2f6; }
.cz-modal-body { padding: 16px; }
.cz-modal-tip { margin: 0 0 14px; font-size: 12px; color: #8a8fa3; line-height: 1.7; }
.cz-modal-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cz-modal-opt { display: block; width: 100%; text-align: left; padding: 16px 14px; border: 1px solid #e1e3f0; border-radius: 12px; background: #fafbff; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.cz-modal-opt:hover { border-color: #4d53e8; box-shadow: 0 0 0 3px rgba(77,83,232,.14); }
.cz-modal-opt-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eceefc; color: #4d53e8; font-size: 16px; margin-bottom: 9px; }
.cz-modal-opt b { display: block; font-size: 13px; color: #1d2033; }
.cz-modal-opt small { display: block; margin-top: 5px; font-size: 11px; color: #8a8fa3; line-height: 1.6; }
@media (max-width: 640px) { .cz-modal-opts { grid-template-columns: 1fr; } }

/* ==========================================================================
   任务7 · 影刀 RPA
   ========================================================================== */
.stage--rpa { --skin: #2b6cb0; --wire: #3d7ac2; --wire-temp: #dd8b1c; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.yd { height: 100%; min-height: 0; display: flex; flex-direction: column; background: #eef1f5; overflow: hidden; position: relative; }
.yd-menubar { flex: none; display: flex; align-items: center; gap: 14px; height: 32px; padding: 0 10px; background: #243447; color: #cdd6e2; font-size: 12px; }
.yd-app { font-weight: 700; color: #fff; letter-spacing: .04em; }
.yd-menu { cursor: default; opacity: .85; }
.yd-file { margin-left: auto; opacity: .65; font-size: 11.5px; }
.yd-close { margin-left: auto; width: 26px; height: 24px; border: none; background: none; color: #cdd6e2; cursor: pointer; font-size: 13px; }
.yd-close:hover { background: #c0392b; color: #fff; }
/* 任务2 改版：整页嵌入 RPA/index.html（影刀政策抓取演示），常驻覆盖层挂在 body 上不随舞台重绘销毁 */
.rpa-embed-overlay { position: fixed; inset: 0; z-index: 901; display: flex; flex-direction: column; background: #eef1f5; }
.rpa-embed-overlay[hidden] { display: none; }
.rpa-embed-overlay > .stage-readonly { flex: none; display: block; }
.rpa-embed-slot { flex: 1; min-height: 0; }
.rpa-embed-frame { display: block; width: 100%; height: 100%; border: 0; }
.rpa-embed-note { opacity: .65; font-size: 11.5px; }
.yd-toolbar { flex: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; background: #f7f9fb; border-bottom: 1px solid #d6dde6; }
.yd-tool { min-height: 26px; padding: 0 11px; border: 1px solid #c8d2de; border-radius: 3px; background: #fff; font-size: 12px; color: #33475e; cursor: pointer; }
.yd-tool.run { border-color: #2b6cb0; background: #2b6cb0; color: #fff; font-weight: 600; }
.yd-tool.done, .yd-tool.on { border-color: #2f855a; color: #2f855a; }
.yd-tool-sep { width: 1px; height: 18px; background: #d6dde6; margin: 0 4px; }
.yd-tool-stat { font-size: 11.5px; color: #6b7c93; }
.yd-body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 212px minmax(0, 1fr) 300px; }
.yd-lib { border-right: 1px solid #d6dde6; background: #fff; overflow: auto; }
.yd-lib-title, .yd-flow-title { padding: 8px 11px; background: #eef1f5; border-bottom: 1px solid #d6dde6; font-size: 12px; font-weight: 700; color: #33475e; }
.yd-lib-search { margin: 8px; padding: 5px 8px; border: 1px solid #d6dde6; background: #fbfcfd; color: #9aa8ba; font-size: 11.5px; }
.yd-lib-group-title { padding: 6px 11px; font-size: 11.5px; font-weight: 600; color: #6b7c93; background: #fafbfd; }
.yd-lib-item { display: flex; align-items: center; gap: 7px; padding: 6px 11px; cursor: pointer; border-bottom: 1px solid #f2f5f8; }
.yd-lib-item[draggable="true"] { cursor: grab; }
.yd-lib-item:hover { background: #eef5fd; }
.yd-lib-item.added { color: #2f855a; opacity: .8; }
.yd-lib-icon { width: 18px; text-align: center; font-size: 12px; }
.yd-lib-name { flex: 1; font-size: 12px; }
.yd-lib-add { flex: none; width: 20px; height: 20px; border: 1px solid #c8d2de; background: #fff; color: #2b6cb0; font-size: 12px; cursor: pointer; line-height: 1; }
.yd-lib-tip { margin: 12px 10px; padding: 8px 9px; border-left: 2px solid #94a5b8; background: #f4f7fa; color: #6b7c93; font-size: 11px; line-height: 1.7; }
.yd-flow { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid #d6dde6; }
.yd-flow-canvas { position: relative; flex: 1; overflow: auto; background-color: #fbfcfd; background-image: linear-gradient(#eef1f5 1px, transparent 1px), linear-gradient(90deg, #eef1f5 1px, transparent 1px); background-size: 16px 16px; }
.yd-flow-canvas.drop { box-shadow: inset 0 0 0 2px #2b6cb0; background-color: #f2f7fd; }
.yd-flow-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #9aa8ba; font-size: 12.5px; line-height: 1.8; pointer-events: none; }
.yd-step { position: absolute; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #c8d2de; border-left: 3px solid #2b6cb0; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(36,52,71,.08); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.yd-step:hover { border-color: #2b6cb0; box-shadow: 0 4px 12px rgba(36,52,71,.14); }
.yd-step.sel { background: #eef5fd; box-shadow: 0 0 0 2px rgba(43,108,176,.22); }
.yd-step.unset { border-left-color: #dd8b1c; }
.yd-step.ok { border-left-color: #2f855a; }
.yd-step.linking { border-color: #dd8b1c; box-shadow: 0 0 0 2px rgba(221,139,28,.22); }
.yd-step.enter { animation: p2enter .3s ease-out; }
.yd-step-no { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 2px; background: #eef1f5; color: #6b7c93; font-size: 11px; font-weight: 700; }
.yd-step-icon { font-size: 13px; }
.yd-step-text { flex: 1; min-width: 0; }
.yd-step-text b { display: block; font-size: 12.5px; font-weight: 600; color: #24303f; }
.yd-step-text small { display: block; font-size: 10.5px; color: #8a99ab; margin-top: 1px; }
.yd-step-mark { font-style: normal; font-size: 12px; color: #b3bfcd; }
.yd-step-mark.ok { color: #2f855a; } .yd-step-mark.unset { color: #dd8b1c; }
.yd-port { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; background: #94a5b8; box-shadow: 0 0 0 1px #c8d2de; cursor: crosshair; padding: 0; transition: transform .12s, background .12s; z-index: 2; }
.yd-port:hover, .yd-port.target { background: #2b6cb0; transform: scale(1.35); box-shadow: 0 0 0 4px rgba(43,108,176,.18); }
.yd-port.in { top: -7px; } .yd-port.out { bottom: -7px; }
.yd-step.ok .yd-port { background: #4a86c4; }
.yd-linking-tip { flex: none; padding: 6px 11px; background: #fff8e6; border-top: 1px solid #f0d9a8; color: #935c0a; font-size: 11.5px; }
.yd-linking-tip button { border: none; background: none; color: #2b6cb0; cursor: pointer; text-decoration: underline; }
.yd-ins { background: #fff; overflow: auto; }
.yd-ins-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; background: #eef1f5; border-bottom: 1px solid #d6dde6; }
.yd-ins-head b { font-size: 12.5px; color: #24303f; }
.yd-ins-state { font-size: 11px; color: #8a99ab; }
.yd-ins-state.ok { color: #2f855a; } .yd-ins-state.unset { color: #dd8b1c; }
.yd-ins-body { padding: 12px; }
.yd-ins-empty { padding: 26px 16px; text-align: center; color: #9aa8ba; font-size: 12px; line-height: 1.9; }
.yd-ins-inline { margin: -4px 0 12px; }
.yd-ins-foot { margin-top: 12px; }
.yd-primary { min-height: 30px; padding: 0 16px; border: 1px solid #2b6cb0; border-radius: 3px; background: #2b6cb0; color: #fff; font-size: 12.5px; cursor: pointer; width: 100%; }
.yd-ghost { min-height: 28px; padding: 0 12px; border: 1px solid #c8d2de; border-radius: 3px; background: #fff; color: #2b6cb0; font-size: 12px; cursor: pointer; }
.yd-console { flex: none; height: 250px; display: flex; flex-direction: column; border-top: 1px solid #d6dde6; }
.yd-console-tabs { flex: none; display: flex; gap: 2px; padding: 0 8px; background: #eef1f5; border-bottom: 1px solid #d6dde6; }
.yd-console-tabs span { padding: 6px 14px; font-size: 12px; color: #6b7c93; cursor: pointer; }
.yd-console-tabs span:hover { color: #2b6cb0; }
.yd-console-tabs span.on { background: #fff; border: 1px solid #d6dde6; border-bottom-color: #fff; margin-bottom: -1px; color: #24303f; font-weight: 600; }
.yd-console-pane { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; background: #fff; }
.yd-console-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.yd-log { overflow: auto; padding: 9px 12px; background: #1b2430; color: #d5e2ef; font-family: "Consolas", monospace; font-size: 11.5px; line-height: 1.9; }
.yd-log-line { animation: ydline .25s ease-out; }
@keyframes ydline { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.yd-log-line.muted { color: #6b7c93; animation: none; }
.yd-log-line.ok-end { color: #7ee2a8; }
.yd-tool-modal { border-color: #2563eb !important; background: #eff6ff !important; color: #1d4ed8 !important; font-weight: 700; box-shadow: 0 1px 2px rgba(37,99,235,0.1); }
.yd-tool-modal:hover { background: #dbeafe !important; color: #1e40af !important; }
.yd-tool-modal.on { background: #2563eb !important; color: #fff !important; }

/* 模态弹窗表样式 */
.yd-modal-mask { position: absolute; inset: 0; z-index: 1000; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: center; padding: 20px; animation: p2fadein .2s ease-out; }
.yd-modal-dialog { background: #fff; width: 94%; max-width: 1020px; max-height: 90vh; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #cbd5e1; animation: ydwin .25s cubic-bezier(0.16, 1, 0.3, 1); }
.yd-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #1e293b; color: #fff; flex: none; border-bottom: 1px solid #334155; }
.yd-modal-head h4 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: #f8fafc; }
.yd-modal-close { width: 28px; height: 28px; border: none; background: rgba(255,255,255,0.12); border-radius: 6px; color: #cbd5e1; cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.yd-modal-close:hover { background: #ef4444; color: #fff; }
.yd-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; background: #f8fafc; }
.yd-modal-foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; background: #fff; border-top: 1px solid #e2e8f0; }
.yd-modal-btn { padding: 7px 20px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.yd-modal-btn:hover { background: #f1f5f9; }
.yd-modal-btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.yd-modal-btn.primary:hover { background: #1d4ed8; }

/* 弹窗内部卡片 */
.yd-mcard { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.yd-mcard-title { font-size: 13.5px; font-weight: 700; color: #0f172a; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
.yd-mcard-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.yd-mcard-table th, .yd-mcard-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.yd-mcard-table th { background: #f1f5f9; color: #475569; font-weight: 600; }
.yd-mcard-table tr.highlight td { background: #eff6ff; }
.yd-mcard-table tr.highlight b { color: #1d4ed8; font-weight: 700; }
.yd-mcard-tag { padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.yd-mcard-tag.ok { background: #dcfce7; color: #15803d; }
.yd-mcard-tag.bad { background: #fee2e2; color: #b91c1c; }

.yd-flow-canvas-inner { position: relative; }
.yd-log-lv { display: inline-block; min-width: 40px; margin-right: 8px; color: #4ec9b0; }
.yd-output { overflow: auto; padding: 10px 12px; background: #fff; }
.yd-result { width: 100%; border-collapse: collapse; font-size: 12px; }
.yd-result th, .yd-result td { border: 1px solid #d6dde6; padding: 5px 9px; text-align: left; }
.yd-result th { width: 42%; background: #f4f7fa; color: #4a5a6d; font-weight: 600; }
.yd-result td { color: #24303f; font-weight: 600; }
.yd-result tr { animation: ydline .25s ease-out; }
.yd-result-actions { display: flex; gap: 8px; margin-top: 10px; }
/* 仿真浏览器窗口：RPA 打开的政策文件库详情页 */
.yd-browser { position: absolute; z-index: 30; left: 232px; right: 316px; top: 18px; bottom: 18px; min-width: 520px; display: flex; flex-direction: column; border: 1px solid #b9c4d1; border-radius: 8px; background: #fff; box-shadow: 0 20px 50px rgba(20,32,48,.32); overflow: hidden; animation: ydwin .35s ease-out; }
@keyframes ydwin { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.yd-br-chrome { flex: none; background: #dfe3ea; border-bottom: 1px solid #c5ccd6; }
.yd-br-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; font-size: 11.5px; }
.yd-br-tabs span.on { display: flex; align-items: center; gap: 6px; max-width: 320px; padding: 6px 12px; border-radius: 8px 8px 0 0; background: #fff; color: #24303f; white-space: nowrap; overflow: hidden; }
.yd-br-fav { width: 12px; height: 12px; border-radius: 3px; background: #c4342d; flex: none; }
.yd-br-newtab { padding: 4px 8px; color: #6b7c93; }
.yd-br-close { margin-left: auto; width: 26px; height: 22px; border: none; background: none; color: #33475e; cursor: pointer; }
.yd-br-close:hover { background: #c0392b; color: #fff; }
.yd-br-bar { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: #fff; }
.yd-br-nav { width: 22px; text-align: center; color: #6b7c93; font-size: 14px; }
.yd-br-url { flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: #f0f2f5; color: #33475e; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yd-br-url i { font-style: normal; font-size: 11px; }
.yd-br-rpa { padding: 3px 9px; border-radius: 3px; background: #fff3d6; color: #935c0a; font-size: 10.5px; white-space: nowrap; }
.yd-br-page { flex: 1; min-height: 0; overflow: auto; background: #f5f6f8; }
/* 政府门户版式：顶栏、机关名、导航条、政策文件库横幅、面包屑、元数据表、正文 */
.gov { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; }
.gov-topbar { display: flex; justify-content: flex-end; gap: 14px; padding: 4px 24px; background: #eef2f6; color: #6b7c93; font-size: 11px; }
.gov-login { margin-left: 8px; color: #c4342d; }
.gov-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #fff; }
.gov-brand { display: flex; align-items: center; gap: 10px; }
.gov-brand b { display: block; font-size: 22px; letter-spacing: .12em; color: #c4342d; font-family: "SimSun", "Songti SC", serif; }
.gov-brand small { display: block; font-size: 9.5px; color: #8a96a3; letter-spacing: .02em; }
.gov-emblem { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #f7d774 0 26%, #c4342d 27% 100%); box-shadow: 0 0 0 2px #f2c94c inset; }
.gov-search { display: flex; align-items: center; border: 1px solid #c4342d; border-radius: 3px; overflow: hidden; font-size: 11.5px; }
.gov-search span { padding: 5px 12px; min-width: 190px; color: #9aa8ba; }
.gov-search b { padding: 5px 14px; background: #c4342d; color: #fff; font-weight: 400; }
.gov-nav { display: flex; gap: 0; background: #c4342d; padding: 0 24px; }
.gov-nav span { padding: 9px 20px; color: #fff; font-size: 13px; }
.gov-nav span.on { background: rgba(0,0,0,.18); }
.gov-banner { display: flex; align-items: baseline; gap: 10px; padding: 22px 28px; background: linear-gradient(90deg, #e9f0fa, #f6f8fb 60%, #eaf1f9); border-bottom: 1px solid #dfe6ee; }
.gov-banner b { font-size: 24px; color: #1f4e8c; letter-spacing: .08em; font-family: "SimSun", "Songti SC", serif; }
.gov-banner small { font-size: 10px; color: #8a96a3; letter-spacing: .1em; }
.gov-crumb { padding: 8px 24px; font-size: 11.5px; color: #6b7c93; background: #fff; border-bottom: 1px solid #e6ebf0; }
.gov-doc { margin: 14px 24px 24px; padding: 20px 28px 26px; background: #fff; border: 1px solid #e6ebf0; }
.gov-meta { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 18px; }
.gov-meta th, .gov-meta td { border: 1px solid #dfe6ee; padding: 6px 10px; text-align: left; }
.gov-meta th { width: 12%; background: #f3f6fa; color: #4a5a6d; font-weight: 600; white-space: nowrap; }
.gov-meta td { width: 38%; color: #24303f; }
.gov-title { margin: 6px 0 18px; text-align: center; font-size: 20px; line-height: 1.5; color: #222; font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif; font-weight: 700; }
.gov-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.95; text-indent: 2em; color: #333; font-family: "FangSong", "STFangsong", "SimSun", serif; }
.gov-body p.gov-salute { text-indent: 0; }
.gov-body p.gov-clause-p { font-family: "SimSun", "Songti SC", serif; }
.gov-body mark.gov-kw { background: #fff2a8; color: #7a4d00; padding: 0 2px; border-radius: 2px; }
.gov-body mark.gov-clause, .gov-title mark.gov-clause { background: #dff4e6; color: #1e6b3a; padding: 0 2px; border-radius: 2px; box-shadow: 0 0 0 1px #9ed5b3; }
.gov-title mark.gov-kw { background: #fff2a8; }
.gov-sign { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 26px 20px 8px 0; font-size: 14px; font-family: "FangSong", "SimSun", serif; }
.gov-foot { display: flex; gap: 22px; justify-content: flex-end; margin-top: 18px; padding-top: 12px; border-top: 1px dashed #dfe6ee; font-size: 11.5px; color: #6b7c93; }

/* ==========================================================================
   任务8 · WPS 表格
   ========================================================================== */
.stage--sheet { --skin: #217346; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; }
.xl { background: #f3f5f7; }
.xl-titlebar { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; background: #217346; color: #fff; font-size: 12.5px; }
.xl-app { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: #fff; color: #217346; font-weight: 800; font-size: 12px; }
.xl-doc { flex: 1; }
.xl-close { width: 26px; height: 24px; border: none; background: none; color: #fff; cursor: pointer; }
.xl-close:hover { background: #c0392b; }
.xl-tabs { flex: none; display: flex; gap: 2px; padding: 0 8px; background: #fff; border-bottom: 1px solid #e2e6ea; }
.xl-tab { padding: 7px 13px; font-size: 12.5px; color: #4a5560; }
.xl-tab.on { color: #217346; font-weight: 600; box-shadow: inset 0 -2px 0 #217346; }
.xl-ribbon { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e2e6ea; }
.xl-rbtn { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid #cfd6dc; border-radius: 4px; background: #fff; font-size: 12px; color: #33414d; cursor: pointer; text-decoration: none; }
.xl-rbtn.primary { border-color: #217346; background: #217346; color: #fff; font-weight: 600; }
.xl-rbtn.done { border-color: #217346; color: #217346; }
.xl-download { margin-left: auto; color: #217346; border-color: #9fcdb3; }
.xl-rsep { width: 1px; height: 20px; background: #e2e6ea; }
.xl-range { display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 12px; color: #4a5560; }
.xl-range-btn { min-height: 26px; padding: 0 10px; border: 1px solid #cfd6dc; border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; }
.xl-range-btn.on { border-color: #217346; background: #e8f5ee; color: #217346; font-weight: 700; }
.xl-formula { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: #fff; border-bottom: 1px solid #d5dbe0; font-size: 12px; }
.xl-name-box { min-width: 62px; padding: 3px 8px; border: 1px solid #d5dbe0; background: #fbfcfd; color: #33414d; text-align: center; font-weight: 600; }
.xl-fx { color: #8a949e; font-style: italic; }
.xl-formula-text { color: #4a5560; font-family: "Consolas", monospace; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xl-formula-text.xl-formula-live { color: #217346; font-weight: 600; font-style: normal; }
.xl-cell-editable { cursor: cell; }
.xl-cell-editable:focus { outline: 2px solid #217346; outline-offset: -2px; background: #fff !important; }
.xl-sheet { flex: 1; min-height: 0; overflow: auto; padding: 0; background: #fff; }
.xl-grid { border-collapse: collapse; width: 100%; font-size: 12px; }
.xl-grid th, .xl-grid td { border: 1px solid #d8dde2; padding: 5px 8px; text-align: left; color: #24303a; }
.xl-grid thead th { background: #eef1f4; color: #6b7681; font-weight: 600; text-align: center; font-size: 11px; }
.xl-corner, .xl-rowhead { width: 34px; background: #eef1f4; color: #6b7681; font-weight: 600; text-align: center; font-size: 11px; }
.xl-title { background: #e8f5ee; color: #1a5c38; font-size: 13px; text-align: center; }
.xl-note { background: #fbfcfd; color: #5a6672; font-size: 11.5px; }
.xl-pending { color: #b0b8c1; }
.xl-ok { color: #217346; font-weight: 700; }
.xl-hl { background: #e6f0fb; font-weight: 700; }
.xl-rec { background: #f4fbf7; }
.xl-base { background: #fbfcfd; }
.xl-picked { background: #e8f5ee; }
.xl-grid .p2-blue .p2-blue-input { min-width: 110px; }
.xl-cell-input { width: 100%; min-height: 22px; padding: 1px 5px; border: 1px solid #b7c6d1; border-radius: 2px; background: #fffdf3; font-size: 12px; font-family: inherit; }
.xl-cell-input:focus { outline: 2px solid #217346; outline-offset: -2px; }
.xl-btn { padding: 3px 10px; border: 1px solid #217346; border-radius: 3px; background: #fff; color: #217346; font-size: 11.5px; cursor: pointer; }
.xl-sheettabs { flex: none; display: flex; align-items: center; gap: 3px; padding: 0 10px; height: 32px; background: #eef1f4; border-top: 1px solid #d5dbe0; }
.xl-sheettab { padding: 5px 14px; border: 1px solid transparent; border-bottom: none; background: none; font-size: 12px; color: #5a6672; cursor: pointer; }
.xl-sheettab.on { background: #fff; border-color: #d5dbe0; color: #217346; font-weight: 700; }
.xl-status { margin-left: auto; font-size: 11.5px; color: #6b7681; }
/* 方案说明页：进入先看三个方案，再去询价与测算 */
.xl-intro { max-width: 980px; margin: 0 auto; padding: 26px 24px 34px; }
.xl-intro-head b { display: block; font-size: 17px; color: #1a5c38; }
.xl-intro-head small { display: block; margin-top: 6px; font-size: 12px; color: #5a6672; line-height: 1.7; }
.xl-intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.xl-plan { padding: 16px 18px; border: 1px solid #d8dde2; border-radius: 10px; background: #fbfcfd; }
.xl-plan.rec { border-color: #9fcdb3; background: #f4fbf7; }
.xl-plan-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #217346; color: #fff; font-size: 11px; font-weight: 700; }
.xl-plan b { display: block; margin: 10px 0 6px; font-size: 14px; color: #24303a; }
.xl-plan p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #4a5560; }
.xl-plan em { font-style: normal; color: #217346; font-weight: 700; }
.xl-intro-steps { display: grid; gap: 6px; font-size: 12.5px; color: #5a6672; }
.xl-intro-steps span::before { content: "○ "; color: #b0b8c1; }
.xl-intro-steps span.done { color: #217346; }
.xl-intro-steps span.done::before { content: "● "; color: #217346; }
.xl-intro-actions { margin-top: 18px; }
/* 询价单：两张回函扫描件并排 */
.xl-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; padding: 18px 20px 6px; }
.xl-quote { margin: 0; border: 1px solid #d8dde2; border-radius: 8px; background: #fbfcfd; overflow: hidden; }
.xl-quote.picked { border-color: #217346; box-shadow: 0 0 0 2px rgba(33,115,70,.18); }
.xl-quote-img { padding: 12px; background: #eceff2; }
.xl-quote-img img { display: block; width: 100%; max-height: 62vh; object-fit: contain; border: 1px solid #d8dde2; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.xl-quote figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; }
.xl-quote figcaption b { display: block; font-size: 13px; }
.xl-quote figcaption small { display: block; color: #8a949e; font-size: 11px; }
.xl-quote-price { display: flex; gap: 12px; flex: 1; color: #4a5560; }
.xl-quote-price b { color: #217346; }
.xl-quotes-note { margin: 0 20px 20px; padding: 10px 12px; border-left: 3px solid #217346; background: #f4fbf7; color: #33414d; font-size: 12.5px; }
/* 敏感性分析：基础参数 + 附件下载 */
.xl-sens-params { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; background: #fbfcfd; border-bottom: 1px solid #e2e6ea; font-size: 12px; }
.xl-sens-params div { padding: 6px 10px; border: 1px solid #e2e6ea; border-radius: 6px; background: #fff; }
.xl-sens-params span { display: block; font-size: 10.5px; color: #8a949e; }
.xl-sens-params b { color: #24303a; }
.xl-sens-file { display: flex; align-items: center; gap: 12px; margin: 14px; padding: 10px 12px; border: 1px dashed #9fcdb3; border-radius: 6px; background: #f4fbf7; font-size: 12.5px; color: #1a5c38; }

/* ==========================================================================
   任务10 · 审批中心
   ========================================================================== */
.stage--approval { --skin: #1677ff; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.dt { background: #f5f7fa; }
.dt-top { flex: none; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; background: #1677ff; color: #fff; }
.dt-back { width: 30px; height: 30px; border: none; border-radius: 8px; background: rgba(255,255,255,.18); color: #fff; font-size: 16px; cursor: pointer; }
.dt-top b { font-size: 15px; }
.dt-no { opacity: .85; font-size: 12px; }
.dt-state { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12px; }
.dt-state.ok, .dt-state.done { background: #fff; color: #1677ff; font-weight: 700; }
.dt-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 16px; padding: 16px; overflow: auto; align-content: start; }
.dt-flow { padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); align-self: start; }
.dt-flow-title { margin-bottom: 14px; font-size: 13px; font-weight: 700; }
.dt-step { position: relative; display: flex; gap: 11px; padding-bottom: 20px; }
.dt-step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 2px; background: #e6eaf0; }
.dt-step.done:not(:last-child)::before { background: #1677ff; }
.dt-dot { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 50%; background: #e6eaf0; color: #8894a5; font-size: 12px; font-weight: 700; z-index: 1; }
.dt-step.done .dt-dot { background: #1677ff; color: #fff; }
.dt-step.active .dt-dot { background: #fff; color: #1677ff; box-shadow: 0 0 0 2px #1677ff inset; }
.dt-step b { display: block; font-size: 12.5px; color: #1d2129; }
.dt-step small { display: block; margin-top: 3px; font-size: 11.5px; color: #86909c; line-height: 1.5; }
.dt-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.dt-card { padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.dt-card-head { margin-bottom: 12px; font-size: 13.5px; font-weight: 700; color: #1d2129; }
.dt-card-head small { margin-left: 6px; font-weight: 400; color: #86909c; font-size: 12px; }
.dt-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f2f3f5; font-size: 12.5px; }
.dt-kv:last-child { border-bottom: none; }
.dt-kv span { color: #86909c; }
.dt-kv.hl b { color: #1677ff; font-size: 15px; }
/* 审批内容：四张核验单据缩略图，点击放大 */
.dt-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dt-doc { margin: 0; cursor: zoom-in; }
.dt-doc-body { position: relative; height: 250px; overflow: hidden; border: 1px solid #e0e3e8; border-radius: 8px; background: #eef1f5; }
.dt-doc-body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dt-doc:hover .dt-doc-body { border-color: #1677ff; box-shadow: 0 6px 16px rgba(22,119,255,.16); }
.dt-doc figcaption { margin-top: 7px; }
.dt-doc figcaption b { display: block; font-size: 12.5px; color: #1d2129; }
.dt-doc figcaption small { display: block; font-size: 11px; color: #86909c; }
/* 缺图时的 HTML 替身：按纸质单据的版式缩小显示 */
.dt-doc-replica.pd { position: absolute; left: 0; top: 0; width: 560px; padding: 22px 26px; background: #fff; transform: scale(.34); transform-origin: 0 0; font-family: "SimSun", "Songti SC", serif; color: #222; }
/* position: relative 而非 static，让 .pd-stamp 的绝对定位挂在单据自己身上 */
.dt-doc-replica.pd--large { position: relative; left: auto; top: auto; width: 760px; max-width: 100%; min-height: 1040px; transform: none; padding: 36px 40px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.pd-head { text-align: center; margin-bottom: 14px; }
.pd-head small { display: block; font-size: 13px; letter-spacing: .3em; color: #444; }
.pd-head h3 { margin: 6px 0 8px; font-size: 22px; letter-spacing: .12em; font-family: "SimHei", "Heiti SC", sans-serif; }
.pd-meta { display: flex; justify-content: space-between; font-size: 12px; color: #444; }
.pd-tb { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 12.5px; }
.pd-tb th, .pd-tb td { border: 1px solid #333; padding: 5px 8px; text-align: left; }
.pd-tb th { background: #f4f4f4; font-weight: 700; white-space: nowrap; }
.pd-tb .pd-sum td { font-weight: 700; }
.pd-note { margin: 0 0 14px; font-size: 12px; line-height: 1.8; color: #333; }
.pd-sign { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; }
.pd-stamp { position: absolute; right: 40px; bottom: 26px; width: 118px; height: 118px; display: grid; place-items: center; }
.pd-stamp i { position: absolute; inset: 0; border: 3px solid rgba(200,30,30,.75); border-radius: 50%; }
.pd-stamp i::after { content: "★"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%); color: rgba(200,30,30,.75); font-size: 30px; }
.pd-stamp span { position: absolute; bottom: 14px; font-size: 11px; color: rgba(200,30,30,.8); letter-spacing: .1em; }
.pd--large .pd-stamp { right: 60px; bottom: 40px; }
.dt-lightbox { position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 30px 30px; background: rgba(0,0,0,.78); cursor: zoom-out; }
/* 顶部标题条 + 扫描件／高清版切换 */
.dt-lightbox-bar { display: flex; align-items: center; gap: 12px; flex: none; max-width: 92vw; padding: 0 4px; color: #fff; cursor: default; }
.dt-lightbox-bar b { font-size: 14px; font-weight: 600; }
.dt-lightbox-bar small { font-size: 11.5px; color: rgba(255,255,255,.6); }
.dt-lb-switch { display: inline-flex; margin-left: 6px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; overflow: hidden; }
.dt-lb-tab { min-height: 26px; padding: 0 13px; border: none; background: transparent; color: rgba(255,255,255,.72); font-size: 12px; font-family: inherit; cursor: pointer; }
.dt-lb-tab + .dt-lb-tab { border-left: 1px solid rgba(255,255,255,.22); }
.dt-lb-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.dt-lb-tab.on { background: #1677ff; color: #fff; }
.dt-lightbox-body { position: relative; min-height: 0; max-width: 92vw; overflow: auto; cursor: default; }
/* 扫描件原图只有 227×330，用 height 撑满视口（max-height 只会缩小不会放大，点开后会显得跟缩略图一样小） */
.dt-lightbox-body img { display: block; width: auto; height: 78vh; max-width: 92vw; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #fff; image-rendering: auto; }
/* 高清版：矢量 HTML 复刻，文字不失真 */
.dt-lightbox-body.is-hd { max-height: 82vh; border-radius: 4px; }
.dt-lightbox-close { position: fixed; right: 24px; top: 18px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 16px; cursor: pointer; }
.dt-check { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; }
.dt-check:last-child { border-bottom: none; }
.dt-check-box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid #d5dae0; border-radius: 5px; color: #fff; font-size: 12px; }
.dt-check.on .dt-check-box { background: #1677ff; border-color: #1677ff; }
.dt-check div { flex: 1; min-width: 0; }
.dt-check b { display: block; font-size: 12.5px; }
.dt-check small { display: block; margin-top: 2px; font-size: 11.5px; color: #86909c; line-height: 1.5; }
.dt-btn { flex: none; min-height: 28px; padding: 0 14px; border: 1px solid #1677ff; border-radius: 7px; background: #fff; color: #1677ff; font-size: 12px; cursor: pointer; }
.dt-textarea { width: 100%; min-height: 72px; padding: 9px 11px; border: 1px solid #e0e3e8; border-radius: 9px; font-size: 12.5px; font-family: inherit; resize: vertical; }
.dt-actions { display: flex; gap: 9px; margin-top: 12px; }
.dt-primary { min-height: 34px; padding: 0 22px; border: none; border-radius: 8px; background: #1677ff; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.dt-ghost { min-height: 34px; padding: 0 22px; border: 1px solid #e0e3e8; border-radius: 8px; background: #fff; color: #4e5969; font-size: 13px; cursor: pointer; }
.dt-hint { margin: 9px 0 0; font-size: 11.5px; color: #f5a623; }
.dt-hint.ok { padding: 9px 12px; border-radius: 8px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 12.5px; line-height: 1.7; }
.dt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt-table th, .dt-table td { padding: 8px 10px; border-bottom: 1px solid #f2f3f5; text-align: left; }
.dt-table th { width: 45%; color: #86909c; font-weight: 400; }
.dt-table .hl td b { color: #1677ff; font-size: 15px; }
.dt-erp td.p2-blue { border-bottom: 1px solid #fff; }
.dt-erp .p2-blue .p2-blue-input { max-width: 220px; }

/* ==========================================================================
   任务1 第一步 · 生育期营养参数配比测算表
   ========================================================================== */
.cz--sheet .cz-body--sheet,
.cz-body.cz-body--sheet {
  display: block !important;
  width: 100% !important;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px 36px;
  background: #f4f5fa;
  box-sizing: border-box;
}
.nu { width: 100%; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.nu-head { padding: 16px 22px; border: 1px solid #dbe3f4; border-radius: 12px; background: #fff; }
.nu-head b { display: block; font-size: 16px; color: #1c2b45; }
.nu-head small { display: block; margin-top: 6px; font-size: 13px; color: #64708a; line-height: 1.85; }
.nu-card { padding: 18px 24px 22px; border: 1px solid #dbe3f4; border-radius: 12px; background: #fff; }
.nu-card h4 { margin: 0 0 14px; font-size: 14.5px; color: #1c64f2; }
.nu-hint { margin: -6px 0 14px; padding: 8px 12px; border-radius: 8px; background: #f2f7ff; border: 1px solid #d3e2fb; color: #43567c; font-size: 12px; line-height: 1.75; }
.nu-hint b { color: #1c64f2; }
.nu-hint-excel { display: block; margin-top: 4px; color: #217346; }
.nu-hint-excel code, .xl-table-tip code { background: #eef2f7; border: 1px solid #dbe2ea; border-radius: 4px; padding: 0 4px; font-family: "Consolas", monospace; font-size: 11px; color: #217346; }
/* 修正后需求/配比/全园需求：内置公式格，黄色底强调「系统自动算」 */
.nu-table--wide td.nu-calc { background: #fffdf2; }
.nu-table--wide td.nu-calc b { color: #8a6d1a; }
.nu-card h4 small { display: block; margin-top: 5px; font-weight: 400; font-size: 12.5px; color: #64708a; line-height: 1.8; }
.nu-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nu-table th, .nu-table td { padding: 9px 12px; border: 1px solid #e3e8f2; text-align: center; }
.nu-table thead th { background: #eef3fd; color: #35507d; font-weight: 600; }
.nu-table tbody th { background: #f7f9fd; color: #35507d; font-weight: 500; text-align: left; white-space: nowrap; }
.nu-table .nu-unit, .nu-table .nu-src, .nu-table .nu-fn { color: #7c8aa5; font-size: 11.5px; }
.nu-table .nu-src, .nu-table .nu-fn { text-align: left; }
.nu-calc { background: #fbfcfe; }
.nu-calc b { color: #1c2b45; font-variant-numeric: tabular-nums; }
.nu-pending { color: #b6c0d1; font-size: 11.5px; }
.nu-factor td.nu-calc { background: #f4f8ff; }
.nu-combined td.nu-calc { background: #e8f1ff; }
.nu-combined td.nu-calc b { color: #1c64f2; font-size: 14px; }
.nu-total th, .nu-total td { background: #f4f8ff; font-weight: 600; }
.nu-ratio th, .nu-ratio td { background: #fffaf0; }
.nu-ratio-val b { color: #b45309; font-size: 15px; }
.nu-ratio-val em { display: block; margin-top: 3px; font-size: 11px; color: #a8792c; font-style: normal; }
.nu-orchard th, .nu-orchard td { background: #f2fbf6; }
/* 表格里的可编辑下拉格：和蓝色输入格同一套视觉 */
.p2-blue-sel { padding: 0; }
.p2-blue-sel select.p2-blue-input { width: 100%; min-height: 30px; border: none; background: transparent; font-size: 12.5px; text-align: center; }
/* 节点3 的肥效表：12 个可填格 */
.cz-ins-table--edit td.p2-blue { padding: 0; }
.cz-ins-table--edit .p2-blue-input { width: 100%; min-width: 52px; text-align: center; }

/* ==========================================================================
   支线任务 · 林业保险方案智能决策系统（AHP-TOPSIS）
   ========================================================================== */
.stage--topsis { --skin: #15803d; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.tp { display: flex; flex-direction: column; height: 100%; background: #eef4ef; }
.tp-top { flex: none; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; background: linear-gradient(90deg, #14532d, #166534 60%, #15803d); color: #fff; }
.tp-back { width: 30px; height: 30px; border: none; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font-size: 15px; cursor: pointer; }
.tp-brand b { font-size: 16px; letter-spacing: .5px; }
.tp-brand small { margin-left: 12px; font-size: 12px; color: #bbf7d0; }
.tp-user { margin-left: auto; font-size: 12px; color: #d1fae5; }
.tp-body { flex: 1; min-height: 0; display: flex; }
.tp-side { flex: none; width: 148px; padding: 14px 10px; background: #14532d; display: flex; flex-direction: column; gap: 4px; }
.tp-nav { padding: 10px 14px; border: none; border-radius: 9px; background: transparent; color: #bbf7d0; font-size: 13px; text-align: left; cursor: pointer; }
.tp-nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.tp-nav.on { background: #fff; color: #14532d; font-weight: 600; }
.tp-main { flex: 1; min-width: 0; overflow: auto; padding: 16px 20px 26px; }
.tp-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tp-step { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid #cfe6d6; border-radius: 26px; background: #fff; font-size: 13px; color: #4b6357; }
.tp-step i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #e2efe7; color: #4b6357; font-size: 12px; font-style: normal; }
.tp-step.done { border-color: #a7d8bb; color: #15803d; }
.tp-step.done i { background: #15803d; color: #fff; }
.tp-step.on { border-color: #15803d; background: #f0fdf4; color: #14532d; font-weight: 600; }
.tp-step.on i { background: #15803d; color: #fff; }
.tp-step-sep { color: #b9cfc2; font-style: normal; }
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.tp-grid--two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tp-grid--one { grid-template-columns: 1fr; }
.tp-card { padding: 14px 16px 16px; border: 1px solid #d6e6dc; border-radius: 12px; background: #fff; }
.tp-card h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 13.5px; color: #14532d; }
.tp-card h4 small { margin-left: auto; font-weight: 400; font-size: 11.5px; color: #7d9188; text-align: right; line-height: 1.6; }
.tp-no { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: #15803d; color: #fff; font-size: 12px; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tp-table th, .tp-table td { padding: 6px 8px; border: 1px solid #e3ece7; text-align: center; }
.tp-table thead th { background: #eef7f1; color: #2c5c42; font-weight: 600; }
.tp-table tbody th { background: #f7fbf9; color: #2c5c42; font-weight: 500; text-align: left; white-space: nowrap; }
.tp-table--mini th, .tp-table--mini td { padding: 5px 8px; }
.tp-table .p2-blue { padding: 0; }
.tp-table .p2-blue-input { width: 100%; min-width: 44px; text-align: center; }
.tp-derived th, .tp-derived td { background: #f4faf6; }
.tp-derived td b { color: #15803d; font-variant-numeric: tabular-nums; }
.tp-bad, td.tp-bad { color: #dc2626; }
.tp-warn { color: #d97706; }
.tp-sub { margin-top: 13px; }
.tp-sub > b { display: block; margin-bottom: 7px; font-size: 12.5px; color: #14532d; }
.tp-sub > small { display: block; margin: -4px 0 7px; font-size: 11.5px; color: #7d9188; line-height: 1.7; }
.tp-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.tp-rules { padding: 11px 13px; border: 1px solid #e3ece7; border-radius: 10px; background: #f9fcfa; }
.tp-rules-head { margin-bottom: 9px; font-size: 12.5px; font-weight: 600; color: #14532d; }
.tp-rule { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12px; color: #40544a; }
.tp-rule-label { min-width: 154px; }
.tp-thres { width: 92px; min-height: 27px; padding: 0 8px; border: 1px solid #cfe0d6; border-radius: 6px; background: #eaf4ff; font-size: 12px; }
.tp-rule i { font-style: normal; font-size: 11.5px; color: #7d9188; }
.tp-verdict { font-size: 14px; }
.tp-ok { color: #15803d; }
.tp-no-mark { color: #dc2626; }
.tp-table tr.bad th, .tp-table tr.bad td { background: #fef5f5; }
.tp-warn-note { margin: 8px 0 0; padding: 7px 10px; border-radius: 7px; background: #fef7f3; color: #b45309; font-size: 11.5px; line-height: 1.7; }
.tp-matrix td.tp-diag { background: #f3f7f4; color: #7d9188; }
.tp-cell { min-width: 46px; }
.tp-wrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: #40544a; }
.tp-wrow span { flex: none; width: 88px; }
.tp-wbar { flex: 1; height: 8px; border-radius: 5px; background: #eaf2ec; overflow: hidden; }
.tp-wbar b { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4ade80, #15803d); }
.tp-wrow em { flex: none; width: 46px; text-align: right; font-style: normal; font-variant-numeric: tabular-nums; color: #14532d; }
.tp-cr th, .tp-cr td { background: #f0fdf4; }
.tp-cr td b { color: #15803d; }
.tp-pass { margin: 8px 0 0; padding: 6px 10px; border-radius: 7px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 12px; }
.tp-fail { margin: 8px 0 0; padding: 6px 10px; border-radius: 7px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12px; }
.tp-tip { margin: 8px 0 0; font-size: 11.5px; color: #7d9188; line-height: 1.75; }
.tp-actions .tp-tip { margin: 0; }
/* AHP 参数设置面板（权重方法 / 判断标度 / 一致性阈值 / 自动一致性检验） */
.tp-setup { margin-top: 12px; }
.tp-sel { min-width: 168px; min-height: 27px; padding: 0 8px; border: 1px solid #cfe0d6; border-radius: 6px; background: #eaf4ff; font-size: 12px; }
.tp-static { font-size: 12px; color: #40544a; }
.tp-check-box { width: 14px; height: 14px; accent-color: #15803d; cursor: pointer; }
/* 标准化公式设置（效益型／成本型，可编辑），位于「标准化后的加权决策矩阵」上方 */
.tp-formula { padding: 11px 13px; border: 1px solid #e3ece7; border-radius: 10px; background: #f9fcfa; }
.tp-formula-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.tp-formula-row:last-child { margin-bottom: 0; }
.tp-formula-label { flex: none; min-width: 62px; font-size: 12px; font-weight: 600; color: #40544a; }
.tp-formula-input { flex: 1; min-height: 28px; padding: 2px 9px; border: 1px solid #9db4d8; border-radius: 6px; background: #eaf1fb; color: #1d2b3f; font-size: 12.5px; font-family: "Consolas", "Segoe UI", monospace; text-align: left; }
.tp-formula-input:focus { outline: none; border-color: #2f6fd6; box-shadow: 0 0 0 2px rgba(47,111,214,.18); background: #fff; }
.tp-formula-input:disabled { background: #e3eaf5; color: #8ea3c4; }
.tp-check-box:disabled { cursor: not-allowed; }
/* 硬约束规则行删除 / 恢复 */
.tp-rule-del { flex: none; min-height: 25px; padding: 0 10px; border: 1px solid #f3d4d4; border-radius: 6px; background: #fff; color: #dc2626; font-size: 11.5px; white-space: nowrap; cursor: pointer; }
.tp-rule-del:hover { background: #fef2f2; }
.tp-rule-del:disabled { color: #e2b4b4; border-color: #f6e3e3; cursor: not-allowed; }
.tp-rule .tp-rule-label { min-width: 132px; }
.tp-rule .tp-thres { width: 78px; }
.tp-rule-restore { margin-top: 2px; }
.tp-rule-restore .p2chip { border-style: dashed; }
/* 方案未导入时的派生指标占位 */
.tp-pending { color: #b6c4bc; }
/* TOPSIS 输出结果表：方案 | AHP-TOPSIS贴近度 | 排名 */
.tp-output th { font-variant-numeric: tabular-nums; }
.tp-output tr.best th, .tp-output tr.best td { background: #ecfdf5; color: #15803d; }
.tp-output tr.best td b { font-size: 13px; }
.tp-attr-note { color: #7d9188; font-size: 11.5px; }
.tp-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 13px; }
.tp-actions--final { padding-top: 12px; border-top: 1px solid #eaf1ec; }
.tp-primary { min-height: 32px; padding: 0 18px; border: none; border-radius: 8px; background: #15803d; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tp-primary:disabled { background: #c3d8cb; cursor: not-allowed; }
.tp-primary--lg { min-height: 38px; padding: 0 28px; font-size: 13.5px; }
.tp-ghost { min-height: 32px; padding: 0 16px; border: 1px solid #cfe0d6; border-radius: 8px; background: #fff; color: #2c5c42; font-size: 12.5px; cursor: pointer; }
.tp-ghost:disabled { color: #a9bcb1; cursor: not-allowed; }
.tp-rank tr.best th, .tp-rank tr.best td { background: #ecfdf5; font-weight: 600; }
.tp-rank tr.best .tp-conc { color: #15803d; }
.tp-rank tr.out th, .tp-rank tr.out td { color: #9aa8a0; }
.tp-summary { margin: 11px 0 0; padding: 10px 13px; border-radius: 9px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; font-size: 12.5px; line-height: 1.85; }
.tp-done { padding: 6px 12px; border-radius: 8px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 12.5px; }
.tp-card--result { border-color: #bbf7d0; }
.tp-card--brief .tp-brief { margin: 0 0 10px; font-size: 13px; color: #40544a; line-height: 1.95; }
.tp-brief-mix { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 11px 14px; border-radius: 10px; background: #f7fbf9; border: 1px solid #e3ece7; font-size: 12.5px; color: #40544a; }
.tp-brief-mix b { color: #14532d; }

/* 支线任务 · Python 算法练习横幅与终端样式 */
.tp-py-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px; margin-bottom: 16px; border-radius: 10px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}
/* 尚未运行 Python 代码时的可选练习横幅（非门禁，中性灰蓝色调） */
.tp-py-banner--todo { background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%); border-color: #cbd5e1; box-shadow: none; }
.tp-py-banner--todo .tp-py-banner-text b { color: #334155; }
.tp-py-banner--todo .tp-py-banner-text span { color: #64748b; }
.tp-py-banner-info { display: flex; align-items: center; gap: 12px; }
.tp-py-banner-icon { font-size: 26px; }
.tp-py-banner-text { display: flex; flex-direction: column; gap: 2px; }
.tp-py-banner-text b { font-size: 13.5px; color: #166534; }
.tp-py-banner-text span { font-size: 12px; color: #15803d; }
.tp-py-banner-text span b { color: #047857; text-decoration: underline; }
.tp-py-banner-btn {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: #ffffff; color: #15803d; border: 1px solid #86efac; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.tp-py-banner-btn:hover { background: #15803d; color: #ffffff; border-color: #15803d; }

.py-ide-container {
  display: flex; flex-direction: column; background: #1e1e1e;
  border-radius: 10px; overflow: hidden; border: 1px solid #333333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
  margin-bottom: 20px;
}
/* 全屏在线编辑器模式：把整个 IDE 容器铺满视口，像独立网页一样 */
.py-ide-container.pyide-fs {
  position: fixed; inset: 0; z-index: 4000; margin: 0; border-radius: 0;
  border: 0; box-shadow: none;
}
.py-ide-container.pyide-fs .py-editor-body { flex: 1; min-height: 0; overflow: auto; }
.py-ide-container.pyide-fs .py-code-stack,
.py-ide-container.pyide-fs .py-code-hl,
.py-ide-container.pyide-fs .py-code-editor { min-height: calc(100vh - 320px); }
.py-ide-container.pyide-fs .py-terminal-body { max-height: 34vh; }
.py-btn--fs { background: #0e639c; color: #fff; }
.py-btn--fs:hover { background: #1177bb; }
/* 「模型分析」进入时的提示卡：代码未加载 */
.py-ide-await .py-await-body { padding: 34px 26px 40px; text-align: center; color: #cfcfcf; }
.py-await-t { margin: 0 0 8px; font-size: 1rem; color: #fff; }
.py-await-d { margin: 0 auto 20px; max-width: 520px; font-size: .84rem; line-height: 1.7; color: #9aa0a6; }
.py-ide-await .py-btn--run { font-size: .9rem; padding: 11px 22px; }
.py-ide-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #252526; border-bottom: 1px solid #333333;
}
.py-ide-dots { display: flex; align-items: center; gap: 6px; }
.py-dot { width: 11px; height: 11px; border-radius: 50%; }
.py-dot--red { background: #ff5f56; }
.py-dot--yellow { background: #ffbd2e; }
.py-dot--green { background: #27c93f; }
.py-ide-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #cccccc; }
.py-file-icon { font-size: 15px; }
.py-filename { font-weight: 600; color: #ffffff; letter-spacing: 0.5px; }
.py-file-badge { font-size: 11px; color: #858585; background: #333333; padding: 2px 8px; border-radius: 4px; }
.py-ide-actions { display: flex; align-items: center; gap: 10px; }
.py-btn {
  padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.py-btn--sync { background: #2d3748; color: #e2e8f0; border-color: #4a5568; }
.py-btn--sync:hover { background: #4a5568; color: #ffffff; }
.py-btn--reset { background: #3c3c3c; color: #d4d4d4; }
.py-btn--reset:hover { background: #4c4c4c; color: #ffffff; }
.py-btn--run {
  background: #10b981; color: #ffffff; border-color: #059669;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}
.py-btn--run:hover { background: #059669; }
.py-btn--return { background: #3b82f6; color: #ffffff; border-color: #2563eb; }
.py-btn--return:hover { background: #2563eb; }

.py-editor-body {
  padding: 16px 0; background: #1e1e1e; overflow-x: auto;
  border-bottom: 2px solid #2d2d2d;
}
/* 整段可编辑源码编辑器：左侧行号栏 + 右侧透明文本框，共用 24px 行高对齐 */
.py-code-editor-wrap { display: flex; align-items: flex-start; padding: 0 16px; gap: 0; }
.py-code-gutter {
  margin: 0; padding: 0 16px 0 0; text-align: right;
  color: #858585; user-select: none; flex-shrink: 0;
  font-family: inherit; font-size: 13.5px; line-height: 24px;
  white-space: pre; border-right: 1px solid #2d2d2d;
}
/* 高亮层 + 文本框叠在同一格里：pre 负责上色显示，textarea 文字透明只留光标，两者靠 grid 同格对齐 */
.py-code-stack { display: grid; flex: 1 1 auto; min-width: 0; }
.py-code-hl, .py-code-editor {
  grid-area: 1 / 1; margin: 0; padding: 0 0 0 16px;
  font-family: inherit; font-size: 13.5px; line-height: 24px;
  white-space: pre; tab-size: 4; -moz-tab-size: 4;
}
.py-code-hl { color: #d4d4d4; pointer-events: none; overflow: hidden; }
.py-code-editor {
  border: none; outline: none; background: transparent; color: transparent;
  overflow-x: auto; overflow-y: hidden; resize: none; caret-color: #10b981;
}
.py-code-editor::selection { background: rgba(16, 185, 129, .28); }
.py-code-editor:focus { outline: none; }
.py-kw { color: #c586c0; font-weight: bold; }
.py-var { color: #9cdcfe; }
.py-fn { color: #dcdcaa; }
.py-num { color: #b5cea8; }
.py-str { color: #ce9178; }
.py-cm { color: #6a9955; font-style: italic; }
.py-blank { color: #f48771; background: rgba(244, 135, 113, .14); border-radius: 3px; }

.py-terminal-panel {
  background: #181818; display: flex; flex-direction: column;
}
.py-terminal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #222222; border-bottom: 1px solid #2d2d2d;
}
.py-term-tabs { display: flex; align-items: center; gap: 10px; }
.py-term-tab {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  color: #cccccc; font-weight: 600; font-family: -apple-system, sans-serif;
}
.py-term-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.py-term-status { font-size: 11.5px; }
.py-term-ok { color: #10b981; font-weight: 600; }
.py-term-wait { color: #9ca3af; }
.py-terminal-body {
  padding: 14px 18px; max-height: 240px; overflow-y: auto; background: #121212;
}
.py-term-text {
  margin: 0; font-size: 12.5px; line-height: 1.6; color: #4ade80;
  white-space: pre-wrap; word-break: break-all; font-family: inherit;
}
.py-terminal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; background: #1f2937; border-top: 1px solid #374151;
}
.py-term-tip { font-size: 12px; color: #93c5fd; font-family: -apple-system, sans-serif; }
.py-term-go-btn {
  padding: 6px 16px; background: #10b981; color: #ffffff; border: none;
  border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: -apple-system, sans-serif;
}
.py-term-go-btn:hover { background: #059669; }

@media (max-width: 1360px) {
  .tp-grid, .tp-grid--two { grid-template-columns: 1fr; }
}

/* ---------------- 任务3 采购测算工作台（单页面+原始凭证+浅蓝/浅绿体系） ---------------- */
.xl-title-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.xl-title-tools .p2btn { background: #fff; color: #217346; border: 1px solid #cce5d6; font-weight: 600; }
.xl-title-tools .p2btn:hover { background: #eaf5ee; }
.xl-title-tools .p2btn:disabled { opacity: 0.6; cursor: not-allowed; }
.xl-voucher-pane { margin: 16px 18px 20px; padding: 16px 18px; border: 1px solid #d9e2ec; border-radius: 8px; background: #fafbfc; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.xl-voucher-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; border-bottom: 1px solid #eef2f6; padding-bottom: 8px; }
.xl-voucher-head b { font-size: 15px; color: #1e3a8a; }
.xl-voucher-head span { font-size: 11.5px; color: #64748b; }
.xl-voucher-head { flex-wrap: wrap; gap: 8px 14px; }
.xl-receive-btn { background: #217346 !important; color: #fff !important; border-color: #1b5e37 !important; font-weight: 600; align-self: center; white-space: nowrap; }
.xl-receive-btn:hover:not(:disabled) { background: #1b5e37 !important; }
.xl-voucher-received { color: #217346 !important; font-weight: 600; font-size: 12px !important; align-self: center; }
.xl-quotes-empty { margin: 8px 0 2px; padding: 22px 18px; border: 1px dashed #c7d2e0; border-radius: 8px; background: #fff; text-align: center; font-size: 12.5px; color: #64748b; }
.xl-voucher-top-img { margin: 4px 0 14px; text-align: center; }
.xl-voucher-top-img img { max-width: 100%; max-height: 420px; border: 1px solid #d9e2ec; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* 三方比价单卡片网格 */
.xl-quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) {
  .xl-quotes-grid { grid-template-columns: 1fr; }
}
.xl-quote-card {
  border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all .2s ease;
}
.xl-quote-card:hover { border-color: #94a3b8; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.xl-quote-card.is-winner {
  border: 1.5px solid #10b981; background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}
.xl-quote-card-head {
  padding: 8px 12px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #eef2f6; background: #f8fafc;
}
.xl-quote-card.is-winner .xl-quote-card-head { background: #dcfce7; border-bottom-color: #bbf7d0; }
.xl-quote-tag { font-size: 12px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 6px; }
.xl-quote-badge {
  font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600;
  background: #e2e8f0; color: #475569;
}
.xl-quote-card.is-winner .xl-quote-badge { background: #10b981; color: #ffffff; }
.xl-quote-zoom {
  font-size: 11.5px; color: #2563eb; background: transparent; border: 1px solid #bfdbfe;
  border-radius: 4px; padding: 2px 8px; cursor: pointer; transition: all .15s;
}
.xl-quote-zoom:hover { background: #eff6ff; border-color: #3b82f6; }

.xl-quote-imgbox {
  position: relative; height: 180px; background: #f1f5f9; display: flex;
  justify-content: center; align-items: center; cursor: pointer; overflow: hidden;
}
.xl-quote-imgbox img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
.xl-quote-imgbox:hover img { transform: scale(1.03); }
.xl-quote-hover-tip {
  position: absolute; bottom: 6px; right: 8px; background: rgba(15, 23, 42, 0.75);
  color: #fff; font-size: 10.5px; padding: 2px 6px; border-radius: 4px; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.xl-quote-imgbox:hover .xl-quote-hover-tip { opacity: 1; }

.xl-quote-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.xl-quote-supplier-name { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.xl-quote-prices { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: #475569; margin-bottom: 4px; }
.xl-quote-prices b { font-size: 13px; color: #0f172a; }
.xl-quote-card.is-winner .xl-quote-prices b { color: #047857; }
.xl-quote-status { font-size: 11px; color: #64748b; margin-top: 4px; border-top: 1px dashed #e2e8f0; padding-top: 4px; }
.xl-quote-card.is-winner .xl-quote-status { color: #059669; font-weight: 600; border-top-color: #bbf7d0; }

.xl-voucher-summary { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; color: #334155; }
.xl-voucher-summary span b { color: #047857; }

/* 报价单放大全屏灯箱 */
.xl-lightbox {
  position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: center; padding: 24px;
}
.xl-lightbox-inner {
  background: #ffffff; border-radius: 10px; max-width: 900px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.xl-lightbox-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.xl-lightbox-bar b { font-size: 14px; color: #0f172a; }
.xl-lightbox-bar small { color: #64748b; font-weight: normal; margin-left: 6px; }
.xl-lightbox-close {
  background: transparent; border: none; font-size: 18px; color: #64748b; cursor: pointer; padding: 2px 8px; border-radius: 4px;
}
.xl-lightbox-close:hover { background: #e2e8f0; color: #0f172a; }
.xl-lightbox-imgbox {
  flex: 1; overflow: auto; padding: 16px; background: #f1f5f9; display: flex; justify-content: center; align-items: center;
}
.xl-lightbox-imgbox img { max-width: 100%; max-height: 70vh; object-fit: contain; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.xl-lightbox-foot {
  display: flex; align-items: center; gap: 20px; padding: 10px 18px; border-top: 1px solid #e2e8f0;
  background: #fff; font-size: 12.5px; color: #334155;
}
.xl-lightbox-foot b { color: #047857; }
.xl-winner-tag {
  margin-left: auto; background: #dcfce7; color: #15803d; padding: 2px 10px; border-radius: 4px; font-weight: 600; font-size: 11.5px;
}

.xl-table-pane { margin: 10px 18px 18px; }
.xl-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.xl-table-header h4 { margin: 0; font-size: 14px; color: #1e293b; }
.xl-supplier-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xl-supplier-pick-label { font-size: 11.5px; color: #64748b; }
.xl-supplier-pick-btn { border: 1px solid #cbd5e1; background: #fff; color: #334155; font-size: 11.5px;
  font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.xl-supplier-pick-btn.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.xl-supplier-pick-btn.is-winner.on { background: #10b981; border-color: #10b981; }
.xl-supplier-pick-note { font-size: 11px; color: #64748b; margin-left: 4px; }
.xl-table-legend { display: flex; gap: 12px; font-size: 11.5px; }
.legend-box { padding: 3px 10px; border-radius: 4px; border: 1px solid #cbd5e1; font-weight: 600; }
.legend-blue { background: #D9E2F3; color: #1f3864; border-color: #8EA9DB; }
.legend-white { background: #FFFFFF; color: #333333; border-color: #c2c9d1; }
.legend-green { background: #E2F0D9; color: #276A3C; border-color: #A9D08E; }

.xl-grid--p2 { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.xl-grid--p2 th, .xl-grid--p2 td { border: 1px solid #c2c9d1; padding: 6px 10px; }
.xl-grid--p2 .xl-cell-label { font-weight: 600; background: #f8fafc; color: #334155; }

/* 蓝底单元格：学生输入/测算填报区（背景 #D9E2F3，边框 #8EA9DB） */
.xl-grid--p2 .xl-cell-blue, .xl-grid--p2 td.p2-blue { background-color: #D9E2F3 !important; color: #1f3864 !important; }
.xl-grid--p2 .p2-blue-input {
  width: 100%; max-width: 130px; padding: 4px 6px;
  border: 1px solid #8EA9DB !important; border-radius: 3px;
  background-color: #D9E2F3 !important; font-weight: 700; color: #1f3864 !important;
  font-family: inherit; font-size: 12.5px; text-align: right;
  transition: all .15s ease;
}
.xl-grid--p2 .p2-blue-input:focus {
  outline: 2px solid #2f5597 !important; background-color: #ffffff !important; box-shadow: 0 0 0 2px rgba(47,85,151,0.2);
}
.xl-grid--p2 .p2-blue-input:disabled { opacity: 0.8; cursor: not-allowed; }

/* 白底单元格：已知数据展示区（背景 #FFFFFF） */
.xl-grid--p2 .xl-cell-white { background-color: #FFFFFF !important; color: #333333 !important; text-align: right; }
.xl-grid--p2 .p2-white-input {
  width: 100%; max-width: 120px; padding: 4px 6px;
  border: 1px solid #c2c9d1 !important; border-radius: 3px;
  background-color: #FFFFFF !important; color: #333333 !important;
  font-family: inherit; font-size: 12.5px; text-align: right;
}
.xl-grid--p2 .p2-white-input:focus { outline: 2px solid #64748b !important; }

/* 绿底单元格：公式自动汇总区（背景 #E2F0D9，边框 #A9D08E，文字加粗深绿） */
.xl-grid--p2 .xl-cell-green { background-color: #E2F0D9 !important; color: #276A3C !important; font-weight: 700; text-align: right; }
.xl-grid--p2 .p2-green-input {
  width: 100%; max-width: 130px; padding: 4px 6px;
  border: 1px solid #A9D08E !important; border-radius: 3px;
  background-color: #E2F0D9 !important; font-weight: 700; color: #276A3C !important;
  font-family: inherit; font-size: 12.5px; text-align: right;
  transition: all .15s ease;
}
.xl-grid--p2 .p2-green-input:focus {
  outline: 2px solid #276A3C !important; background-color: #ffffff !important; box-shadow: 0 0 0 2px rgba(39,106,60,0.2);
}
.xl-grid--p2 .p2-green-input:disabled { opacity: 0.8; cursor: not-allowed; }
.xl-grid--p2 .xl-cell-unit { text-align: center; color: #64748b; background: #f8fafc; width: 60px; font-weight: 500; }
.xl-grid--p2 .xl-cell-center { text-align: center !important; }

.xl-quotes-head { padding: 12px 14px 0; }
.xl-quotes-head b { font-size: 14px; color: #1a3c2a; }
.xl-quotes-head small { display: block; margin-top: 5px; font-size: 12px; color: #6b7a72; line-height: 1.75; }
.xl-input-row td.p2-blue { background: #eaf4ff; }
.xl-pending-cell { color: #b6c0d1; }
.xl-span-num { text-align: right; font-variant-numeric: tabular-nums; }
.xl-source { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px; padding: 10px 13px; border: 1px dashed #9fcdb3; border-radius: 8px; background: #f4fbf7; font-size: 11.5px; color: #1a5c38; }
.xl-source em { font-style: normal; }
.xl-hint { font-size: 12px; color: #5c6b63; }

/* ---------------- 任务4 审批单的补充样式 ---------------- */
.dt-lead { margin: 0 0 8px; font-size: 12.5px; color: #4e5969; }
.dt-check-src { display: block; margin-top: 4px; font-size: 11px; color: #a5b0bd; font-style: normal; }
.dt-step small { display: block; margin-top: 2px; font-size: 11px; color: #98a4b3; }

/* ---------------- 入口卡上的协办说明 ---------------- */
.p2-entry-co { margin: 6px 0 0; padding: 6px 9px; border-radius: 7px; background: #f5f7fa; color: #5b6b7c; font-size: 11.5px; line-height: 1.65; }

/* ---------------- 保险方案导入·文件选择对话框（反馈#3） ---------------- */
.tp-import-mask { position: absolute; inset: 0; z-index: 1000; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: center; padding: 20px; animation: p2fadein .18s ease-out; }
.tp-import-dialog { width: min(560px, 94vw); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.32); display: flex; flex-direction: column; }
.tp-import-head { display: flex; align-items: center; height: 46px; padding: 0 16px; background: #1f7a44; color: #fff; font-weight: 700; font-size: 14px; }
.tp-import-x { margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
.tp-import-body { padding: 16px; }
.tp-import-note { margin: 0 0 12px; color: #56636f; font-size: 12.5px; line-height: 1.7; }
.tp-import-path { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #f4f6f8; border-radius: 8px; font-size: 12.5px; color: #405060; margin-bottom: 12px; }
.tp-import-path b { color: #1f2d3d; font-weight: 700; }
.tp-import-list { border: 1px solid #dde3ea; border-radius: 8px; overflow: hidden; }
.tp-import-file { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: #fff; text-align: left; cursor: pointer; transition: background .12s; }
.tp-import-file:hover { background: #eef7f1; }
.tp-import-file.on { background: #e5f4ea; box-shadow: inset 3px 0 0 #1f7a44; }
.tp-import-file-ico { width: 38px; height: 38px; border-radius: 8px; background: #1f7a44; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; flex: none; }
.tp-import-file-main b { display: block; font-size: 13px; color: #1f2d3d; }
.tp-import-file-main small { display: block; margin-top: 2px; font-size: 11.5px; color: #8a97a5; }
.tp-import-file-check { margin-left: auto; color: #1f7a44; font-weight: 800; font-size: 16px; }
.tp-import-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #edf0f3; }
.tp-import-btn { min-width: 84px; height: 34px; border: 1px solid #ccd4dd; border-radius: 8px; background: #fff; color: #40505f; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tp-import-btn.primary { background: #1f7a44; border-color: #1f7a44; color: #fff; }
.tp-import-btn.primary:disabled { background: #a9c8b6; border-color: #a9c8b6; cursor: not-allowed; }

/* 任务3「粘贴」小弹窗：跟 .tp-import-* 视觉一致，但用 fixed 定位（挂在 .xl 容器外层，不依赖父级 relative） */
.s8p-mask { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: center; padding: 20px; animation: p2fadein .18s ease-out; }
.s8p-dialog { width: min(480px, 94vw); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.32); display: flex; flex-direction: column; }
.s8p-head { display: flex; align-items: center; height: 46px; padding: 0 16px; background: #0284c7; color: #fff; font-weight: 700; font-size: 14px; }
.s8p-x { margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
.s8p-body { padding: 16px; }
.s8p-note { margin: 0 0 12px; color: #56636f; font-size: 12.5px; line-height: 1.7; }
.s8p-box { width: 100%; min-height: 90px; resize: vertical; box-sizing: border-box; border: 1.5px dashed #93c5fd; border-radius: 8px; padding: 10px 12px; font: 13px/1.6 "SF Mono", Consolas, monospace; color: #0f172a; background: #f0f9ff; }
.s8p-box:focus { outline: none; border-style: solid; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,.15); }
.s8p-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #edf0f3; }
.s8p-btn { min-width: 84px; height: 34px; border: 1px solid #ccd4dd; border-radius: 8px; background: #fff; color: #40505f; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.s8p-btn.primary { background: #0284c7; border-color: #0284c7; color: #fff; }

/* ---------------- 真实文件选择控件（问题反馈9.9：导入/接收要真的选文件） ---------------- */
.p2-filepick { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px dashed #b9c6d1; border-radius: 9px; background: #f8fafc; cursor: pointer; transition: border-color .12s, background .12s; }
.p2-filepick:first-of-type { margin-top: 0; }
.p2-filepick:hover { border-color: #1f7a44; background: #f0f8f3; }
.p2-filepick.on { border-style: solid; border-color: #1f7a44; background: #e9f5ee; }
.p2-filepick-ico { width: 34px; height: 34px; border-radius: 8px; background: #e2e8f0; color: #475569; font-size: 15px; display: grid; place-items: center; flex: none; }
.p2-filepick.on .p2-filepick-ico { background: #1f7a44; color: #fff; }
.p2-filepick-main { flex: 1; min-width: 0; }
.p2-filepick-main b { display: block; font-size: 12.5px; color: #1f2d3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-filepick-main small { display: block; margin-top: 2px; font-size: 11px; color: #8a97a5; }
.p2-filepick-btn { flex: none; padding: 5px 12px; border-radius: 7px; background: #1f7a44; color: #fff; font-size: 11.5px; font-weight: 700; }
.p2-filepick-count { margin-top: 12px; padding: 7px 10px; border-radius: 7px; background: #f4f6f8; color: #5b6b7a; font-size: 12px; font-weight: 600; text-align: center; }
.p2-filepick-count.ok { background: #e5f4ea; color: #1f7a44; }

/* ---------------- TOPSIS 第四步操作指引（反馈#5） ---------------- */
.tp-howto { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #cfe3d6; border-left: 3px solid #1f7a44; border-radius: 8px; background: #f2f9f4; }
.tp-howto b { display: block; margin-bottom: 6px; font-size: 12.5px; color: #1f5d38; }
.tp-howto ol { margin: 0; padding-left: 18px; }
.tp-howto li { font-size: 12px; line-height: 1.75; color: #4a5a52; }

/* ---------------- 任务3 测算表：派生格只读灰显 + 操作提示（反馈#7 挖空） ---------------- */
.xl-cell-auto { background: #f1f3f5 !important; color: #48525c !important; cursor: not-allowed; }
.xl-cell-auto:focus { outline: none; }
.xl-table-tip { margin: 6px 0 0; padding: 7px 10px; border-radius: 6px; background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a12; font-size: 11.5px; line-height: 1.7; }
