/* ============ Slideshow Maker 官网样式 ============ */
:root {
  --brand: #ff3b5c;
  --brand-2: #a855f7;
  --brand-3: #ffb545;
  --ink: #14121f;
  --ink-soft: #4b4761;
  --bg: #ffffff;
  --bg-soft: #faf9fc;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(20, 18, 31, .12);
  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 110%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(20, 18, 31, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 17px; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(255, 59, 92, .45);
  transition: box-shadow .2s;
  animation: ctaPulse 1.5s ease-in-out infinite;
}
.nav-cta:hover { box-shadow: 0 10px 28px rgba(255, 59, 92, .6); }
/* 高光扫过 */
.nav-cta::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; left: -70%;
  width: 46%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: ctaShine 1.5s ease-in-out infinite;
  pointer-events: none;
}
/* 心跳双拍缩放 */
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
  20% { transform: scale(1); }
  30% { transform: scale(1.05); }
  42% { transform: scale(1); }
}
@keyframes ctaShine {
  0% { left: -70%; }
  46% { left: 130%; }
  100% { left: 130%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 700px at 75% -10%, #3d2550 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 40%, #38173a 0%, transparent 55%),
              linear-gradient(165deg, #1b1430 0%, #14121f 55%, #201232 100%);
  color: #fff;
  padding: 140px 24px 110px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 10px 18px 10px 10px; border-radius: 16px; margin-bottom: 30px;
  backdrop-filter: blur(8px);
}
.hero-badge img { width: 44px; height: 44px; border-radius: 11px; }
.hero-badge strong { display: block; font-size: 14px; }
.stars { color: var(--brand-3); font-size: 13px; letter-spacing: 1.5px; }
.stars em { color: rgba(255, 255, 255, .65); font-style: normal; letter-spacing: 0; margin-left: 6px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 22px;
}
.hero-sub { font-size: 18px; color: rgba(255, 255, 255, .72); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.store-badge { display: inline-block; transition: transform .2s, filter .2s; }
.store-badge:hover { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.store-badge svg { display: block; border-radius: 12px; }
.hero-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: rgba(255,255,255,.55); }

.hero-visual { display: flex; justify-content: center; }

/* 三列滚动视频墙 */
.hero-wall {
  display: flex; gap: 16px;
  height: 620px; width: min(560px, 88vw);
  transform: rotate(3deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  overflow: hidden;
}
.wall-col {
  display: flex; flex-direction: column; gap: 16px;
  flex: 1; min-width: 0;
  animation: wallScroll 14s linear infinite;
  will-change: transform;
}
.wall-col.rev { animation-direction: reverse; }
.wall-col:nth-child(2) { animation-duration: 17.5s; }
.wall-col:nth-child(3) { animation-duration: 15s; }
@keyframes wallScroll { to { transform: translateY(-50%); } }
.wall-tile {
  aspect-ratio: 1/1; flex: 0 0 auto;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
.wall-tile video { width: 100%; height: 100%; object-fit: cover; }

/* 星光粒子（呼应 app 的 Flash 模版） */
.hero-sparkles { position: absolute; inset: 0; pointer-events: none; }
.hero-sparkles i {
  position: absolute; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  opacity: 0;
  animation: sparkle 5.2s linear infinite;
}
.hero-sparkles i::before {
  content: ""; position: absolute; inset: -8px;
  background: radial-gradient(circle, rgba(255,255,255,.5) 0%, transparent 65%);
}
.hero-sparkles i:nth-child(1)  { left: 8%;  top: 22%; animation-delay: 0s;   transform: scale(.7); }
.hero-sparkles i:nth-child(2)  { left: 18%; top: 68%; animation-delay: .9s;  transform: scale(1.1); }
.hero-sparkles i:nth-child(3)  { left: 28%; top: 35%; animation-delay: 2.1s; transform: scale(.5); }
.hero-sparkles i:nth-child(4)  { left: 40%; top: 80%; animation-delay: 3s;   transform: scale(.9); }
.hero-sparkles i:nth-child(5)  { left: 49%; top: 15%; animation-delay: 1.4s; transform: scale(.6); }
.hero-sparkles i:nth-child(6)  { left: 58%; top: 55%; animation-delay: 3.8s; transform: scale(1); }
.hero-sparkles i:nth-child(7)  { left: 66%; top: 28%; animation-delay: .5s;  transform: scale(.8); }
.hero-sparkles i:nth-child(8)  { left: 74%; top: 74%; animation-delay: 2.6s; transform: scale(.55); }
.hero-sparkles i:nth-child(9)  { left: 83%; top: 40%; animation-delay: 4.4s; transform: scale(1.15); }
.hero-sparkles i:nth-child(10) { left: 90%; top: 62%; animation-delay: 1.8s; transform: scale(.65); }
.hero-sparkles i:nth-child(11) { left: 12%; top: 88%; animation-delay: 4.9s; transform: scale(.85); }
.hero-sparkles i:nth-child(12) { left: 95%; top: 12%; animation-delay: 3.4s; transform: scale(.75); }
@keyframes sparkle {
  0%, 100% { opacity: 0; }
  10% { opacity: 0; }
  22% { opacity: .95; }
  36% { opacity: .15; }
  50% { opacity: .8; }
  70% { opacity: 0; }
}

/* ---------- 数据条 ---------- */
.stats {
  max-width: 1000px; margin: -46px auto 0; position: relative; z-index: 5;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 26px 10px;
}
.stat { text-align: center; padding: 8px 12px; }
.stat strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.stat .star-mini { color: var(--brand-3); font-size: 22px; margin-left: 2px; }
.stat span { font-size: 13.5px; color: var(--ink-soft); }
.stat + .stat { border-left: 1px solid #efedf5; }

/* ---------- 通用 section ---------- */
.section { padding: 110px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.section-tint { background: var(--bg-soft); }

/* ---------- 功能网格 ---------- */
.features-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature {
  background: var(--card); border: 1px solid #f0eef6;
  border-radius: var(--radius); padding: 30px 24px;
  transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .f-icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, #fff1f4, #f6ecff);
  display: grid; place-items: center; font-size: 25px; margin-bottom: 18px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.2px; }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 模版展示（深色段） ---------- */
.section-dark {
  background: linear-gradient(170deg, #17131f 0%, #221732 100%);
  color: #fff;
}
.section-dark .section-head p { color: rgba(255, 255, 255, .65); }
/* 全量模版墙 */
.tpl-wall {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.tpl-item {
  position: relative; aspect-ratio: 1/1;
  border-radius: 16px; overflow: hidden; margin: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s, box-shadow .3s, z-index 0s;
}
.tpl-item:hover { transform: scale(1.06); box-shadow: 0 20px 55px rgba(168, 85, 247, .4); z-index: 3; }
.tpl-item video { width: 100%; height: 100%; object-fit: cover; }
.tpl-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
  font-size: 12.5px; font-weight: 600; color: #fff;
  opacity: 0; transition: opacity .25s;
}
.tpl-item:hover figcaption { opacity: 1; }
.tpl-note { text-align: center; margin-top: 42px; color: rgba(255, 255, 255, .55); font-size: 14.5px; }

/* ---------- 截图横滑 ---------- */
.shots {
  display: flex; gap: 24px; overflow-x: auto; padding: 20px max(24px, calc(50vw - 580px)) 34px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: #e5e1ef; border-radius: 4px; }
.shots img {
  width: 252px; flex: 0 0 auto;
  border-radius: 26px; scroll-snap-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #eeeaf6;
  transition: transform .3s;
}
.shots img:hover { transform: translateY(-8px) scale(1.02); }

/* ---------- 步骤 ---------- */
.steps {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.step { text-align: center; padding: 10px 18px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 22px; font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(255, 59, 92, .35);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta {
  margin: 0 24px 110px;
  border-radius: 34px;
  max-width: 1160px;
  background: radial-gradient(800px 400px at 80% -20%, rgba(255, 181, 69, .35) 0%, transparent 55%),
              linear-gradient(120deg, #ff3b5c 0%, #a855f7 100%);
  color: #fff; text-align: center;
  padding: 84px 30px;
  box-shadow: 0 30px 80px rgba(168, 85, 247, .35);
}
@media (min-width: 1210px) { .cta { margin-left: auto; margin-right: auto; } }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.cta p { opacity: .85; margin-bottom: 34px; font-size: 16.5px; }

/* ---------- 页脚 ---------- */
.footer { background: #14121f; color: rgba(255, 255, 255, .7); padding: 54px 24px 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; margin-bottom: 22px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12.5px; color: rgba(255, 255, 255, .38); line-height: 1.8; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-sparkles i { animation: none; opacity: .4; }
  .wall-col { animation: none; }
  .nav-cta, .nav-cta::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  /* 切到上下排列即：下载按钮居中 + 隐藏辅助文案 */
  .hero-actions { justify-content: center; }
  .hero-meta { display: none; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-wall { grid-template-columns: repeat(3, 1fr); }
  .hero-wall { height: 480px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .stat:nth-child(3) { border-left: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
  .hero { padding-top: 110px; }
  .tpl-wall { grid-template-columns: repeat(2, 1fr); }
  .hero-wall { height: 420px; gap: 12px; }
  .wall-col { gap: 12px; }
}
