/* 寻源主流程 8 步：需求解析 → 匹配策略 → 智能匹配 → 沟通策略 → 邀约沟通 → 议价策略 → 智能议价 → 意向达成 */

/* ===== 持久 8 步进度条 ===== */
.pl-stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 2px 0 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.pl-step { display: inline-flex; align-items: center; gap: 5px; }
.pl-step-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  background: #e2e8f0; color: #94a3b8;
  transition: all .2s;
}
.pl-step-label { font-size: 11.5px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.pl-step-line {
  flex: 1 1 10px; min-width: 8px; height: 2px;
  margin: 0 5px; border-radius: 2px; background: #e2e8f0;
}
/* 已完成 */
.pl-step.done .pl-step-dot { background: #2563eb; color: #fff; }
.pl-step.done .pl-step-label { color: #2563eb; }
/* 当前进行 */
.pl-step.active .pl-step-dot {
  background: #2563eb; color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.pl-step.active .pl-step-label { color: #0f172a; font-weight: 700; }

.pl-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  margin: 6px 0 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  min-width: 320px;
}
.pl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  background: linear-gradient(90deg, #eff6ff, #f8fafc);
  border-bottom: 1px solid #eef2f7;
}
.pl-head .pl-stage-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
}
.pl-head .pl-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}
.pl-head .pl-tag.rule { background: #fff7ed; color: #c2410c; }
.pl-body { padding: 12px 14px; font-size: 13px; color: #334155; line-height: 1.6; }

/* 统计小卡 */
.pl-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pl-stat {
  flex: 1 1 70px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.pl-stat b { display: block; font-size: 17px; color: #0f172a; }
.pl-stat span { font-size: 11px; color: #64748b; }

/* 候选/报价小表 */
.pl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pl-table th, .pl-table td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.pl-table th { color: #64748b; font-weight: 600; background: #fafbff; }
.pl-table td.num { font-weight: 700; color: #0f172a; white-space: nowrap; }
.pl-src {
  font-size: 10.5px; padding: 1px 7px; border-radius: 999px; font-weight: 600;
}
.pl-src.real { background: #ecfdf5; color: #047857; }
.pl-src.ai { background: #fef2f2; color: #b91c1c; }

/* 邀约状态 */
.pl-invite-status {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  background: #eff6ff; color: #2563eb;
  white-space: nowrap;
}

.pl-rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: #dbeafe; color: #1d4ed8;
}
.pl-rank.top { background: #2563eb; color: #fff; }

.pl-bar {
  height: 7px; border-radius: 999px; background: #eef2f7; overflow: hidden; min-width: 60px;
}
.pl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #60a5fa); }

.pl-note { font-size: 12px; color: #64748b; margin-top: 8px; }
.pl-warn {
  margin-top: 8px; padding: 8px 10px; border-radius: 9px; font-size: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.pl-expert {
  margin-top: 8px; padding: 8px 10px; border-radius: 9px; font-size: 12px;
  background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9;
}
.pl-done-note {
  margin-top: 10px; padding: 9px 11px; border-radius: 9px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 12.5px;
}

/* 议价对话 */
.pl-trans { max-height: 150px; overflow-y: auto; border: 1px solid #f1f5f9; border-radius: 10px; padding: 8px 10px; background: #fcfdff; }
.pl-line { font-size: 12px; margin: 3px 0; line-height: 1.5; }
.pl-line .who { font-weight: 700; }
.pl-line.buyer .who { color: #2563eb; }
.pl-line.supplier .who { color: #c2410c; }
.pl-toggle { font-size: 11.5px; color: #2563eb; cursor: pointer; user-select: none; }

/* 推荐结论 */
.pl-reco {
  border: 1.5px solid #bfdbfe; border-radius: 12px; padding: 11px 12px;
  background: linear-gradient(135deg, #eff6ff, #fff); margin-bottom: 8px;
}
.pl-reco .pl-reco-t { font-weight: 700; color: #0f172a; font-size: 13.5px; }
.pl-reco p { margin: 4px 0 0; font-size: 12.5px; color: #475569; }

/* 操作按钮 */
.pl-actions { display: flex; gap: 8px; padding: 11px 14px; border-top: 1px solid #f1f5f9; background: #fcfdff; }
.pl-btn {
  border: none; cursor: pointer; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 9px;
}
.pl-btn-primary { background: linear-gradient(90deg, #2563eb, #3b82f6); color: #fff; }
.pl-btn-primary:disabled { opacity: .55; cursor: default; }
.pl-btn-ghost { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.pl-loading { display: inline-flex; gap: 4px; align-items: center; }
.pl-dots { display: inline-flex; gap: 3px; }
.pl-dots i { width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; animation: plb 1s infinite; }
.pl-dots i:nth-child(2){ animation-delay:.2s; } .pl-dots i:nth-child(3){ animation-delay:.4s; }
@keyframes plb { 0%,100%{ opacity:.3; } 50%{ opacity:1; } }

/* ===== 阶段2：引导式策略确认卡 ===== */
.pl-strategy-confirm {
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid #dbeafe;
  border-radius: 12px;
}
.pl-ps-head {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 12px;
}
.pl-ps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.pl-ps-block {
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.pl-ps-block .t {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 7px;
}
.pl-ps-block .i {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.9;
}
.pl-ps-block .i b { color: #0f172a; font-weight: 700; }
.pl-ps-weights {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pl-ps-weights .wt {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin-right: 4px;
}
.pl-ktag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 12px;
  color: #1e40af;
}
.pl-ktag b { font-weight: 700; }
.pl-ps-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* 策略引导中的知识库引用沿用 guided 样式，此处微调间距 */
.gd-know { margin-top: 8px; }
