:root {
  --pink: #ff8fab;
  --pink-light: #ffb3c8;
  --pink-pale: #fff0f6;
  --blue: #6eb5ff;
  --blue-dark: #4a9ae8;
  --blue-pale: #eef6ff;
  --bg: #f5f9ff;
  --bg-card: #ffffff;
  --border: #dce8f8;
  --border-pink: #ffd6e8;
  --text: #3d4f66;
  --text-secondary: #7a8a9e;
  --text-muted: #a0aec0;
  --gradient-page: linear-gradient(180deg, #fff5f9 0%, #eef6ff 100%);
  --gradient-primary: linear-gradient(135deg, #ff8fab 0%, #6eb5ff 100%);
  --gradient-nav: linear-gradient(90deg, #ff9eb8 0%, #8ec8f5 100%);
  --shadow-soft: 0 8px 32px rgba(110, 181, 255, 0.12);
  --shadow-card: 0 4px 24px rgba(61, 79, 102, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink);
}

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

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow-card);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--gradient-primary);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 143, 171, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 181, 255, 0.4);
  color: #fff !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switch-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch-btn:hover {
  color: var(--blue-dark);
}

.lang-switch-btn.active {
  background: var(--gradient-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  background: var(--gradient-page);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(110, 181, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #86efac;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 143, 171, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(110, 181, 255, 0.4);
  color: #fff;
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.stat-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  padding: 12px;
  background: var(--gradient-nav);
  border-radius: 36px;
  box-shadow: var(--shadow-soft), 0 24px 64px rgba(61, 79, 102, 0.15);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-card);
}

.phone-screen img {
  width: 100%;
  height: auto;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-primary);
  opacity: 0.15;
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
}

/* ── Section common ── */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: 48px;
}

.section-header {
  text-align: center;
}

.section-header .section-desc {
  margin-inline: auto;
}

/* ── Features ── */
.features {
  background: var(--bg-card);
}

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

.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--border-pink);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 10px;
}

.feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.feature-icon.pink {
  background: var(--pink-pale);
}

.feature-icon.blue {
  background: var(--blue-pale);
}

.feature-icon.gradient {
  background: var(--gradient-primary);
}

.feature-icon.gradient img,
.feature-icon.light img {
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Screenshots ── */
.screenshots {
  background: var(--gradient-page);
}

.screenshot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 143, 171, 0.3);
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.screenshot-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.screenshot-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.screenshot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.screenshot-preview {
  display: flex;
  justify-content: center;
}

.preview-frame {
  width: min(100%, 320px);
  padding: 10px;
  background: var(--gradient-nav);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.preview-frame img {
  border-radius: 24px;
  width: 100%;
  transition: opacity 0.3s;
}

/* ── Quick Start ── */
.quickstart {
  background: var(--bg-card);
}

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

.step-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-card code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--blue-dark);
  word-break: break-all;
}

/* ── Guide ── */
.guide {
  background: var(--bg);
}

.guide-block {
  margin-bottom: 56px;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.guide-block-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
}

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

.tech-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.tech-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  border-radius: 16px;
  padding: 12px;
}

.tech-card-icon.pink {
  background: var(--pink-pale);
}

.tech-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.tech-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tech-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tech-card code {
  display: inline;
  padding: 2px 6px;
  background: var(--blue-pale);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--blue-dark);
  word-break: break-all;
}

/* ── FAQ ── */
.faq {
  background: var(--gradient-page);
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-question > span:first-child {
  flex: 1;
}

.faq-question:hover {
  color: var(--blue-dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  background: var(--blue-pale);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--pink-pale);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after {
  background: var(--pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer-inner code {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: var(--blue-pale);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--blue-dark);
}

/* ── CTA ── */
.cta {
  padding: 80px 0;
}

.cta-card {
  text-align: center;
  padding: 64px 48px;
  background: var(--gradient-nav);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 1.0625rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 480px;
  margin-inline: auto;
}

.cta-card .btn-outline {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.cta-card .btn-outline:hover {
  background: #fff;
}

/* ── Footer ── */
.footer {
  padding: 48px 0 32px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

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

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

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--blue-dark);
}

.footer-support-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.qq-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
}

.qq-group-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.qq-group-number {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.qq-group-number:hover {
  color: var(--pink);
}

.qq-group-number.copied {
  color: var(--pink);
}

.qq-group-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid,
  .screenshot-showcase,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .phone-wrap {
    margin-bottom: 16px;
  }

  .phone-frame {
    width: 240px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-card);
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-stats {
    gap: 20px;
  }

  .cta-card {
    padding: 48px 24px;
  }
}
