/* 进度页面样式 */
.progress-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    padding: 20px;
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.back-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #f3f4f6;
}

.progress-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.progress-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s;
}

.progress-step.processing {
    background: #eff6ff;
    border: 2px solid #3b82f6;
}

.progress-step.complete {
    background: #f0fdf4;
    border: 2px solid #10b981;
}

.progress-step.waiting {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

.progress-step.error {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.progress-step.processing .step-icon {
    background: #3b82f6;
    color: #fff;
    /* 前面的数字icon不转圈 */
}

.progress-step.processing .step-status {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.progress-step.complete .step-icon {
    background: #10b981;
    color: #fff;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: #6b7280;
}

.step-status {
    font-size: 24px;
    flex-shrink: 0;
}

.error-container {
    margin-top: 32px;
    padding: 24px;
    background: #fef2f2;
    border-radius: 12px;
    border: 2px solid #ef4444;
    text-align: center;
}

.error-message {
    color: #dc2626;
    font-size: 16px;
    margin-bottom: 16px;
}

.retry-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #dc2626;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .progress-page {
        padding: 10px;
    }
    
    .progress-container {
        padding: 20px;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .progress-step {
        padding: 16px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 13px;
    }
}

/* 中途退出提示（参考安卓端样式） */
.analysis-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff9db;
    border-radius: 8px;
    border: 1px solid #facc15;
    text-align: center;
}

.analysis-hint p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

