/* ==================== 文件上传组件样式 ==================== */
.file-upload-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-primary);
    transition: all 0.3s;
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area.dragging {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.upload-prompt {
    width: 100%;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.file-input {
    display: none;
}

.upload-progress {
    width: 100%;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.progress-text {
    font-weight: 600;
    color: var(--primary-color);
}

.uploaded-files {
    width: 100%;
}

.file-count {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.uploaded-file img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.file-info {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-size {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-remove {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-remove:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
        min-height: 200px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-title {
        font-size: 1rem;
    }

    .uploaded-file img {
        width: 50px;
        height: 50px;
    }
}
