/* ThinkPHP pagination markup is a flat list of links and spans. */
.yunzhou-theme .yz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 20px 24px;
    text-align: center;
}
.yunzhou-theme .yz-pagination > a,
.yunzhou-theme .yz-pagination > span,
.yunzhou-theme .yz-pagination .pagination a,
.yunzhou-theme .yz-pagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #dce5ee !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #50657a !important;
    line-height: 36px !important;
    box-sizing: border-box;
}
.yunzhou-theme .yz-pagination > a:hover,
.yunzhou-theme .yz-pagination .pagination a:hover {
    border-color: #1686df !important;
    background: #f3f9ff !important;
    color: #1686df !important;
}
.yunzhou-theme .yz-pagination > .layui-laypage-curr,
.yunzhou-theme .yz-pagination .active span {
    border-color: #1686df !important;
    background: #1686df !important;
    color: #fff !important;
}
.yunzhou-theme .yz-pagination > .layui-laypage-curr em {
    position: static !important;
    color: #fff !important;
    font-style: normal;
}
.yunzhou-theme .yz-pagination > .layui-laypage-curr .layui-laypage-em {
    display: none !important;
}
.yunzhou-theme .yz-pagination > .layui-laypage-prev:not([href]) {
    color: #a7b0bb !important;
    background: #f7f8fa !important;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .yunzhou-theme .yz-pagination {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 6px 10px 18px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .yunzhou-theme .yz-pagination::-webkit-scrollbar { display: none; }
    .yunzhou-theme .yz-pagination > a,
    .yunzhou-theme .yz-pagination > span,
    .yunzhou-theme .yz-pagination .pagination a,
    .yunzhou-theme .yz-pagination .pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 9px !important;
        line-height: 32px !important;
        flex: 0 0 auto;
    }
}
