:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e6e9ef;
  --text: #172033;
  --text-2: #4a5568;
  --text-3: #7b8799;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #0e7490;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; display: block; flex: 0 0 auto;
}
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff; padding: 8px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-strong); }

main { display: block; }
.hero {
  background:
    radial-gradient(900px 400px at 82% -120px, #dbeafe 0%, transparent 60%),
    radial-gradient(700px 360px at 8% -80px, #ecfeff 0%, transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 88px 20px 76px; text-align: center;
}
.hero-badge {
  display: inline-block; background: #ecfdf5; color: #047857;
  border: 1px solid #a7f3d0; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px; line-height: 1.2; margin: 0 auto 18px; max-width: 760px;
  letter-spacing: -.5px;
}
.hero-sub {
  font-size: 17px; color: var(--text-2); max-width: 680px; margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 46px; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 28px; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 11px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.btn.primary:hover { background: var(--primary-strong); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: #cbd5e1; }
.btn.block { width: 100%; }
.btn.disabled {
  background: #eef1f6; color: #9aa4b2; cursor: not-allowed;
  box-shadow: none; pointer-events: none;
}

.section { max-width: 1080px; margin: 0 auto; padding: 76px 20px; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 30px; margin: 0 0 10px; text-align: center; }
.section-sub { color: var(--text-3); text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 15px; }
.section-sub.small { margin: 18px auto 0; font-size: 13px; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.modes { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow-sm); transition: .18s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-2); font-size: 14px; }
.card .example {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--accent); font-size: 13px; margin-bottom: 8px;
  background: #ecfeff; border: 1px solid #cffafe; border-radius: 8px; padding: 6px 10px;
}

.format-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 10px; }
.format-list span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: var(--text-2);
}

.buy-card {
  display: flex; gap: 28px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px; box-shadow: var(--shadow-md); max-width: 720px; margin: 0 auto 22px;
}
.buy-left h3 { margin: 0 0 12px; font-size: 20px; }
.buy-left ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.buy-left li { margin-bottom: 6px; }
.buy-right { text-align: center; min-width: 200px; }
.price { font-size: 34px; font-weight: 800; color: var(--primary); }
.price-note { color: var(--text-3); font-size: 13px; margin: 2px 0 16px; }
.downloads { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; font-size: 15px; }
.faq p { color: var(--text-2); margin: 0 0 14px; font-size: 14px; }

footer { background: #0f172a; color: #cbd5e1; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 40px 20px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-inner b { color: #fff; font-size: 16px; }
.small { font-size: 13px; color: #94a3b8; margin: 4px 0; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .features { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .buy-card { flex-direction: column; text-align: center; }
  .hero-stats { gap: 26px; }
}

/* Download page & form helpers */
.grow { flex: 1; min-width: 0; }
.login-error {
  border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c;
  border-radius: 9px; padding: 10px 12px; font-size: 14px; margin-top: 12px;
}
.ok-text { color: #047857; }
.map-info {
  border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 10px;
  padding: 12px 14px; margin-top: 12px; font-size: 14px;
}
input[type=text] {
  border: 1px solid #d1d5db; border-radius: 9px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: #fff; color: #111827;
}
input[type=text]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
