/* 上传模块样式 */

/* 文件上传区域 */
.upload-area {
    margin-bottom: 2rem;
}

.file-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: rgba(248, 249, 250, 0.5);
    margin-bottom: 1rem;
}

.file-drop-area.active {
    border-color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.05);
}

.file-drop-area p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.file-drop-area .btn {
    margin-top: 0.5rem;
}

/* 模板下载样式 */
.template-download {
    text-align: center;
    padding: 0.8rem;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border: 1px solid #e0e0e0;
}

.template-download p {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.template-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 2px;
}

.template-link:hover {
    color: #3a57e8;
    border-bottom: 1px solid #3a57e8;
}

.template-hint {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* 警告提示样式 */
.template-warning {
    font-size: 0.95rem;
    background-color: #fff2f0;
    border-left: 4px solid #ff4d4f;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(255, 77, 79, 0.2);
    animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* 模板下载高亮效果 */
.template-download.highlight {
    animation: pulse 1.5s infinite;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(74, 108, 247, 0.5);
}

@keyframes pulse {
    0% {
        background-color: rgba(248, 249, 250, 0.8);
    }
    50% {
        background-color: rgba(74, 108, 247, 0.1);
    }
    100% {
        background-color: rgba(248, 249, 250, 0.8);
    }
}

/* 文件信息样式 */
.file-info {
    background-color: rgba(74, 108, 247, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.file-info p {
    margin-bottom: 0.5rem;
}

.file-info button {
    margin-top: 0.5rem;
}

/* 预览区域样式 */
#previewSection {
    margin-top: 2rem;
}

.preview-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.preview-table {
    min-width: 100%;
    background-color: var(--card-bg);
}

.preview-table th {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 10;
}

/* 分页控制样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.3rem 0.8rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not([disabled]) {
    background-color: rgba(74, 108, 247, 0.05);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.3rem;
}

.page-number {
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    background-color: rgba(74, 108, 247, 0.05);
}

.page-number.active {
    background-color: var(--primary-color);
    color: white;
}

/* 文件命名表单 */
.file-naming-form {
    background-color: rgba(248, 249, 250, 0.5);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.file-naming-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .file-drop-area {
        padding: 1.5rem;
    }
    
    .preview-table-container {
        max-height: 250px;
    }
    
    .file-naming-form {
        padding: 1rem;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination {
        margin-top: 0.5rem;
    }
} 