/* ===== 生成进度阶段指示器 ===== */
.generation-progress-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 16px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.generation-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(148, 163, 184, 0.05);
}

.stage-item.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.stage-item.completed {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
}

.stage-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.stage-item.active .stage-dot {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
  animation: stagePulse 1.2s ease-in-out infinite;
}

.stage-item.completed .stage-dot {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stage-item.completed .stage-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: transparent;
  border-radius: 0;
}

.stage-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.stage-item.active .stage-label {
  color: #d97706;
  font-weight: 600;
}

.stage-item.completed .stage-label {
  color: #059669;
  font-weight: 600;
}

.stage-divider {
  width: 40px;
  height: 3px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 2px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.stage-item.completed + .stage-divider {
  background: linear-gradient(90deg, #10b981, rgba(148, 163, 184, 0.15));
}

@keyframes stagePulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
  }
  50% { 
    transform: scale(1.15); 
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.7);
  }
}

/* ===== 进度条 ===== */
.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 16px;
  transition: width 0.5s ease;
  position: relative;
  background: linear-gradient(90deg, #3b82f6 0%, #fbbf24 40%, #10b981 100%);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 状态文字 */
.progress-status-text {
  font-size: 15px;
  font-weight: 600;
  min-width: 140px;
  text-align: right;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.progress-status-text.connecting {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.1);
}

.progress-status-text.generating {
  color: #d97706;
  background: rgba(251, 191, 36, 0.15);
}

.progress-status-text.parsing {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}

.progress-status-text.done {
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
  font-weight: 700;
}