/* 统一的分页样式 */

.pagination {
    max-width: 1400px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: var(--text-secondary);
}

.pagination a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination span.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 0.8rem;
        font-size: 0.9rem;
    }
}
