:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #1f2329;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2f6bff;
  --brand-dark: #1d4ed8;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Segoe UI, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: #eef1f5; padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* nav */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 58px; }
.logo { font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--brand); }
.nav a.navlink { color: var(--ink); font-size: 14px; }
.nav .spacer { flex: 1; }

/* buttons */
.btn { display: inline-block; padding: 9px 18px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.btn:hover { text-decoration: none; border-color: #cbd5e1; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* hero */
.hero { background: linear-gradient(180deg, #eef3ff, #f6f7f9); padding: 56px 0 40px; }
.hero h1 { font-size: 34px; margin: 0 0 12px; line-height: 1.25; }
.hero p { font-size: 17px; color: var(--muted); max-width: 720px; }
.tag { display: inline-block; background: #e7eeff; color: var(--brand-dark); border-radius: 999px; padding: 3px 12px; font-size: 13px; margin-right: 6px; }

/* pricing */
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: flex; flex-direction: column; }
.price-card.popular { border: 2px solid var(--brand); box-shadow: 0 6px 24px rgba(47,107,255,.12); }
.price-name { font-size: 18px; font-weight: 700; }
.price-amt { font-size: 30px; font-weight: 800; margin: 8px 0; }
.price-amt small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-feat { list-style: none; padding: 0; margin: 12px 0 18px; flex: 1; }
.price-feat li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.price-feat li::before { content: "✓"; color: var(--ok); margin-right: 8px; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.tbl th, table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
table.tbl th { background: #f3f5f8; font-weight: 600; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-err { background: #fee2e2; color: #991b1b; }

/* forms */
label.fld { display: block; margin: 14px 0 5px; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; }
textarea { resize: vertical; min-height: 84px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* alerts */
.alert { padding: 12px 16px; border-radius: 9px; margin: 14px 0; font-size: 14px; border: 1px solid; }
.alert-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* steps */
.step { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; margin: 14px 0; }
.step h4 { margin: 0 0 4px; font-size: 15px; }
.kpi { font-size: 13px; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: 13px; margin-top: 40px; }

/* lead preview */
.lead-wrap { max-width: 420px; margin: 20px auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.lead-head { background: linear-gradient(135deg,#2f6bff,#5b8def); color: #fff; padding: 22px; }
.lead-head h3 { margin: 0 0 6px; font-size: 19px; }
.lead-body { padding: 18px; }
.lead-field { margin: 10px 0; }
.lead-field input { border-radius: 8px; }
.lead-btn { background: #ff6a00; color: #fff; border: none; padding: 13px; border-radius: 10px; font-size: 16px; width: 100%; cursor: pointer; }
.lead-privacy { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }
