/**
 * 解决方案页面 - 产品推荐区域样式（和谐版）
 * Solution Product Recommendation Styles (Harmonious Version)
 */

/* ========================================
   产品推荐区域
   ======================================== */

.solution-product-recommendation {
    background: #fafbfc;
    padding: 60px 0;
    margin: 50px 0;
    border-top: 1px solid #e8eef2;
    border-bottom: 1px solid #e8eef2;
    position: relative;
}

/* 柔和的背景装饰 */
.solution-product-recommendation::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.solution-product-recommendation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 推荐区域头部 */
.recommendation-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.recommendation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #1976d2;
    border-radius: 50%;
    margin-bottom: 20px;
}

.recommendation-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #1976d2;
}

.recommendation-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: #263238;
    margin: 0 0 12px 0;
}

.recommendation-subtitle {
    font-size: 16px;
    color: #546e7a;
    margin: 0;
}

/* 推荐产品网格 */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* 推荐产品卡片 */
.recommendation-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eef2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.12);
    border-color: #1976d2;
}

/* 产品图片 */
.recommendation-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f7f9;
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    /* 优化图片渲染质量 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.recommendation-card:hover .recommendation-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 118, 210, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.view-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* 产品内容 */
.recommendation-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.recommendation-title a {
    color: #263238;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommendation-title a:hover {
    color: #1976d2;
}

.recommendation-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    width: fit-content;
}

.recommendation-category .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.recommendation-excerpt {
    font-size: 14px;
    color: #546e7a;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

/* 推荐按钮 */
.recommendation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #1976d2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.recommendation-btn:hover {
    background: #1565c0;
    transform: translateX(3px);
}

.recommendation-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.recommendation-btn:hover .dashicons {
    transform: translateX(2px);
}

/* 推荐区域底部 */
.recommendation-footer {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

.view-all-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #ffffff;
    color: #1976d2;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    border: 2px solid #1976d2;
    transition: all 0.3s ease;
}

.view-all-products:hover {
    background: #1976d2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.view-all-products .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.view-all-products:hover .dashicons {
    transform: translateX(3px);
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1024px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .solution-product-recommendation {
        padding: 50px 20px;
        margin: 40px 0;
    }
    
    .recommendation-header h2 {
        font-size: 26px;
    }
    
    .recommendation-subtitle {
        font-size: 15px;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommendation-image {
        height: 180px;
    }
    
    .view-all-products {
        padding: 10px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .solution-product-recommendation {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .recommendation-icon {
        width: 50px;
        height: 50px;
    }
    
    .recommendation-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .recommendation-header h2 {
        font-size: 22px;
    }
    
    .recommendation-subtitle {
        font-size: 14px;
    }
    
    .recommendation-content {
        padding: 18px;
    }
    
    .recommendation-title {
        font-size: 16px;
    }
    
    .view-all-products {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
    .solution-product-recommendation {
        background: #f5f7f9;
        padding: 40px 20px;
    }
    
    .recommendation-header h2 {
        color: #263238;
    }
    
    .recommendation-subtitle {
        color: #546e7a;
    }
    
    .recommendation-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .recommendation-btn,
    .view-all-products {
        display: none;
    }
}
