@charset "utf-8";
/* ============================================================
   hb-bulk.css — 群发功能面板（接管原 tab，避免旧 chunk 二次挂载）
   轻色卡面，与 hb-ai / hb-tabs 同一套视觉
   ============================================================ */

.hb-bulk{
  position:fixed;z-index:36;
  display:flex;flex-direction:column;gap:9px;
  padding:12px;
  background:#f4f7fc;
  border:1px solid #e3eaf7;
  border-radius:16px;
  box-shadow:0 24px 60px -42px rgba(12,18,34,.55), 0 2px 8px rgba(12,18,34,.04);
  overflow:auto;
  font-family:inherit;
}
.hb-bulk::-webkit-scrollbar{width:6px;height:6px}
.hb-bulk::-webkit-scrollbar-thumb{background:#dbe5f3;border-radius:99px}

/* 头部 */
.hb-bulk-head{display:flex;align-items:center;gap:9px;flex:none;padding:1px 2px 2px}
.hb-bulk-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#eaf2ff;color:#2563eb;flex:none}
.hb-bulk-ico svg{width:16px;height:16px}
.hb-bulk-tt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.hb-bulk-tt b{font-size:13px;font-weight:600;color:#0e1a31;line-height:1.15}
.hb-bulk-tt span{font-size:10.5px;color:#93a0b5;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-bulk-badge{flex:none;height:20px;line-height:18px;padding:0 8px;border-radius:99px;font-size:10px;font-weight:600;
  color:#0b8f63;background:#e7f8f0;border:1px solid #bfeedb;white-space:nowrap}
.hb-bulk-badge.is-run{color:#b45309;background:#fff7e8;border-color:#fde3b0}
.hb-bulk-badge.is-pause{color:#a16207;background:#fffbea;border-color:#f6e3a1}
.hb-bulk-badge.is-done{color:#1d4ed8;background:#eef4ff;border-color:#cddcff}
.hb-bulk-badge.is-err{color:#b42318;background:#fff0ee;border-color:#ffd4cd}
.hb-bulk-x{flex:none;width:26px;height:26px;border-radius:8px;border:1px solid #e3eaf7;background:#fff;color:#7b8798;
  font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center}
.hb-bulk-x:hover{color:#b42318;border-color:#ffd4cd;background:#fff7f6}

/* 平台切换 */
.hb-bulk-plat{display:flex;gap:6px;flex:none}
.hb-bulk-plat button{height:29px;padding:0 11px;border-radius:8px;border:1px solid #e3eaf7;background:#fff;
  color:#5b6b82;font-size:11.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px;transition:.15s}
.hb-bulk-plat button:hover{border-color:#bfd3ff;color:#1d4ed8;background:#f6f9ff}
.hb-bulk-plat button.is-on{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 4px 10px -6px rgba(37,99,235,.9)}
.hb-bulk-plat button svg{width:13px;height:13px}

/* 卡片 */
.hb-bulk-card{background:#fff;border:1px solid #e8eefa;border-radius:12px;padding:11px 12px;box-shadow:0 1px 2px rgba(12,18,34,.03);flex:none;min-width:0}
.hb-bulk-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.hb-bulk-row>b{font-size:12px;font-weight:600;color:#213049;white-space:nowrap}
.hb-bulk-stats{display:flex;align-items:center;gap:12px;font-size:11px;color:#7b8798;white-space:nowrap}
.hb-bulk-stats b{font-weight:700;color:#213049;font-variant-numeric:tabular-nums}
.hb-bulk-stats .ok b{color:#0b8f63}
.hb-bulk-stats .bad b{color:#d92d20}

/* 进度 */
.hb-bulk-prog{height:8px;border-radius:99px;background:#eef2f9;margin-top:10px;overflow:hidden}
.hb-bulk-prog>i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#22c55e,#10b981);transition:width .35s ease}
.hb-bulk-pct{display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-size:10.5px;color:#93a0b5;font-variant-numeric:tabular-nums}
.hb-bulk-pct em{font-style:normal;font-weight:700;color:#0b8f63}

/* 消息 */
.hb-bulk-lbl{font-size:11.5px;font-weight:600;color:#5b6b82;margin-bottom:7px}
.hb-bulk-msg{width:100%;min-height:84px;max-height:150px;resize:vertical;border:1px solid #e3eafa;border-radius:9px;
  padding:8px 10px;font-size:12px;line-height:1.55;color:#0f1a33;background:#fbfdff;outline:none;transition:.15s;box-sizing:border-box}
.hb-bulk-msg::placeholder{color:#b3bdcc}
.hb-bulk-msg:focus{border-color:#bcd2ff;background:#fff;box-shadow:0 0 0 3px #eaf1ff}
.hb-bulk-check{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;color:#5b6b82;cursor:pointer;user-select:none}
.hb-bulk-check input{width:14px;height:14px;accent-color:#2563eb;cursor:pointer}
.hb-bulk-acts{display:flex;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap}
.hb-bulk-acts button{height:29px;padding:0 12px;border-radius:8px;border:1px solid #e3eaf7;background:#fff;color:#42526b;
  font-size:11.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px;transition:.15s}
.hb-bulk-acts button:hover{border-color:#bfd3ff;color:#1d4ed8;background:#f6f9ff}
.hb-bulk-acts button:disabled{opacity:.45;cursor:not-allowed}
.hb-bulk-acts button.hb-bulk-primary{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 6px 14px -10px rgba(37,99,235,.95)}
.hb-bulk-acts button.hb-bulk-primary:hover{background:#1d4ed8}
.hb-bulk-acts button.danger{color:#b42318;border-color:#ffd4cd;background:#fff}
.hb-bulk-acts button.danger:hover{background:#fff5f3;border-color:#ffb9ad}
.hb-bulk-tip{margin:8px 0 0;font-size:10.5px;line-height:1.5;color:#9aa7bb}

/* 日志 */
.hb-bulk-logcard{display:flex;flex-direction:column;min-height:120px;flex:1 1 auto;overflow:hidden}
.hb-bulk-logcard .hb-bulk-row{flex:none;margin-bottom:8px}
.hb-bulk-logcard .hb-bulk-row button{height:24px;padding:0 8px;border-radius:7px;border:1px solid #e3eaf7;background:#fff;
  color:#7b8798;font-size:10.5px;cursor:pointer}
.hb-bulk-logcard .hb-bulk-row button:hover{color:#b42318;border-color:#ffd4cd}
.hb-bulk-log{flex:1 1 auto;min-height:90px;overflow:auto;background:#0f172a;border-radius:10px;padding:8px 10px;
  font:11px/1.6 "IBM Plex Mono",Consolas,"Courier New",monospace;color:#c9d6ea}
.hb-bulk-log::-webkit-scrollbar{width:6px}
.hb-bulk-log::-webkit-scrollbar-thumb{background:#334155;border-radius:99px}
.hb-bulk-line{display:flex;gap:7px;white-space:pre-wrap;word-break:break-word}
.hb-bulk-line>i{font-style:normal;color:#64748b;flex:none}
.hb-bulk-line>.s{flex:none;font-weight:700}
.hb-bulk-line>.s.info{color:#7dd3fc}
.hb-bulk-line>.s.success{color:#4ade80}
.hb-bulk-line>.s.error{color:#f87171}
.hb-bulk-line>.s.warn{color:#fbbf24}
.hb-bulk-line>span:last-child{flex:1;min-width:0;color:#dbe6f5}
.hb-bulk-logempty{color:#64748b}

/* 窄屏 */
@media (max-width:1500px){
  .hb-bulk{padding:10px;gap:7px}
  .hb-bulk-msg{min-height:66px}
  .hb-bulk-log{min-height:70px}
  .hb-bulk-tip{display:none}
}

/* 被接管的「群发功能」标签高亮 */
[role="tab"].hb-bulk-tab-on{background:#2563eb !important;color:#fff !important;border-color:#2563eb !important;box-shadow:0 6px 14px -10px rgba(37,99,235,.95)}
[role="tab"].hb-bulk-tab-on svg{color:#fff !important}
