/* 基础分页容器 */
.pagebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
}

/* 通用分页项样式 */
.p_pages > span {
    width: 55px;
    height: 35px;
    font-size: 14px;
    display: inline-block;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.p_pages > span.p_no_d, 
.p_pages > span.p_no, 
.p_pages > span.p_dot{
    width: 35px;
    height: 35px;
}

/* 可点击功能按钮 */
.p_fun a {
    display: block;
    padding: 6px 12px;
    color: #409eff;
    text-decoration: none;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    transition: all 0.2s;
    background: white;
}

.p_fun a:hover {
    background: #ecf5ff;
    color: #409eff;
    border-color: #c6e2ff;
}

/* 不可点击功能按钮 */
.p_fun_d {
    padding: 6px 12px;
    color: #c0c4cc;
    border: 1px solid #ebeef5;
    background: #f5f7fa;
    cursor: not-allowed;
    border-radius: 4px;
}

/* 页码样式 */
.p_no a,
.p_no_d {
    padding: 6px 12px;
    min-width: 36px;
    text-align: center;
    display: inline-block;
    border-radius: 4px;
}

.p_no a {
    color: #606266;
    border: 1px solid #dcdfe6;
    text-decoration: none;
    background: white;
}

.p_no a:hover {
    background: #ecf5ff;
    color: #409eff;
    border-color: #c6e2ff;
}

.p_no_d {
    background: #409eff;
    color: white !important;
    border: 1px solid #409eff;
}

/* 省略号样式 */
.p_dot {
    padding: 0 8px;
    color: #c0c4cc;
}

/* 页码输入框 */
.p_goto_input {
    width: 60px;
    padding: 6px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    text-align: center;
    margin: 0 5px;
}

.p_goto_input:focus {
    border-color: #409eff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

/* 跳转按钮 */
.p_goto a {
    padding: 6px 12px;
    background: #409eff;
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.p_goto a:hover {
    background: #66b1ff;
}

/* 悬停交互效果 */
.p_fun a:hover,
.p_prev a:hover,
.p_next a:hover {
    background: #ecf5ff;
    color: #409eff !important;
    border-color: #c6e2ff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .pagebar {
        gap: 4px;
    }

    .p_pages > span,
    .p_fun a,
    .p_no a,
    .p_no_d {
        padding: 4px 8px;
        font-size: 14px;
    }

    .p_goto_input {
        width: 50px;
        padding: 4px;
    }
}