/* 全球合作伙伴轮播图样式 */
.global-partners-section {
    padding: 3rem 1rem;
}

.partners-carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.partner-slide {
    flex: 0 0 auto;
    padding: 0 0.5rem;
}

.partner-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    background: white;
}

.partner-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /*filter: grayscale(100%);*/
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    border: none;
    outline: none;
}

.carousel-btn:hover {
    background: #f3f4f6;
}

#prevBtn {
    left: 0;
    margin-left: -0.5rem;
}

#nextBtn {
    right: 0;
    margin-right: -0.5rem;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .partner-slide {
        width: 50%; /* 手机端显示2张图片 */
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .partner-item {
        height: 6rem;
        padding: 0.75rem;
    }
}

@media (min-width: 768px) {
    .partner-slide {
        width: 20%; /* 桌面端显示5张图片 */
    }
}