/* ============================================================
   WeApp Page Styles
   由 view/weapp/index.html 内联样式正式外置（2026-10-26）

   加载顺序：
     weapp.css -> 本文件 -> site-overrides.css（@import fixes.css, unify.css）

   unify.css 第 16/17 节是一层「强制视觉统一覆盖层」，大量使用
   !important 直接改写 h3 / h4 / p / .section-desc / .stat-label /
   .case-meta 等，且位于本文件之后加载。

   因此本文件分两层写：
     1) 常规样式（结构与装饰）
     2) 收口层：统一用 section.xxx 提高特异性 + !important，
        把字号/颜色/行高/网格锁死，避免被全局层改写。
   ============================================================ */

/* ============================================================
   1. Hero 排版
   ============================================================ */
.weapp-hero .hero-title {
  background: #ffffff;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -1.5px;
}
.weapp-hero .hero-subtitle { color: rgba(255,255,255,.92); font-weight: 400; }
.weapp-hero .hero-eyebrow {
  background: rgba(255,20,134,0.18);
  border: 1px solid rgba(255,107,157,.3);
  color: #ffb3d1; backdrop-filter: blur(10px);
}

/* ============================================================
   2. Section 标题体系
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,20,134,0.08);
  border: 1px solid rgba(255,20,134,.15);
  border-radius: 30px;
  letter-spacing: .2em;
  font-size: .78rem;
}
.section-eyebrow.light {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.section-title {
  font-weight: 800;
  color: #0a2d5e;
  letter-spacing: -.8px;
  line-height: 1.25;
}
.section-title .pink {
  background: #e8107a;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-desc { color: #5b6b85; font-size: 1.06rem; line-height: 1.8; }

/* ============================================================
   3. 统计区 —— 4 列数据条
   ============================================================ */
section.weapp-stats {
  padding: 70px 0 !important;
  margin-top: 0;
  background: #ffffff;
}
section.weapp-stats .container { width: 100%; }

section.weapp-stats .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.stat-card {
  display: block;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 22px rgba(14,43,80,.06);
  border: 1px solid rgba(255,20,134,.05);
  transition: box-shadow .45s cubic-bezier(.4,0,.2,1), border-color .45s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: #e8107a;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.stat-card:hover { border-color: rgba(255,20,134,.15); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-num {
  display: block;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  background: #e8107a;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-num .counter { font-size: inherit; font-weight: inherit; }
.stat-num .unit { letter-spacing: 0; margin-left: 2px; }

/* ============================================================
   4. Why 卡片
   ============================================================ */
.why-icon {
  background: rgba(255,20,134,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,20,134,.08);
}
.why-card {
  border-radius: 22px;
  border: 1px solid rgba(14,43,80,.05);
}

/* ============================================================
   5. 行业卡片
   ============================================================ */
.industry-image { height: 220px; position: relative; }
.industry-image::after {
  content: '';
  position: absolute;
  right: 18px; bottom: -28px;
  width: 90px; height: 130px;
  border-radius: 14px;
  background: rgba(255,255,255,0.28);
  border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 0 0 3px rgba(255,255,255,.08);
  backdrop-filter: blur(2px);
  transform: rotate(-6deg);
  transition: transform .5s cubic-bezier(.4,0,.2,1), bottom .5s ease;
  pointer-events: none;
}
.industry-image::before {
  content: '';
  position: absolute;
  right: 50px; bottom: 92px;
  width: 22px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  z-index: 1;
  transform: rotate(-6deg);
  pointer-events: none;
}
.industry-card:hover .industry-image::after { transform: rotate(-3deg) translateY(-6px); }

.industry-image-content,
.industry-image-content .industry-image-title,
.industry-image-content .industry-tag { color: #fff !important; }
.industry-image-content .industry-image-title {
  display: block;
  margin: 10px 0 0;
  letter-spacing: -.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.15);
}
.industry-tag {
  font-weight: 700;
  letter-spacing: .2em;
  background: #a92a5f !important;
  border: 1px solid rgba(255,255,255,.4) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
}
.industry-body { padding: 30px 28px 32px; }
.industry-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.feature-tag {
  font-weight: 600;
  background: rgba(255,20,134,.07);
  border: 1px solid rgba(255,20,134,.14);
  padding: 6px 14px;
}

.industry-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  font-weight: 700;
  letter-spacing: .3px;
  gap: 8px;
  border-radius: 30px;
  box-shadow: 0 8px 22px rgba(255,20,134,.22);
}
.industry-btn::after {
  content: '\2192';
  display: inline-block;
  transition: transform .3s ease;
  font-weight: 800;
}
.industry-btn:hover { box-shadow: 0 14px 30px rgba(255,20,134,.38); }
.industry-btn:hover::after { transform: translateX(4px); }

