:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-elevated: #ffffff;
  --cyan: #0284c7;
  --cyan-soft: #e0f2fe;
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(59, 130, 246, 0.22);
  --border-strong: rgba(148, 163, 184, 0.45);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 45%, #e8edf5 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: var(--bg-soft);
  color: #334155;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid #fcd34d;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, black 15%, transparent 72%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% -5%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 85%, rgba(186, 230, 253, 0.45), transparent 50%),
    radial-gradient(ellipse 35% 30% at 5% 70%, rgba(254, 243, 199, 0.35), transparent 45%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.25));
}

.brand span {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

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

.nav a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%);
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fef08a 0%, #fcd34d 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 3rem;
  }
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero-tagline {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 32em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: #0369a1;
  box-shadow: var(--shadow-sm);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.hero-visual img.cover {
  width: 100%;
  display: block;
  aspect-ratio: 448 / 960;
  max-height: min(78vh, 640px);
  object-fit: contain;
  object-position: center center;
  background: #0f172a;
}

@media (min-width: 900px) {
  .hero-visual {
    margin: 0;
    max-width: none;
  }
}

.section-screenshots {
  padding-top: 2rem;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.screenshot-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.screenshot-gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 448 / 960;
  object-fit: contain;
  object-position: center top;
  background: #0f172a;
  max-height: 480px;
}

.screenshot-gallery figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

.section-head p {
  margin: 0 auto;
  max-width: 36em;
  color: var(--text-muted);
}

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

.card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #0c4a6e;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.card .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.dot-cyan { background: #0ea5e9; }
.dot-violet { background: #8b5cf6; }
.dot-gold { background: #f59e0b; }
.dot-emerald { background: #10b981; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.item-chip {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

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

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  position: relative;
  padding-top: 2.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cta-band {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.cta-inner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #eff6ff 0%, #fefce8 100%);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--text);
}

.cta-inner p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.qr-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  border-top: 1px solid var(--border-strong);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
}

.site-footer p {
  margin: 0.25rem 0;
}
