/* ===== 主题变量（配色来自 OmoFun Logo：粉色头发 + 蓝色背景） ===== */
:root {
  --primary: #ff5c8a;        /* 主色：粉色头发 */
  --primary-deep: #e84393;   /* 深粉 */
  --primary-soft: #ffe4ec;
  --secondary: #4a8fe7;      /* 辅色：蓝色背景 */
  --secondary-deep: #2d5fa0;
  --secondary-soft: #e8f0ff;
  --accent: #ffd166;
  --bg: #fff6f9;
  --bg-alt: #ffffff;
  --text: #1a1a2e;
  --text-soft: #5a5a78;
  --text-light: #8a8aa0;
  --border: #f0e0e8;
  --shadow: 0 10px 40px rgba(232, 67, 147, 0.12);
  --shadow-lg: 0 20px 60px rgba(232, 67, 147, 0.20);
  --gradient: linear-gradient(135deg, #ff5c8a 0%, #ff85a2 50%, #4a8fe7 100%);
  --gradient-soft: linear-gradient(135deg, #ffe4ec 0%, #e8f0ff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 249, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(232, 67, 147, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(255, 92, 138, 0.4);
}
.brand-text {
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-soft);
  position: relative; transition: color .25s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--primary); transition: width .25s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--gradient); color: #fff !important;
  padding: 9px 22px; border-radius: 30px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 92, 138, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 92, 138, 0.45); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--primary); border-radius: 3px; transition: .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero 首屏 ===== */
.hero {
  position: relative; padding: 70px 0 90px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 92, 138, 0.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74, 143, 231, 0.10), transparent 50%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; }

.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 30px;
  background: var(--primary-soft); color: var(--primary-deep);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.15;
  font-weight: 800; letter-spacing: -1px; margin-bottom: 22px;
}
.hero-desc { font-size: 16px; color: var(--text-soft); max-width: 540px; margin-bottom: 28px; }

.hero-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px; background: var(--bg-alt); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 30px; max-width: 560px;
}
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 12px; color: var(--text-light); }
.meta-value { font-size: 16px; font-weight: 700; color: var(--text); }
.meta-divider { width: 1px; height: 36px; background: var(--border); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 30px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 28px rgba(255, 92, 138, 0.38); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 92, 138, 0.5); }
.btn-ghost { background: var(--bg-alt); color: var(--primary-deep); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 30px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13px; color: var(--text-light); }

/* ===== 截图展示（叠加动态效果） ===== */
.hero-right { position: relative; display: flex; flex-direction: column; align-items: center; }
.screens {
  position: relative; width: 320px; height: 540px;
  perspective: 1200px;
}
.screen-card {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #ffeef4);
  box-shadow: var(--shadow-lg);
  border: 10px solid #1a1a2e;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s, z-index 0s;
  opacity: .35; transform: scale(.85) translateX(0) rotate(0deg);
  z-index: 1;
}
.screen-card img {
  width: 100%; height: 100%; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}
.screen-tag {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 20px;
  background: rgba(26, 26, 46, 0.7); color: #fff; font-size: 12px; font-weight: 600;
  backdrop-filter: blur(6px);
}
/* 默认三张错位叠加 */
.screen-card:nth-child(1) { transform: scale(.82) translateX(-30px) rotate(-6deg); }
.screen-card:nth-child(2) { transform: scale(.82) translateX(0) rotate(0deg); z-index: 2; }
.screen-card:nth-child(3) { transform: scale(.82) translateX(30px) rotate(6deg); }
/* 激活态：到最前 */
.screen-card.active {
  opacity: 1; transform: scale(1) translateX(0) rotate(0deg) !important;
  z-index: 10; box-shadow: 0 30px 70px rgba(232, 67, 147, 0.28);
}
.screen-card:hover {
  opacity: 1; transform: scale(1.02) translateX(0) rotate(0deg) !important;
  z-index: 10;
}

.screen-dots { display: flex; gap: 10px; margin-top: 30px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e8d0dc; cursor: pointer; transition: all .3s;
}
.dot.active { background: var(--primary); width: 28px; border-radius: 6px; }
.screen-hint { margin-top: 12px; font-size: 12px; color: var(--text-light); }

