/* 维护说明：本文件为共享样式，由对应页面 <link> 引入。
   顶部导航由 _shared/js/site-nav.js 注入（.sn-*），此处不含导航样式。 */
/* ===== 解决方案子页面共享样式 ===== */
:root {
  --bg: #f5f8ff;
  --bg-2: #eef2fa;
  --panel: rgba(255,255,255,0.72);
  --panel-solid: #ffffff;
  --line: rgba(49,109,229,0.12);
  --line-bright: rgba(49,109,229,0.25);
  --text: #0d1b2a;
  --text-dim: #4a5568;
  --accent: rgb(49,109,229);
  --accent-light: #4f7fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --glow: 0 0 30px rgba(49,109,229,0.12);
  --radius: 24px;
  --max: 1300px;
  --nav-h: 66px; /* 顶部固定导航栏高度，与 _shared/js/site-nav.js 保持一致；改导航高度时需同步 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 15% 30%, rgba(49,109,229,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 15%, rgba(49,109,229,0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  /* 顶部留出 > 导航栏高度的空间，避免页面主标题被固定导航栏遮挡 */
  padding: calc(var(--nav-h) + 30px) 20px 60px;
}

/* 页面主标题 */
.page-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 12px auto 0;
}

/* 模块间距 */
.section { margin-bottom: 70px; }

/* 小节标题 */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 10px auto 0;
}

/* 概述模块 */
.overview {
  background: var(--panel-solid);
  padding: 36px 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
  line-height: 2;
  font-size: 16px;
  color: var(--text-dim);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.overview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* 痛点模块 */
.pain-points { padding: 0 4px; }
.points-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.point-item {
  background: var(--panel-solid);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}
.point-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  opacity: 0.6;
}
.point-item:hover {
  border-color: var(--line-bright);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.point-item:hover::before { opacity: 1; }
.point-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.point-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* 价值卡片 */
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.4s cubic-bezier(0.16,1,0.3,1);
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.value-card {
  position: relative;
}
.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-bright);
  box-shadow: 0 16px 48px rgba(49,109,229,0.12), 0 0 24px rgba(49,109,229,0.06);
}
.value-card:hover::before { opacity: 1; }
.card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8faff 0%, #eef3fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.value-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; text-align: center; }
.card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* 案例标签 */
.case-tabs, .sol-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.case-btn, .tab-btn {
  padding: 10px 28px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: 0.3s ease;
}
.case-btn:hover, .tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.case-btn.active, .tab-btn.active {
  background: linear-gradient(180deg, rgba(49,109,229,0.9), rgba(70,130,255,0.7));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(49,109,229,0.25);
}

/* 案例内容 */
.case-content { display: none; }
.case-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
.case-layout {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.case-img {
  flex: 1;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f5ff, #e0e8fa);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-text { flex: 1; }
.case-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.case-text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 12px;
}

/* 简单卡片案例 */
.case-simple {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.case-simple h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.case-simple p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto 12px;
}

/* 方案组合产品网格 */
.product-grid-sol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.product-card-sol {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: 0.4s ease;
}
.product-card-sol:hover {
  transform: translateY(-6px);
  border-color: var(--line-bright);
  box-shadow: var(--glow);
}
.product-card-sol .product-img-sol {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f8faff, #eef3fc);
  border-radius: 12px;
}
.product-card-sol .product-img-sol img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.product-card-sol .product-name-sol {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.product-card-sol .product-desc-sol {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 滚动显示动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 页脚 */
.sol-footer {
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

/* 响应式 */
@media (max-width: 992px) {
  .value-cards { grid-template-columns: repeat(2, 1fr); }
  .points-list { grid-template-columns: 1fr; }
  .case-layout { flex-direction: column; gap: 20px; }
  .case-img { height: 240px; width: 100%; }
}
@media (max-width: 768px) {
  .page-title { font-size: 26px; margin-bottom: 40px; }
  .section-title { font-size: 22px; }
  .value-cards { grid-template-columns: 1fr; }
  .card-img { height: 200px; }
  .overview { padding: 24px; font-size: 14px; }
  .container { padding: calc(var(--nav-h) + 18px) 16px 50px; }
  .section { margin-bottom: 50px; }
  .case-layout { padding: 24px; }
  .case-simple { padding: 28px; }

/* ===== 扩展组件：数智引擎等页共用（与解决方案页同源样式，确保全站统一） ===== */

/* 多列变体 */
.value-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.value-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* CTA 行动召唤区 */
.cta {
  text-align: center;
  margin-top: 28px;
  padding: 44px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(49,109,229,0.10), rgba(49,109,229,0.04));
  border: 1px solid var(--line-bright);
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-dim); max-width: 620px; margin: 0 auto 24px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 38px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(49,109,229,0.85) 0%, rgba(70,130,255,0.65) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(49,109,229,0.25), 0 0 40px rgba(49,109,229,0.08);
  transition: .3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(49,109,229,0.95) 0%, rgba(70,130,255,0.8) 100%);
  transform: translateY(-2px);
}
.link-inline {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--line-bright);
  text-decoration: none;
}
.link-inline:hover { color: var(--accent-light); }

/* 平台备用地址条（CTA 内"或直接访问"美化） */
.cta-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px dashed var(--line-bright);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  font-size: 13px;
  color: var(--text-dim);
}
.cta-url .lbl { opacity: .8; }
.cta-url a {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
}
.cta-url a:hover { color: var(--accent-light); text-decoration: underline; }

/* 统计数字 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.stat {
  text-align: center;
  background: rgba(49,109,229,0.06);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  padding: 22px 16px;
}
.stat .num {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat .lab { display: block; margin-top: 8px; font-size: 14px; color: var(--text-dim); }

/* 项目符号列表 */
.bullet-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullet-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-size: 15.5px;
}
.bullet-list li::before {
  content: "";
  position: absolute; left: 4px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.bullet-list strong { color: var(--text); }

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr; }
  .value-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
}

/* 页面内 小E 智能体（接右下角浮标功能入页） */
.e-agent { display: flex; justify-content: center; margin-top: 8px; }
.e-agent .sn-e-panel {
  position: static; opacity: 1; visibility: visible; transform: none;
  width: 100%; max-width: 440px;
  box-shadow: 0 18px 50px rgba(49,109,229,.16), 0 0 30px rgba(49,109,229,.06);
}
