/* 落地页前台样式 —— 变量由 site.json 的 theme.colors 注入 */

:root {
  --brand: #1f5eff;
  --brand-ink: #ffffff;
  --ink: #10151f;
  --muted: #5b6675;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --line: #e3e8f0;
  --radius: 14px;
  --font-stack: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.lp {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

.lp-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lp-narrow { max-width: 760px; }

/* ---------- header ---------- */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lp-brand-logo { height: 30px; width: auto; }
.lp-brand-name { font-size: 19px; }

.lp-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.lp-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.lp-nav-link:hover { color: var(--ink); }
.lp-nav-link.lp-active { color: var(--ink); border-bottom-color: var(--brand); }

@media (max-width: 640px) {
  .lp-nav { display: none; }
}

/* ---------- blocks ---------- */

.lp-block { padding: 72px 0; }
.lp-block + .lp-block { padding-top: 0; }

.lp-h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}

.lp-h3 { font-size: 20px; margin: 0 0 10px; }

.lp-lede {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 34px;
  max-width: 60ch;
}

.lp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 14px;
}

/* hero */
.lp-hero {
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.lp-hero.lp-align-center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.lp-hero.lp-align-center .lp-hero-sub { margin-left: auto; margin-right: auto; }
.lp-hero.lp-align-center .lp-cta-row { justify-content: center; }

.lp-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}

.lp-hero-sub {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 54ch;
}

.lp-hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(16, 21, 31, 0.45);
}

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 34px; padding: 56px 0; }
}

/* buttons */
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: inherit;
}

.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn-primary { background: var(--brand); color: var(--brand-ink); }
.lp-btn-primary:hover { box-shadow: 0 12px 26px -14px var(--brand); }

.lp-btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.lp-btn-ghost { background: transparent; color: var(--brand); border-color: transparent; }

.lp-btn-sm { padding: 9px 16px; font-size: 14px; }
.lp-btn-block { width: 100%; }

/* grids */
.lp-grid { display: grid; gap: 22px; }

.lp-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.lp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .lp-cols-3, .lp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .lp-cols-2, .lp-cols-3, .lp-cols-4 { grid-template-columns: 1fr; }
}

.lp-feature,
.lp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.lp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  font-size: 18px;
}

.lp-feature-title, .lp-card-title { font-size: 18px; margin: 0 0 8px; }
.lp-feature-body, .lp-card-body-text { color: var(--muted); margin: 0 0 14px; font-size: 15.5px; }
.lp-card-media img { border-radius: 10px; margin-bottom: 16px; }

.lp-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* stats */
.lp-stat-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }

.lp-stat { flex: 1 1 150px; }

.lp-stat-value {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lp-stat-label { color: var(--muted); font-size: 14.5px; }

/* table */
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.lp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }

.lp-table th, .lp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.lp-table th { background: var(--surface); font-weight: 700; font-size: 14px; }
.lp-table tr:last-child td { border-bottom: none; }

/* faq */
.lp-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.lp-faq-q { font-weight: 600; cursor: pointer; font-size: 17px; }
.lp-faq-a { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* prose */
.lp-prose { font-size: 17px; }
.lp-prose h2 { font-size: 26px; margin: 30px 0 12px; letter-spacing: -0.01em; }
.lp-prose h3 { font-size: 20px; margin: 24px 0 10px; }
.lp-prose p { margin: 0 0 16px; }
.lp-prose ul, .lp-prose ol { margin: 0 0 16px; padding-left: 22px; }
.lp-prose li { margin-bottom: 6px; }
.lp-prose-sm { font-size: 14.5px; color: var(--muted); }

/* lead form */
.lp-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.lp-field { margin-bottom: 16px; }

.lp-label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.lp-req { color: #d64545; }

.lp-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

.lp-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.lp-textarea { min-height: 120px; resize: vertical; }

.lp-consent { font-size: 13.5px; color: var(--muted); margin: 4px 0 18px; }

.lp-form-status { font-size: 14.5px; color: #b42318; margin: 12px 0 0; min-height: 20px; }
.lp-form-status.lp-ok { color: #087443; }

.lp-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* cta band */
.lp-cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 0;
}

.lp-cta-band .lp-h2, .lp-cta-band .lp-lede { color: #fff; }
.lp-cta-band .lp-lede { opacity: 0.8; }
.lp-cta-band .lp-btn-ghost { color: #fff; }
.lp-cta-band .lp-btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }

/* image */
.lp-figure { margin: 0; }
.lp-caption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }

/* logos */
.lp-logos-title { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.lp-logos { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.lp-logo-item img { max-height: 40px; filter: grayscale(1); opacity: 0.75; }
.lp-logo-item span { color: var(--muted); font-weight: 600; font-size: 17px; }

/* timeline */
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: lp-step; }

.lp-step {
  display: flex;
  gap: 18px;
  padding: 0 0 26px;
  border-left: 2px solid var(--line);
  margin-left: 15px;
  padding-left: 24px;
  position: relative;
}

.lp-step:last-child { border-left-color: transparent; padding-bottom: 0; }

.lp-step-num {
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-step-title { font-size: 17px; margin: 0 0 5px; }
.lp-step-text { color: var(--muted); margin: 0; font-size: 15.5px; }

/* contact */
.lp-contact-list { display: grid; gap: 12px; }
.lp-contact-item { display: flex; gap: 14px; align-items: baseline; }
.lp-contact-label { color: var(--muted); min-width: 120px; font-size: 14.5px; }

/* legal */
.lp-legal { background: var(--surface); border-top: 1px solid var(--line); }

/* footer */
.lp-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 36px; margin-top: 40px; }

.lp-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
  margin-bottom: 34px;
}

.lp-footer-title { font-size: 14px; margin: 0 0 12px; }
.lp-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-footer-list a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.lp-footer-list a:hover { color: var(--ink); }

.lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.lp-copy, .lp-legal-links { color: var(--muted); font-size: 13.5px; margin: 0; }
.lp-dot { margin: 0 8px; }

.lp-footer-disclaimer {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
  max-width: 80ch;
}

/* spacer */
.lp-spacer-sm { height: 24px; }
.lp-spacer-md { height: 48px; }
.lp-spacer-lg { height: 88px; }

/* preview bar */
.lp-preview-bar {
  background: #10151f;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}

.lp-preview-bar a { color: #8fb4ff; }

.lp-error { background: #fdecec; color: #a11; padding: 16px; border-radius: 8px; }
