﻿/* 电子装联轮播样式 */
.sbzs_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 每行5个 */
    grid-template-rows: repeat(2, auto); /* 共2行 */
    gap: 20px; /* 间距 */
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.sbzs_box_item {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px; /* 固定高度，确保一致 */
}

    .sbzs_box_item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-color: #ff3c00;
    }

    .sbzs_box_item img {
        width: 100%;
        height: 120px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .sbzs_box_item p {
        margin: 0;
        font-size: 14px;
        color: #333;
        font-weight: 500;
        line-height: 1.4;
    }

/* Swiper 容器样式 */
.swiper1.swiper-container {
    width: 100%;
    padding: 20px 40px; /* 为导航按钮留出空间 */
    position: relative;
}

/* 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    background-color: rgba(255, 60, 0, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    margin-top: -20px;
}

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 18px;
        font-weight: bold;
    }

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background-color: #ff3c00;
    }

/* 分页器样式 */
.swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #ff3c00;
}

/*
支持响应式*/
@media (max-width: 1200px) {
    .sbzs_grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 15px;
    }

    .sbzs_box_item {
        height: 180px;
    }

        .sbzs_box_item img {
            height: 100px;
        }
}

@media (max-width: 992px) {
    .sbzs_grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, auto);
    }
}

@media (max-width: 768px) {
    .sbzs_grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto);
        gap: 12px;
    }

    .sbzs_box_item {
        height: 160px;
        padding: 10px 8px;
    }

        .sbzs_box_item img {
            height: 90px;
        }

        .sbzs_box_item p {
            font-size: 13px;
        }
}

@media (max-width: 480px) {
    .sbzs_grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, auto);
        gap: 10px;
    }

    .sbzs_box_item {
        height: auto;
        min-height: 140px;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 10px;
    }

        .sbzs_box_item img {
            width: 80px;
            height: 80px;
            margin-right: 15px;
            margin-bottom: 0;
        }
}
