:root {
  --blue: #1f6feb;
  --blue-dark: #1a5fd0;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1b2330;
  --muted: #6b7280;
  --border: #e6e9f0;
  --green: #1a7f37;
  --amber: #b3700a;
  --red: #cf222e;
  --wa: #25d366;
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; padding: 16px 22px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), #4f93ff);
  font-size: 16px;
}
.nav-link { font-size: 14px; font-weight: 600; }

main { max-width: 980px; margin: 0 auto; padding: 8px 22px 10px; }

/* hero */
.hero { text-align: center; padding: 18px 0 8px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--blue);
  background: #eaf1ff; padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: 30px; line-height: 1.25; margin: 16px 0 10px; letter-spacing: -.4px; }
.hero-lead { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 15px; }

/* form card */
.form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 22px; margin: 22px auto 0; max-width: 680px; text-align: left;
}
.fld { display: block; margin-bottom: 14px; }
.fld:last-of-type { margin-bottom: 0; }
.fld-label { display: block; font-size: 13px; font-weight: 600; color: #3a4252; margin-bottom: 6px; }
.fld-label i { color: var(--red); font-style: normal; }
.fld-hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.fld input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px;
  font-size: 15px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.fld-row { display: flex; gap: 14px; margin-bottom: 14px; }
.fld-row .fld { flex: 1; margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 12px 20px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-go { width: 100%; margin-top: 16px; padding: 13px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

.err { color: var(--red); font-size: 13.5px; margin-top: 10px; min-height: 18px; }

/* examples + features */
.examples { margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.ex-label { font-size: 13px; color: var(--muted); }
.ex-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 13px;
  font-size: 13px; color: #3a4252; cursor: pointer; transition: border-color .15s, color .15s;
}
.ex-chip:hover { border-color: var(--blue); color: var(--blue); }
.features { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 16px; }
.feature { font-size: 13.5px; color: #44506a; display: inline-flex; align-items: center; gap: 7px; }
.fi { font-size: 15px; }

/* how */
.how {
  display: flex; align-items: stretch; justify-content: center; gap: 6px;
  margin: 26px auto 0; flex-wrap: wrap;
}
.how-step {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow); flex: 1 1 240px; max-width: 290px;
}
.how-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eaf1ff; color: var(--blue);
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.how-t { font-size: 14px; font-weight: 600; }
.how-d { font-size: 12.5px; color: var(--muted); }
.how-arrow { align-self: center; color: #c4ccda; font-size: 18px; }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 20px; margin: 16px 0;
}
.card.center { text-align: center; }
.muted { color: var(--muted); }

/* report head */
.report-head { margin: 14px 0 4px; }
.rh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rh-back { font-size: 13.5px; font-weight: 600; }
.rh-market { font-size: 13px; color: #3a4252; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.rh-title { font-size: 24px; margin: 4px 0 4px; letter-spacing: -.3px; }
.rh-sub { font-size: 14px; color: var(--muted); }
.hd-stats { display: flex; gap: 12px; margin-top: 12px; }
.stat { font-size: 14px; color: #3a4252; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; }
.stat b { font-size: 18px; color: var(--text); }
.stat.hl { background: #eaf6ee; border-color: #c7e6d2; }
.stat.hl b { color: var(--green); }

/* stage progress */
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 6px; }
.stage { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.stage.done { color: var(--green); border-color: #c7e6d2; background: #f1faf4; }
.stage.active { color: var(--blue); border-color: #bcd5ff; background: #f0f6ff; font-weight: 600; }
.stage-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.stage-arrow { color: #c4ccda; }
.run-note { font-size: 13px; margin: 6px 0 0; }

/* spinner */
.sp { width: 12px; height: 12px; border: 2px solid #cdd9ec; border-top-color: var(--blue); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 40px 20px; }
.load-orb { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #eaf1ff, #d4e4ff); display: flex; align-items: center; justify-content: center; animation: pulse 1.6s ease-in-out infinite; }
.orb-core { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

/* queries */
.queries summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.queries summary::-webkit-details-marker { display: none; }
.q-ico { font-size: 16px; }
.q-hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.q-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.q-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 9px; }
.q-label { flex: none; font-size: 12px; font-weight: 600; color: var(--blue); background: #eaf1ff; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.q-code { flex: 1; min-width: 200px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #2c3647; word-break: break-all; }
.q-open { flex: none; font-size: 12.5px; font-weight: 600; }

/* export bar */
.export-bar { background: linear-gradient(135deg, #eef5ff, #f7faff); border: 1px solid #cfe0ff; border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.export-bar.done { display: flex; align-items: center; gap: 14px; }
.exp-ok { color: var(--green); font-weight: 700; }
.exp-tx { display: flex; flex-direction: column; }
.exp-tx b { font-size: 15px; }
.exp-tx span { font-size: 13px; color: var(--muted); }
.exp-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.exp-form input { flex: 1; min-width: 220px; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 15px; outline: none; }
.exp-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }

/* leads */
.leads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; margin: 6px 0 10px; }
.lead { background: var(--card); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; }
.lead-empty { opacity: .82; }
.lead-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lead-name { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.lead-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.lead-site { font-size: 12.5px; font-weight: 600; }
.lead-country { font-size: 12px; color: var(--muted); }
.lead-soc { display: flex; gap: 5px; flex: none; }
.soc { width: 24px; height: 24px; border-radius: 6px; background: #f0f3f8; color: #3a4252; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-transform: lowercase; }
.soc:hover { background: #e2e8f2; text-decoration: none; }
.lead-intro { font-size: 13.5px; color: #44506a; }
.lead-addr { font-size: 12.5px; color: var(--muted); }
.lead-contacts { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; padding-top: 9px; border-top: 1px dashed var(--border); }
.ct { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 5px 9px; border-radius: 8px; width: fit-content; max-width: 100%; word-break: break-all; }
.ct-mail { background: #eef4ff; color: #14418c; }
.ct-wa { background: #e8faf0; color: #0c7a3e; }
.ct-tel { background: #f4f0fb; color: #5b3da8; }
.ct:hover { text-decoration: none; filter: brightness(.97); }
.ct.masked { cursor: default; opacity: .9; }
.ct-locki { font-style: normal; font-size: 11px; opacity: .7; }
.ct-none { font-size: 12.5px; color: #9aa4b2; }
.ct-lock { font-size: 12.5px; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.lead-contacts.locked { filter: blur(.2px); }

/* 限额弹窗 */
.fl-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(16, 24, 40, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: flFade .15s ease;
}
@keyframes flFade { from { opacity: 0; } to { opacity: 1; } }
.fl-modal {
  position: relative; background: #fff; border-radius: 18px; max-width: 420px; width: 100%;
  padding: 30px 26px 24px; text-align: center; box-shadow: var(--shadow-lg);
  animation: flPop .18s ease;
}
@keyframes flPop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.fl-modal-x {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 24px; line-height: 1; color: #9aa4b2; cursor: pointer;
}
.fl-modal-x:hover { color: var(--text); }
.fl-modal-ico { font-size: 38px; margin-bottom: 8px; }
.fl-modal h3 { font-size: 18px; margin: 0 0 12px; line-height: 1.5; }
.fl-modal-promo { font-size: 14px; color: #44506a; line-height: 1.7; margin: 0 0 20px; }
.fl-modal-cta {
  display: inline-flex; width: 100%; justify-content: center; padding: 13px;
  font-size: 15px; background: linear-gradient(135deg, #ff7a18, #f5500a); box-shadow: 0 6px 16px rgba(245, 80, 10, .28);
}
.fl-modal-cta:hover { background: linear-gradient(135deg, #f5500a, #e0470a); }
.fl-modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* no-contact 折叠 */
.nocontact { margin-top: 16px; }
.nocontact summary { cursor: pointer; font-weight: 600; font-size: 14px; color: #3a4252; list-style: none; }
.nocontact summary::-webkit-details-marker { display: none; }
.nocontact summary::before { content: "▸ "; color: var(--muted); }
.nocontact[open] summary::before { content: "▾ "; }

/* fail */
.fail-card { padding: 40px 20px; }
.fail-ico { font-size: 40px; }

/* footer */
.site-foot { max-width: 980px; margin: 22px auto 30px; padding: 0 22px; text-align: center; color: var(--muted); font-size: 12.5px; }
.foot-sep { margin: 0 8px; color: #c4ccda; }

@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .fld-row { flex-direction: column; gap: 14px; }
  .how-arrow { display: none; }
  .leads-grid { grid-template-columns: 1fr; }
  .rh-title { font-size: 20px; }
}
