:root {
  --bg: #fffaf5;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #fff3e8;
  --border: rgba(232, 90, 36, 0.12);
  --border-strong: rgba(232, 90, 36, 0.22);
  --text: #1c1917;
  --text-muted: #78716c;
  --primary: #ff8a3d;
  --primary-deep: #e85a24;
  --primary-light: #fb923c;
  --accent: #facc15;
  --success: #0d9488;
  --sky: #38bdf8;
  --ink: #1c1917;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(232, 90, 36, 0.1);
  --shadow-soft: 0 8px 24px rgba(28, 25, 23, 0.06);
  --font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 138, 61, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(250, 204, 21, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(45, 212, 191, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--primary-deep);
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(232, 90, 36, 0.28);
}

.nav-cta:hover {
  filter: brightness(1.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 480px;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 138, 61, 0.22), transparent 55%),
    radial-gradient(circle at 78% 20%, rgba(250, 204, 21, 0.16), transparent 48%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.hero-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.5);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary-deep), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, filter 0.15s;
  width: auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 90, 36, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-deep);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary-deep);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-panel {
  background: linear-gradient(160deg, #ffffff, #fff7ed);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-panel-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.dot-row {
  display: flex;
  gap: 6px;
}

.dot-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d3d1;
  font-style: normal;
}

.dot-row i:nth-child(1) { background: #ef4444; }
.dot-row i:nth-child(2) { background: #f59e0b; }
.dot-row i:nth-child(3) { background: #22c55e; }

.ribbon-preview {
  display: grid;
  gap: 10px;
}

.ribbon-tab {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.ribbon-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ribbon-chip {
  padding: 10px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.ribbon-chip.active {
  color: var(--primary-deep);
  border-color: rgba(255, 138, 61, 0.5);
  background: rgba(255, 138, 61, 0.12);
  font-weight: 600;
}

/* ---- Capabilities strip ---- */
.capabilities {
  padding: 0 0 40px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.cap-item {
  text-align: center;
  padding: 12px 6px;
  min-width: 0;
  overflow: hidden;
}

.cap-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(232, 90, 36, 0.12);
}

.cap-icon svg,
.feature-icon svg {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  flex-shrink: 0;
}

.cap-item h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--ink);
}

.cap-item p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Sections ---- */
section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.45), rgba(255, 250, 245, 0.2));
  border-block: 1px solid var(--border);
}

/* ---- Feature cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 138, 61, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: var(--primary-deep);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---- Modules ---- */
.module-list {
  display: grid;
  gap: 12px;
}

.module-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.module-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.module-item summary::-webkit-details-marker {
  display: none;
}

.module-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.module-item[open] summary::after {
  transform: rotate(45deg);
}

.module-body {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--primary-deep);
}

/* ---- Pricing ---- */
.contrib-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 0 auto 28px;
  max-width: 820px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fef9c3, #ffedd5);
  border: 1px solid rgba(250, 204, 21, 0.45);
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contrib-banner strong {
  color: #a16207;
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.price-card .btn {
  width: 100%;
}

.price-card.featured {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: var(--shadow);
  position: relative;
  background: linear-gradient(180deg, #fff7ed, #ffffff 42%);
}

.price-card.featured::before {
  content: "最划算";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-weight: 700;
}

.price-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--ink);
}

.price-card .tier-desc {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 2.6em;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--primary-deep);
}

.price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.price-features li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.4em;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.trial-banner {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), rgba(255, 138, 61, 0.08));
  border: 1px solid rgba(13, 148, 136, 0.25);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trial-banner strong {
  color: var(--success);
}

/* ---- Download ---- */
.download-cta {
  text-align: center;
  margin-bottom: 36px;
}

.download-cta .btn {
  margin-bottom: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.code-block {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #57534e;
  overflow-x: auto;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-tagline {
  margin: 12px 0 0;
  max-width: 28em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-deep);
}

.footer-copy {
  margin-top: 24px;
  text-align: center;
}

.footer-copy p {
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }

  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .cap-grid,
  .feature-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 48px;
  }

  .contrib-banner {
    flex-direction: column;
  }
}
