/* =========================================================
   Moodly AI — Landing Page Styles
   配色：暖米色背景 + 珊瑚橙/蜜桃粉主色（匹配Logo）+ 柔紫点缀
   ========================================================= */

:root {
  --bg: #FFF8F4;
  --bg-alt: #FBEFE4;
  --surface: #FFFFFF;
  --primary: #FF7A5C;
  --primary-dark: #E65A3D;
  --primary-soft: #FFE1D1;
  --accent: #C09CF0;
  --accent-soft: #EFE6FF;
  --text: #2C201E;
  --text-muted: #8A7770;
  --border: #F1DFD2;
  --shadow: 0 18px 50px -20px rgba(230, 90, 61, 0.28);
  --shadow-sm: 0 6px 20px -10px rgba(230, 90, 61, 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(230, 90, 61, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(230, 90, 61, 0.85);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

.btn-download {
  background: linear-gradient(135deg, #FFB08F 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 36px -10px rgba(230, 90, 61, 0.75);
  padding: 18px 48px;
  font-size: 1.15rem;
  position: relative;
}
.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px -12px rgba(230, 90, 61, 0.9);
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 248, 244, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -16px rgba(230, 90, 61, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text);
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #FFC2A8 0%, var(--primary-dark) 100%);
  border: 1px solid var(--border);
}
.logo-text { letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.nav-cta) {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 122, 92, 0.26), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-glow::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(192, 156, 240, 0.22), transparent 65%);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.meta-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.meta-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

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

/* —— 三张截图叠加 —— */
.hero-shots {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.shot {
  position: absolute;
  width: 260px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.6s ease;
  opacity: 0;
  will-change: transform;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-1 {
  z-index: 3;
  transform: translate(-60px, 0) rotate(-7deg) scale(1);
  animation: shotIn1 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.shot-2 {
  z-index: 2;
  transform: translate(0, 10px) rotate(1deg) scale(0.95);
  animation: shotIn2 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.shot-3 {
  z-index: 1;
  transform: translate(70px, 0) rotate(8deg) scale(0.9);
  animation: shotIn3 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes shotIn1 { to { opacity: 1; transform: translate(-60px, 0) rotate(-7deg) scale(1); } }
@keyframes shotIn2 { to { opacity: 1; transform: translate(0, 10px) rotate(1deg) scale(0.95); } }
@keyframes shotIn3 { to { opacity: 1; transform: translate(70px, 0) rotate(8deg) scale(0.9); } }
.shot-1 { opacity: 0; }
.shot-2 { opacity: 0; }
.shot-3 { opacity: 0; }

/* —— 单张截图悬停：鼠标放哪张就聚焦展示哪张 —— */
.hero-shots:hover .shot { animation-play-state: paused; }
.hero-shots .shot:hover {
  z-index: 20;
  transform: translate(0, -8px) rotate(0deg) scale(1.08);
  box-shadow: 0 32px 60px -18px rgba(230, 90, 61, 0.45);
}
.hero-shots:hover .shot:not(:hover) {
  opacity: 0.45;
  transform: scale(0.88);
  filter: saturate(0.9);
}
/* 覆盖：保持各自基础偏移作为后退姿态（未悬停者叠加 scale+opacity） */
.hero-shots:hover .shot-1:not(:hover) { transform: translate(-90px, 8px) rotate(-7deg) scale(0.88); }
.hero-shots:hover .shot-2:not(:hover) { transform: translate(0, 14px) rotate(1deg) scale(0.86); }
.hero-shots:hover .shot-3:not(:hover) { transform: translate(90px, 8px) rotate(8deg) scale(0.88); }

/* 触屏点击聚焦（JS 切换 .focus 类） */
.hero-shots .shot.focus {
  z-index: 20;
  transform: translate(0, -8px) rotate(0deg) scale(1.08);
  box-shadow: 0 32px 60px -18px rgba(230, 90, 61, 0.45);
}
.hero-shots.has-focus .shot:not(.focus) {
  opacity: 0.45;
  transform: scale(0.88);
  filter: saturate(0.9);
}
.hero-shots.has-focus .shot-1:not(.focus) { transform: translate(-90px, 8px) rotate(-7deg) scale(0.88); }
.hero-shots.has-focus .shot-2:not(.focus) { transform: translate(0, 14px) rotate(1deg) scale(0.86); }
.hero-shots.has-focus .shot-3:not(.focus) { transform: translate(90px, 8px) rotate(8deg) scale(0.88); }

/* 持续微浮动 */
.shot-1 { animation: shotIn1 0.9s 0.2s cubic-bezier(0.22,1,0.36,1) forwards, float1 6s ease-in-out 1.2s infinite; }
.shot-2 { animation: shotIn2 0.9s 0.4s cubic-bezier(0.22,1,0.36,1) forwards, float2 7s ease-in-out 1.4s infinite; }
.shot-3 { animation: shotIn3 0.9s 0.6s cubic-bezier(0.22,1,0.36,1) forwards, float3 6.5s ease-in-out 1.6s infinite; }
@keyframes float1 { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float2 { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes float3 { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ============ 通用 section head ============ */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.04rem; }

/* ============ 功能亮点 ============ */
.features { padding: 100px 0; position: relative; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ============ 用户评价 ============ */
.reviews {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stars { color: var(--primary); letter-spacing: 2px; font-size: 1.05rem; }
.review-text {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}
.reviewer { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-family: var(--serif);
}
.reviewer strong { display: block; font-size: 0.96rem; }
.reviewer span { font-size: 0.85rem; color: var(--text-muted); }

/* ============ FAQ ============ */
.faq { padding: 100px 0; }
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item[open] {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-icon::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq-icon::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  animation: faqOpen 0.3s ease;
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 下载区 ============ */
.download {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.download-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #FF9E7A 100%);
  border-radius: 32px;
  padding: 72px 32px;
  color: #fff;
  box-shadow: 0 30px 70px -28px rgba(230, 90, 61, 0.65);
}
.download-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 220, 190, 0.55), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.download-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  margin: 0 auto 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
}
.download-inner h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.download-inner > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto 24px;
}
.download-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.download-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.download-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ 页脚 ============ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.footer-tag { color: var(--text-muted); font-size: 0.95rem; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* ============ 滚动出现动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta, .badge { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-shots { height: 440px; }
  .shot { width: 210px; }
  .feature-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(280px, 80vw);
    height: calc(100vh - 72px);
    background: var(--surface);
    padding: 18px;
    box-shadow: -10px 0 40px -20px rgba(0,0,0,0.25);
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.nav-cta) { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: 110px 0 70px; }
  .hero-shots { height: 380px; }
  .shot { width: 175px; }
  .hero-shots:hover .shot-1:not(:hover),
  .hero-shots.has-focus .shot-1:not(.focus) { transform: translate(-70px, 6px) rotate(-7deg) scale(0.86); }
  .hero-shots:hover .shot-3:not(:hover),
  .hero-shots.has-focus .shot-3:not(.focus) { transform: translate(70px, 6px) rotate(8deg) scale(0.86); }

  .feature-grid, .review-grid { grid-template-columns: 1fr; }
  .features, .reviews, .faq, .download { padding: 70px 0; }
  .download-inner { padding: 52px 22px; }
  .hero-meta { gap: 14px; padding: 12px 16px; }
  .meta-divider { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 420px) {
  .hero-shots { height: 340px; }
  .shot { width: 150px; border-width: 4px; }
  .btn-lg { padding: 14px 26px; font-size: 1rem; }
  .btn-download { padding: 16px 34px; font-size: 1.05rem; }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
