/* ============================================================
   mini-program.html 专属样式
   布局：左文右三手机壳卡组 → 场景三卡 → 小程序vsAPP表 →
        行业案例三卡 → 落地四步 → CTA
   ============================================================ */

.mp-hero {
  padding: calc(var(--header-h) + 46px) 0 70px;
  overflow: hidden;
  background:
    radial-gradient(820px 420px at 6% 10%, rgba(220,232,210,.6), transparent 60%),
    radial-gradient(700px 400px at 94% 90%, rgba(239,220,166,.55), transparent 60%),
    var(--cream);
}
.mp-hero-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.mp-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--green-1);
  color: var(--green-deeper);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: mpFade .7s ease .1s both;
}
.mp-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  margin-bottom: 18px;
  animation: mpFade .8s ease .25s both;
}
.mp-amber { color: var(--amber); white-space: nowrap; }
.mp-sub { color: var(--ink-2); margin-bottom: 26px; animation: mpFade .8s ease .4s both; }
.mp-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; animation: mpFade .8s ease .55s both; }
.mp-note { font-size: 13px; color: var(--ink-3); }
.mp-note b { color: var(--amber-deep); }

/* 手机壳卡组 */
.mp-hero-visual { display: flex; justify-content: center; }
.mp-phones {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  animation: mpFloat 6s ease-in-out infinite alternate;
}
.mp-phone {
  width: 150px;
  background: var(--ink);
  border-radius: 22px;
  padding: 10px 8px;
  box-shadow: var(--shadow-lift);
}
.mp-phone-mid { transform: translateY(-24px); }
.mp-notch {
  width: 50px; height: 6px;
  background: var(--cream-3);
  border-radius: 999px;
  margin: 0 auto 8px;
}
.mp-screen {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
}
.mp-app-name {
  display: block;
  font-size: 12px;
  padding: 8px 0 4px;
  color: var(--green-deep);
  font-weight: 600;
}
.mp-screen img { width: 100%; height: 230px; object-fit: cover; }

@keyframes mpFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mpFloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* 场景三卡 */
.mp-scene { background: var(--cream-2); }
.mp-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mp-scene-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: all .3s ease;
}
.mp-scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.mp-scene-no {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--yellow-1);
  color: var(--amber-deep);
  font-size: 22px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.mp-scene-card:nth-child(2) .mp-scene-no { background: var(--green-1); color: var(--green-deeper); }
.mp-scene-card:nth-child(3) .mp-scene-no { background: var(--green-2); color: #fff; }
.mp-scene-card h3 { font-size: 18px; margin-bottom: 10px; }
.mp-scene-card p { font-size: 14px; color: var(--ink-2); }

/* 对比表 */
.mp-vs-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-2); }

/* 案例 */
.mp-cases { background: var(--cream-2); }
.mp-case-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mp-case-item {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line);
  transition: all .3s ease;
}
.mp-case-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--green-2); }
.mp-case-item img { width: 100%; height: 180px; object-fit: cover; }
.mp-case-item span {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.mp-case-item b { color: var(--ink); }
.mp-case-note { margin-top: 24px; font-size: 14px; color: var(--ink-2); max-width: 860px; }

/* 落地步骤 */
.mp-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mp-how-s {
  background: #fff;
  border: 2px dashed var(--yellow-3);
  border-radius: var(--r-md);
  padding: 24px 20px;
  text-align: center;
}
.mp-how-s strong {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.mp-how-s p { font-size: 14px; color: var(--ink-2); }
.mp-how-note { margin-top: 24px; font-size: 14px; color: var(--ink-2); max-width: 860px; }

/* 响应式 */
@media (max-width: 1080px) {
  .mp-scene-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mp-hero-in { grid-template-columns: 1fr; gap: 44px; }
  .mp-case-row { grid-template-columns: 1fr; }
  .mp-how-steps { grid-template-columns: repeat(2, 1fr); }
  .mp-phone-mid { transform: none; }
}
@media (max-width: 640px) {
  .mp-actions .btn { width: 100%; }
  .mp-phone { width: 110px; }
  .mp-screen img { height: 180px; }
  .mp-how-steps { grid-template-columns: 1fr; }
}
