/* ===== 首页产品中心板块 — 页签 & 网格 ===== */

/* 页签栏 */
.hp-products-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 24px;
}
.hp-tab-btn {
    padding: 7px 20px;
    border: 1px solid #4a8ac7;
    border-radius: 4px;
    font-size: 16px;
    color: #4a8ac7;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.hp-tab-btn:hover,
.hp-tab-btn.active {
    background: #4a8ac7;
    color: #fff;
}

/* 4列产品网格 */
.hp-prod-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}
.hp-prod-list li {
    width: calc(25% - 14px);
    box-sizing: border-box;
}
.hp-prod-list li a {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.hp-prod-list li a:hover {
    box-shadow: 0 4px 14px rgba(74,138,199,0.18);
    border-color: #4a8ac7;
}
.hp-prod-img {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.hp-prod-list li a:hover .hp-prod-img img {
    transform: scale(1.04);
}
.hp-prod-name {
    padding: 10px 12px;
    font-size: 15px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-prod-list li a:hover .hp-prod-name {
    color: #4a8ac7;
}

/* 查看更多按钮（复用原 .more a 样式，此处仅覆盖链接色） */
.hp-more-btn {
    background: #4a8ac7 !important;
    color: #fff !important;
}
.hp-more-btn:hover {
    background: #3a72a8 !important;
}

/* ===== 移动端 ===== */
@media screen and (max-width: 768px) {
    .hp-tab-btn {
        padding: 6px 13px;
        font-size: 13px;
    }
    .hp-prod-list li {
        width: calc(50% - 9px);
    }
}
