﻿.pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    margin: 20px 0;
}

    .pagination > li {
        display: inline;
    }

        .pagination > li > a,
        .pagination > li > span {
            position: relative;
            float: none;
            padding: 0;
            line-height: 36px;
            text-decoration: none;
            color: #1F2021;
            background-color: transparent;
            border: none;
            margin: 0 14px;
            height: 36px;
            font-size: 16px;
            min-width: 24px;
            text-align: center;
        }

        .pagination > li:first-child > a,
        .pagination > li:first-child > span {
            margin-left: 0;
        }

        .pagination > li:last-child > a,
        .pagination > li:last-child > span {
        }

        .pagination > li > a:hover,
        .pagination > li > span:hover,
        .pagination > li > a:focus,
        .pagination > li > span:focus {
            color: #028fde;
            background-color: transparent;
        }

    .pagination > .active > a,
    .pagination > .active > span,
    .pagination > .active > a:hover,
    .pagination > .active > span:hover,
    .pagination > .active > a:focus,
    .pagination > .active > span:focus {
        z-index: 2;
        color: #028fde;
        background-color: transparent;
        border: 1px solid #028fde;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 36px;
        cursor: default;
        display: inline-block;
    }

    .pagination > .disabled > span,
    .pagination > .disabled > span:hover,
    .pagination > .disabled > span:focus,
    .pagination > .disabled > a,
    .pagination > .disabled > a:hover,
    .pagination > .disabled > a:focus {
        color: #777777;
        background-color: transparent;
        border-color: transparent;
        cursor: not-allowed;
    }

.pagination-lg > li > a,
.pagination-lg > li > span {
    padding: 10px 16px;
    font-size: 18px;
}

.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
}

.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
}

.pagination-sm > li > a,
.pagination-sm > li > span {
    padding: 5px 10px;
    font-size: 12px;
}

.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
}

.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
    border-bottom-right-radius: 3px;
    border-top-right-radius: 3px;
}

.page-icon {
    position: relative;
    top: 5px;
}

/* 左右箭头样式 - 圆形描边按钮 */
.pagination > li:first-child > a,
.pagination > li:last-child > a {
    width: 40px;
    height: 40px;
    line-height: 38px;
    border: 1px solid #028fde;
    border-radius: 50%;
    color: #028fde;
    display: inline-block;
}

/* 居中容器（当父级使用 text-right 等类时强制覆盖） */
.myPagination { text-align: center !important; }

.hat-icon {
    font-size: 32px;
    position: relative;
    top: 2px;
}