:root {
  --bg: #fff9f5;
  --bg-soft: #fff3ea;
  --card: #ffffff;
  --ink: #1a1410;
  --muted: #6f6259;
  --line: #ecdfd5;
  --accent: #ff6b3d;
  --accent-deep: #e8522a;
  --accent-soft: #ffe3d6;
  --dark: #16110e;
  --dark-ink: #fdf6f1;
  --dark-muted: #b6a79d;
  --shadow: 0 24px 60px -28px rgba(54, 28, 16, 0.35);
  --radius: 18px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #14100e;
  --bg-soft: #1b1512;
  --card: #1d1714;
  --ink: #f8f1eb;
  --muted: #b0a198;
  --line: #302722;
  --accent: #ff7a50;
  --accent-deep: #ff6b3d;
  --accent-soft: #39231a;
  --dark: #0e0b09;
  --dark-ink: #f8f1eb;
  --dark-muted: #a8968c;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { color: var(--accent-deep); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}

.skip:focus { left: 0; z-index: 100; }

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}

.brand img { border-radius: 8px; }

.nav {
  display: flex;
  gap: 24px;
  margin-left: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav a:hover { color: var(--ink); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent-deep); }

.ghost {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
}

.ghost:hover { border-color: var(--ink); color: var(--ink); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.eyebrow.light { color: var(--accent); }

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.lede {
  margin: 0 0 30px;
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover { transform: translateY(-1px); border-color: var(--ink); color: var(--ink); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(255, 107, 61, 0.8);
}

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

.facts {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}

.facts li { position: relative; padding-left: 16px; }

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* hero visual */
.hero-visual { position: relative; }

.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.6deg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 11px;
  color: var(--muted);
}

.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-bar i:first-child { background: #ffb4a0; }
.mock-bar span { margin-left: 8px; letter-spacing: 0.02em; }

.mock-canvas {
  position: relative;
  margin: 18px;
  height: 300px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #fff2e8 0%, #ffe9dd 100%);
  overflow: hidden;
}

html[data-theme="dark"] .mock-canvas {
  background: linear-gradient(135deg, #2a201b 0%, #241a15 100%);
}

.mock-poster { position: absolute; inset: 38px 34px; }

.poster-line { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 16%, transparent); margin-bottom: 10px; }
.poster-line.w1 { width: 62%; }
.poster-line.w2 { width: 44%; }

.poster-block {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 42%;
  height: 46%;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent), #ffb08e);
  opacity: 0.9;
}

.poster-dot {
  position: absolute;
  left: 6%;
  bottom: 18%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.marquee {
  position: absolute;
  left: 18%;
  top: 16%;
  width: 66%;
  height: 62%;
  border: 2px dashed var(--accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  animation: marqueePulse 3.6s ease-in-out infinite;
}

.handle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
}

.h1 { left: calc(18% - 5px); top: calc(16% - 5px); }
.h2 { right: calc(16% - 4px); top: calc(16% - 5px); }
.h3 { left: calc(18% - 5px); bottom: calc(22% - 4px); }
.h4 { right: calc(16% - 4px); bottom: calc(22% - 4px); }

.mock-foot {
  padding: 0 18px 16px;
  font-size: 12px;
  color: var(--muted);
}

.stickers {
  position: absolute;
  right: -8px;
  bottom: -26px;
  display: flex;
  gap: 10px;
}

.sticker {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(54, 28, 16, 0.5);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  animation: float 5s ease-in-out infinite;
}

.sticker span {
  background: var(--accent);
  color: #fff;
  padding: 4px 9px;
  border-radius: 7px;
  letter-spacing: 0.02em;
}

.s2 { animation-delay: 0.6s; transform: rotate(-4deg); }
.s3 { animation-delay: 1.2s; transform: rotate(3deg); }

@keyframes marqueePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* sections */
section { scroll-margin-top: 84px; }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 64px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.section-sub { margin: 0; color: var(--muted); font-size: 15.5px; }

.features { padding: clamp(60px, 8vw, 100px) 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }

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

/* privacy */
.privacy {
  background: var(--dark);
  color: var(--dark-ink);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px);
}

.privacy-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.privacy h2 { color: var(--dark-ink); }

.privacy-copy p:not(.eyebrow) { color: var(--dark-muted); max-width: 32em; margin: 0; }

.privacy-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }

.privacy-list li { display: flex; gap: 14px; }

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

.privacy-list strong { display: block; font-size: 15px; margin-bottom: 3px; }

.privacy-list p { margin: 0; font-size: 14px; color: var(--dark-muted); }

/* download */
.download { padding: clamp(60px, 8vw, 100px) 0; }

.download .section-sub a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.version { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.platform {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.platform h3 { margin: 0; font-size: 17px; }

.tag {
  font-size: 11px;
  font-weight: 650;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
}

.dl::after { content: "↓"; color: var(--accent-deep); font-weight: 700; }

.dl:hover { border-color: var(--accent); color: var(--ink); background: var(--bg-soft); }

.notice {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 0 clamp(20px, 5vw, 64px);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* xiaoji */
.xiaoji { padding: 0 clamp(20px, 5vw, 64px) clamp(60px, 8vw, 100px); }

.xiaoji-card {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.xiaoji-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.xiaoji-card p { color: var(--muted); margin: 0 0 20px; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }

.steps li { display: flex; gap: 14px; align-items: flex-start; }

.steps span {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 7px;
  font-variant-numeric: tabular-nums;
}

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

/* license */
.license {
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.license-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.license p { color: var(--muted); margin: 0 0 14px; max-width: 46em; }

.license .muted { font-size: 13.5px; color: var(--muted); opacity: 0.85; }

.license-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* faq */
.faq { padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px); max-width: 860px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 2px;
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: var(--accent-deep); font-weight: 600; }

.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 12px 0 2px; color: var(--muted); font-size: 14.5px; }

/* footer */
.footer {
  padding: 40px clamp(20px, 5vw, 64px) 48px;
  border-top: 1px solid var(--line);
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--muted); }

.footer-note {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--muted);
}

/* responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid, .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-inner, .xiaoji-card, .license-grid { grid-template-columns: 1fr; }
  .license-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .grid, .platforms { grid-template-columns: 1fr; }
  .mock-canvas { height: 240px; }
  .stickers { right: 4px; bottom: -18px; }
  .sticker { width: 62px; height: 62px; }
  .hero { padding-top: 40px; }
  .cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .sticker { animation: none; }
  .btn, .card { transition: none; }
}
