:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2329;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #fb7299;
  --accent-dark: #e5567e;
  --header-bg: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #161a22;
    --text: #e8eaed;
    --muted: #9aa0a8;
    --line: #2a2f3a;
    --accent: #fb7299;
    --accent-dark: #ff8fae;
    --header-bg: rgba(22, 26, 34, 0.92);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  font-weight: 700;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--accent-dark);
}

.hero {
  padding: 64px 0 56px;
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.lead {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.screenshot-section,
.features,
.install,
.usage,
.faq {
  padding: 8px 0 56px;
}

h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.3;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.screenshot-figure {
  margin: 0 auto;
  max-width: 720px;
}

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.steps li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 44px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.step-link {
  font-weight: 600;
}

.steps p {
  margin: 4px 0 0;
  color: var(--muted);
}

.note {
  color: var(--muted);
  font-size: 14px;
}

details {
  margin-bottom: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero {
    padding: 40px 0 36px;
  }

  h1 {
    font-size: 30px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-header nav {
    gap: 12px;
    font-size: 13px;
  }
}
