/* ========== 全局变量（配色取自语伴岛 logo：紫粉 + 薄荷绿 + 天蓝） ========== */
:root {
  --primary: #b07ce8;        /* 主紫色（对话气泡） */
  --primary-dark: #8b5bbf;
  --primary-light: #d9b8f0;
  --pink: #f8a5c2;           /* 点缀粉（闪光） */
  --mint: #7fd1b9;           /* 薄荷绿（小岛） */
  --mint-dark: #5cb89a;
  --sky: #a8d8f0;            /* 天蓝（海水） */
  --bg: #fbf7ff;
  --bg-soft: #f3ebfb;
  --text: #2d2440;
  --text-soft: #6b607a;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(139, 91, 191, 0.15);
  --shadow-lg: 0 20px 60px rgba(139, 91, 191, 0.25);
  --radius: 18px;
  --grad: linear-gradient(135deg, #b07ce8 0%, #f8a5c2 100%);
  --grad-mint: linear-gradient(135deg, #7fd1b9 0%, #a8d8f0 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 导航 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176, 124, 232, 0.15);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(139, 91, 191, 0.1); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-dark);
}
.nav-logo img {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.nav-brand {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a:not(.nav-download)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.3s;
}
.nav-links a:not(.nav-download):hover::after { width: 100%; }

.nav-download {
  background: var(--grad);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 30px;
  box-shadow: 0 6px 18px rgba(176, 124, 232, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(176, 124, 232, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ========== 首屏 ========== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(176, 124, 232, 0.18), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(248, 165, 194, 0.2), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(127, 209, 185, 0.15), transparent 50%),
    var(--bg);
  z-index: -1;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(176, 124, 232, 0.12);
  color: var(--primary-dark);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 16px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: fit-content;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 12px; color: var(--text-soft); }
.meta-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.meta-divider {
  width: 1px; height: 32px;
  background: rgba(139, 91, 191, 0.2);
}

.hero-cta { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(176, 124, 232, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(176, 124, 232, 0.5);
}

.btn-ghost {
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid rgba(176, 124, 232, 0.4);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 800;
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-soft);
}

/* ========== 截图展示（叠加动态效果） ========== */
.hero-screens {
  position: relative;
  height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen-stack {
  position: relative;
  width: 280px;
  height: 480px;
}
.screen {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 460px;
  border-radius: 36px;
  background: linear-gradient(145deg, #ffffff, #f3ebfb);
  border: 8px solid var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -50%) scale(0.85) rotate(var(--rot, 0deg));
  opacity: 0.4;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  object-fit: cover;
}
.screen[data-index="0"] { --rot: -8deg; }
.screen[data-index="1"] { --rot: 0deg; }
.screen[data-index="2"] { --rot: 8deg; }

.screen.active {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 30px 70px rgba(139, 91, 191, 0.4);
}
.screen-stack:hover .screen {
  transform: translate(-50%, -50%) scale(0.8) rotate(var(--rot));
  opacity: 0.35;
}
.screen-stack:hover .screen.active,
.screen-stack .screen:hover {
  transform: translate(-50%, -50%) scale(1.05) rotate(0deg);
  opacity: 1;
  z-index: 5;
}

.screen-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--grad);
  width: 28px;
  border-radius: 6px;
}

/* ========== 通用 section ========== */
section { padding: 90px 0; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(176, 124, 232, 0.12);
  color: var(--primary-dark);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.light-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
}
.section-head.light h2,
.section-head.light p { color: #fff; }
.section-head.light p { opacity: 0.85; }

/* ========== 功能亮点 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--white);
  padding: 34px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(176, 124, 232, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 16px;
  font-size: 28px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ========== 用户评价 ========== */
.reviews {
  background: var(--grad);
  position: relative;
  overflow: hidden;
}
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(127, 209, 185, 0.3), transparent 40%);
}
.reviews .container { position: relative; z-index: 1; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-5px); }

.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.review-name {
  font-weight: 700;
  color: var(--text);
}
.review-stars {
  color: #ffb84d;
  font-size: 14px;
  letter-spacing: 2px;
}
.review-card p {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(176, 124, 232, 0.08);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--grad);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 24px 20px;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ========== 下载模块（重点突出） ========== */
.download { padding: 80px 0 100px; }

.download-box {
  position: relative;
  background: var(--grad);
  border-radius: 32px;
  padding: 60px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.download-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  top: -150px; right: -100px;
  border-radius: 50%;
}
.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.download-left h2 {
  color: #fff;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin: 14px 0 12px;
}
.download-left p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}
.download-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-points li {
  color: #fff;
  font-size: 15px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dl-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 18px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.dl-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.dl-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}
.dl-icon svg { width: 34px; height: 34px; }
.dl-btn.android .dl-icon {
  background: rgba(127, 209, 185, 0.2);
  color: var(--mint-dark);
}
.dl-btn.ios .dl-icon {
  background: rgba(176, 124, 232, 0.15);
  color: var(--primary-dark);
}
.dl-text { display: flex; flex-direction: column; }
.dl-sub { font-size: 13px; color: var(--text-soft); }
.dl-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

/* ========== 页脚 ========== */
.footer {
  background: #2d2440;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}
.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}
.footer-brand img {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--pink); }

/* ========== 自适应 ========== */
@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-meta { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-inner { grid-template-columns: 1fr; text-align: center; }
  .download-points { align-items: center; }
  .download-buttons { max-width: 320px; margin: 0 auto; width: 100%; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 110px 0 50px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    width: 240px;
    height: calc(100vh - 68px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateX(0); }

  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }

  .hero-screens { height: 440px; }
  .screen-stack { width: 240px; height: 420px; }
  .screen { width: 220px; height: 400px; }

  .download-box { padding: 40px 24px; }
  .download-buttons { max-width: 100%; }
  .dl-btn { padding: 16px 20px; }
}
