/* ==========================================================================
   gandehao.cn 新能源行业网站建设页专属样式 · xinnengyuan-jianzhan.css
   依赖：global.css
   独有签名：左图右文 Hero（镜像样板）+ 横向流程头四步转化条
   ========================================================================== */

/* ---------- ① 左图右文 Hero ---------- */
.xn-hero { background: linear-gradient(120deg, var(--c-mint), var(--c-white) 60%); padding: clamp(64px, 9vw, 110px) 0; }
.xn-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.xn-hero-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); transform: rotate(-1.6deg); }
.xn-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.xn-hero-text h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 14px 0 16px; line-height: 1.32; }
.xn-hero-text p { color: var(--c-muted); font-size: 16px; line-height: 1.9; }
.xn-hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- ② 痛点列表 ---------- */
.xn-pain-list { display: grid; gap: 14px; margin: 22px 0 26px; }
.xn-pain-list li {
  position: relative; padding: 14px 18px 14px 18px;
  background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 15px; line-height: 1.8; color: var(--c-muted);
  transition: border-color .25s, box-shadow .25s;
}
.xn-pain-list li:hover { border-left-color: var(--c-green); box-shadow: var(--sh-sm); }
.xn-pain-list li b { color: var(--c-ink); }

/* ---------- ③ 横向流程头（签名） ---------- */
.xn-flow-track {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.xn-flow-track::before {
  content: ""; position: absolute; top: 30px; left: 6%; right: 6%; height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue)); border-radius: 3px; opacity: .35;
}
.xn-flow-item {
  position: relative; background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 56px 22px 24px; box-shadow: var(--sh-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.xn-flow-item:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.xn-flow-num {
  position: absolute; top: -18px; left: 22px; width: 56px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); background: linear-gradient(120deg, var(--c-green), var(--c-blue));
  color: #fff; font-weight: 800; font-size: 15px; box-shadow: var(--sh-md);
}
.xn-flow-item h3 { font-size: 17.5px; margin-bottom: 8px; }
.xn-flow-item p { font-size: 14px; color: var(--c-muted); line-height: 1.8; }

/* ---------- ⑤ 案例卡 ---------- */
.xn-case {
  display: block; background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.xn-case:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.xn-case-media { height: 168px; overflow: hidden; }
.xn-case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.xn-case:hover .xn-case-media img { transform: scale(1.06); }
.xn-case-body { padding: 16px 20px 20px; }
.xn-case-body h3 { font-size: 16px; margin-bottom: 4px; }
.xn-case-body p { font-size: 13.5px; color: var(--c-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .xn-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .xn-hero-media { transform: none; }
  .xn-flow-track { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .xn-flow-track::before { display: none; }
}
@media (max-width: 560px) {
  .xn-flow-track { grid-template-columns: 1fr; }
}

/* ---------- 交付保障卡 ---------- */
.xn-assure { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px 22px; box-shadow: var(--sh-sm); transition: transform .3s ease, box-shadow .3s ease; }
.xn-assure:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.xn-assure h3 { font-size: 16px; margin-bottom: 6px; }
.xn-assure p { font-size: 13.5px; color: var(--c-muted); line-height: 1.8; }