/* ============================================================
   6. 功能项
   ============================================================ */
.feature-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(255,20,134,.22);
}
.feature-item { padding: 36px 24px; border-radius: 20px; }

/* ============================================================
   7. 开发流程
   ============================================================ */
.process-dot {
  width: 64px; height: 64px;
  font-weight: 800;
  letter-spacing: -.5px;
  box-shadow: 0 10px 24px rgba(255,20,134,.32), 0 0 0 6px rgba(255,20,134,.08);
}
.process-content { padding: 30px 34px; border-radius: 18px; }

/* ============================================================
   8. 案例区 —— 3 列卡片
   ============================================================ */
section.weapp-cases {
  padding: 80px 0 !important;
  background: #f8faff;
}

section.weapp-cases .cases-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch;
}

.case-card {
  display: flex !important;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(10,55,111,.06);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.case-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f8;
  flex: 0 0 auto;
}
.case-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.case-card:hover .case-image img { transform: scale(1.06); }
.case-overlay {
  position: absolute; inset: 0;
  background: rgba(10,45,94,.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s ease;
}
.case-card:hover .case-overlay { opacity: 1; }
.case-view-btn {
  padding: 10px 22px; border-radius: 24px;
  background: #e8107a; color: #fff;
  font-weight: 600;
}
.case-tags {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: calc(100% - 24px);
}
.case-tag {
  padding: 4px 10px; border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #0a2d5e; font-weight: 600;
  white-space: nowrap;
}
.case-tag.primary { background: #c40d67; color: #fff; }

.case-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.case-meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.case-meta .case-category { font-weight: 600; }
.case-title {
  margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card:hover .case-title { color: #e8107a !important; }
.case-desc {
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.cases-more { text-align: center; margin-top: 40px; }
.view-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 30px;
  background: #e8107a;
  color: #fff; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(232,16,122,.25);
}
.view-more-btn:hover { box-shadow: 0 14px 30px rgba(232,16,122,.35); }

/* ============================================================
   9. CTA 区（模板原误写 .solutions-cta2，两种类名都兼容）
   ============================================================ */
section.solutions-cta,
section.solutions-cta2 {
  /* 1) 上下留白归零（unify.css:462 用 padding-top/bottom !important 撑开，
        这里用更高特异性的长属性直接归零）
     2) 去掉整条深蓝背景带，只留卡片本身
        （unify.css:749 用 !important 给 .solutions-cta 刷了整条渐变，
         specificity (0,1,0) < 本规则 (0,1,1)，可被透明覆盖） */
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
}
section.solutions-cta .cta-box,
section.solutions-cta2 .cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 64px;
  border-radius: 36px;
  /* 背景收进卡片内，卡片自己承担深色渐变 */
  background: #0a2d5e !important;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 50px rgba(10,45,94,.18);
}
section.solutions-cta .cta-box h2,
section.solutions-cta2 .cta-box h2 {
  color: #fff !important; letter-spacing: -.5px; line-height: 1.3; margin: 14px 0 12px;
}
.cta-box-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 32px;
  gap: 8px;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.cta-btn.large { padding: 18px 44px; }
.cta-btn.primary {
  background: #e8107a;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(255,20,134,.36), inset 0 1px 0 rgba(255,255,255,.25);
}
.cta-btn.primary:hover { box-shadow: 0 18px 38px rgba(255,20,134,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.cta-btn.outline {
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.06);
  color: #fff !important;
}
.cta-btn.outline:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.cta-btn::after {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
  transition: transform .3s ease;
}
.cta-btn:hover::after { transform: translateX(5px); }

/* ============================================================
   10. Reveal 兜底
   ============================================================ */
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   11. 收口层（桌面）
   目标：压过 unify.css 第 16/17 节的 !important 强制层
   ============================================================ */

/* --- 统计区：数字 2.6rem / 单位 1.1rem / 标签 .92rem --- */
section.weapp-stats .stat-num {
  font-size: 2.6rem !important;
  font-weight: 800 !important;
}
section.weapp-stats .stat-num .counter {
  font-size: inherit !important;
  font-weight: inherit !important;
}
section.weapp-stats .stat-num .unit {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}
section.weapp-stats .stat-label {
  font-size: .92rem !important;
  line-height: 1.5 !important;
  color: #5b6b85 !important;
  font-weight: 600 !important;
  letter-spacing: .3px;
}

/* --- 各区块 section 描述 --- */
section.weapp-why .section-desc,
section.weapp-industries .section-desc,
section.weapp-features .section-desc,
section.weapp-process .section-desc,
section.weapp-cases .section-desc {
  font-size: 1.06rem !important;
  line-height: 1.8 !important;
  color: #5b6b85 !important;
}
section.weapp-why .section-title,
section.weapp-industries .section-title,
section.weapp-features .section-title,
section.weapp-process .section-title,
section.weapp-cases .section-title {
  color: #0a2d5e !important;
  letter-spacing: -.8px !important;
  line-height: 1.25 !important;
}

/* --- Why 卡片 --- */
section.weapp-why .why-card h3 {
  font-size: 1.22rem !important;
  line-height: 1.4 !important;
  color: #0a2d5e !important;
  font-weight: 700 !important;
}
section.weapp-why .why-card p {
  font-size: .94rem !important;
  line-height: 1.75 !important;
  color: #5b6b85 !important;
}

/* --- 行业卡片 --- */
section.weapp-industries .industry-image-content .industry-image-title {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
section.weapp-industries .industry-tag {
  font-size: .75rem !important;
  line-height: 1.4 !important;
}
section.weapp-industries .industry-body h3 {
  font-size: 1.2rem !important;
  line-height: 1.4 !important;
  color: #0a2d5e !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}
section.weapp-industries .industry-desc {
  font-size: .95rem !important;
  line-height: 1.7 !important;
  color: #5b6b85 !important;
  margin: 0 0 18px !important;
}
section.weapp-industries .feature-tag {
  font-size: .8rem !important;
  line-height: 1.4 !important;
}
section.weapp-industries .industry-btn {
  font-size: .92rem !important;
}

/* --- 功能项 --- */
section.weapp-features .feature-item h3 {
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
  color: #0a2d5e !important;
  margin-bottom: 10px !important;
}
section.weapp-features .feature-item p {
  font-size: .88rem !important;
  line-height: 1.7 !important;
  color: #5b6b85 !important;
  margin: 0 !important;
}

/* --- 开发流程 --- */
section.weapp-process .process-content h3 {
  font-size: 1.2rem !important;
  line-height: 1.4 !important;
  color: #0a2d5e !important;
  margin-bottom: 10px !important;
}
section.weapp-process .process-content p {
  font-size: .92rem !important;
  line-height: 1.7 !important;
  color: #5b6b85 !important;
  margin: 0 !important;
}

/* --- 案例卡片 --- */
section.weapp-cases .case-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: #0a2d5e !important;
}
section.weapp-cases .case-desc {
  font-size: .85rem !important;
  line-height: 1.6 !important;
  color: #5b6b85 !important;
}
section.weapp-cases .case-meta {
  font-size: .78rem !important;
  line-height: 1.4 !important;
  color: #5b6b85 !important;
}
section.weapp-cases .case-tag {
  font-size: .75rem !important;
  line-height: 1.4 !important;
}
section.weapp-cases .view-more-btn {
  font-size: .95rem !important;
}

/* --- CTA 区 --- */
section.solutions-cta .cta-box p,
section.solutions-cta2 .cta-box p {
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,.85) !important;
  max-width: 520px;
  margin: 0 !important;
}
section.solutions-cta .section-eyebrow,
section.solutions-cta2 .section-eyebrow {
  font-size: .78rem !important;
}
section.solutions-cta .cta-btn,
section.solutions-cta2 .cta-btn {
  font-size: 1rem !important;
}

/* --- 悬停收口：统计卡与案例卡不要位移，只留阴影反馈 --- */
/* unify.css:950 对 .stat-card / .case-card 用 !important 加了 translateY(-4px)，
   这里用更高特异性压掉位移 */
section.weapp-stats .stat-card.reveal:hover,
section.weapp-cases .case-card.reveal:hover {
  transform: none !important;
}

/* ============================================================
   12. 响应式（放在收口层之后，含 !important 覆盖）
   ============================================================ */
@media (max-width: 1024px) {
  section.weapp-cases .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  section.solutions-cta .cta-box,
  section.solutions-cta2 .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 56px 40px;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  section.weapp-stats { padding: 48px 0 !important; }
  section.weapp-stats .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .stat-card { padding: 24px 14px; }
  section.weapp-stats .stat-num { font-size: 2rem !important; letter-spacing: -1px; }
  section.weapp-stats .stat-num .unit { font-size: .9rem !important; }
  section.weapp-stats .stat-label { font-size: .85rem !important; }

  section.weapp-cases { padding: 56px 0 !important; }
  section.weapp-cases .cases-grid { gap: 16px !important; }

  section.solutions-cta,
  section.solutions-cta2 {
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  section.solutions-cta .cta-box,
  section.solutions-cta2 .cta-box { padding: 40px 24px; border-radius: 28px; }
  .cta-box-actions { width: 100%; }
  section.solutions-cta .cta-btn,
  section.solutions-cta2 .cta-btn { padding: 14px 28px; font-size: .95rem !important; min-height: 44px; }
  section.solutions-cta .cta-btn.large,
  section.solutions-cta2 .cta-btn.large { padding: 15px 30px; font-size: 1rem !important; flex: 1 1 100%; }

  section.weapp-industries .industry-btn { padding: 13px 24px; font-size: .9rem !important; min-height: 44px; }
  .feature-icon-wrap { width: 56px; height: 56px; }
  .process-dot {
    width: 52px; height: 52px; font-size: .95rem;
    box-shadow: 0 8px 18px rgba(255,20,134,.28), 0 0 0 4px rgba(255,20,134,.08);
  }
  section.weapp-why .section-title,
  section.weapp-industries .section-title,
  section.weapp-features .section-title,
  section.weapp-process .section-title,
  section.weapp-cases .section-title { font-size: 1.7rem !important; }
  .industry-image::after { width: 70px; height: 100px; bottom: -20px; }
  .industry-image::before { bottom: 70px; right: 38px; width: 18px; }
}

@media (max-width: 640px) {
  section.weapp-cases .cases-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  section.weapp-stats .stats-grid {
    grid-template-columns: 1fr !important;
  }
  section.weapp-stats .stat-num { font-size: 1.9rem !important; }
}

/* ---------- 2026-10-28 行业卡布局 ---------- */
/* 现在是 5 张卡，3 列网格会在第二行空出一格，右侧留下一个明显的洞。
   改成 flex + 居中对齐，最后一行 2 张卡自动居中，看起来是刻意的双卡收尾。 */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.industry-grid > * {
  flex: 0 1 calc((100% - 56px) / 3);
  min-width: 0;
}
@media (max-width: 1024px) {
  .industry-grid > * {
    flex: 0 1 calc((100% - 28px) / 2);
  }
}
@media (max-width: 640px) {
  .industry-grid { gap: 20px; }
  .industry-grid > * {
    flex: 0 1 100%;
  }
}
