/* ===== reset / base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: #1e293b;
}
.logo-mark {
  width: 28px; height: 28px;
  display: block;
}
.nav {
  display: flex; align-items: center; gap: 24px;
  font-size: 14px;
}
.nav a { color: #475569; transition: color .15s; }
.nav a:hover { color: #1e293b; }
.nav-cta {
  background: #1e293b;
  color: #fff !important;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.nav-cta:hover { background: #0f172a; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 56px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
}
/* grid item 默认 min-width: auto，会被内容（如 nowrap 代码块）撑爆出父容器；显式归零让列自适应。 */
.hero-text, .hero-mock { min-width: 0; }
.hero-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hl {
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: #64748b;
  font-size: 17px;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex; gap: 12px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn.outline {
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  background: #fff;
}
.btn.outline:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.hero-snippet pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 12px;
  overflow-x: auto;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hero-snippet code i { color: #facc15; font-style: normal; }

/* ===== Hero mock 浏览器 ===== */
.hero-mock {
  position: relative;
}
.mock-window {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.08);
  overflow: hidden;
  position: relative;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.mock-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.mock-dot.red { background: #f87171; }
.mock-dot.yellow { background: #fbbf24; }
.mock-dot.green { background: #34d399; }
.mock-host {
  flex: 1; text-align: center;
  font-size: 12px; color: #94a3b8;
  font-family: ui-monospace, monospace;
}
.mock-body {
  padding: 24px 20px;
  min-height: 240px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.mock-bubble {
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
  max-width: 75%;
  line-height: 1.5;
}
.mock-bubble.agent {
  background: #fff;
  border: 1px solid #e5e7eb;
}
.mock-bubble.visitor {
  background: #2563eb;
  color: #fff;
  align-self: flex-end;
}
.mock-bubble.typing {
  color: #94a3b8; font-style: italic;
}
.mock-launcher {
  position: absolute;
  right: 18px; bottom: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== 通用区块 ===== */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 16px;
  color: #64748b;
  text-align: center;
  margin: 0 0 48px;
}

/* ===== 功能卖点 ===== */
.features { padding: 80px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all .15s;
}
.feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  transform: translateY(-2px);
}
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}
.feature-card code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* ===== 套餐 ===== */
.pricing {
  padding: 80px 0;
  background: #f8fafc;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.plan-loading { text-align: center; color: #94a3b8; padding: 40px; }
.plan-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: all .15s;
}
.plan-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
}
.plan-card.recommend {
  border-color: #2563eb;
  background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
}
.plan-card.recommend::before {
  content: '推荐';
  position: absolute;
  top: -12px; right: 24px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.plan-code {
  color: #94a3b8;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  margin: 0 0 16px;
}
.plan-seats {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.plan-seats .unit { font-size: 16px; font-weight: 400; color: #64748b; }
.plan-extra {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 24px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.plan-features li {
  padding: 6px 0;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
}
.plan-cta {
  display: block;
  text-align: center;
  padding: 11px;
  background: #1e293b;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
}
.plan-card.recommend .plan-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.plan-cta:hover { opacity: 0.92; }
.pricing-foot {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-top: 32px;
}
.pricing-foot a { color: #2563eb; }

/* ===== 联系 ===== */
.contact { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-card {
  display: block;
  padding: 32px 28px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
  transition: all .15s;
  cursor: pointer;
}
.contact-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.12);
}
.contact-icon { font-size: 32px; margin-bottom: 10px; }
.contact-label {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 12px;
  word-break: break-all;
}
.contact-cta {
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a:hover { color: #fff; }

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .nav { gap: 14px; font-size: 13px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-mock { order: 2; }
  .features, .pricing, .contact { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
