/* 小屏分页条 · 分类页 / 标签页 / 搜索页 / 评论分页
   仅在 ≤759px 生效，桌面端保持主题原样式 */
@media screen and (max-width: 759px) {
    #fh5co-content_show .fenyetiao,
    .pagebar.commentpagebar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 14px 2px 6px;
        list-style: none;
        text-align: center;
    }

    /* 每个页码 / 上一页 / 下一页都做成等宽方块 */
    #fh5co-content_show .fenyetiao > a,
    #fh5co-content_show .fenyetiao > span,
    .pagebar.commentpagebar > a,
    .pagebar.commentpagebar > span {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        margin: 0;
        box-sizing: border-box;
        border: 1px solid #e9e9e9;
        border-radius: 4px;
        background: #fff;
        color: #6b7280;
        font-size: 14px;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    /* 链接内部还有一层 span.page，清掉它的内边距与边框，避免双层错位 */
    #fh5co-content_show .fenyetiao > a > span,
    .pagebar.commentpagebar > a > span {
        display: inline-block;
        min-width: 0;
        height: auto;
        padding: 0;
        margin: 0;
        border: 0;
        background: none;
        color: inherit;
        font-size: inherit;
        line-height: 1;
    }

    /* 当前页 */
    #fh5co-content_show .fenyetiao > span.now-page,
    .pagebar.commentpagebar > span.now-page {
        border-color: var(--hn-primary, #003366);
        background: var(--hn-primary, #003366);
        color: #fff;
        font-weight: 600;
    }
}

@media screen and (max-width: 400px) {
    #fh5co-content_show .fenyetiao,
    .pagebar.commentpagebar {
        gap: 5px;
        padding-top: 12px;
    }

    #fh5co-content_show .fenyetiao > a,
    #fh5co-content_show .fenyetiao > span,
    .pagebar.commentpagebar > a,
    .pagebar.commentpagebar > span {
        min-width: 30px;
        height: 31px;
        padding: 0 6px;
        font-size: 13px;
    }
}
