.banner-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding: 20px 0;
}

.logo-carousel {
    display: flex;
    align-items: center;
    width: 100%;
    transition: transform 0.5s ease;
}

/* 关键修改：让logo-item平分宽度 */
.logo-item {
    flex: 1 0 auto; /* 自动平分，不收缩 */
    min-width: 0;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    padding: 0 15px;
    box-sizing: border-box;
}

.logo-item img {
    max-width: 100%;
    max-height: 80%;
    transition: all 0.5s ease;
    opacity: 0.7;
    object-fit: contain;
}

.logo-item.active {
    transform: scale(1.2);
    z-index: 1;
}

.logo-item.active img {
    opacity: 1;
}

.control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #ddd;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media screen and (max-width: 767px) {
    .banner-container {
        padding: 12px 0;
        overflow: visible;
    }
    .logo-carousel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        transform: none;
        gap: 10px;
    }
    .logo-item {
        flex: 0 0 calc(33.333% - 10px);
        height: auto;
        padding: 8px 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .logo-item img {
        width: 100px !important;
        height: 60px !important;
        opacity: 1 !important;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}
