:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f7f8fa;
  --c-bg-hero: #0b1f3a;
  --c-text: #1a2233;
  --c-text-soft: #5b6678;
  --c-text-mute: #8a94a6;
  --c-border: #e6e9ef;
  --c-primary: #4f8df7;
  --c-primary-dark: #2f6fe0;
  --c-accent: #7c5cff;
  --c-success: #18a058;
  --c-warn: #f59e0b;
  --c-danger: #ef4444;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.04), 0 1px 3px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.06), 0 2px 6px rgba(11, 31, 58, 0.04);
  --shadow-lg: 0 18px 40px rgba(11, 31, 58, 0.10), 0 6px 16px rgba(11, 31, 58, 0.06);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; font-family: var(--font-mono);
}
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--c-text-soft); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--c-text); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 141, 247, 0.32); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-dark { background: #fff; color: var(--c-bg-hero); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

.nav-toggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 6px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--c-text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--c-text); }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a3a6e 0%, var(--c-bg-hero) 60%);
  color: #fff; padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #cfe0ff;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(120deg, #8ab4ff, #c4a4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(16px, 2vw, 19px); color: #b8c5dc; max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; font-size: 13px; color: #8da4c9; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Editor mockup ===== */
.mockup {
  max-width: 980px; margin: 56px auto 0; padding: 0 24px;
}
.mockup-frame {
  background: #fff; color: var(--c-text); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.mockup-titlebar { height: 36px; background: #f3f4f6; display: flex; align-items: center; padding: 0 14px; gap: 8px; border-bottom: 1px solid #e5e7eb; }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot.r { background: #ff5f57; } .mockup-dot.y { background: #febc2e; } .mockup-dot.g { background: #28c840; }
.mockup-title { margin-left: 12px; font-size: 12px; color: #6b7280; }
.mockup-body { display: grid; grid-template-columns: 200px 1fr 1fr; height: 380px; font-size: 12.5px; }
.mk-col { display: flex; flex-direction: column; border-right: 1px solid #eee; }
.mk-col:last-child { border-right: none; }
.mk-head { height: 28px; line-height: 28px; padding: 0 10px; font-size: 11px; color: #6b7280; background: #fafafa; border-bottom: 1px solid #eee; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mk-hint { font-size: 10.5px; font-weight: 400; color: #9aa3b2; }
.mk-tree { padding: 8px 0; flex: 1; overflow: hidden; }
.mk-tree-item { padding: 4px 12px; color: #374151; white-space: nowrap; }
.mk-tree-item.dir { font-weight: 600; }
.mk-tree-item.active { background: #e0ebff; color: #2f6fe0; }
.mk-tree-item.sub { padding-left: 24px; color: #6b7280; font-weight: 400; }
.mk-editor { flex: 1; width: 100%; padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: #1a2233; background: #fffef8; white-space: pre-wrap; overflow: auto; border: none; outline: none; resize: none; display: block; }
.mk-editor:focus { background: #fffef0; }
.mk-preview { flex: 1; padding: 12px 16px; overflow: auto; line-height: 1.6; }
.mk-preview h1 { font-size: 15px; margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.mk-preview h2 { font-size: 14px; margin: 8px 0 6px; border-bottom: 1px solid #eee; padding-bottom: 3px; }
.mk-preview h3 { font-size: 13px; margin: 8px 0 4px; }
.mk-preview h4 { font-size: 12.5px; margin: 8px 0 4px; }
.mk-preview p { font-size: 12px; color: #374151; margin-bottom: 6px; }
.mk-preview code { background: #f4f4f4; padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono); font-size: 11px; }
.mk-preview pre { background: #f4f4f4; padding: 8px 10px; border-radius: 4px; overflow: auto; margin: 6px 0; }
.mk-preview pre code { background: none; padding: 0; }
.mk-preview ul, .mk-preview ol { padding-left: 18px; font-size: 12px; color: #374151; margin-bottom: 6px; }
.mk-preview li { margin: 2px 0; }
.mk-preview blockquote { border-left: 3px solid #4f8df7; padding: 2px 10px; margin: 6px 0; color: #6b7280; background: #f6f8fa; font-size: 12px; }
.mk-preview a { color: #2f6fe0; }
.mk-preview table { border-collapse: collapse; margin: 6px 0; font-size: 11.5px; }
.mk-preview th, .mk-preview td { border: 1px solid #ddd; padding: 3px 8px; }
.mk-preview th { background: #f0f0f0; }

/* ===== Section ===== */
section { padding: 88px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--c-primary); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--c-text-soft); font-size: 16px; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px; transition: all .2s ease;
}
.feature-card:hover { border-color: #d6deea; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, #eaf2ff, #f0eaff); color: var(--c-primary);
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--c-text-soft); font-size: 14.5px; line-height: 1.65; }

/* ===== Pricing compare table ===== */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-border); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 14.5px; }
.compare thead th { background: #fafbfc; font-weight: 700; font-size: 15px; }
.compare .col-feat { width: 38%; color: var(--c-text-soft); }
.compare .plan-free, .compare .plan-pro, .compare .plan-ulti { text-align: center; width: 20%; }
.compare .plan-pro { background: linear-gradient(180deg, #f3f7ff, #fff); border-left: 1px solid #d6e4ff; border-right: 1px solid #d6e4ff; }
.compare thead .plan-pro { position: relative; }
.compare .badge-pop { display: inline-block; background: var(--c-primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 600; }
.compare .yes { color: var(--c-success); font-weight: 700; }
.compare .no { color: var(--c-text-mute); }
.compare .price-row td { font-size: 13px; color: var(--c-text-mute); padding-top: 6px; padding-bottom: 22px; }
.compare .price-row .num { font-size: 26px; color: var(--c-text); font-weight: 800; display: block; }
.compare .price-row .per { font-size: 12px; }
.compare tbody tr:last-child td { border-bottom: none; }

/* ===== Pricing cards (pricing.html) ===== */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 32px 28px;
  display: flex; flex-direction: column; transition: all .2s ease;
}
.price-card.featured { border-color: var(--c-primary); box-shadow: 0 12px 32px rgba(79,141,247,0.16); position: relative; }
.price-card.featured::before { content: "最受欢迎"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 999px; font-weight: 600; }
.price-card .plan-name { font-size: 14px; font-weight: 700; color: var(--c-text-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.price-card .plan-price { margin: 14px 0 6px; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .plan-price .unit { font-size: 14px; font-weight: 500; color: var(--c-text-soft); }
.price-card .plan-desc { color: var(--c-text-soft); font-size: 14px; min-height: 42px; margin-bottom: 22px; }
.price-card ul { margin: 0 0 28px; flex: 1; }
.price-card li { font-size: 14px; padding: 7px 0; color: var(--c-text); display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px dashed var(--c-border); }
.price-card li:last-child { border-bottom: none; }
.price-card li .ck { color: var(--c-success); flex-shrink: 0; font-weight: 700; }
.price-card li .ck.no { color: var(--c-text-mute); }

/* ===== Download ===== */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card { background: #fff; border: 1px solid var(--c-border); border-radius: 14px; padding: 28px; text-align: center; transition: all .2s; }
.dl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dl-card .dl-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.dl-card .dl-price { font-size: 14px; color: var(--c-text-soft); margin-bottom: 18px; }
.dl-card .dl-price strong { color: var(--c-text); font-size: 22px; font-weight: 800; }
.dl-card .dl-meta { font-size: 12.5px; color: var(--c-text-mute); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); display: grid; gap: 6px; }
.dl-card .dl-meta b { color: var(--c-text-soft); font-weight: 600; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--c-bg-hero), #1a3a6e); color: #fff; border-radius: 18px; padding: 56px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #b8c5dc; margin-bottom: 28px; font-size: 16px; }
.cta-band .hero-actions { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: var(--c-text); }
.faq-q .arrow { transition: transform .2s; color: var(--c-text-mute); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--c-text-soft); font-size: 14.5px; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 22px 20px; }

/* ===== Footer ===== */
.footer { background: #0b1f3a; color: #a9b4c7; padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-about p { font-size: 13.5px; line-height: 1.7; color: #8a94a6; max-width: 320px; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 13.5px; color: #a9b4c7; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #6b7689; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #6b7689; }
.footer-bottom a:hover { color: #a9b4c7; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--c-border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .features-grid, .price-cards, .dl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mockup-body { grid-template-columns: 1fr; height: auto; }
  .mk-col { border-right: none; border-bottom: 1px solid #eee; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}