/* ============================================
   分页样式 - 与产品中心页面风格统一
   现代工业风格：橙色主题、卡片式设计、圆角阴影
   ============================================ */

.pagination-w {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    position: relative;
}

/* 装饰性分隔线 */
.pagination-w::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ea5a2d, transparent);
    border-radius: 2px;
}

/* ul 列表横向排列 */
.pagination-w .pagination-x {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-w .pagination-x li {
    display: inline-flex;
    list-style: none;
}

/* 分页链接基础样式 */
.pagination-w .pagination-x li a,
.pagination-w .pagination-x li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 300ms ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

/* 悬停效果 */
.pagination-w .pagination-x li a:hover {
    background: #ffffff;
    border-color: #ea5a2d;
    color: #ea5a2d;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(234, 90, 45, 0.2);
}

/* 当前页样式 - 橙色主题 */
.pagination-w .pagination-x li.active a {
    background: linear-gradient(135deg, #ea5a2d 0%, #ff7a52 100%);
    color: #ffffff;
    border-color: #ea5a2d;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(234, 90, 45, 0.35);
    animation: pulse-page 2s infinite;
}

@keyframes pulse-page {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(234, 90, 45, 0.35);
    }

    50% {
        box-shadow: 0 4px 20px rgba(234, 90, 45, 0.5);
    }
}

/* 禁用状态 */
.pagination-w .pagination-x li.disabled a,
.pagination-w .pagination-x li.disabled span {
    background: #f7fafc;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-w .pagination-x li.disabled a:hover {
    transform: none;
    box-shadow: none;
}

/* 上一页/下一页按钮特殊样式 */
.pagination-w .pagination-x li:first-child a,
.pagination-w .pagination-x li:last-child a {
    padding: 0 20px;
    font-weight: 500;
}

/* 统计信息样式 */
.pagination-w .pagination-x li:first-child a {
    background: #f7fafc;
    color: #718096;
    font-size: 13px;
    border-color: #e2e8f0;
}

.pagination-w .pagination-x li:first-child a:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #4a5568;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .pagination-w {
        margin-top: 40px;
        padding: 20px 0;
    }

    .pagination-w .pagination-x {
        gap: 6px;
    }

    .pagination-w .pagination-x li a,
    .pagination-w .pagination-x li span {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 8px;
    }

    .pagination-w .pagination-x li:first-child a,
    .pagination-w .pagination-x li:last-child a {
        padding: 0 14px;
    }
}