/* =====================================================================
   分页组件：参照 Ant Design Vue 表格分页的简约风格，纯 Bootstrap 元素实现
   标记由 App.renderPager（api.js）生成：共 X 条 | 每页条数 | ‹ 1 2 … N › | 跳至 X 页
   管理端 layout 与 land / stockhousing 填报外壳三种页面共用本文件
   ===================================================================== */
.ant-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #35445e;
}

/* 总条数：弱化灰，与表格工具区文字分层 */
.ant-pager-total {
    color: #62728b;
    white-space: nowrap;
    margin-right: 2px;
}

/* 页码按钮：等宽方块、浅灰描边、6px 圆角、间隔 8px（antd 标志性观感） */
.ant-pager-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ant-pager-item > button {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d9dfe8;
    border-radius: 6px;
    color: #35445e;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.ant-pager-item > button:hover {
    border-color: #1b62e8;
    color: #1b62e8;
}
.ant-pager-item > button:focus { outline: none; }
.ant-pager-item > button:focus-visible {
    border-color: #1b62e8;
    color: #1b62e8;
    box-shadow: 0 0 0 3px rgba(27, 98, 232, .10);
}
/* 当前页：主题色描边 + 浅蓝底深蓝字（与全站列表徽章浅底风格一致） */
.ant-pager-item.active > button {
    border-color: #1b62e8;
    color: #1b62e8;
    background: #eaf2ff;
    font-weight: 600;
}
.ant-pager-item.active > button:hover { cursor: default; }
/* 上/下一页禁用态 */
.ant-pager-item.disabled > button,
.ant-pager-item > button:disabled {
    color: #b3bfce;
    border-color: #e6ebf2;
    background: #f7f9fc;
    cursor: not-allowed;
}
/* 省略号占位：点击快速跨越 5 页（antd 同款交互的简化实现） */
.ant-pager-gap {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa7b8;
    font-size: 12px;
    letter-spacing: 2px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}
.ant-pager-gap:hover {
    color: #1b62e8;
    background: #f5f9ff;
}

/* 每页条数与跳页输入：与页码按钮同高同圆角，弱化 Bootstrap 原生形态 */
.ant-pager .ant-pager-size {
    width: auto;
    height: 30px;
    font-size: 13px;
    padding: 0 26px 0 8px;
    border-color: #d9dfe8;
    border-radius: 6px;
}
.ant-pager-jump {
    color: #62728b;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ant-pager .ant-pager-jump-input {
    width: 46px;
    height: 30px;
    font-size: 13px;
    text-align: center;
    padding: 0 4px;
    border-color: #d9dfe8;
    border-radius: 6px;
}
.ant-pager .ant-pager-size:focus,
.ant-pager .ant-pager-jump-input:focus {
    border-color: #1b62e8;
    box-shadow: 0 0 0 3px rgba(27, 98, 232, .10);
    caret-color: #1b62e8;
}

/* 移动端：触控目标加大到 34px，字号回抬避免 iOS 聚焦缩放 */
@media (max-width: 767.98px) {
    .ant-pager { font-size: 14px; }
    .ant-pager-item > button,
    .ant-pager-gap { min-width: 34px; height: 34px; }
    .ant-pager .ant-pager-size,
    .ant-pager .ant-pager-jump-input { height: 34px; font-size: 14px; }
    .ant-pager .ant-pager-jump-input { width: 52px; }
}
