/**
 * 产品轮播模块样式
 */

.product-carousel-module {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
}

.product-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

.product-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.product-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.product-carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

.product-carousel-link {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.product-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.product-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.product-carousel-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.product-carousel-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 导航按钮 */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* 悬停效果 */
.product-carousel-item:hover .product-carousel-image img {
    transform: scale(1.1);
}

.product-carousel-item:hover .product-carousel-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-carousel-container {
        padding: 0 50px;
    }
    
    .product-carousel-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 1024px) {
    .product-carousel-module {
        padding: 60px 0;
    }
    
    .product-carousel-container {
        padding: 0 50px;
    }
    
    .product-carousel-item {
        flex: 0 0 calc(50% - 15px);
    }
    
    .product-carousel-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .product-carousel-module {
        padding: 40px 0;
    }
    
    .product-carousel-container {
        padding: 0 50px;
    }
    
    .product-carousel-track {
        gap: 20px;
    }
    
    .product-carousel-item {
        flex: 0 0 calc(100% - 0px);
    }
    
    .product-carousel-label {
        padding: 20px 25px;
    }
    
    .product-carousel-title {
        font-size: 18px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .product-carousel-module {
        padding: 30px 0;
    }
    
    .product-carousel-container {
        padding: 0 45px;
    }
    
    .product-carousel-label {
        padding: 15px 20px;
    }
    
    .product-carousel-title {
        font-size: 16px;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}
