/* ============================================================
   pagination.css —— 公共组件：分页器 样式
   ------------------------------------------------------------
   对应公共组件 HTML 片段：components/pagination.html
   需要分页的列表页（产品 / 新闻 / 项目等）引入本文件即可，
   无需重复复制样式；页面中只需放组件标记。
   ============================================================ */

/* ---------- 分页器 ---------- */
.second__pagination {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
}

/* 对应目标站 <span class='pages'>：保留结构，页面中隐藏不占位 */
.second__pagination > span:first-child {
    display: none;
}

.second__pagination a,
.second__pagination [data-page] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0.45rem;
    height: 0.45rem;
    padding: 0 0.12rem;
    border: 1px solid #D9D9D9;
    border-radius: 0.04rem;
    background: #fff;
    color: #666;
    font-family: Inter, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.second__pagination a:hover,
.second__pagination [data-page]:not([aria-current]):hover {
    border-color: #02347D;
    color: #02347D;
}

.second__pagination [data-page][aria-current] {
    background: #02347D;
    border-color: #02347D;
    color: #FFF;
}

.second__pagination [aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ---------- H5 适配（750 设计稿基准） ---------- */
html[data-mode="h5"] .second__pagination {
    margin-top: 0.4rem;
    flex-wrap: wrap;
    gap: 0.16rem;
}

/* 移动端加大点击热区与字号 */
html[data-mode="h5"] .second__pagination a,
html[data-mode="h5"] .second__pagination [data-page] {
    min-width: 0.72rem;
    height: 0.72rem;
    padding: 0 0.2rem;
    font-size: 0.28rem;
}
