/* ========================================
   相关产品推荐展示样式
   ======================================== */

/* 相关产品推荐区域 */
.related-products-section {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 60px 0 80px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.related-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.3), transparent);
}

/* 标题区域 */
.related-products-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.related-products-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a2a44;
    margin: 0 0 12px 0;
    position: relative;
    display: inline-block;
}

.related-products-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066CC 0%, #00C853 100%);
    border-radius: 2px;
}

.related-products-subtitle {
    font-size: 16px;
    color: #5e6c84;
    margin: 16px 0 0 0;
    font-weight: 400;
}

/* 产品网格容器 */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 35px;
    }
}

@media (min-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* 产品卡片 */
.related-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.18);
}

/* 产品图片区域 */
.related-product-image {
    position: relative;
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8f9fa;
    text-decoration: none;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.related-product-card:hover .product-img {
    transform: scale(1.08);
}

/* 图片遮罩层 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 102, 204, 0), rgba(0, 102, 204, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.related-product-card:hover .product-overlay {
    opacity: 1;
}

.view-detail {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.related-product-card:hover .view-detail {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 产品内容区域 */
.related-product-content {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-product-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a2a44;
}

.related-product-title a {
    color: #1a2a44;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-title a:hover {
    color: #0066CC;
}

/* 产品描述 */
.related-product-desc {
    font-size: 14px;
    color: #5e6c84;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 产品价格 */
.related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0066CC;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e4eaec;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .related-products-section {
        padding: 40px 0 60px;
    }

    .related-products-title {
        font-size: 28px;
    }

    .related-products-subtitle {
        font-size: 14px;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .related-product-image {
        height: 200px;
    }

    .related-product-content {
        padding: 20px 16px;
    }

    .related-product-title {
        font-size: 16px;
    }

    .related-product-desc {
        font-size: 13px;
    }

    .related-product-price {
        font-size: 16px;
    }
}

























