/* ============================================================
 * 首页模块专属样式：M1 Banner / M2 核心价值 / M3 产品 /
 *                     M4 实力 / M5 解决方案 / M6 流程 / M7 表单
 * ============================================================ */

/* ---------- M1 Banner 轮播 ---------- */
.hero { margin-top: 66px; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 680px; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  /* 与下方 .container-x 对齐：保留 inset:0 使遮罩覆盖整屏，仅用 padding 把文字左缘对齐到 1200px 居中容器的左缘 */
  padding: 0 20px; color: #fff;
  /* 增强左侧遮罩：全铺 25% 深色基底 + 左深右浅渐变，压住背景图自带水印文字，保证前景文字清晰可读 */
  background:
    linear-gradient(90deg, rgba(8,20,48,.85), rgba(8,20,48,.22) 50%, rgba(8,20,48,0) 72%),
    rgba(8,20,48,.25);
  /* 修复：遮罩覆盖整屏（inset:0）且 z-index:4 高于轮播箭头(1)/指示点(2)，默认 pointer-events:auto 会吞掉所有点击，
     导致指示点与小箭头无法手动切换。改为 none 让点击穿透到下层轮播控件，视觉层级保持不变。 */
  pointer-events: none;
}
/* 遮罩穿透后，恢复 caption 内 CTA 链接（.btn-brand/.btn-ghost，含 #lead/#chat 等）及其容器 .hero-btns 的可点击性 */
.hero-caption a,
.hero-caption .hero-btns { pointer-events: auto; }
/* 桌面端（≥1200px）：.container-x 进入居中态，将文字左缘精确对齐到容器左缘
   （calc 中的 100% 取 .hero 宽度，与 .container-x 居中计算一致）。
   文本整体限宽 600px，避免与右侧产品截图（.hero-figure）视觉重叠（caption 层级高于 figure）。 */
@media (min-width: 1200px) {
  .hero-caption { padding-left: calc((100% - var(--maxw)) / 2 + 20px); }
}
.hero-caption h1,
.hero-caption p,
.hero-caption .sub,
.hero-caption .hero-btns { max-width: 600px; }
.hero-caption h1 { font-size: 46px; font-weight: 800; margin: 0 0 14px; }
.hero-caption p { font-size: 20px; margin: 0 0 10px; opacity: .95; }
.hero-caption .sub { font-size: 18px; opacity: .85; margin-bottom: 24px; }
.hero-caption .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
/* 轮播指示器 — 精致圆点 */
.carousel-indicators {
  margin-bottom: 18px;
  gap: 8px;
}
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  opacity: 1;
  transition: all .35s ease;
  box-shadow: none;
}
.carousel-indicators .active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}

/* ---------- M2 核心价值 ---------- */
.core-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.core-item { text-align: center; padding: 30px 22px; }
.core-item .icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px;
  background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.core-item h3 { font-size: 18px; margin: 0 0 8px; }
.core-item p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

/* ---------- M3 产品展示 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product-card .pc-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex: 0 0 52px;
}
.product-card h3 { font-size: 18px; margin: 0; }
.product-card .tag {
  display: inline-block; font-size: 12px; color: var(--brand-dark); background: var(--brand-light);
  border-radius: 6px; padding: 2px 8px; margin-top: 4px;
}
.product-card p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

/* ---------- M3 产品中心手风琴（P1-⑤，Batch 4） ----------
 * 与 solutions.html 的 .sol-* 手风琴风格保持一致，前缀改为 .prod-。
 * 容器沿用 .product-grid（已有 3 列网格 + 响应式），每张产品卡为一个 .prod-card-wrap。
 * 头部 .prod-head 为 Bootstrap collapse 触发按钮，展开面板含详情/列表/价值/CTA。 */
