:root {
  --purple: #8b7ec8;
  --purple-light: #b8a9dc;
  --purple-dark: #6b5b95;
  --purple-deep: #5a4a82;
  --lavender: #e8e0f5;
  --surface: #faf8fc;
  --text: #2d2640;
  --muted: #8a8499;
  --outline: #d4cbe8;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(90, 74, 130, 0.14);
  --radius: 14px;
  --header-h: 56px;
  --bottom-bar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  font-size: 15px;
  padding-bottom: calc(var(--bottom-bar-h) + var(--safe-bottom) + 16px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple-dark);
  text-decoration: none;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 248, 252, 0.94);
  border-bottom: 1px solid var(--outline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 640px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 1rem;
  min-width: 0;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(139, 126, 200, 0.25);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  text-align: center;
  line-height: 1.3;
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(139, 126, 200, 0.35);
}

.btn-outline {
  background: var(--white);
  color: var(--purple-deep);
  border: 1px solid var(--outline);
}

.btn-ghost {
  background: transparent;
  color: var(--purple-deep);
  border: 1px dashed var(--outline);
}

.btn-light {
  background: var(--white);
  color: var(--purple-deep);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-header {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  padding: 28px 16px 36px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 169, 220, 0.3), transparent 55%),
    var(--surface);
}

.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--purple-deep);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--purple-deep);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  text-align: left;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

/* ── Sections ── */
.section {
  padding: 40px 16px;
  max-width: 640px;
  margin: 0 auto;
}

.section-alt {
  background: linear-gradient(180deg, var(--white), var(--surface));
  max-width: none;
  padding-left: 16px;
  padding-right: 16px;
}

.section-alt > * {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--purple-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Features ── */
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(90, 74, 130, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lavender);
  color: var(--purple-deep);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--purple-deep);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ── Showcase (horizontal scroll) ── */
.showcase-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}

.phone-frame {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--outline);
}

.phone-frame img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

.showcase-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--purple-deep);
  text-align: center;
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: center;
}

.scroll-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 8px 0 0;
}

/* ── CTA ── */
.cta {
  padding: 32px 16px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.cta-box {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: var(--white);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.cta-box p {
  margin: 0 0 20px;
  opacity: 0.92;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-box .hero-actions {
  margin-bottom: 0;
}

/* ── Footer ── */
.site-footer {
  padding: 32px 16px 24px;
  border-top: 1px solid var(--outline);
  background: var(--white);
  max-width: 640px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 16px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.footer-beian {
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-beian a {
  color: var(--muted);
}

.footer-psbeian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.beian-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ── Fixed bottom download bar ── */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--outline);
  box-shadow: 0 -4px 20px rgba(90, 74, 130, 0.08);
}

.btn-bar {
  flex: 1;
  min-height: 44px;
  font-size: 0.9rem;
}

/* ── Tablet / large phone ── */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-lead {
    text-align: center;
  }

  .hero-points {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .bottom-bar {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}
