:root {
  --s-brand: #6366f1;
  --s-brand-2: #a855f7;
  --s-ink: #131a2b;
  --s-muted: #6b7488;
  --s-line: #e9ecf4;
  --s-bg: #ffffff;
  --s-soft: #f7f8fc;
  --s-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--s-ink);
  background: var(--s-bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--s-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--s-brand), var(--s-brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 22px -10px rgba(99, 102, 241, 0.95);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 34px;
  font-size: 14px;
  color: var(--s-muted);
}

.nav-links a:hover {
  color: var(--s-brand);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 11px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--s-brand), var(--s-brand-2));
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(99, 102, 241, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(99, 102, 241, 1);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--s-line);
  color: #414a5e;
}

.btn-ghost:hover {
  border-color: #cfd5e4;
  background: var(--s-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background: radial-gradient(circle at 12% 20%, rgba(99, 102, 241, 0.16), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.16), transparent 42%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 18px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--s-brand), var(--s-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 16px;
  color: var(--s-muted);
  margin: 0 0 28px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--s-line);
}

.hero-stats b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-stats span {
  font-size: 12.5px;
  color: var(--s-muted);
}

.mock {
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--s-line);
  box-shadow: 0 40px 80px -40px rgba(20, 26, 45, 0.55);
  overflow: hidden;
}

.mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--s-line);
  background: var(--s-soft);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.mock-dot:nth-child(2) {
  background: #febc2e;
}

.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--s-muted);
}

.mock-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: #f8f9fc;
  min-height: 330px;
}

.bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 15px;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 2px 10px -6px rgba(23, 28, 45, 0.4);
}

.bubble.in {
  background: #fff;
  border-bottom-left-radius: 5px;
}

.bubble.out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--s-brand), var(--s-brand-2));
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble.who {
  font-size: 11px;
  color: var(--s-muted);
  margin-bottom: 4px;
  display: block;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 13px 15px;
  background: #fff;
  border-radius: 15px 15px 15px 5px;
  width: fit-content;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-brand);
  opacity: 0.5;
  animation: blink 1.1s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

section.block {
  padding: 72px 0;
}

section.soft {
  background: var(--s-soft);
}

.sec-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 46px;
}

.sec-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}

.sec-head p {
  color: var(--s-muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fcard {
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -34px rgba(20, 26, 45, 0.5);
}

.fcard .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--s-brand), var(--s-brand-2));
  box-shadow: 0 12px 24px -14px rgba(99, 102, 241, 1);
}

.fcard .ico svg {
  width: 22px;
  height: 22px;
}

.fcard h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
}

.fcard p {
  margin: 0;
  color: var(--s-muted);
  font-size: 14px;
}

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

.pcard {
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px -30px rgba(20, 26, 45, 0.5);
}

.pcard .thumb {
  height: 132px;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: #fff;
}

.pcard .body {
  padding: 14px 16px 16px;
}

.pcard .name {
  font-weight: 700;
  font-size: 14.5px;
}

.pcard .desc {
  font-size: 12.5px;
  color: var(--s-muted);
  margin: 4px 0 10px;
  min-height: 34px;
}

.pcard .price {
  color: #ef4444;
  font-weight: 800;
  font-size: 16px;
}

.pcard .price s {
  color: #b3bacb;
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}

.ask {
  margin-top: 12px;
  width: 100%;
  border: 1px solid var(--s-line);
  background: #fff;
  color: var(--s-brand);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ask:hover {
  background: rgba(99, 102, 241, 0.07);
  border-color: var(--s-brand);
}

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.qa {
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 15px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.qa h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.qa p {
  margin: 0;
  color: var(--s-muted);
  font-size: 14px;
}

.cta {
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #a855f7);
  box-shadow: 0 40px 70px -40px rgba(79, 70, 229, 0.9);
}

.cta h2 {
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 800;
}

.cta p {
  margin: 0 0 26px;
  opacity: 0.92;
}

.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.cta .btn-white {
  background: #fff;
  color: #4f46e5;
}

footer.site {
  border-top: 1px solid var(--s-line);
  padding: 30px 0;
  color: var(--s-muted);
  font-size: 13px;
}

.foot-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.foot-inner .spacer {
  margin-left: auto;
}

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

  .hero h1 {
    font-size: 34px;
  }

  .cards,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .cards,
  .products {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 22px;
  }

  .cta {
    padding: 38px 22px;
  }
}
