/* ============================================================
   Dreamory-journey 宣传页样式
   浅色简约风 · 滚动生长动画 · 粒子飘散
   ============================================================ */

:root {
  --bg: #FAFAF7;
  --bg-soft: #F3F1EA;
  --ink: #1A2332;
  --ink-soft: #4A5568;
  --ink-mute: #8A93A6;
  --line: #E8E6E0;
  --card: #FFFFFF;
  --purple: #7C6FE8;
  --purple-soft: #ECE9FE;
  --blue: #2B6CB0;
  --blue-soft: #E0EBF7;
  --gold: #D4A574;
  --gold-soft: #FBF1E6;
  --green: #388E3C;

  --max-w: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26,35,50,0.04), 0 8px 24px rgba(26,35,50,0.06);
  --shadow-hover: 0 4px 8px rgba(26,35,50,0.06), 0 16px 40px rgba(26,35,50,0.10);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 粒子画布 */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============== 滚动生长效果 ============== */
.grow {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.grow.grown {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============== 导航 ============== */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 6vw;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-dot { color: var(--purple); margin: 0 2px; }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ============== Hero 区 ============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 6vw 80px;
  z-index: 1;
}
.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left {
  text-align: left;
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.title-line { display: block; }
.title-line-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
}
.hero-slogan {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 48px;
}

/* 视频播放器（竖版 9:16，B站嵌入） */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-hover);
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 首页 CTA 按钮 */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,35,50,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,35,50,0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
/* 描边按钮：白底，hover 变黑底白字 */
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 8px rgba(26,35,50,0.06);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,35,50,0.18);
}
.btn-block { width: 100%; justify-content: center; }

/* 向下滚动提示 */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ink-mute), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============== 通用 Section ============== */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 6vw;
}
.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}

/* ============== 痛点区 ============== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pain-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.pain-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.pain-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ============== 功能展示区 ============== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse .feature-text { order: 2; }
.feature-row-reverse .feature-visual { order: 1; }

.feature-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 20px;
}
.feature-text h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.feature-text > p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.feature-list {
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.feature-list strong { color: var(--ink); font-weight: 600; }

/* 功能区可视化 */
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  border-radius: var(--radius);
  padding: 48px;
}
.feature-visual-purple { background: linear-gradient(135deg, var(--purple-soft), #F5F3FE); }
.feature-visual-blue { background: linear-gradient(135deg, var(--blue-soft), #F0F6FC); }
.feature-visual-gold { background: linear-gradient(135deg, var(--gold-soft), #FCF6EF); }

.visual-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.visual-line {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
}
.visual-line-bold { height: 14px; background: var(--ink); width: 60%; }
.visual-line-short { width: 40%; }
.visual-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 12px;
  margin-right: 6px;
  background: var(--purple-soft);
  color: var(--purple);
}
.visual-pill-purple { background: #F3E8FF; color: #7B1FA2; }
.visual-pill-green { background: #E8F5E9; color: var(--green); }

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 24px;
}
.grid-cell {
  aspect-ratio: 1;
  background: var(--line);
  border-radius: 8px;
}
.grid-cell-active { background: var(--blue); }

.visual-card-ring {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.ring {
  position: absolute;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}
.ring { width: 200px; height: 200px; animation: ringPulse 3s ease-in-out infinite; }
.ring-2 { width: 140px; height: 140px; opacity: 0.4; animation-delay: 0.5s; }
.ring-3 { width: 80px; height: 80px; opacity: 0.8; background: var(--gold); animation-delay: 1s; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.3; }
}

/* ============== 亮点区 ============== */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.highlight-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.highlight-card:nth-child(2) .highlight-icon { background: var(--blue-soft); color: var(--blue); }
.highlight-card:nth-child(3) .highlight-icon { background: var(--gold-soft); color: var(--gold); }
.highlight-card:nth-child(4) .highlight-icon { background: #E8F5E9; color: var(--green); }
.highlight-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.highlight-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ============== 下载区 ============== */
.download {
  text-align: center;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.download-card-apk { border-top: 3px solid var(--purple); }
.download-card-web { border-top: 3px solid var(--blue); }
.download-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 20px;
}
.download-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.download-meta {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.download-hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 16px;
}

/* ============== Footer ============== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 6vw 40px;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-text {
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-tech {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============== 响应式 ============== */
@media (max-width: 900px) {
  /* Hero 左右分栏改为上下堆叠：文案在上，视频在下 */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left { text-align: center; }
  .hero-cta { justify-content: center; }
  .video-wrap { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 5vw; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }

  .hero { padding: 100px 5vw 60px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }

  .section { padding: 80px 5vw; }
  .section-head { margin-bottom: 56px; }

  .pain-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .feature-row-reverse .feature-text { order: 1; }
  .feature-row-reverse .feature-visual { order: 2; }
  .highlight-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 44px; }
  .section-title { font-size: 28px; }
  .feature-text h3 { font-size: 24px; }
  .pain-card, .highlight-card, .download-card { padding: 28px 24px; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .grow { opacity: 1; transform: none; transition: none; }
  .ring { animation: none; }
  .hero-scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}
