/**
 * 分页跳转控件样式
 * 配合 templates/utils.ftl 中的 pager 宏使用
 *
 * 配色与主题保持一致:
 *   当前页高亮 #6fbef7 / 分页文字 #999 / 分页底色 #fafafa / 边框 #e6e6e6
 */

.pager-jump {
    display: block;
    /* 分页条自带 margin: 15px 0, 这里用负值收紧间距 */
    margin: -5px 0 15px;
    font-size: 13px;
    line-height: 34px;
    color: #999;
    /* 继承父容器对齐方式: 居中容器里居中, 左对齐容器里靠左 */
    text-align: inherit;
    white-space: nowrap;
}

.pager-jump .pager-jump-label {
    display: inline-block;
    padding: 0 3px;
    color: #999;
    vertical-align: middle;
}

.pager-jump .pager-jump-input {
    display: inline-block;
    box-sizing: border-box;
    width: 46px;
    height: 34px;
    line-height: 32px;
    padding: 0 4px;
    margin: 0 2px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    vertical-align: middle;
    outline: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.pager-jump .pager-jump-input:focus {
    border-color: #6fbef7;
    box-shadow: 0 0 4px rgba(111, 190, 247, .5);
}

.pager-jump .pager-jump-btn {
    display: inline-block;
    box-sizing: border-box;
    height: 34px;
    line-height: 32px;
    padding: 0 14px;
    margin-left: 6px;
    font-size: 13px;
    color: #fff;
    background-color: #6fbef7;
    border: 1px solid #6fbef7;
    border-radius: 2px;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.pager-jump .pager-jump-btn:hover,
.pager-jump .pager-jump-btn:focus {
    color: #fff;
    background-color: #5cb0ee;
    border-color: #5cb0ee;
    text-decoration: none;
}

@media (max-width: 480px) {
    .pager-jump {
        font-size: 12px;
    }

    .pager-jump .pager-jump-label {
        padding: 0 1px;
    }

    .pager-jump .pager-jump-input {
        width: 42px;
        margin: 0 1px;
    }

    .pager-jump .pager-jump-btn {
        padding: 0 10px;
        margin-left: 4px;
    }
}
