/* ============================ 落地页 ============================ */
.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(231, 233, 240, 0.9);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo b {
  font-weight: 700;
}
.logo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-left: -4px;
  margin-top: 3px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, #6366f1, #4338ca);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.logo-mark svg {
  width: 21px;
  height: 21px;
}
.logo-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.logo-mark.small svg {
  width: 17px;
  height: 17px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-right: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 60px;
  background:
    radial-gradient(900px 420px at 82% -8%, #e7e9ff 0%, transparent 62%),
    radial-gradient(700px 380px at 6% 8%, #eef4ff 0%, transparent 60%),
    #fbfbfe;
}
.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -260px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, #4f46e5 10%, #7c3aed 55%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 30px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------------------------- Hero 视觉 ---------------------------- */
.hero-visual {
  position: relative;
  min-height: 460px;
}
.mock-window {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(16, 24, 40, 0.28), 0 2px 6px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #4f46e5, #6d5ce7);
  color: #fff;
}
.mock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.34);
}
.mock-who b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.mock-who span {
  font-size: 11px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mock-who .dot {
  width: 6px;
  height: 6px;
  background: #6ce9a6;
  box-shadow: none;
}
.mock-dots {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.mock-dots i {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}
.mock-body {
  padding: 18px 16px 6px;
  min-height: 286px;
  background: linear-gradient(180deg, #fafbff, #fff);
}
.mock-day {
  text-align: center;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.bubble {
  max-width: 84%;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: 12px;
  margin-bottom: 10px;
  animation: bubbleIn 0.4s ease both;
}
.bubble.agent {
  background: #f2f4f8;
  color: #1d2939;
  border-bottom-left-radius: 4px;
}
.bubble.visitor {
  margin-left: auto;
  background: linear-gradient(135deg, #5b52ee, #4f46e5);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble:nth-child(3) {
  animation-delay: 0.1s;
}
.bubble:nth-child(4) {
  animation-delay: 0.2s;
}
.bubble:nth-child(5) {
  animation-delay: 0.3s;
}
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 13px;
  background: #f2f4f8;
  border-radius: 12px;
  margin-bottom: 10px;
}
.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98a2b3;
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.typing i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.mock-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted-2);
}
.mock-input span {
  flex: 1;
  background: #f6f7fb;
  border-radius: 8px;
  padding: 8px 11px;
}
.mock-input b {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.mock-widget {
  position: absolute;
  right: -14px;
  bottom: -12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 3;
}
.mw-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: var(--shadow-md);
  width: 186px;
  animation: floaty 5s ease-in-out infinite;
}
.mw-card b {
  font-size: 12.5px;
}
.mw-card p {
  margin: 3px 0 9px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.mw-btn {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-600);
  font-size: 11.5px;
  font-weight: 600;
}
.mw-bubble {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, #6366f1, #4338ca);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4);
}
.mw-bubble svg {
  width: 24px;
  height: 24px;
}
.mw-bubble i {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #f04438;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  font-weight: 700;
}
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-label {
  font-size: 10.5px;
  color: var(--muted);
}
.float-card b {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.float-card b span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.fc-1 {
  left: -18px;
  top: 76px;
  animation-delay: 0.8s;
}
.fc-2 {
  left: 8px;
  bottom: 26px;
  animation-delay: 1.6s;
}
.fc-up {
  font-size: 10.5px;
  color: #067647;
  font-weight: 600;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* ---------------------------- 客户标 ---------------------------- */
.logos {
  padding: 30px 0 40px;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.logos p {
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  margin: 0 0 16px;
}
.logo-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  color: #9aa2b1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------------------------- 功能区 ---------------------------- */
.section {
  padding: 82px 0;
}
.section-head {
  max-width: 620px;
  margin: 0 auto 46px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #dcdff0;
}
.feat-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 19px;
  margin-bottom: 15px;
}
.feat h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 650;
}
.feat p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------------------------- 接入 ---------------------------- */
.how {
  background: linear-gradient(180deg, #fff, #f8f9ff);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  position: relative;
}
.step b {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}
.step code {
  background: #f4f5fa;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--brand-600);
}
.code-demo {
  max-width: 760px;
  margin: 0 auto;
  background: #0f1222;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(16, 24, 40, 0.5);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.code-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d4257;
}
.code-bar i:nth-child(1) {
  background: #ff5f57;
}
.code-bar i:nth-child(2) {
  background: #febc2e;
}
.code-bar i:nth-child(3) {
  background: #28c840;
}
.code-bar span {
  margin-left: 8px;
  font-size: 11.5px;
  color: #7d859c;
}
.code-demo pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: #c8cde0;
}
.code-demo .c {
  color: #5f6a86;
}
.code-demo .k {
  color: #ff7ab2;
}
.code-demo .v {
  color: #7dd3fc;
}
.code-demo .s {
  color: #a6e3a1;
}
.code-demo .a {
  color: #f9c97c;
}

/* ---------------------------- CTA ---------------------------- */
.cta {
  padding: 64px 0;
}
.cta-inner {
  background:
    radial-gradient(600px 260px at 88% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(120deg, #4f46e5, #6d28d9 60%, #4338ca);
  border-radius: 22px;
  padding: 44px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: 0 30px 60px -24px rgba(79, 70, 229, 0.55);
}
.cta-inner h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}
.cta-inner p {
  margin: 0;
  font-size: 13.5px;
  opacity: 0.82;
}
.cta-actions .btn-primary {
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.cta-actions .btn-primary:hover {
  background: #f5f5ff;
}
.cta-actions .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}
.cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}
.cta-actions {
  display: flex;
  gap: 10px;
}

/* ---------------------------- Footer ---------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.footer-links a {
  font-size: 12.5px;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--brand);
}

/* ---------------------------- 登录弹窗 ---------------------------- */
.auth-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.auth-mask.show {
  opacity: 1;
  pointer-events: auto;
}
.auth-box {
  width: min(880px, 100%);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  box-shadow: 0 40px 100px -20px rgba(16, 24, 40, 0.45);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  max-height: calc(100vh - 48px);
}
.auth-mask.show .auth-box {
  transform: none;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  border-radius: 8px;
  line-height: 1;
  z-index: 2;
}
.auth-close:hover {
  background: #f2f4f7;
  color: var(--ink);
}
.auth-left {
  background:
    radial-gradient(400px 300px at 20% 0%, rgba(255, 255, 255, 0.16), transparent 65%),
    linear-gradient(160deg, #4338ca, #4f46e5 55%, #6d28d9);
  color: #fff;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.al-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}
.al-logo .logo-mark {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.auth-left h3 {
  margin: 6px 0 0;
  font-size: 23px;
  line-height: 1.42;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.auth-left ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  opacity: 0.9;
}
.auth-left li::before {
  content: "✓";
  margin-right: 7px;
  color: #a5b4fc;
  font-weight: 700;
}
.al-quote {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 13px 15px;
}
.al-quote p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.92;
}
.al-quote span {
  font-size: 11px;
  opacity: 0.6;
}
.auth-right {
  padding: 30px 34px 30px;
  overflow-y: auto;
}
.auth-tabs {
  display: inline-flex;
  background: #f2f4f8;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 22px;
}
.auth-tabs button {
  border: none;
  background: transparent;
  padding: 7px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: 0.16s;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.auth-form h2 {
  margin: 0 0 4px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.auth-form .sub {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-err {
  min-height: 18px;
  font-size: 12px;
  color: var(--red);
  margin: -4px 0 8px;
}
.demo-tip {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.demo-tip button {
  border: none;
  background: none;
  color: var(--brand);
  font-size: 12px;
  padding: 0;
}
.demo-tip button:hover {
  text-decoration: underline;
}

/* ---------------------------- 响应式 ---------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    min-height: 420px;
  }
  .mock-window {
    margin: 0 auto;
    transform: none;
  }
  .fc-1 {
    left: 0;
  }
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-box {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .auth-left {
    display: none;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 44px 0 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-visual {
    min-height: 400px;
  }
  .float-card {
    display: none;
  }
  .mock-widget {
    right: 0;
    bottom: -26px;
  }
  .feat-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 54px 0;
  }
  .cta-inner {
    padding: 30px 24px;
  }
  .auth-right {
    padding: 24px 20px;
  }
  .auth-form .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
