/* ============================================================
 * rectify_cost.css —— 成本透明度（Cost 切片）
 * 视觉：浅蓝白体系，零深色 UI；遮罩复用 .v10-mask / .mx-mask 同款
 * 全部 .cost-* 前缀
 * ============================================================ */

/* ---- Cost2 · 统一生成前成本确认弹窗 ---- */
.cost-mask {
  position: fixed; inset: 0; background: rgba(30, 42, 58, .32);
  z-index: 140; display: none; align-items: center; justify-content: center; padding: 16px;
}
.cost-mask.show { display: flex; }
.cost-dialog {
  background: #fff; width: min(520px, 94vw); max-height: 88vh; overflow: auto;
  border-radius: 12px; border: 1px solid #DCE6F2;
  box-shadow: 0 18px 60px rgba(40, 70, 120, .25);
}
.cost-d-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px 0;
}
.cost-d-head h3 { margin: 0; font-size: 16px; color: #2B3A55; }
.cost-x {
  background: transparent; border: none; cursor: pointer;
  color: #8A93A5; font-size: 16px; padding: 2px 6px;
}
.cost-x:hover { color: #4A5B78; }

/* 明细行：模型 / 分辨率·镜头·时长·次数 / 单次金额 */
.cost-rows { margin: 12px 18px 0; border: 1px solid #E3ECF7; border-radius: 12px; overflow: hidden; }
.cost-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; border-bottom: 1px solid #EEF3FA; font-size: 13px;
}
.cost-row:last-child { border-bottom: none; }
.cost-row:nth-child(odd) { background: #ffffff; }
.cr-model { color: #2B3A55; font-weight: 600; min-width: 130px; }
.cr-meta { flex: 1; color: #606266; font-size: 12px; }
.cr-each { color: #3D6FB4; font-weight: 600; }

/* 金额行 */
.cost-amount {
  margin: 14px 18px 0; padding: 12px 14px;
  background: #F2F7FE; border: 1px solid #DCE6F2; border-radius: 12px;
  font-size: 14px; color: #2B3A55; text-align: center;
}
.cost-amount b { color: #2B6CB0; font-size: 20px; }

/* 口径脚注 */
.cost-footnote {
  margin: 10px 18px 0; font-size: 12px; color: #606266; line-height: 1.5;
}
.cost-footnote b { color: #3D6FB4; }
.cost-budget { color: #8A93A5; }

/* 演示态标 */
.cost-demo-tag {
  display: inline-block; font-size: 12px; font-weight: 600; vertical-align: middle;
  margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #FFF7DB; border: 1px solid #E6D28B; color: #6E5A1D;
}
/* 双轨口径行（金额行下） */
.cost-dualnote { margin: 8px 18px 0; font-size: 12px; color: #2E7D4F; text-align: center; }
/* 数据更新时间 */
.cost-updated { margin: 6px 18px 0; font-size: 12px; color: #8A93A5; text-align: center; }

/* 明细行内双轨金额 */
.cr-each { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cr-off { color: #3D6FB4; font-size: 12px; }
.cr-plus { color: #f53f3f; font-size: 12px; }
.cr-eq { color: #2B6CB0; font-weight: 600; font-size: 13px; }

/* 按钮 */
.cost-btns { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px 18px; }
.cost-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid #C9D8EC; background: #fff; color: #3D5A99;
}
.cost-btn:hover { background: #F2F7FE; }
.cost-btn-primary { background: #3D6FB4; border-color: #3D6FB4; color: #fff; }
.cost-btn-primary:hover { background: #3563A4; }

/* 自兜底 toast（页面无自带 toast 时） */
.cost-self-toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  background: #F2F7FE; color: #2B3A55; border: 1px solid #9FBEDE; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; z-index: 220; max-width: 90vw; opacity: 0; transition: opacity .2s;
  box-shadow: 0 6px 18px rgba(60, 90, 140, .16);
}
.cost-self-toast.show { opacity: 1; }

/* ---- Cost1 · 任务队列每条成本列 ---- */
.cost-task-cell { font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.ct-est { color: #2E7D4F; font-weight: 600; }
.ct-tag { font-size: 12px; color: #909399; background: #F0F4FA; border-radius: 4px; padding: 1px 6px; }
.ct-free { color: #f53f3f; }
.ct-unset { color: #8A93A5; }
.ct-detail { font-size: 12px; color: #606266; }
.ct-receipt { font-size: 12px; color: #909399; }

/* ---- Cost3 · 工程卡累计已花 ---- */
.cost-spent {
  font-size: 12px; color: #606266; margin-top: 4px;
}
.cost-spent b { color: #2B6CB0; }

/* ---- Cost4 · 画布节点成本标签 ---- */
.cost-gn-label {
  font-size: 12px; color: #3D6FB4; margin: 2px 6px 0;
  padding: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 画布统计角标（自建悬浮，不碰 gvStats） */
.cost-total-badge {
  position: fixed; bottom: 118px; left: 50%; transform: translateX(-50%); z-index: 9999;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: #F2F7FE; border: 1px solid #9FBEDE; color: #3D5A99;
  font-size: 13px; box-shadow: 0 6px 18px rgba(60, 90, 140, .16);
}
.cost-total-badge b { color: #2B6CB0; }

/* ---- Cost5 · index 卖点徽章（浅蓝白小字） ---- */
.cost-sell-badge {
  display: block; margin: 14px auto 0; max-width: 680px;
  padding: 9px 14px; border-radius: 12px; text-align: center;
  background: #f7f9fc; border: 1px dashed #9FBEDE; color: #3563A4;
  font-size: 13px; line-height: 1.5;
}
