:root {
  --bg: linear-gradient(165deg, #f0f9ff 0%, #f5f3ff 45%, #fdf2f8 100%);
  --card: rgba(255, 255, 255, 0.94);
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --line: rgba(17, 24, 39, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(48px, env(safe-area-inset-bottom));
}

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

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

/* Nav */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.site-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
}

.site-nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.hero-copy {
  min-width: 0;
}

.hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex-shrink: 0;
}

.qr-img--hero {
  width: min(180px, 56vw);
}

@media (min-width: 640px) {
  .hero {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
  }

  .hero-qr {
    padding-top: 8px;
  }
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 52ch;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
  border: 1px solid var(--line);
}

.card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--text);
}

.card p,
.card li {
  font-size: 0.92rem;
  color: #374151;
}

.card ul,
.card ol {
  margin: 8px 0 0 1.15em;
}

.card li {
  margin-bottom: 6px;
}

.feature-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  padding: 14px 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid var(--line);
}

.feature-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text);
}

.feature-item span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.steps li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px !important;
  min-height: 28px;
}

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

.changelog-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.changelog-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.changelog-item .ver {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.changelog-item .date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.changelog-item ul {
  margin-top: 6px;
}

.site-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.site-footer__icp {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer__icp a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer__icp a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.qr-card .qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.qr-img {
  width: min(220px, 70vw);
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
}

.qr-hint {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
}
