/* 呼云 IM 基座产品页 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,500;0,9..40,700;1,9..40,500&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --im-ink: #0b1f2a;
  --im-deep: #123846;
  --im-teal: #1aa08a;
  --im-mint: #2ec4a6;
  --im-foam: #e8f7f3;
  --im-sand: #f3efe6;
  --im-line: rgba(18, 56, 70, 0.12);
  --im-text: #24343c;
  --im-mute: #5d6f78;
}

.im-page {
  font-family: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
  color: var(--im-text);
  background: #f7faf9;
}

.im-page h1,
.im-page h2,
.im-page h3 {
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  letter-spacing: -0.02em;
}

/* Hero：一屏一构图 */
.im-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(46, 196, 166, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(26, 160, 138, 0.22), transparent 50%),
    linear-gradient(160deg, #0b1f2a 0%, #123846 48%, #0e2c36 100%);
  color: #fff;
}

.im-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: im-grid-drift 28s linear infinite;
  pointer-events: none;
}

@keyframes im-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.im-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.im-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
  animation: im-rise 0.8s ease both;
}

.im-brand__mark {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.im-brand__tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--im-mint);
  border: 1px solid rgba(46, 196, 166, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
}

.im-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 14em;
  animation: im-rise 0.9s 0.08s ease both;
}

.im-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32em;
  margin: 0 0 36px;
  animation: im-rise 0.9s 0.16s ease both;
}

.im-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: im-rise 0.9s 0.24s ease both;
}

.im-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.im-btn:hover {
  transform: translateY(-2px);
}

.im-btn--primary {
  background: var(--im-mint);
  color: #062019;
  box-shadow: 0 10px 28px rgba(46, 196, 166, 0.35);
}

.im-btn--primary:hover {
  background: #3fd4b4;
}

.im-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.im-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.im-btn--dark {
  background: var(--im-ink);
  color: #fff;
}

.im-btn--outline {
  background: transparent;
  color: var(--im-deep);
  border: 1px solid var(--im-line);
}

@keyframes im-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 手机预览视觉 */
.im-device {
  justify-self: end;
  width: min(320px, 100%);
  animation: im-float 5.5s ease-in-out infinite;
}

@keyframes im-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.im-device__frame {
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #1c3d4a, #0b1f2a);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.im-device__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #ededed;
  min-height: 520px;
}

.im-chat-top {
  background: #f7f7f7;
  padding: 18px 16px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #191919;
  border-bottom: 1px solid #e5e5e5;
}

.im-chat-body {
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.im-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.im-bubble--peer {
  align-self: flex-start;
  background: #fff;
  color: #191919;
  animation: im-bubble-in 0.6s 0.5s ease both;
}

.im-bubble--me {
  align-self: flex-end;
  background: #95ec69;
  color: #191919;
  animation: im-bubble-in 0.6s 0.9s ease both;
}

.im-bubble--sys {
  align-self: center;
  background: transparent;
  color: #999;
  font-size: 11px;
  padding: 0;
  animation: im-bubble-in 0.6s 1.2s ease both;
}

@keyframes im-bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sections */
.im-section {
  padding: 88px 0;
}

.im-section--foam {
  background: var(--im-foam);
}

.im-section--sand {
  background: var(--im-sand);
}

.im-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.im-section__head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.im-section__head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 12px;
  color: var(--im-ink);
}

.im-section__head p {
  margin: 0;
  color: var(--im-mute);
  font-size: 16px;
  line-height: 1.7;
}

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

.im-cap {
  padding: 28px 24px 26px;
  border-top: 3px solid var(--im-mint);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.im-cap:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 31, 42, 0.08);
}

.im-cap__no {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--im-mint);
  margin-bottom: 14px;
}

.im-cap h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--im-ink);
}

.im-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--im-mute);
}

.im-arch {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.im-arch__node {
  background: #fff;
  border: 1px solid var(--im-line);
  padding: 28px 20px;
  text-align: center;
}

.im-arch__node strong {
  display: block;
  font-size: 18px;
  color: var(--im-ink);
  margin-bottom: 8px;
}

.im-arch__node span {
  font-size: 13px;
  color: var(--im-mute);
  line-height: 1.6;
}

.im-arch__arrow {
  color: var(--im-mint);
  font-size: 22px;
  font-weight: 700;
}

.im-scenes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.im-scene {
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--im-deep);
}

.im-scene h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.im-scene p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--im-mute);
}

.im-try {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.im-try__main,
.im-try__side {
  background: #fff;
  border: 1px solid var(--im-line);
  padding: 36px 32px;
}

.im-try h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--im-ink);
}

.im-try p {
  margin: 0 0 22px;
  color: var(--im-mute);
  line-height: 1.7;
  font-size: 15px;
}

.im-try__accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.im-chip {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--im-foam);
  color: var(--im-deep);
  border-radius: 6px;
}

.im-try__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.im-cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46, 196, 166, 0.2), transparent 50%),
    linear-gradient(135deg, var(--im-ink), var(--im-deep));
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.im-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.im-cta p {
  margin: 0 auto 28px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.im-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .im-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: left;
  }
  .im-device {
    justify-self: center;
    order: -1;
    width: min(260px, 70vw);
  }
  .im-device__screen {
    min-height: 420px;
  }
  .im-caps,
  .im-scenes {
    grid-template-columns: 1fr 1fr;
  }
  .im-arch {
    grid-template-columns: 1fr;
  }
  .im-arch__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .im-try {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .im-caps,
  .im-scenes {
    grid-template-columns: 1fr;
  }
  .im-hero {
    min-height: auto;
  }
  .im-section {
    padding: 64px 0;
  }
}
