/* ============================================================
   真心对你 · 推广落地页样式
   纯 CSS，无框架 / 无 CDN 依赖
   ============================================================ */

/* ---------- 主题变量（默认浅色） ---------- */
:root {
  --color-primary: #ff6b9d;
  --color-primary-dark: #ec4f86;
  --color-secondary: #a86bff;
  --color-accent: #ff9a76;
  --color-text: #2b2331;
  --color-text-muted: #6f6677;
  --color-bg: #fffafc;
  --color-bg-alt: #fdf4f8;
  --color-card: #ffffff;
  --color-border: #f3e4ec;
  --color-shadow: rgba(236, 79, 134, 0.12);

  --gradient: linear-gradient(135deg, #ff6b9d 0%, #a86bff 100%);
  --gradient-soft: linear-gradient(135deg, #fff0f6 0%, #f6efff 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 20px rgba(43, 35, 49, 0.06);
  --shadow: 0 12px 36px var(--color-shadow);
  --shadow-lg: 0 24px 60px rgba(236, 79, 134, 0.18);

  --container: 1120px;
  --section-pad: 64px;
  --header-h: 68px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- 暗色主题（可选，手动为 body 添加 class="dark" 即可切换） ---------- */
body.dark {
  --color-text: #f5eef4;
  --color-text-muted: #b9aebb;
  --color-bg: #17121c;
  --color-bg-alt: #1f1725;
  --color-card: #241c2c;
  --color-border: #3a2c44;
  --color-shadow: rgba(255, 107, 157, 0.18);
  --gradient-soft: linear-gradient(135deg, #2a1b2e 0%, #221a33 100%);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px rgba(236, 79, 134, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(236, 79, 134, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

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

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

.brand-logo {
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav > a:not(.nav-cta) {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--color-primary);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--gradient);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(236, 79, 134, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(236, 79, 134, 0.38);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero 区 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 76px;
  background: var(--gradient-soft);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow--one {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  background: #ffb6d0;
}

.hero-glow--two {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -80px;
  background: #c9a8ff;
}

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

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(36px, 9vw, 58px);
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 520px;
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.version-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(168, 107, 255, 0.12);
  color: var(--color-secondary);
  font-weight: 700;
}

.hero-meta .dot {
  opacity: 0.5;
}

/* 手机模型 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 20px;
}

.phone {
  position: relative;
  width: 260px;
  height: 520px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a2b45, #1d1624);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  transform: rotate(-2deg);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #1d1624;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: #fff;
  padding: 38px 14px 0;
  overflow: hidden;
  position: relative;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff5f9;
  border: 1px solid #fde3ee;
  margin-bottom: 12px;
}

.mock-card--active {
  background: var(--gradient-soft);
  border-color: #f3dcf0;
}

.mock-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--gradient);
}

.mock-avatar--alt {
  background: linear-gradient(135deg, #ff9a76, #ff6b9d);
}

.mock-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.mock-info strong {
  font-size: 14px;
  color: #2b2331;
}

.mock-info span {
  color: #9a8fa0;
}

.mock-bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  max-width: 72%;
}

.bubble--left {
  align-self: flex-start;
  background: #f3eef7;
  color: #4a3f52;
  border-bottom-left-radius: 4px;
}

.bubble--right {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mock-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #f3e4ec;
}

.mock-bottom span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f6eaf1;
}

.mock-bottom span:first-child {
  background: var(--color-primary);
}

.float-badge {
  position: absolute;
  z-index: 3;
  box-shadow: var(--shadow);
}

.float-badge--heart {
  top: 40px;
  left: 8%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--color-primary);
  transform: rotate(-10deg);
  animation: float 4s ease-in-out infinite;
}

.float-badge--heart svg {
  width: 28px;
  height: 28px;
}

.float-badge--verify {
  right: 4%;
  bottom: 60px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 700;
  animation: float 4s ease-in-out 1s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 通用 Section ---------- */
.section {
  padding: var(--section-pad) 0;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.section-heading h2,
.safety-copy h2,
.contact-copy h2 {
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-heading p,
.safety-copy > p,
.contact-copy > p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- 功能亮点 ---------- */
.features {
  background: var(--color-bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.feature-icon--pink { background: linear-gradient(135deg, #ff8fb4, #ff6b9d); }
.feature-icon--purple { background: linear-gradient(135deg, #b98cff, #a86bff); }
.feature-icon--peach { background: linear-gradient(135deg, #ffb08a, #ff9a76); }

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

.feature-card p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ---------- 下载步骤 ---------- */
.download {
  background: var(--gradient-soft);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px 26px 76px;
  border-radius: var(--radius);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  background: var(--gradient);
  box-shadow: 0 6px 14px rgba(236, 79, 134, 0.3);
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

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

.download-cta {
  text-align: center;
  margin-top: 36px;
}

.download-hint {
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.download-hint strong {
  color: var(--color-primary-dark);
}

/* ---------- 安全与隐私 ---------- */
.safety {
  background: var(--color-bg);
}

.safety-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
}

.safety-list {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

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

.check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: var(--gradient);
  margin-top: 2px;
}

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

.safety-list p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.safety-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  border: 1px solid var(--color-border);
}

.shield {
  width: 120px;
  height: 120px;
  color: var(--color-primary);
  display: grid;
  place-items: center;
}

.shield svg {
  width: 100%;
  height: 100%;
}

.safety-card p {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ---------- 联系我们 ---------- */
.contact {
  background: var(--gradient-soft);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--gradient-soft);
  color: var(--color-primary);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #2b2331;
  color: #cfc4d4;
  padding: 44px 0 26px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand p,
.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  color: #b9a9c3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.copyright {
  font-size: 13px;
  color: #8d8095;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 20px rgba(236, 79, 134, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- 响应式：平板及以上 ---------- */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  :root {
    --section-pad: 84px;
  }

  .hero {
    padding: 84px 0 96px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

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

  .safety-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .safety-card {
    display: flex;
  }

  .contact-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .copyright {
    flex-basis: 100%;
    text-align: center;
  }
}

/* ---------- 移动端导航 ---------- */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
  }

  .site-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
  }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
