/* 探小聊官网 — 设计令牌沿用 demo/css/base.css */
:root {
  --brand: #3b82f6;
  --brand-dark: #2563eb;
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --bg: #f5f6fa;
  --panel: #ffffff;
  --line: #e6e9f0;
  --text: #1f2937;
  --text-2: #6b7280;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(31, 41, 55, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand); }
.lang-switch {
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all 0.2s;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Hero（三栏密集：文案 | 手机 | 二维码） ---------- */
.hero { padding: 44px 0 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eff6ff; color: var(--brand-dark);
  border: 1px solid #dbeafe; border-radius: 999px;
  padding: 4px 13px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { font-size: 38px; line-height: 1.22; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { margin-top: 12px; font-size: 15.5px; color: var(--text-2); max-width: 480px; }

/* 卖点列表（密集） */
.hero-points {
  list-style: none; margin-top: 18px;
  display: grid; gap: 9px; max-width: 480px;
}
.hero-points li {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 13px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.pt-ico {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: #eff6ff; display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.hero-meta { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* 手机模型（紧凑版） */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 240px; height: 490px; border-radius: 36px;
  background: #0f172a; padding: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 27px;
  background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch {
  width: 96px; height: 20px; border-radius: 0 0 14px 14px;
  background: #0f172a; margin: 0 auto;
}
.chat-area { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 13px; font-size: 11.5px; line-height: 1.45; }
.msg-them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-avatar { width: 24px; height: 24px; border-radius: 50%; align-self: flex-start; flex: none; }
.av-grad { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-grad2 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.msg-row { display: flex; gap: 7px; align-items: flex-end; }
.phone-tabbar {
  height: 48px; background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
  font-size: 10px; color: var(--text-2);
}
.phone-tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-tabbar .tab.active { color: var(--brand); }
.tab-ico { font-size: 16px; }

/* 二维码卡片 */
.hero-qr { display: flex; justify-content: center; }
.qr-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px; text-align: center;
  box-shadow: var(--shadow);
  max-width: 250px;
}
.qr-box {
  width: 180px; height: 180px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box canvas, .qr-box img { display: block; }
.qr-card .qr-tip { margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.qr-card .btn { margin-top: 12px; width: 100%; justify-content: center; padding: 11px 16px; font-size: 14px; }
.qr-ver { margin-top: 9px; font-size: 12px; color: var(--text-2); }

/* ---------- 区块通用 ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 28px; letter-spacing: -0.4px; }
.section-head p { margin-top: 10px; color: var(--text-2); }

/* 功能卡片 */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: #eff6ff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--panel); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; color: var(--text-2); font-size: 13.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "copy qr"
      "phone qr";
    gap: 28px;
  }
  .hero-copy { grid-area: copy; }
  .phone-wrap { grid-area: phone; }
  .hero-qr { grid-area: qr; align-items: center; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .nav-links a:not(.lang-switch) { display: none; }
  .hero { padding: 32px 0 36px; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "phone" "qr";
    justify-items: center; text-align: center; gap: 26px;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { font-size: 26px; }
  .hero p.lead, .hero-points { max-width: 100%; }
  .hero-points li { text-align: left; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 23px; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone { width: 220px; height: 450px; }
  .qr-box { width: 168px; height: 168px; }
}
