/**
 * 全站统一分页样式（pagination）
 * 输出结构（core/library/think/paginator/driver/Eyou.php）：
 * <div class="page_con"><span><a href>..</a></span><span class="active"><a>..</a></span>..</div>
 * 主题色：--c #2f318b（深蓝）
 */

.page_con {
    padding: 30px 0 10px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.page_con span a,
.page_con > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #666;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.page_con span a:hover,
.page_con > a:hover {
    color: #fff;
    background: var(--c, #2f318b);
    border-color: var(--c, #2f318b);
    text-decoration: none;
}
.page_con span.active a {
    color: #fff;
    background: var(--c, #2f318b);
    border-color: var(--c, #2f318b);
    font-weight: 600;
    cursor: default;
}
.page_con span.active a:hover {
    color: #fff;
    background: var(--c, #2f318b);
}
/* 上一页/下一页：隐藏文字，显示 < > 箭头（首/尾按钮） */
.page_con span:first-child a,
.page_con span:last-child a {
    font-size: 0;
    padding: 0;
}
.page_con span:first-child a::before {
    content: "<";
    font-size: 18px;
    line-height: 1;
    color: inherit;
    font-family: Arial, sans-serif;
}
.page_con span:last-child a::before {
    content: ">";
    font-size: 18px;
    line-height: 1;
    color: inherit;
    font-family: Arial, sans-serif;
}
/* 无链接（已在首页/末页）置灰禁用 */
.page_con span a:not([href]),
.page_con > a.disabled {
    color: #c0c0c0;
    background: #fafafa;
    border-color: #e8e8e8;
    cursor: not-allowed;
}
.page_con span a:not([href]):hover,
.page_con > a.disabled:hover {
    color: #c0c0c0;
    background: #fafafa;
    border-color: #e8e8e8;
}
/* ===== 演示站实际输出结构（v2.1.2 分页驱动，Bootstrap 风格） =====
 * <div class="page_con"><li class="page-item"><a class="page-link"><</a></li>
 *                      <li class="page-item"><a class="page-link active">1</a></li>...</div>
 */
.page_con li.page-item {
    list-style: none;
    margin: 0;
    display: flex;
}
.page_con li.page-item a.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1;
    color: #666;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.page_con li.page-item a.page-link:hover,
.page_con li.page-item a.page-link:focus {
    color: #fff;
    background: var(--c, #2f318b);
    border-color: var(--c, #2f318b);
    text-decoration: none;
    box-shadow: none;
    z-index: auto;
}
.page_con li.page-item a.page-link.active {
    color: #fff;
    background: var(--c, #2f318b);
    border-color: var(--c, #2f318b);
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}
.page_con li.page-item a.page-link.active:hover {
    color: #fff;
    background: var(--c, #2f318b);
}
/* 无链接（已在首页/末页，如第 1 页的 <）置灰禁用；排除当前页（当前页要蓝底白字） */
.page_con li.page-item a.page-link:not([href]):not(.active) {
    color: #b0b0b0;
    background: #fafafa;
    border-color: #e8e8e8;
    cursor: not-allowed;
    pointer-events: none;
}
/* 当前页样式放文件末尾兜底，确保不被置灰规则覆盖 */
.page_con li.page-item a.page-link.active,
.page_con li.page-item a.page-link.active:hover {
    color: #fff !important;
    background: var(--c, #2f318b) !important;
    border-color: var(--c, #2f318b) !important;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    text-decoration: none;
}
/* ===== span 结构（旧驱动兼容，保留） ===== */
/* 兼容：分页输出直接挂在 .p_page 下（无 .page_con 包裹层）的旧版结构 */
.p_page span a,
.p_page > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #666;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.p_page span a:hover,
.p_page > a:hover {
    color: #fff;
    background: var(--c, #2f318b);
    border-color: var(--c, #2f318b);
    text-decoration: none;
}
.p_page span.active a {
    color: #fff;
    background: var(--c, #2f318b);
    border-color: var(--c, #2f318b);
    font-weight: 600;
    cursor: default;
}
.p_page span.active a:hover {
    color: #fff;
    background: var(--c, #2f318b);
}
.p_page > span:first-child a,
.p_page > span:last-child a {
    font-size: 0;
    padding: 0;
}
.p_page > span:first-child a::before {
    content: "<";
    font-size: 18px;
    line-height: 1;
    color: inherit;
    font-family: Arial, sans-serif;
}
.p_page > span:last-child a::before {
    content: ">";
    font-size: 18px;
    line-height: 1;
    color: inherit;
    font-family: Arial, sans-serif;
}
.p_page span a:not([href]) {
    color: #c0c0c0;
    background: #fafafa;
    border-color: #e8e8e8;
    cursor: not-allowed;
}
.p_page span a:not([href]):hover {
    color: #c0c0c0;
    background: #fafafa;
    border-color: #e8e8e8;
}
/* 移动端 */
@media only screen and (max-width: 768px) {
.page_con,
.p_page {
    padding: 20px 0 5px;
    gap: 8px;
}
.page_con span a,
.page_con > a,
.p_page span a,
.p_page > a {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
}
.page_con span:first-child a::before,
.page_con span:last-child a::before,
.p_page > span:first-child a::before,
.p_page > span:last-child a::before {
    font-size: 16px;
}
.page_con li.page-item a.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
}
}
