/* ===== 采集进度弹窗 ===== */
.collecting-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.collecting-modal-overlay.show { display: flex; }
.collecting-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 48px;
  width: 420px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.collecting-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.collecting-modal .modal-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}
.collecting-modal .ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}
.collecting-modal .ring-wrap svg {
  transform: rotate(-90deg);
  width: 160px;
  height: 160px;
}
.collecting-modal .ring-wrap circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.collecting-modal .ring-wrap .ring-bg {
  stroke: #f0f4ff;
}
.collecting-modal .ring-wrap .ring-fg {
  stroke: url(#modalProgressGradient);
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.collecting-modal .ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.collecting-modal .ring-text .percent {
  font-size: 36px;
  font-weight: 800;
  color: #667eea;
  line-height: 1;
}
.collecting-modal .ring-text .label {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
.collecting-modal .modal-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}
.collecting-modal .modal-stat {
  text-align: center;
}
.collecting-modal .modal-stat .num {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}
.collecting-modal .modal-stat .num.ok { color: #11998e; }
.collecting-modal .modal-stat .num.fail { color: #e05252; }
.collecting-modal .modal-stat .lbl {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
.collecting-modal .modal-status {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(102,126,234,0.08);
  border-radius: 10px;
  display: inline-block;
}
.collecting-modal .modal-status.done {
  color: #11998e;
  background: rgba(17,153,142,0.08);
}
.collecting-modal .modal-status.error {
  color: #e05252;
  background: rgba(224,82,82,0.08);
}
.collecting-modal .modal-duration {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  text-align: center;
}
.collecting-modal .modal-duration.hidden {
  display: none;
}
.collecting-modal .modal-close-btn {
  margin-top: 20px;
  padding: 10px 32px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(102,126,234,0.3);
}
.collecting-modal .modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102,126,234,0.4);
}
.collecting-modal .modal-stop-btn {
  margin-top: 12px;
  padding: 8px 24px;
  border: 1px solid #e05252;
  border-radius: 10px;
  background: #fff;
  color: #e05252;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.collecting-modal .modal-stop-btn:hover {
  background: #e05252;
  color: #fff;
}
