/* =========================================================
   短信通知系统 · 产品详情页
   浅色极光 + 白玻璃 + 短信对话
   ========================================================= */

.bp-sms {
  --sm-ink: #061426;
  --sm-blue: #1366ec;
  --sm-cyan: #5c99ff;
  --sm-violet: #8b5cf6;
  --sm-green: #0f9f8a;
  --sm-amber: #f59e0b;
  --sm-paper: #f4f7fb;
  --sm-cream: #eaf1f8;
  --sm-line: rgba(13, 41, 70, 0.1);
  --sm-line-strong: rgba(13, 41, 70, 0.17);
  --sm-muted: #5c7088;
  --sm-muted-2: #8798ab;
  background: var(--sm-paper);
}

.bp-sms .container {
  width: min(calc(100% - 48px), 1200px);
}

/* ---------- Hero ---------- */

.bp-sms .sm-hero {
  padding-top: calc(var(--header-h) + 50px);
  padding-bottom: 66px;
}

.sm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 56px;
  align-items: center;
}

.bp-sms .sm-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 64px);
}

.bp-sms .page-hero__sub {
  max-width: 620px;
}

.sm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.sm-hero .page-hero__meta {
  margin-top: 30px;
}

/* 手机短信 */

.sm-phone-wrap {
  position: relative;
  width: min(100%, 360px);
  margin-left: auto;
}

.sm-phone {
  position: relative;
  padding: 10px;
  background: #0c2748;
  border-radius: 40px;
  box-shadow:
    0 34px 70px -26px rgba(6, 24, 60, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(-1deg);
}

.sm-phone__screen {
  overflow: hidden;
  background: #f4f7fb;
  border-radius: 32px;
}

.sm-phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 8px;
  color: var(--sm-muted-2);
  font-size: 9px;
}

.sm-phone__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 16px 10px;
  background: #fff;
  border-bottom: 1px solid var(--sm-line);
}

.sm-phone__avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #1366ec, #5c99ff);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

.sm-phone__head div strong {
  display: block;
  color: var(--sm-ink);
  font-size: 11px;
  font-weight: 700;
}

.sm-phone__head div span {
  display: block;
  margin-top: 1px;
  color: var(--sm-muted-2);
  font-size: 8px;
}

.sm-chat {
  display: grid;
  gap: 8px;
  padding: 14px 12px 18px;
}

.sm-msg {
  max-width: 88%;
  padding: 9px 11px;
  color: #3c5168;
  background: #fff;
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 4px 10px -6px rgba(13, 41, 70, 0.16);
  font-size: 9.5px;
  line-height: 1.65;
}

.sm-msg b {
  color: var(--sm-blue);
  font-weight: 650;
}

.sm-msg--me {
  margin-left: auto;
  color: #fff;
  background: var(--sm-blue);
  border-radius: 12px 4px 12px 12px;
}

.sm-time {
  color: var(--sm-muted-2);
  font-size: 8px;
  text-align: center;
}

.sm-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--sm-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 14px 30px -16px rgba(6, 24, 60, 0.34);
  font-size: 10px;
  font-weight: 600;
}

.sm-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--sm-green);
  border-radius: 50%;
}

.sm-chip--a { top: -20px; left: -14px; }
.sm-chip--b { right: -14px; bottom: -16px; }

/* ---------- 通用 ---------- */

.sm-head {
  max-width: 820px;
  margin-bottom: 38px;
}

.sm-head h2 {
  margin: 0;
  color: var(--sm-ink);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.sm-head > p {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--sm-muted);
  font-size: var(--fs-md);
  line-height: 1.9;
}

/* ---------- 痛点 ---------- */

.sm-pains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sm-pain {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sm-pain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sm-pain__num {
  color: rgba(19, 102, 236, 0.3);
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.sm-pain h3 {
  margin: 16px 0 5px;
  color: var(--sm-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.sm-pain p {
  margin: 0;
  color: var(--sm-muted);
  font-size: var(--fs-2xs);
  line-height: 1.75;
}

/* ---------- 核心价值 ---------- */

.sm-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sm-value {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.sm-value__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--sm-blue);
  background: rgba(19, 102, 236, 0.08);
  border-radius: 11px;
}

.sm-value__icon svg {
  width: 19px;
  height: 19px;
}

.sm-value h3 {
  margin: 15px 0 5px;
  color: var(--sm-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.sm-value p {
  margin: 0;
  color: var(--sm-muted);
  font-size: var(--fs-2xs);
  line-height: 1.75;
}

/* ---------- 场景 ---------- */

.sm-scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sm-scene {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.sm-scene__num {
  color: rgba(19, 102, 236, 0.34);
  font-family: var(--font-num);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
}

.sm-scene h3 {
  margin: 0;
  color: var(--sm-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.sm-scene p {
  margin: 5px 0 0;
  color: var(--sm-muted);
  font-size: var(--fs-2xs);
  line-height: 1.7;
}

.sm-scene em {
  display: block;
  margin-top: 8px;
  padding: 7px 9px;
  color: #3c5168;
  background: var(--sm-paper);
  border-radius: 5px;
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.6;
}

/* ---------- 能力 ---------- */

.sm-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sm-cap {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.sm-cap span {
  color: var(--sm-blue);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
}

.sm-cap h3 {
  margin: 8px 0 4px;
  color: var(--sm-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}

.sm-cap p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- 数据带 ---------- */

.sm-data-band {
  position: relative;
  padding: 44px;
  overflow: hidden;
  color: #fff;
  background: var(--v2-brand-band, linear-gradient(125deg, #094ebd, #1366ec 42%, #6366f1 74%, #8b5cf6));
  border-radius: 30px;
}

.sm-data-band::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -80px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.sm-data-band__head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 24px;
}

.sm-data-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.sm-data-band__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.sm-data-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sm-data-stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
}

.sm-data-stat strong {
  display: block;
  color: #fff;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.sm-data-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .sm-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sm-phone-wrap { margin: 0 auto; }

  .sm-pains,
  .sm-values {
    grid-template-columns: 1fr 1fr;
  }

  .sm-scenes {
    grid-template-columns: 1fr;
  }

  .sm-caps {
    grid-template-columns: 1fr 1fr;
  }

  .sm-data-band__head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .sm-data-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .bp-sms .container {
    width: min(calc(100% - 36px), 1200px);
  }

  .bp-sms .sm-hero {
    padding-top: calc(var(--header-h) + 42px);
    padding-bottom: 54px;
  }

  .bp-sms .sm-hero h1 {
    font-size: clamp(36px, 10.4vw, 50px);
  }

  .sm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sm-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .sm-phone {
    transform: none;
  }

  .sm-chip--a {
    display: none;
  }

  .sm-chip--b {
    right: 0;
    bottom: -14px;
  }

  .sm-head h2 { font-size: 30px; }

  .sm-pains,
  .sm-values,
  .sm-scenes,
  .sm-caps,
  .sm-data-stats {
    grid-template-columns: 1fr;
  }

  .sm-data-band {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .sm-hero .page-hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}