/* 背景移除功能专用样式 */

/* 上传区域 */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f2ff;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3rem;
}

.upload-area p {
    color: #666;
    margin-bottom: 8px;
}

.file-size-limit {
    font-size: 0.9rem;
    color: #999;
}

.upload-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 处理进度 */
.processing-section {
    text-align: center;
    margin: 30px 0;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* 结果展示 */
.result-section {
    margin-top: 30px;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.image-container {
    text-align: center;
}

.image-container h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.image-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 错误提示 */
.error-section {
    margin-top: 30px;
}

.error-message {
    text-align: center;
    padding: 30px;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    color: #c53030;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.error-message h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.error-message p {
    margin-bottom: 20px;
    color: #e53e3e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 200px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 25px 10px;
    }
    
    .upload-area h3 {
        font-size: 1.1rem;
    }
    
    .image-container img {
        max-height: 200px;
    }
    
    .error-message {
        padding: 20px;
    }
}