.prod-grid { align-items: start; }
.prod-card-wrap { display: flex; flex-direction: column; }
.prod-head {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s; font: inherit; color: inherit;
}
.prod-head:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.prod-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.prod-icon svg { width: 26px; height: 26px; }
.prod-head-main { flex: 1 1 auto; }
.prod-head-main h3 { font-size: 18px; margin: 0 0 6px; }
.prod-head-main p { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; line-height: 1.7; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
}
.prod-arrow { flex: 0 0 auto; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s; }
.prod-head[aria-expanded="true"] .prod-arrow { transform: rotate(45deg); }

.prod-detail-wrap { width: 100%; }
.prod-detail { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.prod-desc-full { color: var(--ink-2); font-size: 14px; line-height: 1.9; margin: 0 0 14px; }
.prod-block { margin-bottom: 14px; }
.prod-block:last-of-type { margin-bottom: 0; }
.prod-block h4 { font-size: 15px; margin: 0 0 8px; color: var(--brand-dark); }
.prod-list { margin: 0; padding-left: 18px; }
.prod-list li { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.prod-value { color: var(--ink-2); font-size: 14px; line-height: 1.9; margin: 0; }
.prod-cta { display: inline-block; margin-top: 6px; }

/* ---------- M4 企业实力（数字滚动） ---------- */
.stats { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.stats .section-title h2, .stats .section-title p { color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-num { font-size: 52px; font-weight: 800; line-height: 1; }
.stat-label { margin-top: 10px; opacity: .92; font-size: 15px; }

/* ---------- M5 解决方案 ---------- */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card .sol-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.solution-card h3 { font-size: 19px; margin: 0 0 8px; }
.solution-card p { color: var(--ink-2); margin: 0 0 14px; font-size: 14.5px; }
.sol-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-tags span { font-size: 12.5px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; }

/* ---------- M6 服务流程 ---------- */
.process { background: var(--bg-soft); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process-step { position: relative; }
.process-step .step-no {
  font-size: 40px; font-weight: 800; color: var(--brand);
}
.process-step h3 { font-size: 18px; margin: 6px 0 8px; }
.process-step p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
.process-step::after {
  content: ''; position: absolute; top: 18px; right: -11px; width: 22px; height: 2px;
  background: var(--brand); opacity: .35;
}
.process-step:last-child::after { display: none; }

/* ---------- M7 获客表单 ---------- */
.lead { background: linear-gradient(135deg, #0e1726, #16263f); color: #fff; }
.lead .section-title h2, .lead .section-title p { color: #fff; }
.lead-wrap { max-width: 720px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-md); }
.lead-form .row { --bs-gutter-x: 18px; }
.lead-form label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.lead-form .req { color: #e5493d; margin-left: 2px; }
.lead-form .form-control { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); }
.lead-form .form-control:focus { border-color: var(--brand); box-shadow: none; }
.lead-form textarea.form-control { resize: vertical; min-height: 110px; }
.lead-msg { margin-top: 14px; font-size: 14px; min-height: 22px; }
.lead-msg.ok { color: #1a9d54; }
.lead-msg.err { color: #e5493d; }
.field-err { color: #e5493d; font-size: 12.5px; margin-top: 4px; display: none; }
.form-control.invalid { border-color: #e5493d; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .core-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
}
@media (max-width: 767px) {
  .hero { margin-top: 60px; }
  .hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 360px; }
  .hero-caption h1 { font-size: 28px; }
  .hero-caption p { font-size: 16px; }
  .hero-caption .sub { font-size: 14px; }
  .core-grid, .product-grid, .solution-grid, .stat-grid, .process-grid { grid-template-columns: 1fr; }
  .lead-wrap { padding: 24px 18px; }
}

/* ---------- 图集网格（产品截图 / 应用场景 / 办公环境） ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-item {
  background: #fff;
  border: 1px solid var(--line, #e8edf3);
  border-radius: var(--radius, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(20,40,80,.06));
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 12px 28px rgba(20,40,80,.12));
}
.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #f3f6fb;
}
.gallery-cap {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-1, #1f2a44);
  font-weight: 600;
}
.gallery-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--ink-2, #6b7689);
  background: #f7f9fc;
  border: 1px dashed var(--line, #e8edf3);
  border-radius: var(--radius, 14px);
}

/* ---------- 联系页微信二维码（由 contact.html 内联样式控制） ---------- */

/* ---------- 图集响应式（移动端单列） ---------- */
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * 企业定制页 / 关于我们增强（Batch 2）：静态特性卡、表单卡片、技术架构分层
 * 复用 .card-soft / .section / .process-grid 等现有结构，仅补充布局类。
 * ============================================================ */

/* ---------- 特性卡网格（4 卡桌面一行，3 卡默认） ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { text-align: center; padding: 30px 22px; }
.feature-card .feat-icon {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.feature-card .feat-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 18px; margin: 0 0 8px; }
.feature-card p { color: var(--ink-2); margin: 0; font-size: 14.5px; }
/* 案例占位标签 */
.case-flag {
  display: inline-block; margin-top: 12px; font-size: 12px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}

/* ---------- 表单卡片容器（定制页咨询表单复用 .lead-form） ---------- */
.form-wrap {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 36px; box-shadow: var(--shadow-md);
}
.form-wrap .section-title { margin-bottom: 28px; }

/* ---------- 技术架构分层框图（关于我们） ---------- */
.arch-stack { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin: 0 auto; }
.arch-layer {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px; transition: transform .18s ease, box-shadow .18s ease;
}
.arch-layer:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.arch-tag {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
}
.arch-body h3 { margin: 0 0 4px; font-size: 17px; }
.arch-body p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- 响应式（特性卡 / 表单 / 架构） ---------- */
@media (max-width: 991px) {
  .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .feature-grid, .feature-grid.cols-4 { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 18px; }
  .arch-layer { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
}

/* ============================================================
 * 资讯模块（Batch 3）：列表(news.html) / 首页预览(index.html) / 详情(article.html)
 * 复用 .card-soft 卡片基底，仅补充资讯专属布局与排版类。
 * ============================================================ */

/* ---------- 分类标签（文字 + 颜色块，未使用图标） ---------- */
.news-cat {
  display: inline-block; align-self: flex-start;
  font-size: 12px; line-height: 1; padding: 5px 10px; border-radius: 6px;
  background: var(--brand-light, #eef4ff); color: var(--brand-dark, #1f4fd6);
  margin-bottom: 12px;
}

/* ---------- 资讯卡片（列表 / 预览通用） ---------- */
.news-card, .news-preview-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover, .news-preview-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,.08));
  border-color: var(--brand, #2f6bff);
}
.news-title { font-size: 19px; margin: 0 0 10px; line-height: 1.5; font-weight: 700; }
.news-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 13px; color: var(--ink-2, #6b7280); margin-bottom: 10px;
}
.news-excerpt {
  color: var(--ink-2, #6b7280); margin: 0 0 14px; line-height: 1.8; font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more { margin-top: auto; color: var(--brand, #2f6bff); font-size: 14px; font-weight: 600; }

/* ---------- 列表网格（资讯中心页，3 列） ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- 首页预览网格（3 列，较紧凑） ---------- */
.news-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- 空状态 / 加载提示 ---------- */
.news-empty, .article-empty {
  text-align: center; color: var(--ink-2, #6b7280);
  padding: 48px 0; font-size: 15px;
}

/* ---------- 资讯详情（article.html） ---------- */
.article-detail { max-width: 820px; margin: 92px auto 64px; padding: 0 20px; }
.article-head { margin-bottom: 22px; }
.article-title { font-size: 30px; line-height: 1.4; margin: 12px 0 14px; font-weight: 800; }
.article-meta { font-size: 14px; color: var(--ink-2, #6b7280); margin-bottom: 6px; }
.article-cover { margin: 8px 0 24px; }
.article-cover img { width: 100%; border-radius: 12px; display: block; }
.article-body { font-size: 16px; line-height: 1.95; color: #2a2f3a; }
.article-body p { margin: 0 0 18px; }
.article-body img { max-width: 100%; border-radius: 8px; }
.article-body h2, .article-body h3 { margin: 26px 0 12px; }
.article-back { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line, #e8edf3); }
.article-back a { color: var(--brand, #2f6bff); text-decoration: none; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .news-grid, .news-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .news-grid, .news-preview-grid { grid-template-columns: 1fr; }
  .article-detail { margin: 84px auto 48px; }
  .article-title { font-size: 24px; }
}

/* ============================================================
 * 视觉装饰层（UI 改进）：Hero 配图 / 流程图标 / 使命愿景图标 / 资讯封面占位
 * 复用现有 CSS 变量与图标机制；仅 Hero 右侧复用已压缩产品截图（无新增二进制资产）。
 * ============================================================ */

/* ---------- M1 Hero 右侧真实产品截图 + 装饰光斑（决策 #4） ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .10;
  background-image: radial-gradient(rgba(255,255,255,.85) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
}
/* 文案区宽度约束已移至上方 .hero-caption（与 .container-x 对齐 + 文本限宽 600px），
   此处仅保留层级声明，确保 caption 文字始终位于右侧产品截图（.hero-figure, z-index:3）之上。 */
.hero .hero-caption { z-index: 4; }
.hero-figure {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: 34%; max-width: 420px; z-index: 3; pointer-events: none;
}
.hero-figure .figure-card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 6px solid rgba(255,255,255,.92); background: #fff;
  box-shadow: 0 24px 56px rgba(8,20,48,.38);
}
.hero-figure .figure-card img { width: 100%; height: auto; display: block; }
.hero-figure::before {
  content: ''; position: absolute; z-index: -1; top: -12%; right: -10%;
  width: 72%; height: 72%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 70%);
  filter: blur(4px);
}

/* ---------- M6 合作流程步骤图标 ---------- */
.process-step .step-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px;
  background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(22,119,255,.14);
}
.process-step .step-icon svg { width: 28px; height: 28px; display: block; }

/* ---------- 关于页 使命·愿景·价值观 卡片图标 ---------- */
.value-card { text-align: center; }
.value-card .val-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.value-card .val-icon svg { width: 30px; height: 30px; display: block; }

/* ---------- 资讯封面占位（无 cover 时渲染：内联 SVG 点阵背景 + 居中标注） ---------- */
.news-cover-ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 190px; overflow: hidden;
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%3E%3Cg%20fill='%231677ff'%20fill-opacity='0.08'%3E%3Ccircle%20cx='20'%20cy='20'%20r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 22px 22px;
}
.news-cover-ph .ph-label {
  position: relative; z-index: 1; font-size: 14px; font-weight: 600; color: var(--brand-dark);
  background: rgba(255,255,255,.88); padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(22,119,255,.12);
}
/* 列表 / 首页预览卡片内：封面满铺到卡片顶部圆角（抵消 .card-soft 内边距） */
.news-card .news-cover-ph, .news-preview-card .news-cover-ph {
  margin: -26px -26px 18px; border-radius: 0;
}
/* 详情页封面占位：随正文容器宽度，圆角呈现 */
.article-cover .news-cover-ph { border-radius: 12px; height: 220px; }

/* 资讯真实封面（API 提供 cover 时）：同样满铺到卡片顶部圆角 */
.news-cover { margin: -26px -26px 18px; border-radius: 0; height: 190px; overflow: hidden; background: var(--bg-soft); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover .news-cover { margin: 0; height: auto; border-radius: 12px; }

@media (max-width: 991px) {
  /* 平板及以下隐藏 Hero 右侧配图，避免与轮播文案重叠 */
  .hero-figure { display: none; }
}
