/* ============================================
   HeartCall 官网 — 精致浪漫美学
   ============================================ */

:root {
  /* 色彩系统 */
  --pink: #ff7b92;
  --pink-light: #ff9eaf;
  --pink-soft: #ffd4dd;
  --cream: #fff8f5;
  --cream-warm: #ffe8ee;
  --ink: #2a1f2d;
  --ink-soft: #6b5d70;
  --ink-mute: #9a8d9e;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 4px 16px rgba(255, 123, 146, 0.08);
  --shadow-md: 0 10px 32px rgba(42, 31, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(255, 123, 146, 0.18);
  --shadow-pink: 0 12px 36px rgba(255, 123, 146, 0.28);

  /* 字体 */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* 节奏 */
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #fff8f5 0%, #ffeef2 45%, #fff8f5 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕装饰 */
body::before {
  content: '';
  position: fixed;
  top: -15%; right: -10%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(255, 123, 146, 0.22), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 14s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%; left: -12%;
  width: 48vw; height: 48vw;
  background: radial-gradient(circle, rgba(255, 210, 220, 0.32), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 18s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2vw, 3vw) scale(1.06); }
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   导航栏
   ============================================ */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1140px;
  z-index: 100;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--pink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
#lang-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 123, 146, 0.12);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}
#lang-toggle:hover { background: rgba(255, 123, 146, 0.2); }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.3s;
}
.btn-store:hover { background: var(--pink); transform: translateY(-1px); box-shadow: var(--shadow-pink); }
.btn-store svg { width: 16px; height: 16px; }

#burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
#burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 桌面端隐藏移动端菜单 */
#mobile-menu { display: none; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 123, 146, 0.12);
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 123, 146, 0.2);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--pink), var(--pink-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--pink), var(--pink-light));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow-pink);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(255, 123, 146, 0.42); }
.btn-download svg { width: 22px; height: 22px; }
.hero-platform {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* iPhone Mockup */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone-frame {
  position: relative;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #1a1216, #3a2a32);
  box-shadow: 0 40px 80px rgba(42, 31, 45, 0.32), 0 0 0 1px rgba(255, 123, 146, 0.15);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0a0608;
  border-radius: 16px;
  z-index: 2;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: var(--cream);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Hero 装饰花瓣 */
.hero-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}
.hero-deco.d1 { top: 18%; right: 8%; width: 80px; animation: spin 24s linear infinite; }
.hero-deco.d2 { bottom: 12%; left: 4%; width: 60px; animation: spin 18s linear infinite reverse; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ============================================
   通用 Section
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--pink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.section-desc {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.7;
}

/* ============================================
   功能卡片网格
   ============================================ */
.features-head { text-align: center; margin-bottom: 60px; }
.features-head .section-desc { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 123, 146, 0.3);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 123, 146, 0.16), rgba(255, 158, 175, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--pink); }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================
   详情区（图文交错）
   ============================================ */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.detail.reverse .detail-text { order: 2; }
.detail-text .check-list {
  list-style: none;
  margin-top: 28px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.detail-visual {
  position: relative;
}
.detail-visual .phone-mockup { max-width: 320px; }
.detail-visual .deco-circle {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}
.detail-visual.left .deco-circle {
  top: 10%; right: -8%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 123, 146, 0.3), transparent 70%);
}
.detail-visual.right .deco-circle {
  top: 10%; left: -8%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 210, 220, 0.5), transparent 70%);
}

/* ============================================
   下载 CTA
   ============================================ */
.cta {
  text-align: center;
  padding: 100px 0;
}
.cta-card {
  background: linear-gradient(135deg, rgba(255, 123, 146, 0.08), rgba(255, 158, 175, 0.04));
  border: 1px solid rgba(255, 123, 146, 0.18);
  border-radius: 36px;
  padding: 70px 40px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 123, 146, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}
.cta-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  position: relative;
}
.cta .btn-download { position: relative; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.footer-tagline {
  font-size: 14px;
  max-width: 360px;
  line-height: 1.6;
}
.footer-legal h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-legal ul { list-style: none; }
.footer-legal li { margin-bottom: 12px; }
.footer-legal a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}
.footer-legal a:hover { color: var(--pink-light); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-disclaimer {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* ============================================
   滚动渐入动画
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { gap: 50px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-store { display: none; }
  #burger { display: flex; }

  #mobile-menu {
    display: flex !important;
    position: fixed;
    top: 80px; left: 16px; right: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.3s;
    z-index: 99;
  }
  #mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  #mobile-menu a {
    font-size: 16px;
    padding: 8px 0;
    color: var(--ink);
  }
  #mobile-menu .btn-download {
    justify-content: center;
    margin-top: 8px;
  }

  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .phone-mockup { max-width: 280px; }

  .section { padding: 70px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .detail { grid-template-columns: 1fr; gap: 40px; }
  .detail.reverse .detail-text { order: 0; }
  .detail-visual .phone-mockup { max-width: 260px; margin: 0 auto; }

  .cta-card { padding: 50px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 30px; }
  .feature-card { padding: 24px 20px; }
}

/* 移动端菜单展开时禁止滚动 */
body.menu-open { overflow: hidden; }
