/* 智能带货 v2 — 全局样式 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ── 布局 ── */
.sidebar {
  background: #1d2b3a;
  color: #dfe6ee;
  padding: 0 14px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 16px 4px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 12px;
}
.main-content {
  background: #f4f6f9;
  padding: 20px 28px;
  overflow-y: auto;
}
.demo-banner { margin-bottom: 14px; }

/* ── 侧边栏对象卡片 ── */
.target-item {
  background: rgba(255,255,255,.06);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s;
  position: relative;
}
.target-item:hover { background: rgba(255,255,255,.12); }
.target-item.active { background: rgba(64,158,255,.25); border-color: #409eff; }
.target-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.target-info { font-size: 12px; color: #9fb1c4; margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.target-stats { font-size: 12px; color: #9fb1c4; margin-top: 2px; }
.target-progress { margin-top: 6px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ── 对象卡片（2026-09-24 重排：头像色块 + 两段式 + hover 操作）── */
.target-row { display: flex; gap: 10px; align-items: flex-start; }
.target-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
}
.target-main { flex: 1; min-width: 0; }
.target-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.target-title-line .tname { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-meta { font-size: 12px; color: #9fb1c4; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-actions {
  position: absolute; right: 8px; top: 8px;
  display: flex; gap: 4px; opacity: 0; transition: opacity .15s;
}
.target-item:hover .target-actions { opacity: 1; }

/* ── 步骤页 ── */
.step-title { font-size: 18px; font-weight: 600; color: #1f2d3d; }
.step-desc { font-size: 13px; color: #8a97a5; margin: 4px 0 18px; }
.section-title { font-size: 14px; font-weight: 600; color: #425062; margin: 20px 0 10px; }
.input-label { font-size: 13px; color: #5a6a7b; margin-bottom: 6px; }
.form-tip { font-size: 12px; color: #909ead; margin-left: 8px; }
.result-tip { font-size: 13px; color: #5a6a7b; margin-left: 10px; }

/* ── Step2 汇总条 ── */
.summary-bar {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  background: #eef4ff;
  border: 1px solid #c6dcff;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 14px 0;
}
.summary-bar .big-num { font-size: 26px; font-weight: 700; color: #1f6feb; line-height: 1; }
.summary-bar .label { font-size: 13px; color: #57698a; }
.summary-bar .sub { font-size: 12px; color: #8a97a5; }

/* ── Step3 统计 ── */
.adjust-summary {
  display: flex; gap: 18px; flex-wrap: wrap;
  background: #f7f9fc; border-radius: 8px; padding: 10px 16px; margin: 10px 0;
  font-size: 13px; color: #5a6a7b;
}
.adjust-summary .add-text { color: #1f9254; }
.adjust-summary .remove-text { color: #d03050; }
.adjust-summary .final-num { color: #1f6feb; font-weight: 700; }
.valid-collection {
  display: flex; align-items: center; font-size: 13px; color: #5a6a7b;
  background: #f0f9eb; border-radius: 8px; padding: 10px 16px; margin: 10px 0;
}

/* ── Step4 ── */
.send-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: #fff; border-radius: 8px; padding: 12px 18px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(31,45,61,.08); font-size: 13px; color: #5a6a7b;
}
.send-stats strong { font-size: 18px; color: #1f2d3d; margin-right: 4px; }
.next-send-card {
  background: #fffbe8; border: 1px solid #f3e0a2; border-radius: 8px;
  padding: 10px 16px; margin: 10px 0; font-size: 13px; color: #8a6d1a;
}
.send-log { font-size: 12px; color: #5a6a7b; max-height: 180px; overflow-y: auto; background: #fafbfc; border-radius: 6px; padding: 8px 12px; }
.send-log div { padding: 2px 0; border-bottom: 1px dashed #e8ecf1; }

/* misc */
code.pid { background: #f0f2f5; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
