/* ==================== 分页样式 - 简洁分隔版 ==================== */

.pagination-wrapper {
    clear: both;
    text-align: center;
    margin: 30px 0;
    padding: 0;
}

.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    background-color: #d9d9d9;
    padding: 1px;
    border-radius: 4px;
}

.pagination li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    list-style: none;
}

/* 所有链接默认样式 */
.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    color: #1890ff;
}

/* 当前页 - 蓝色背景 */
.pagination li.thisclass {
    background-color: #1d73c5 !important;
    display: inline-flex;       /* 添加 */
    align-items: center;        /* 添加 */
    justify-content: center;    /* 添加 */
    width: 36px;                /* 添加 */
    height: 36px;               /* 添加 */
}

.pagination li.thisclass a {
    color: #fff;
    background-color: transparent;
    width: 36px;                /* 添加，确保撑满 */
    height: 36px;               /* 添加 */
}

/* 悬停效果 */
.pagination li a:hover {
    background-color: #e6f7ff;
}

/* 禁用状态 */
.pagination li:not(:has(a)) {
    color: #bbb;
    background-color: #f5f5f5;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: not-allowed;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .pagination-wrapper {
        margin: 30px 0;
    }
    
    .pagination {
        gap: 1px;
    }
    
    .pagination li a,
    .pagination li:not(:has(a)) {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    /* 手机端当前页强制固定尺寸 - 修复bug */
    .pagination li.thisclass {
        width: 32px !important;     /* 添加 */
        height: 32px !important;    /* 添加 */
        display: inline-flex !important;
    }
    
    .pagination li.thisclass a {
        width: 32px !important;     /* 添加 */
        height: 32px !important;    /* 添加 */
        font-size: 13px;            /* 同步手机端字体 */
    }
    
    .pagination li:first-child,
    .pagination li:last-child {
        display: none;
    }
}