/* 分页组件样式 - 无外层边框，激活状态无 outline */
.pagebar {
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1;
    color: #3e2c24;
    margin-top: 32px;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;}

.pagebar .p_pages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    border: none;
    background: transparent;}

/* 所有按钮及链接的基础样式 */
.pagebar .p_fun_d,
.pagebar .p_no_d,
.pagebar .p_fun a,
.pagebar .p_no a,
.pagebar .p_goto a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 40px;
    border: 1px solid #f0e4dc;
    background-color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3e2c24;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    /* 关键：去除焦点时的默认外边框 */
    outline: none;}

/* 针对焦点状态再次确保无边框（兼容不同浏览器） */
.pagebar .p_fun a:focus,
.pagebar .p_no a:focus,
.pagebar .p_goto a:focus,
.pagebar .p_fun_d:focus,
.pagebar .p_no_d:focus,
.pagebar .p_goto input:focus {
    outline: none;
    box-shadow: none;}

/* 移除链接下划线 */
.pagebar a {
    text-decoration: none;}

/* 悬停效果（有链接按钮） */
.pagebar .p_fun a:hover,
.pagebar .p_no a:hover,
.pagebar .p_goto a:hover {
    background-color: var(--primary, #b11f24);
    border-color: var(--primary, #b11f24);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(177, 31, 36, 0.15);}

/* 当前页码（不带链接，激活状态） */
.pagebar .p_no_d {
    background-color: var(--primary, #b11f24);
    border-color: var(--primary, #b11f24);
    color: #ffffff;
    cursor: default;
    box-shadow: 0 2px 6px rgba(177, 31, 36, 0.2);
    /* 确保激活状态无额外边框 */
    outline: none;}

/* 禁用状态的按钮 */
.pagebar .p_fun_d {
    color: #c0bbb6;
    border-color: #efe0d8;
    background-color: #faf6f2;
    cursor: not-allowed;}

/* 省略号 */
.pagebar .p_dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    padding: 0 4px;
    color: #9b8a7c;
    font-size: 1rem;
    letter-spacing: 1px;}

/* 跳转区域 */
.pagebar .p_goto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;}

/* 跳转输入框 */
.pagebar .p_goto input {
    width: 52px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #f0e4dc;
    border-radius: 40px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.875rem;
    text-align: center;
    color: #2c2a28;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;}

.pagebar .p_goto input:hover,
.pagebar .p_goto input:focus {
    border-color: var(--primary, #b11f24);
    box-shadow: 0 0 0 2px rgba(177, 31, 36, 0.1);
    outline: none;}

/* 跳转按钮 */
.pagebar .p_goto a {
    margin-left: 0;
    min-width: 52px;
    background-color: #ffffff;}
