/* 嗅探搜索官网 · 干净稳版 */
:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --panel-2: #162033;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --max: 1100px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(680px, calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; margin-top: 28px; }

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e3a5f, #0f2744);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 16px;
}
.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: #fff; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-main {
  color: #04101c;
  background: linear-gradient(135deg, #7dd3fc, #22d3ee);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.25);
}
.btn-line {
  color: #e2e8f0;
  background: transparent;
  border-color: var(--line);
}
.btn-line:hover { background: rgba(255,255,255,0.04); }
.btn-white {
  color: #0b1220;
  background: #fff;
}

/* hero */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(480px 240px at 90% 20%, rgba(34, 211, 238, 0.08), transparent 55%);
}
.hero-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #e0f2fe, #22d3ee 55%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.points li {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.points b {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 2px;
}

/* mock chat */
.hero-card {
  display: flex;
  justify-content: center;
}
.chat {
  width: min(320px, 100%);
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
}
.chat-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1e3a5f;
}
.chat-hd strong { display: block; font-size: 14px; line-height: 1.2; }
.chat-hd small { color: #6ee7b7; font-size: 12px; }
.chat-bd {
  padding: 14px;
  min-height: 280px;
  transition: opacity .25s ease;
}
.chat-bd.demo-flash {
  animation: demoFlash .45s ease;
}
@keyframes demoFlash {
  0% { opacity: 0.35; }
  100% { opacity: 1; }
}
.row .rt { flex: 1; }
.m {
  max-width: 90%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.m.me {
  margin-left: auto;
  width: fit-content;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-bottom-right-radius: 4px;
}
.m.me.dim { opacity: 0.85; }
.m.bot {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.m.bot b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #cbd5e1;
  font-size: 12.5px;
}
.row i {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tabs em {
  font-style: normal;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.tabs .on {
  color: #e0f2fe;
  background: rgba(14,165,233,0.18);
  border: 1px solid rgba(56,189,248,0.3);
}
.chat-ft {
  margin: 0 12px 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  color: #64748b;
  font-size: 13px;
}

/* sections */
.block { padding: 64px 0; }
.block.gray {
  background: rgba(255,255,255,0.02);
  border-block: 1px solid var(--line);
}
.head { margin-bottom: 28px; }
.head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}
.head p {
  margin: 0;
  color: var(--muted);
}

.grid4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
.card {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.card.big {
  grid-row: span 2;
  background:
    radial-gradient(300px 180px at 0% 0%, rgba(56,189,248,0.12), transparent 60%),
    var(--panel);
}
.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chips span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 14px;
  color: #04101c;
  background: linear-gradient(135deg, #7dd3fc, #22d3ee);
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step strong { color: #e2e8f0; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.about-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.about-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* scenes */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.scene {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.scene-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.scene h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.scene > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.scene ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.scene li { margin-bottom: 4px; }
a.guide-link {
  display: block;
  color: inherit;
  transition: border-color .2s, transform .15s ease;
}
a.guide-link:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}
a.guide-link h3 { color: var(--text); }

/* examples */
.example-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}
.example-col {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.example-col h3 {
  margin: 0 0 14px;
  font-size: 16px;
}
.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.example-tags span {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.ol li { margin-bottom: 8px; }

/* grow */
.grow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grow-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.grow-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.grow-top .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.grow-top h3 { margin: 0; font-size: 17px; }
.grow-card > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

/* faq */
.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 700;
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.faq strong { color: #e2e8f0; }

/* notice */
.notice {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.notice ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.notice li { margin-bottom: 10px; }
.notice li:last-child { margin-bottom: 0; }
.notice a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice strong { color: #e2e8f0; }

/* cta */
.cta { padding-bottom: 80px; }
.cta-box {
  text-align: center;
  padding: 48px 24px;
  border-radius: 20px;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(56,189,248,0.22), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
}
.cta-box h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 34px);
}
.cta-box p {
  margin: 0 0 20px;
  color: var(--muted);
}
.cta-link {
  color: #7dd3fc;
  font-weight: 600;
}
.cta-link:hover { text-decoration: underline; }

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 13px;
}
.foot-row { display: grid; gap: 12px; }
.foot strong { color: var(--text); }
.foot p { margin: 4px 0 0; }
.links { display: flex; flex-wrap: wrap; gap: 16px; }
.links a:hover { color: #fff; }
.copy { opacity: 0.7; margin: 0; }

/* mobile dock */
.show-sm { display: none; }
.hide-sm { display: flex; }
.dock { display: none; }

@media (max-width: 900px) {
  .hide-sm { display: none !important; }
  .show-sm { display: block; }
  .dock {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30;
  }
  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    color: #04101c;
    background: linear-gradient(135deg, #7dd3fc, #22d3ee);
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.3);
  }
  body { padding-bottom: 88px; }

  .wrap, .narrow { width: calc(100% - 28px); }
  .hero { padding: 28px 0 20px; }
  .hero-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero h1 { font-size: 28px; }
  .desc { font-size: 15px; }
  .actions { flex-direction: column; }
  .actions .btn-lg { width: 100%; }
  .points { flex-direction: column; }
  .points li { width: 100%; }

  .block { padding: 48px 0; }
  .grid4 { grid-template-columns: 1fr; }
  .card.big { grid-row: auto; }
  .about-grid,
  .scene-grid,
  .grow-grid,
  .example-box,
  .steps { grid-template-columns: 1fr; }
  .cta { padding-bottom: 24px; }
  .cta-box { padding: 32px 18px; }
  .foot { padding-bottom: 24px; }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid,
  .grow-grid { grid-template-columns: 1fr 1fr; }
  .scene-grid .scene:last-child,
  .grow-grid .grow-card:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  /* keep nav display rule for elements that used hide-sm as flex */
  .nav.hide-sm { display: none !important; }
}

/* SEO 文章页 */
.article {
  max-width: 760px;
  padding-bottom: 40px;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.crumb a { color: #7dd3fc; }
.crumb a:hover { text-decoration: underline; }
.article h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lead-art {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.75;
}
.article h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.article h3 {
  margin: 20px 0 8px;
  font-size: 17px;
}
.article p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.75;
}
.article ul, .article ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.75;
}
.article li { margin-bottom: 6px; }
.article a:not(.btn) {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article strong { color: #f1f5f9; }
.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 40px 0 8px;
  padding: 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.article-cta .btn {
  text-decoration: none !important;
  min-height: 48px;
  padding: 14px 22px;
  flex: 1 1 auto;
  min-width: min(100%, 200px);
}
.article-cta .btn-main {
  color: #04101c !important;
  background: linear-gradient(135deg, #7dd3fc, #22d3ee);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.25);
}
.article-cta .btn-line {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.article-cta .btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
  color: #fff !important;
}
/* 文章页底部给手机悬浮条留空 */
body:has(.article) {
  padding-bottom: 24px;
}
@media (max-width: 900px) {
  .article-cta {
    flex-direction: column;
    padding: 18px;
  }
  .article-cta .btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  body:has(.article) {
    padding-bottom: 96px;
  }
}
