/* ========== 轮播区域【通栏】 ========== */
.banner {
    width: 100%;
    height: 580px;
    position: relative;
    overflow: hidden;
    background-image: url("../images/banner/banner_bgi_4.png");
    background-size: cover;
    background-position: center;
}
.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.banner-slide.active {
    opacity: 1;
}
.banner-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}
.banner-text {
    margin-left: 50px;
    width: 45%;
    color: #fff;
}
.banner-text h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 18px;
}
.banner-text p {
    font-size: 20px;
    color: #d0d8e3;
    line-height: 1.6;
}
/* 右侧透明产品图盒子 */
.banner-product-box {
    width: 45%;
    text-align: center;
}
.banner-product-box img {
    height: 500px;
    object-fit: contain;
}
/* 左右箭头 */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}
.arrow:hover {
    background: rgba(52,152,255,0.5);
}
.prev { left:24px; }
.next { right:24px; }

/* 轮播小圆点 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: #3498ff;
}

@media (max-width:768px) {
    .banner {
        height: 520px;
    }
    .banner-inner {
        flex-direction: column;
        justify-content: center;
        gap:24px;
        text-align: center;
    }
    .banner-text, .banner-product-box {
        width: 100%;
    }
    .banner-text h2 {
        font-size: 34px;
    }
    .banner-product-box img {
        height: 260px;
    }
}

/* ========== Our Commitment 区块 ========== */
.commitment {
    width: 100%;
    padding: 70px 0;
    background: linear-gradient(135deg, #0e1524 0%, #162035 100%);
    color: #fff;
    text-align: center;
}
.commitment h3 {
    font-size: 32px;
    color: #3498ff;
    margin-bottom: 20px;
}
.commitment p {
    max-width: 920px;
    margin: 0 auto;
    margin-bottom: 30px;
    font-size: 18px;
    color: #c9d3e4;
    line-height: 1.7;
}

/* ========== 产品系列板块【版心内】 ========== */
.product-section {
    padding: 80px 0;
}
.product-section h3 {
    text-align: center;
    font-size: 32px;
    color: #0b101b;
    margin-bottom: 48px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.product-card {
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
    background: #fff;
    /* 原图高度180px，加高到3倍：540px */
    height: 540px;
    display: flex;
    align-items: center;   /* 垂直居中 */
    justify-content: center; /* 水平居中 ✅ */
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 12px 30px rgba(12, 20, 36, 0.12);
    transform: translateY(-4px);
}
.card-img {
    /* width: 100%; */
    /* height: 360px; */
    max-width:90%;
    max-height:80%;
    height: 70%;
    object-fit: cover;
}
.card-text {
    padding: 20px;
    flex: 1;
}
.card-text h4 {
    font-size: 20px;
    color: #0b101b;
    margin-bottom: 10px;
}
.card-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
/* PC端：7个盒子左对齐，第一行4个，第二行3个靠左 */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: row;
    }
    .product-card:nth-child(5),
    .product-card:nth-child(6),
    .product-card:nth-child(7) {
        grid-column: auto;
    }
}
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card {
        height: 420px;
    }
    .card-img {
        height: 260px;
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        height: auto;
    }
    .card-img {
        height: 240px;
    }
}