/* Product Carousel - 使用真正的Swiper.js - 35:32图片比例，无卡片样式 */
.fpc-carousel {
    position: relative;
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
}

.fpc-carousel .swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.fpc-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
    transition-timing-function: linear !important;
}

.fpc-carousel .swiper-slide {
    flex-shrink: 0;
    width: 280px !important;
    padding: 0 12px;
}

/* 去掉卡片样式，改为简洁布局 */
.fpc-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
}

.fpc-card:hover {
    transform: translateY(-8px);
}

.fpc-card:active {
    transform: translateY(-4px);
    transition: all 0.1s ease;
}

/* 图片容器 - 35:32比例 */
.fpc-image {
    position: relative;
    width: 100%;
    height: 256px; /* 280 * 32/35 ≈ 256px */
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.fpc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fpc-card:hover .fpc-image img {
    transform: scale(1.08);
}

/* 内容区域 - 标题居中显示在图片下方 */
.fpc-content {
    padding: 16px 8px 8px;
    text-align: center;
}

.fpc-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

/* 占位符 */
.fpc-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #6c757d;
    font-style: italic;
    font-size: 16px;
}

/* Swiper导航按钮样式 - 隐藏 */
.fpc-carousel .swiper-button-prev,
.fpc-carousel .swiper-button-next {
    display: none;
}

/* 响应式设计 - 保持35:32比例 */
@media (max-width: 1200px) {
    .fpc-carousel .swiper-slide {
        width: 260px !important;
    }
    
    .fpc-image {
        height: 238px; /* 260 * 32/35 ≈ 238px */
    }
}

@media (max-width: 1024px) {
    .fpc-carousel .swiper-slide {
        width: 240px !important;
    }
    
    .fpc-image {
        height: 220px; /* 240 * 32/35 ≈ 220px */
    }
}

@media (max-width: 768px) {
    .fpc-carousel {
        padding: 30px 20px;
    }
    
    .fpc-carousel .swiper-slide {
        width: 220px !important;
        padding: 0 8px;
    }
    
    .fpc-image {
        height: 201px; /* 220 * 32/35 ≈ 201px */
    }
    
    .fpc-content {
        padding: 12px 6px 6px;
    }
    
    .fpc-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .fpc-carousel {
        padding: 20px 15px;
    }
    
    .fpc-carousel .swiper-slide {
        width: 180px !important;
        padding: 0 6px;
    }
    
    .fpc-image {
        height: 165px; /* 180 * 32/35 ≈ 165px */
    }
    
    .fpc-content {
        padding: 10px 4px 4px;
    }
    
    .fpc-title {
        font-size: 14px;
        min-height: 40px;
    }
}

/* 加载动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fpc-card {
    animation: slideInUp 0.6s ease forwards;
}

.fpc-carousel .swiper-slide:nth-child(1) .fpc-card { animation-delay: 0.1s; }
.fpc-carousel .swiper-slide:nth-child(2) .fpc-card { animation-delay: 0.2s; }
.fpc-carousel .swiper-slide:nth-child(3) .fpc-card { animation-delay: 0.3s; }
.fpc-carousel .swiper-slide:nth-child(4) .fpc-card { animation-delay: 0.4s; }
