:root {
  --bg: #f4f0fb;
  --ink: #24183a;
  --muted: #6d6282;
  --line: rgba(80, 50, 140, 0.12);
  --brand: #6d4cc4;
  --brand-deep: #3c2178;
  --card: #ffffff;
  --shadow: 0 24px 50px rgba(55, 28, 110, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(167, 139, 250, 0.45), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(124, 92, 191, 0.18), transparent 55%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 7vw;
  background: rgba(244, 240, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-download {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white !important;
}

.hero, .block, .doc, footer { padding-left: 7vw; padding-right: 7vw; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 36px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35c46b;
  box-shadow: 0 0 0 6px rgba(53, 196, 107, 0.15);
}
h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { max-width: 560px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}
.btn.primary { background: var(--brand); color: white; box-shadow: 0 10px 24px rgba(109, 76, 196, 0.28); }
.btn.primary:hover { background: #5d3db8; }
.btn.ghost { background: white; border: 1px solid var(--line); }
.btn.off { background: #ece8f4; color: #8b82a0; cursor: default; }

.rise { animation: rise 0.7s ease both; }
.delay { animation-delay: 0.12s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.bob { animation: bob 5.5s ease-in-out 0.8s infinite; }
@keyframes bob {
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .bob, .reveal { animation: none !important; }
}

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(180deg, #2c2148, #120d20);
  box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; border-radius: 26px; }

.block { padding-top: 28px; padding-bottom: 20px; }
.block h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.03em; }
.sub { margin: 0 0 28px; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.shot { text-align: center; }
.shot p { margin: 14px 0 0; font-weight: 700; }
.shot span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step {
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.step b { display: block; margin-bottom: 8px; color: var(--brand); font-size: 13px; }
.step strong { display: block; margin-bottom: 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

.doc { width: 100%; padding-top: 36px; padding-bottom: 48px; }
.doc > h1 { font-size: 36px; }
.doc article {
  margin-top: 20px;
  padding: 8px 4px 4px;
  line-height: 1.8;
  font-size: 16px;
  color: var(--ink);
}
.doc article * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.doc article h1 { margin: 0 0 16px !important; font-size: 22px !important; line-height: 1.4 !important; }
.doc article h2 { margin: 1.6em 0 0.6em !important; font-size: 18px !important; line-height: 1.45 !important; }
.doc article h3 { margin: 1.3em 0 0.45em !important; font-size: 16px !important; line-height: 1.45 !important; }
.doc article p, .doc article div { margin: 0 0 12px !important; line-height: 1.8 !important; }
.doc article ul, .doc article ol { margin: 0 0 12px !important; padding-left: 1.4em; }
.doc article li { margin: 4px 0 !important; }
.doc article blockquote {
  margin: 0 0 12px !important;
  padding: 4px 0 4px 12px;
  border-left: 3px solid var(--brand);
  color: var(--muted);
}
.doc article a { color: var(--brand-deep); text-decoration: underline; }
.doc article img, .doc article video { display: block; max-width: 100%; height: auto; margin: 0 0 12px; border-radius: 12px; }
.doc article table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.doc article th, .doc article td { border: 1px solid var(--line); padding: 8px; text-align: left; background: transparent !important; }
.empty {
  padding: 22px;
  border-radius: 16px;
  background: white;
  color: var(--muted);
  border: 1px dashed var(--line);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .nav-links a:not(.nav-download) { display: none; }
  .hero { grid-template-columns: 1fr; display: grid; }
  .shots, .steps { grid-template-columns: 1fr; }
  .shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shot { flex: 0 0 78%; scroll-snap-align: center; }
  h1 { font-size: 38px; }
  footer { flex-direction: column; }
}
