/* ============================================================
   皓海锦轩官网 · 样式覆盖入口（css/custom.css）
   ------------------------------------------------------------
   ★ 这是唯一应该手工修改的样式文件。
   ★ 基础样式在 style.css（按各模块分区），整站升级时可能被覆盖；
     你在这里写的规则加载在后、优先级更高，升级不丢失。
   ★ 写法建议：用更具体的选择器提高优先级，或 !important 兜底。
   ★ 下面给出两条示例（当前未生效，去掉行首的说明文字即可启用）。
   ============================================================ */

/* 示例1：改主色调（影响按钮/高亮，改前先备份 style.css 中的 :root）
:root { --primary: #1a56db; }
*/

/* 示例2：只调整某个产品面板的介绍文字颜色
#panel-xingchen .prod-lead { color: #16a34a; }
*/

/* ════════════════════════════════════════════
   AI+ERP 模块（#ai）样式 —— 模块8
   修改入口：本文件 .ai-* 规则；区块 HTML 在 index.html
   ════════════════════════════════════════════ */

/* 六大 AI 应用场景卡片 */
.ai-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.ai-scene-card {
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ai-scene-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 42, 90, 0.10);
}
.ai-scene-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ai-scene-card:hover::before { opacity: 1; }
.ai-scene-icon { font-size: 34px; margin-bottom: 14px; }
.ai-scene-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.ai-scene-desc { font-size: 12px; color: var(--gray); line-height: 1.6; }

/* 区块内小标题（落地四步走 / 三层能力底座） */
.ai-block-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 48px 0 8px;
}

/* 底部 CTA 行动条 */
.ai-cta-band {
  margin-top: 44px;
  background: linear-gradient(135deg, #1e2a5e, #3b4bd8);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ai-cta-text { color: #fff; font-size: 16px; font-weight: 600; }
.ai-cta-sub { font-size: 13px; font-weight: 400; opacity: 0.82; margin-top: 6px; }
.ai-cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.ai-cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* 响应式 */
@media (max-width: 900px) {
  .ai-scene-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-engines { grid-template-columns: 1fr; }
  .ai-cta-band { padding: 26px 24px; }
}
@media (max-width: 600px) {
  .ai-scene-grid { grid-template-columns: 1fr; }
  .ai-duo-strip { grid-template-columns: 1fr; }
  .ai-cta-band { flex-direction: column; text-align: center; }
  .ai-cta-band > div { justify-content: center; }
}

/* ── 双引擎定位卡 ── */
.ai-engines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.ai-engine-card { text-align: left; }
.ai-engine-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin: -10px 0 16px;
  line-height: 1.6;
}
.ai-engine-scenes {
  font-size: 12px;
  color: var(--gray);
  margin: 14px 0 18px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

/* ── 场景卡引擎标签 ── */
.ai-scene-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.ai-scene-tag.tag-jd { background: #eef2ff; color: #4338ca; }
.ai-scene-tag.tag-wb { background: #e8f4fd; color: #0369a1; }
/* 落地实践案例标签 */
.ai-case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  background: #fef3c7;
  color: #b45309;
}

/* ── 落地实践 ── */
.ai-case-block { margin-top: 48px; }
.ai-case-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--gray-light);
  text-align: center;
}

/* ── 场景双分组（灵机 / WorkBuddy）── */
.ai-scene-group { margin-bottom: 30px; }
.ai-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.ai-group-head.head-jd { background: #eef2ff; color: #4338ca; border-left: 4px solid #6366f1; }
.ai-group-head.head-wb { background: #e8f4fd; color: #0369a1; border-left: 4px solid #38bdf8; }
.ai-group-sub { font-size: 12px; font-weight: 600; opacity: 0.75; }

/* ── 场景卡：富文本版（场景画面/岗位改变/收口）──
   加粗层级：卡片标题 700 → 副标题/小节标签/收口 600 → 正文 400 */
.ai-scene-card { display: flex; flex-direction: column; }
.ai-scene-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 12px;
}
.ai-scene-sec {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}
.ai-scene-sec b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.ai-scene-quot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
}

/* ── 双引擎组合收口条 ── */
.ai-cta-wrap { margin-top: 48px; }
.ai-duo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ai-duo-col {
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 20px 24px;
}
.ai-duo-name { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.ai-duo-line { font-size: 12px; color: var(--gray); line-height: 1.6; }
.ai-duo-close {
  margin: 16px 0 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

/* ── 后台编辑发布内容的排版兜底 ──
   可视化编辑器可能把 div 改写成 h2/h3/p，此规则保证任何标签结构下
   AI 板块字号/行距/颜色都与主题一致，不会出现巨型标题或加粗泛滥 */
#ai h2:not(.section-title), #ai h3:not(.ai-block-title), #ai h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.6;
  margin: 0 0 10px;
}
#ai p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 10px;
}
#ai strong, #ai b { font-weight: 600; color: var(--dark); }
#ai .ai-scenes-block h3,
#ai .ai-case-block h3 { font-size: 20px; margin: 0 0 8px; }
#ai .ai-scene-sec p,
#ai .ai-scene-title p { margin: 0 0 10px; }
#ai .ai-scene-tag,
#ai .ai-case-tag { display: inline-block; width: auto; max-width: 100%; }
#ai span[style] { display: inline-block; width: auto; }
