/* ==================== 上传页面样式 ==================== */
.upload-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

.upload-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.upload-step h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 上传区域样式 */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.upload-zone.dragging {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
    border-style: solid;
}

.upload-prompt {
    text-align: center;
    width: 100%;
}

.upload-prompt i {
    color: var(--text-secondary);
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* 文件预览样式 */
.file-preview {
    width: 100%;
    text-align: center;
}

.file-preview img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.video-placeholder {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-info {
    text-align: left;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.file-info p {
    margin-bottom: 0.5rem;
}

.file-info p:last-child {
    margin-bottom: 0;
}

/* 上传进度 */
.upload-progress {
    margin-top: 2rem;
}

.progress {
    height: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* 表单操作 */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

/* 上传成功 */
.upload-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-success h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.upload-success p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-form-container {
        padding: 1.5rem;
    }

    .upload-zone {
        padding: 1.5rem;
        min-height: 250px;
    }

    .form-actions,
    .success-actions {
        flex-direction: column;
    }

    .form-actions button,
    .success-actions button {
        width: 100%;
    }
}
