:root {
  --xhs: #ff2442;
  --xhs-dark: #e01030;
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #666;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.logo { font-weight: 800; font-size: 1.15rem; color: var(--xhs); }

.nav nav { display: flex; gap: 1.5rem; align-items: center; font-size: .9rem; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav-cta { color: var(--xhs) !important; font-weight: 600; }

.hero {
  padding: 4rem 5vw 3rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,36,66,.08);
  color: var(--xhs);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hero h1 span { color: var(--xhs); }

.hero-desc {
  margin: 1.25rem auto 2rem;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--xhs); color: #fff; box-shadow: 0 8px 24px rgba(255,36,66,.25); }
.btn-primary:hover { background: var(--xhs-dark); }
.btn-ghost { border: 1px solid #ddd; background: #fff; color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.hero-stats div {
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--xhs); }
.hero-stats span { font-size: .75rem; color: var(--muted); }

.section { padding: 4rem 5vw; max-width: 1100px; margin: 0 auto; }
.section-alt { background: #fff; max-width: none; }
.section-alt .section-title, .section-alt .steps { max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #f0f0f0;
}
.card-highlight { border-color: rgba(255,36,66,.2); background: linear-gradient(135deg, #fff 0%, #fff5f6 100%); }
.card-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

.steps { list-style: none; display: grid; gap: 1.25rem; }
.steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg); padding: 1.25rem; border-radius: var(--radius);
}
.steps li span {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--xhs); color: #fff; border-radius: 50%; font-weight: 700;
}
.steps h4 { margin-bottom: .25rem; }
.steps p { font-size: .875rem; color: var(--muted); }

.tools-grid {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.tools-grid code {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: .75rem;
  color: #444;
}

.section-download { text-align: center; }
.download-note { color: var(--muted); margin-bottom: 1.5rem; }
.download-box { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.download-hint { font-size: .8rem; color: #999; }
.download-hint code { background: #eee; padding: 2px 6px; border-radius: 4px; }

.footer {
  text-align: center;
  padding: 2rem 5vw 3rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid #eee;
}
.footer a { color: var(--xhs); margin: 0 .5rem; }

@media (max-width: 640px) {
  .nav nav { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
