/* ============================================
   首页产品展示优化样式
   ============================================ */

/* 产品卡片 */
.product-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 已禁用卡片悬停效果 */
/* .product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
} */

/* 产品图片区域 */
.product-image-wrapper {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    object-fit: contain;
}

/* 已禁用图片悬停放大效果 */
/* .product-card-modern:hover .product-image-wrapper img {
    transform: translate(-50%, -50%) scale(1.15);
} */

/* 产品遮罩层 */
.product-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* 禁用遮罩层交互 */
}

/* 已禁用遮罩层悬停显示效果 */
/* .product-card-modern:hover .product-overlay-modern {
    opacity: 1;
} */

.view-icon-modern {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 热销标签 */
.hot-badge-modern {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* 产品信息区域 */
.product-info-wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-sku-modern {
    color: #667eea;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name-modern {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 45px;
}

.product-cas-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.product-cas-modern i {
    font-size: 15px;
    color: #999;
}

.product-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 2px solid #f0f0f0;
}

.stock-badge-modern {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

.stock-badge-modern i {
    font-size: 16px;
}

.view-more-modern {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.product-card-modern:hover .view-more-modern {
    gap: 8px;
}

/* 轮播导航按钮 */
.swiper-navigation {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    transform: scale(1.1);
}

/* 轮播分页器 */
.swiper-pagination-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 32px;
    border-radius: 5px;
}

/* 查看全部按钮 */
.btn-view-all-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-view-all-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-view-all-modern i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-view-all-modern:hover i {
    transform: translateX(4px);
}

/* 服务区域优化 */
.our-service-area {
    background: #fff;
    padding: 60px 0;
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.service-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.modern-service {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px 24px;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.modern-service:hover {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.modern-service .ser-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-service .icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modern-service:hover .icon-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.1);
}

.modern-service .ser-icon img {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease;
}

.modern-service:hover .ser-icon img {
    transform: scale(1.15);
}

.modern-service .service-text h6 {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.modern-service .service-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-name-modern {
        font-size: 14px;
        min-height: 42px;
    }
    
    .modern-service {
        padding: 24px 20px;
    }
    
    .swiper-navigation {
        gap: 12px;
    }
    
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
