.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column-gap: 11px;
}

.pagination li{
    width: 37px;
    height: 37px;
    border-radius: 5px;
    background-color: rgba(247, 245, 250, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(102, 102, 102, 1);
    font-size: 14px;
    cursor: pointer;
}

.pagination .active {
    color: #fff;
    background-color: rgba(251, 141, 178, 1);
}

.fenye .pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.fenye .pagination li {
    flex: 0 0 auto;
}

/* 修改这部分 - 让a标签充满li并居中 */
.fenye .pagination a,
.fenye .pagination span {
    display: flex; /* 改为flex布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    text-decoration: none;
    color: #333;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box; /* 确保padding不会影响尺寸 */
}

/* 非active状态的span样式（如«符号） */
.fenye .pagination li:not(.active) span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(102, 102, 102, 1);
}

/* active状态的span样式 */
.fenye .pagination li.active span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(251, 141, 178, 1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fenye .pagination ul {
        max-width: 100%;
        gap: 3px;
    }
    
    .fenye .pagination a,
    .fenye .pagination span {
        font-size: 12px;
    }
}