/* 
 * product-recommend.css
 * 智能推荐组件样式
 * 设计理念：清晰的表单交互，专业的推荐结果展示
 */

/* 主容器样式 */
.product-recommend {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.product-recommend__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 标题区域 */
.product-recommend__header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-recommend__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-recommend__subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 表单容器 */
.product-recommend__form-container {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
}

/* 表单组样式 */
.product-recommend__form-group {
    margin-bottom: 2.5rem;
}

.product-recommend__label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.product-recommend__select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #1e293b;
    border: 2px solid #475569;
    border-radius: 0.75rem;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-recommend__select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.product-recommend__select:hover {
    border-color: #64748b;
}

/* 提交按钮 */
.product-recommend__submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.product-recommend__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.product-recommend__submit:active {
    transform: translateY(0);
}

/* 结果容器 */
.product-recommend__result {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 3rem;
    margin-top: 2rem;
    display: none;
}

.product-recommend__result--show {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 结果标题 */
.product-recommend__result-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* 推荐内容 */
.product-recommend__recommendation {
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-recommend__recommendation-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #e2e8f0;
    text-align: center;
}

/* 强调文本样式 */
.product-recommend__emphasize {
    font-weight: 800;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
    margin: 0 0.2rem;
}

/* 推荐产品列表 */
.product-recommend__products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-recommend__product-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-recommend__product-card:hover {
    border-color: #60a5fa;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}

.product-recommend__product-image {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    object-fit: cover;
    margin: 0 auto 1rem;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.product-recommend__product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    text-align: center;
}

.product-recommend__product-brand {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1rem;
}

.product-recommend__product-type {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* 警告提示 */
.product-recommend__warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.product-recommend__warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-recommend__warning-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 1rem;
}

.product-recommend__warning-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #fca5a5;
}

/* 行动按钮 */
.product-recommend__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.product-recommend__action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-recommend__action-btn--primary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.product-recommend__action-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.product-recommend__action-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid #475569;
}

.product-recommend__action-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-recommend__form-container,
    .product-recommend__result {
        padding: 2rem 1.5rem;
    }
    
    .product-recommend__products {
        grid-template-columns: 1fr;
    }
    
    .product-recommend__actions {
        flex-direction: column;
    }
    
    .product-recommend__action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 加载状态 */
.product-recommend__loading {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.product-recommend__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #374151;
    border-top: 3px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}