/* ===== 通用 section ===== */
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: var(--secondary-soft); color: var(--secondary-deep);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 14px;
}
.section-tag.light { background: rgba(255,255,255,0.2); color: #fff; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--text-soft); font-size: 15px; }

/* ===== 功能特色 ===== */
.features { padding: 90px 0; background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  padding: 34px 28px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: #fff;
}
.icon-1 { background: linear-gradient(135deg, #ff5c8a, #ff85a2); }
.icon-2 { background: linear-gradient(135deg, #4a8fe7, #6fa8ef); }
.icon-3 { background: linear-gradient(135deg, #a259ff, #c79bff); }
.icon-4 { background: linear-gradient(135deg, #ffb347, #ffd166); }
.icon-5 { background: linear-gradient(135deg, #00d2d3, #54e0e1); }
.icon-6 { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: 14.5px; }

/* ===== 用户评价 ===== */
.reviews { padding: 90px 0; background: var(--bg); }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  padding: 30px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { color: var(--text-soft); font-size: 15px; margin-bottom: 22px; line-height: 1.75; }
.review-user { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0;
  background: var(--gradient);
}
.review-name { font-size: 15px; font-weight: 600; }
.review-meta { font-size: 12px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq { padding: 90px 0; background: var(--bg-alt); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow .3s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.faq-arrow { color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-a p { padding: 0 24px 22px; color: var(--text-soft); font-size: 15px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ===== 下载区域 ===== */
.download {
  padding: 90px 0;
  background: linear-gradient(135deg, #ff5c8a 0%, #ff85a2 45%, #4a8fe7 100%);
  position: relative; overflow: hidden;
}
.download::before {
  content: ""; position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.download::after {
  content: ""; position: absolute; bottom: -120px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,0.08); pointer-events: none;
}
.download-inner { position: relative; z-index: 1; }
.download-card {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center;
}
.dl-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: #fff; margin: 14px 0 16px; line-height: 1.2; }
.dl-title em { background: #fff; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dl-desc { color: rgba(255,255,255,0.9); font-size: 15px; margin-bottom: 30px; }
.dl-platforms { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.dl-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px; border-radius: 16px;
  background: #fff; color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.dl-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.2); }
.dl-btn.android { color: #3ddc84; }
.dl-btn.ios { color: #1a1a2e; }
.dl-btn-text { display: flex; flex-direction: column; }
.dl-btn-small { font-size: 12px; color: var(--text-light); }
.dl-btn-large { font-size: 18px; font-weight: 700; color: var(--text); }
.dl-tip { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.75); }
.dl-right { display: flex; justify-content: center; }
.qr {
  width: 200px; height: 200px; border-radius: 20px;
  background: #fff; padding: 16px;
  background-image: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

/* ===== 页脚 ===== */
.footer { background: #1a1a2e; color: #b0b0c8; padding: 50px 0 36px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-logo { width: 36px; height: 36px; }
.footer-brand span { font-size: 20px; font-weight: 800; color: #fff; }
.footer-desc { font-size: 14px; max-width: 520px; margin: 0 auto 14px; }
.footer-copy { font-size: 12px; color: #7a7a94; }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  box-shadow: 0 10px 26px rgba(255, 92, 138, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* ===== 滚动出现动画 ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-right { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; text-align: center; padding: 40px 30px; }
  .dl-platforms { margin: 0 auto; }
  .dl-right { order: -1; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 24px; max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a {
    width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 40px 0 60px; }
  .screens { width: 260px; height: 440px; }
  .feature-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 38px; }
  .features, .reviews, .faq, .download { padding: 64px 0; }
  .hero-meta { gap: 12px; padding: 14px; }
  .meta-value { font-size: 14px; }
  .download-card { padding: 32px 22px; gap: 30px; }
  .qr { width: 160px; height: 160px; }
}

@media (max-width: 380px) {
  .screens { width: 230px; height: 390px; }
  .hero-stats { gap: 24px; }
  .stat strong { font-size: 24px; }
}
