/* =============================================
   宇浩智联 - 落地方案页 / 案例页 组件
   用于 solution.html · cases.html · index.html 新增模块
   沿用 style.css 的 #4632CD 主色变量
   ============================================= */

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: rgba(0, 0, 0, 0.25); }

/* --- 页面导语 --- */
.lede {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  max-width: 980px;
}
.lede strong { color: #111; }

/* --- 关键指标条 --- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.metric {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}
.metric strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 6px;
}
.metric strong em { font-style: normal; font-size: 1rem; }
.metric > span { color: #555; font-size: 0.88rem; }

/* --- 痛点 / 通用小卡 --- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.pain-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 3px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.pain-card h3 { font-size: 1.02rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.pain-card p { color: #444; font-size: 0.92rem; line-height: 1.7; }

/* --- 系统架构分层 --- */
.arch-layers { display: grid; gap: 14px; }
.arch-layer {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  transition: var(--transition);
}
.arch-layer:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.arch-layer .arch-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  padding-top: 3px;
}
.arch-layer h3 { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 8px; }
.arch-layer p { color: #444; font-size: 0.92rem; line-height: 1.72; }
.arch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.arch-tag {
  font-size: 0.78rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 100px;
  padding: 4px 12px;
  font-weight: 600;
}

/* --- 两大成熟产品 --- */
.duo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
}
.duo-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.duo-head {
  padding: 26px 28px 22px;
  background: linear-gradient(135deg, rgba(70, 50, 205, 0.1), rgba(0, 212, 232, 0.1));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.duo-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.duo-head h3 { font-size: 1.3rem; font-weight: 800; color: #111; margin-bottom: 6px; }
.duo-head p { color: #444; font-size: 0.92rem; }
.duo-body { padding: 24px 28px 28px; }
.duo-body ul { display: grid; gap: 12px; }
.duo-body li {
  position: relative;
  padding-left: 22px;
  color: #333;
  font-size: 0.93rem;
  line-height: 1.72;
}
.duo-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.duo-body li strong { color: #111; }

/* --- 能力矩阵表 --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
}
.cap-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cap-table th,
.cap-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.7;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.cap-table thead th {
  background: rgba(70, 50, 205, 0.06);
  color: #111;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cap-table tbody th { color: #111; font-weight: 700; white-space: nowrap; }
.cap-table td { color: #444; }
.cap-table tbody tr:last-child th,
.cap-table tbody tr:last-child td { border-bottom: none; }

/* --- 实施流程时间线 --- */
.step-flow { display: grid; }
.step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-bottom: 26px;
  position: relative;
}
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: rgba(70, 50, 205, 0.18);
}
.step-item:last-child::before { display: none; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h3 { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.step-body p { color: #444; font-size: 0.92rem; line-height: 1.72; }
.step-time {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 100px;
  padding: 4px 12px;
}

/* --- 交付清单 --- */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.deliver-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.deliver-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-soft);
}
.deliver-card ul { display: grid; gap: 9px; }
.deliver-card li {
  position: relative;
  padding-left: 18px;
  color: #444;
  font-size: 0.9rem;
  line-height: 1.65;
}
.deliver-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 800;
}

/* --- 图集（平台界面 / 项目实景） --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item figcaption {
  padding: 14px 18px 16px;
  font-size: 0.88rem;
  color: #444;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.gallery-item figcaption strong { display: block; color: #111; margin-bottom: 2px; }

/* --- 案例详情 --- */
.case-detail {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
}
.case-detail:last-child { margin-bottom: 0; }
.case-detail-head {
  padding: 30px 32px 26px;
  background: linear-gradient(135deg, rgba(70, 50, 205, 0.1), rgba(0, 212, 232, 0.08));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.case-detail-head .case-tag { margin-bottom: 12px; }
.case-detail-head h3 { font-size: 1.5rem; font-weight: 800; color: #111; margin-bottom: 8px; }
.case-detail-head > p { color: #444; font-size: 0.96rem; max-width: 900px; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.case-meta div { font-size: 0.88rem; color: #555; }
.case-meta strong { display: block; color: #111; font-size: 0.94rem; margin-bottom: 2px; }
.case-detail-body { padding: 28px 32px 32px; }
.case-detail-body h4 { font-size: 1rem; font-weight: 700; color: #111; margin: 22px 0 10px; }
.case-detail-body h4:first-child { margin-top: 0; }
.case-detail-body p { color: #444; font-size: 0.93rem; line-height: 1.78; margin-bottom: 10px; }
.case-detail-body ul { display: grid; gap: 10px; margin-bottom: 8px; }
.case-detail-body li {
  position: relative;
  padding-left: 20px;
  color: #444;
  font-size: 0.93rem;
  line-height: 1.72;
}
.case-detail-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.case-detail-body li strong { color: #111; }

/* --- 引用 / 客户证言 --- */
.quote-box {
  border-left: 3px solid var(--primary);
  background: rgba(70, 50, 205, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}
.quote-box p { color: #333; font-size: 0.95rem; line-height: 1.8; margin-bottom: 8px; }
.quote-box cite { font-size: 0.85rem; color: #666; font-style: normal; }

/* --- 已落地院校 --- */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.school-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: var(--transition);
}
.school-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.school-card strong { display: block; font-size: 1.02rem; color: #111; font-weight: 700; margin-bottom: 6px; }
.school-card span { font-size: 0.86rem; color: #666; }

/* --- 关键事实（便于 AI / 搜索引擎引用） --- */
.key-facts {
  border: 1px dashed rgba(70, 50, 205, 0.4);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  background: rgba(70, 50, 205, 0.03);
}
.key-facts h3 { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 14px; }
.key-facts dl { display: grid; gap: 10px; }
.key-facts dt { font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.key-facts dd { font-size: 0.9rem; color: #444; line-height: 1.7; margin-bottom: 4px; }

/* --- 相关页面 --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.related-card {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  transition: var(--transition);
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.related-card strong { display: block; font-size: 1.05rem; color: #111; font-weight: 700; margin-bottom: 8px; }
.related-card p { color: #555; font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.related-card .more { color: var(--primary); font-size: 0.88rem; font-weight: 700; }

/* --- 底部行动区 --- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deeper));
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 0.96rem; max-width: 640px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* --- 二维码占位 --- */
.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  margin: 0 auto 16px;
  border: 1px dashed rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
}
.qr-placeholder img { width: 100%; height: auto; display: block; }

/* --- 新增标签（用于卡片角标） --- */
.tag-soft {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 100px;
  padding: 4px 12px;
}

/* --- 卡片内的跳转链接 --- */
.card-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}
.card-more:hover { text-decoration: underline; }

/* --- 可整卡点击的案例卡 --- */
a.case-card { display: block; color: inherit; }

/* --- 关键事实（便于 AI 与搜索引擎引用） --- */
/* --- 内容型页面（方案页/案例页）：轮播随页面滚动，不再固定占位 --- */
body.doc-page .hero-slider {
  position: relative;
  top: auto;
  margin-top: 68px;
  height: min(44vh, 400px);
}
body.doc-page .hero-slider + .section {
  margin-top: 0;
  padding-top: 30px;
}
body.doc-page .slider-scroll { display: none; }

/* =============================================
   GEO（生成式引擎优化）组件
   目标：让 AI 答案引擎可以定位、摘取、整段引用
   ============================================= */

/* --- 一句话总结（可被直接引用的自包含段落） --- */
.tldr {
  border-left: 3px solid var(--primary);
  background: rgba(70, 50, 205, 0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px;
  margin: 22px 0 0;
}
.tldr strong {
  display: block;
  color: #111;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.tldr p { color: #333; font-size: 0.95rem; line-height: 1.8; margin: 0; }

/* --- 问答（GEO 核心：一问一答，答案自包含） --- */
.qa-group { margin-bottom: 44px; }
.qa-group:last-child { margin-bottom: 0; }
.qa-group > h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(70, 50, 205, 0.15);
}
.qa-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.qa-item:last-child { margin-bottom: 0; }
.qa-item h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  line-height: 1.5;
}
.qa-item h3 .qa-num {
  color: var(--primary);
  font-weight: 800;
  margin-right: 8px;
}
.qa-item p { color: #444; font-size: 0.95rem; line-height: 1.78; }
.qa-item ul { display: grid; gap: 8px; margin-top: 10px; }
.qa-item li {
  position: relative;
  padding-left: 18px;
  color: #444;
  font-size: 0.93rem;
  line-height: 1.72;
}
.qa-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.qa-item .qa-src {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #666;
}
.qa-item .qa-src a { color: var(--primary); font-weight: 600; }

/* --- 页内问答目录 --- */
.qa-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.qa-toc a {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  transition: var(--transition);
}
.qa-toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.qa-toc a span { display: block; font-size: 0.78rem; color: #777; font-weight: 400; margin-top: 4px; }

/* --- 项目成效数据（案例页，数字由 _set_facts.py 填充） --- */
.effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.effect-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.effect-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
.effect-item span { font-size: 0.86rem; color: #555; line-height: 1.6; }
.effect-item em {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- 项目成效（供 AI 引用的文字版，随数字自动更新） --- */
.fact-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}

/* --- 响应式 --- */
@media (max-width: 980px) {
  .arch-layer { grid-template-columns: 1fr; gap: 8px; }
  .arch-layer .arch-num { padding-top: 0; }
  .cta-band { padding: 30px 26px; }
}
@media (max-width: 720px) {
  .duo-grid { grid-template-columns: 1fr; }
  .case-detail-head,
  .case-detail-body { padding: 22px 20px; }
  .step-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 0.95rem; }
  .step-item::before { left: 21px; top: 44px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
}
