/* 上传页面样式 */

.page-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
    color: #333;
}

.upload-section {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 上传标签页 */
.upload-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #ff9e1b;
    border-bottom-color: #ff9e1b;
    font-weight: bold;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #ff9e1b;
    background: #fff;
}

.upload-area.dragover {
    border-color: #ff9e1b;
    background: #fff5e6;
}

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

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-area p {
    margin: 0.5rem 0;
    color: #666;
}

.upload-hint {
    font-size: 0.9rem;
    color: #999;
}

/* 上传进度 */
.upload-progress {
    margin-top: 2rem;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9e1b, #ff8c00);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* 上传结果 */
.upload-result {
    margin-top: 2rem;
}

.result-success {
    text-align: center;
    padding: 2rem;
    background: #f0f9ff;
    border-radius: 10px;
    border: 2px solid #008000;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-success h3 {
    color: #008000;
    margin-bottom: 1rem;
}

.result-success p {
    color: #666;
    margin: 0.5rem 0;
    word-break: break-all;
}

#file-url {
    color: #008000;
    font-weight: bold;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* 文件列表 */
.file-list {
    margin-top: 2rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.9rem;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

/* 图片处理选项 */
.image-options {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.image-options h3 {
    margin-bottom: 1rem;
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-section {
        padding: 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

