/* ===== 解决方案页面通用样式 ===== */

/* 产品卡片 */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-soft); }
.product-body { padding: 16px; }
.product-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.product-brand { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 分类 Tab */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); background: #fff; font-size: 14px; cursor: pointer; transition: all .2s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 小程序入口 */
.miniapp-section { background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%); }
.miniapp-card { display: flex; align-items: center; gap: 48px; background: #fff; border-radius: 16px; padding: 40px 48px; box-shadow: var(--shadow); }
.miniapp-text { flex: 1; }
.miniapp-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.miniapp-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }
.miniapp-qr { text-align: center; flex-shrink: 0; }
.miniapp-qr img { width: 140px; height: 140px; border-radius: 8px; border: 1px solid var(--border); }
.miniapp-qr p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* 服务介绍块 */
.service-intro-block { background: #fff; border-radius: var(--radius); padding: 32px; border-left: 4px solid var(--primary); }
.service-intro-block h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.service-intro-block p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* 施工流程步骤 */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 24px; position: relative; padding-bottom: 40px; }
.step-item:last-child { padding-bottom: 0; }
.step-item:last-child .step-line { display: none; }
.step-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; position: relative; z-index: 1; }
.step-line { position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--border); }
.step-content { flex: 1; padding-top: 8px; }
.step-content h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 优势卡片 */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center; border: 1px solid var(--border); transition: all .25s; }
.advantage-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.advantage-icon { font-size: 40px; margin-bottom: 16px; }
.advantage-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.advantage-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 服务承诺卡片 */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise-card { background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%); border-radius: var(--radius); padding: 28px 24px; text-align: center; border: 1px solid #c7d7fd; }
.promise-icon { font-size: 40px; margin-bottom: 16px; }
.promise-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.promise-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 富文本区块 */
.rich-section { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.rich-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; }
.rich-content { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.rich-content p { margin-bottom: 12px; }

/* AI规划师对话框 */
.ai-chat-box { max-width: 720px; margin: 0 auto; }
.ai-chat-input-wrap { display: flex; gap: 12px; background: #fff; border-radius: 50px; padding: 8px 8px 8px 24px; box-shadow: 0 4px 32px rgba(26,110,245,.15); border: 2px solid var(--primary); }
.ai-chat-input-wrap input { flex: 1; border: none; outline: none; font-size: 16px; font-family: var(--font); background: transparent; }
.ai-chat-input-wrap button { border-radius: 40px; padding: 12px 28px; white-space: nowrap; }
.ai-intro-text { text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.ai-suggestions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.ai-suggestion-tag { padding: 8px 16px; background: #f0f5ff; border-radius: 20px; font-size: 13px; color: var(--primary); cursor: pointer; border: 1px solid #c7d7fd; transition: all .2s; }
.ai-suggestion-tag:hover { background: var(--primary); color: #fff; }

/* 功能卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center; border: 1px solid var(--border); transition: all .25s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 使用场景卡片 */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .25s; }
.scene-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.scene-img { width: 100%; height: 180px; object-fit: cover; background: linear-gradient(135deg, #1a3a6e, #1a6ef5); display: flex; align-items: center; justify-content: center; font-size: 60px; }
.scene-body { padding: 20px; }
.scene-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.scene-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* CTA 区块 */
.cta-section { background: linear-gradient(135deg, #1a3a6e 0%, #1a6ef5 100%); color: #fff; text-align: center; padding: 80px 24px; }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: .85; margin-bottom: 32px; }

/* 响应式 */
@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .miniapp-card { flex-direction: column; gap: 24px; padding: 28px; }
}
@media (max-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .advantage-grid, .promise-grid, .scene-grid, .feature-grid { grid-template-columns: 1fr; }
    .category-tabs { gap: 6px; }
    .tab-btn { padding: 6px 14px; font-size: 13px; }
}

/* ===== 解决方案页面布局 ===== */
.solution-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.solution-main { display: flex; flex-direction: column; gap: 40px; }
.solution-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.sticky-form { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.sticky-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.rich-block { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.rich-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; }
.rich-content { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.rich-content p { margin-bottom: 12px; }
.rich-content img { border-radius: 8px; margin: 12px 0; max-width: 100%; }

@media (max-width: 900px) {
    .solution-layout { grid-template-columns: 1fr; }
    .solution-aside { position: static; }
}
