/* ===== 官网首页 · 商家 AI 客服 ===== */

.site-home {
  --site-bg: #060a12;
  --site-bg-2: #0c1424;
  --site-surface: rgba(255, 255, 255, 0.04);
  --site-border: rgba(255, 255, 255, 0.08);
  --site-text: #f8fafc;
  --site-muted: rgba(248, 250, 252, 0.62);
  --site-accent: #3b82f6;
  --site-accent-2: #60a5fa;
  --site-glow: rgba(59, 130, 246, 0.35);
  min-height: 100vh;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--site-bg);
  color: var(--site-text);
  -webkit-font-smoothing: antialiased;
}

.site-wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-home-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.site-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 100%);
}

.site-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.site-glow-a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--site-glow) 0%, transparent 70%);
  opacity: 0.55;
}

.site-glow-b {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 28%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, transparent 70%);
}

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.site-header.is-scrolled,
.site-header {
  backdrop-filter: blur(16px);
  background: rgba(6, 10, 18, 0.72);
  border-bottom-color: var(--site-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--site-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.site-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.site-menu a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--site-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

.site-menu a:hover {
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.06);
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.site-btn-primary {
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.site-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
}

.site-btn-ghost {
  padding: 10px 20px;
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--site-border);
}

.site-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}

/* Hero */
.site-hero {
  position: relative;
  z-index: 1;
  padding: 56px 0 72px;
}

.site-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--site-border);
}

.site-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  animation: site-pulse 2s ease-in-out infinite;
}

@keyframes site-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.site-hero-title {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.site-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-hero-desc {
  margin: 0 0 32px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--site-muted);
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.site-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 产品预览 */
.site-preview {
  position: relative;
}

.site-preview-glow {
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 65%);
  filter: blur(20px);
}

.site-preview-window {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95) 0%, rgba(10, 16, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-preview-chat {
  padding: 20px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 280px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.site-preview-chat::-webkit-scrollbar {
  width: 4px;
}

.site-preview-chat::-webkit-scrollbar-track {
  background: transparent;
}

.site-preview-chat::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.site-preview-chat::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.45);
}

.site-preview-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.site-preview-top span:nth-child(1) { background: #ff5f57; }
.site-preview-top span:nth-child(2) { background: #febc2e; }
.site-preview-top span:nth-child(3) { background: #28c840; }

.site-preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.site-preview-title {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.site-msg.is-enter {
  animation: site-msg-in 0.35s ease both;
}

@keyframes site-msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #93c5fd;
  animation: site-cursor-blink 0.75s step-end infinite;
}

@keyframes site-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.site-msg-ai.is-typing .site-msg-bubble p {
  min-height: 44px;
}

.site-msg p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.site-msg-user {
  align-self: flex-end;
  max-width: 78%;
}

.site-msg-user p {
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.site-msg-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 88%;
}

.site-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.site-msg-bubble p {
  padding: 10px 14px;
  border-radius: 4px 14px 14px 14px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

.site-preview-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 10px;
  flex-shrink: 0;
}

.site-preview-quick span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.site-preview-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.site-preview-input {
  flex: 1;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.site-preview-input.is-typing {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.site-preview-placeholder {
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-preview-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-preview-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.site-preview-send svg {
  width: 18px;
  height: 18px;
}

.site-preview-send.is-active {
  transform: scale(0.94);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.site-preview-input .site-type-cursor {
  height: 1.2em;
  margin-left: 1px;
}

/* 指标条 */
.site-metrics {
  position: relative;
  z-index: 1;
  padding: 0 0 24px;
}

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

.site-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  text-align: left;
}

.site-metric-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-metric-icon svg {
  width: 22px;
  height: 22px;
}

.site-metric-body {
  min-width: 0;
}

.site-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-metric span {
  display: block;
  font-size: 12px;
  color: var(--site-muted);
  line-height: 1.45;
}

/* 通用区块 */
.site-section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
}

.site-section-head {
  margin-bottom: 48px;
}

.site-section-head-center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.site-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
}

.site-section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.site-section-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--site-muted);
}

.site-section-illus {
  margin: -24px 0 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--site-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.site-section-illus img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bento 痛点区 */
.site-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}

.site-bento-card {
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--site-border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.site-bento-card-lg {
  grid-column: span 2;
  grid-row: span 1;
}

.site-bento-card-accent {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(96, 165, 250, 0.25);
}

.site-bento-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.site-bento-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-bento-icon svg {
  width: 20px;
  height: 20px;
}

.site-bento-card-accent .site-bento-icon {
  background: rgba(59, 130, 246, 0.24);
  color: #bfdbfe;
}

.site-bento-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.site-bento-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--site-muted);
}

.site-bento-foot {
  font-size: 13px;
  font-weight: 500;
  color: #93c5fd;
}

/* FAQ */
.site-section-faq {
  padding-top: 72px;
}

.site-faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.site-faq-aside .site-section-head {
  margin-bottom: 24px;
}

.site-faq-visual {
  margin: 0 0 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--site-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.site-faq-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.site-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-faq-item {
  border-radius: 14px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.site-faq-item[open] {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.06);
}

.site-faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-faq-item summary::-webkit-details-marker {
  display: none;
}

.site-faq-item summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath stroke='%2393c5fd' stroke-width='1.5' stroke-linecap='round' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") center no-repeat;
  transition: transform 0.2s;
}

.site-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.site-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--site-muted);
}

/* CTA */
.site-cta {
  position: relative;
  z-index: 1;
  padding: 0 0 88px;
}

.site-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.site-cta-visual {
  margin: 0;
  width: 200px;
  flex-shrink: 0;
}

.site-cta-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.site-cta-copy {
  min-width: 0;
}

.site-cta-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-cta-copy p {
  margin: 0;
  font-size: 15px;
  color: var(--site-muted);
}

/* 页脚 */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 36px;
  border-top: 1px solid var(--site-border);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.site-footer-inner > p,
.site-footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
}

.site-footer-icp-link {
  color: inherit;
  text-decoration: none;
}

.site-footer-icp-link:hover {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
}

/* 响应式 */
@media (max-width: 960px) {
  .site-hero-layout,
  .site-faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-bento {
    grid-template-columns: 1fr;
  }

  .site-bento-card-lg {
    grid-column: span 1;
  }

  .site-cta-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .site-cta-visual {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .site-wrap {
    width: min(1160px, calc(100% - 32px));
  }

  .site-header-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-header-inner > .site-btn-primary {
    margin-left: auto;
  }

  .site-hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .site-section {
    padding: 64px 0;
  }

  .site-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}
