:root {
  --apricot: #e8a05c;
  --apricot-d: #c97e38;
  --apricot-l: #fde9d2;
  --apricot-bright: #f6c48a;
  --cream: #fff8f2;
  --paper: #fffcfa;
  --ink: #4a3d32;
  --muted: #8b7a6c;
  --faint: #c4b5a6;
  --mint: #7ed6a8;
  --mint-d: #5fc492;
  --card-shadow: 0 4px 16px rgba(232, 160, 92, 0.16);
  --float-shadow: 0 12px 40px rgba(232, 160, 92, 0.22);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --display: "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, #ffe7c8 0%, transparent 58%),
    radial-gradient(760px 420px at 100% 2%, rgba(126, 214, 168, 0.28) 0%, transparent 52%),
    var(--cream);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 242, 0.88);
  border-bottom: 1px solid rgba(232, 160, 92, 0.12);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(74, 61, 50, 0.12);
}

.brand span {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--apricot-d);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--apricot-l);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  font: 700 15px/1 var(--body);
  padding: 14px 24px;
  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: var(--apricot);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 160, 92, 0.45);
}

.btn-primary:hover {
  background: var(--apricot-d);
}

.btn-outline {
  background: var(--paper);
  color: var(--apricot-d);
  border: 1.5px solid rgba(232, 160, 92, 0.45);
}

.btn-outline:hover {
  background: var(--apricot-l);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* ── Hero ── */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(126, 214, 168, 0.22);
  color: #2d6b4a;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 1px;
}

.hero .slogan {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--apricot-d);
  font-weight: 600;
  margin: 0 0 16px;
}

.hero-desc {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--faint);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ── Device frame (carousel + feature screenshots) ── */
.device-frame {
  background: linear-gradient(160deg, #2a2430 0%, #1a1020 100%);
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    var(--float-shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-screen {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  line-height: 0;
}

.device-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* ── Screenshot carousel ── */
.screenshot-carousel {
  position: relative;
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 460 / 980;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide .device-screen {
  height: 100%;
}

.carousel-slide .device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(232, 160, 92, 0.35);
  background: var(--paper);
  color: var(--apricot-d);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--apricot-l);
  border-color: var(--apricot);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--faint);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dot.active {
  background: var(--apricot);
  transform: scale(1.25);
}

.carousel-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-1 {
  width: 120px;
  height: 120px;
  background: rgba(126, 214, 168, 0.25);
  top: -20px;
  right: -10px;
}

.hero-deco-2 {
  width: 80px;
  height: 80px;
  background: rgba(232, 160, 92, 0.2);
  bottom: 40px;
  left: -20px;
}

/* ── Sections ── */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--apricot-d);
}

.icon-box svg {
  display: block;
}

.icon-box--mint {
  background: rgba(126, 214, 168, 0.28);
  color: #2d6b4a;
}

.icon-box--apricot {
  background: rgba(232, 160, 92, 0.22);
  color: var(--apricot-d);
}

.icon-box--sky {
  background: rgba(135, 206, 235, 0.28);
  color: #3a7a9e;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Detail rows ── */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row.reverse .detail-text {
  order: 2;
}

.detail-row.reverse .detail-visual {
  order: 1;
}

.detail-text h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 12px;
}

.detail-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.detail-quote {
  background: var(--apricot-l);
  border-left: 4px solid var(--apricot);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--apricot-d);
  font-style: italic;
}

.detail-visual {
  display: flex;
  justify-content: center;
}

.screenshot-card {
  position: relative;
  max-width: 260px;
  width: 100%;
}

.screenshot-card .device-screen {
  aspect-ratio: 460 / 980;
}

.screenshot-card .device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card .tag {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--paper);
  color: #2d6b4a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}

/* ── Scenarios ── */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.scenario-num {
  font-family: var(--display);
  font-size: 32px;
  color: var(--apricot-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

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

/* ── Trust ── */
.trust-band {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 32px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--apricot-l);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apricot-d);
}

.trust-icon svg {
  display: block;
}

.trust-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.trust-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── Install steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--apricot);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 15px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

.wechat-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  background: #fff8e8;
  border: 1px solid #f0d080;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  color: #8a6d20;
}

.wechat-tip-icon {
  flex-shrink: 0;
  color: #c9970a;
  margin-top: 2px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 18px 20px;
  font: 600 15px/1.4 var(--body);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--apricot);
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open .faq-a {
  display: block;
}

/* ── Download CTA ── */
.download-cta {
  background: linear-gradient(135deg, var(--apricot) 0%, var(--apricot-d) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--float-shadow);
}

.download-cta h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  margin: 0 0 10px;
}

.download-cta p {
  margin: 0 0 24px;
  opacity: 0.92;
  font-size: 16px;
}

.download-cta .btn-primary {
  background: #fff;
  color: var(--apricot-d);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.download-cta .btn-primary:hover {
  background: var(--cream);
}

.download-cta .meta {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}

/* ── Footer ── */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(232, 160, 92, 0.15);
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--apricot-d);
}

.qr-wrap img {
  width: 100px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.qr-wrap span {
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--faint);
  padding-top: 20px;
  border-top: 1px solid rgba(232, 160, 92, 0.1);
}

/* ── WeChat overlay ── */
.wechat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 16, 32, 0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wechat-overlay.show {
  display: flex;
}

.wechat-modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 340px;
  text-align: center;
  box-shadow: var(--float-shadow);
}

.wechat-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.wechat-modal .hint {
  font-size: 13px;
  color: var(--apricot-d);
  background: var(--apricot-l);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.wechat-modal button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid,
  .detail-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .scenarios-grid,
  .trust-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .detail-row.reverse .detail-text,
  .detail-row.reverse .detail-visual {
    order: unset;
  }

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 32px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 248, 242, 0.98);
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(232, 160, 92, 0.12);
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav .container {
    position: relative;
  }

  .screenshot-card {
    margin: 0 auto;
  }
}

/* ── Legal pages ── */
.legal-page {
  padding: 40px 0 64px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
}

.legal-back:hover {
  color: var(--apricot-d);
  text-decoration: none;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  margin: 0 0 8px;
}

.legal-meta {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 32px;
}

.legal-body h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--ink);
}

.legal-body h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--ink);
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.4em;
  margin: 0 0 12px;
}

.legal-body a {
  color: var(--apricot-d);
}
