/* ============================================================
   风月AI - AI角色扮演聊天软件 单页样式
   移动端优先 · 东方意境浪漫夜空主题
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #8b5cf6;
  --c-primary-dark: #7c3aed;
  --c-accent: #ec4899;
  --c-purple: #c77dff;
  --c-gold: #fbbf24;
  --grad-main: linear-gradient(135deg, #8b5cf6 0%, #c77dff 100%);
  --grad-cta: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #ec4899 100%);
  --c-text: #1a1430;
  --c-text-soft: #5b5470;
  --c-text-mute: #8a839f;
  --c-bg: #faf8ff;
  --c-bg-alt: #f3efff;
  --c-card: #ffffff;
  --c-border: #ece6f7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(139, 92, 246, 0.06);
  --shadow: 0 8px 28px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 18px 50px rgba(139, 92, 246, 0.18);
  --maxw: 1160px;
  --header-h: 60px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮闪烁 */
  overflow-x: clip;
  padding-bottom: calc(84px + env(safe-area-inset-bottom)); /* 适配 iPhone 底部安全区 */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button, .btn, .nav-toggle, .faq-item summary, .float-download { touch-action: manipulation; /* 消除移动端 300ms 点击延迟 */ }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.container-narrow { max-width: 820px; }

.section { padding: 48px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--c-primary); background: rgba(139, 92, 246, 0.1);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
.section-desc { color: var(--c-text-soft); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: 999px;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 8px 22px rgba(236, 72, 153, 0.3); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(236, 72, 153, 0.42); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--c-text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.brand-name { font-size: 20px; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.main-nav { display: none; gap: 26px; }
.main-nav a { color: var(--c-text-soft); font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--c-primary); text-decoration: none; }
.nav-download { display: inline-flex; }

/* 汉堡按钮 */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  cursor: pointer; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(199, 125, 255, 0.35), transparent),
              radial-gradient(900px 500px at 10% 10%, rgba(139, 92, 246, 0.4), transparent),
              linear-gradient(160deg, #140c2e 0%, #2a1458 55%, #432063 100%);
  color: #fff; padding: 44px 0 56px; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.55; pointer-events: none; z-index: 0;
}
.hero::before { width: 280px; height: 280px; background: radial-gradient(circle, rgba(199,125,255,0.7), transparent 70%); top: 10%; left: -8%; animation: floatOrb 9s ease-in-out infinite; }
.hero::after { width: 240px; height: 240px; background: radial-gradient(circle, rgba(236,72,153,0.6), transparent 70%); bottom: 6%; right: -6%; animation: floatOrb 11s ease-in-out infinite 1.2s; }

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.hero-eyebrow {
  position: relative; overflow: hidden; font-size: 13px; letter-spacing: 0.06em; color: #f0e7ff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 16px; border-radius: 999px; display: inline-block; margin-bottom: 18px;
  animation: fadeInUp 0.7s ease-out 0.10s both;
}
.hero-eyebrow::after {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shimmer 4.5s ease-in-out infinite 1s;
}
.hero-text h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; animation: fadeInUp 0.7s ease-out 0.20s both; }
.hero-text h1 strong {
  background: linear-gradient(90deg, #c77dff, #ec4899, #c77dff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}
.hero-sub { font-size: 15px; color: #ddd6f0; max-width: 560px; margin: 0 auto; animation: fadeInUp 0.7s ease-out 0.30s both; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; animation: fadeInUp 0.7s ease-out 0.40s both; }
.hero-cta .btn-primary { animation: ctaPulse 2.6s ease-in-out infinite 0.8s; }
.hero-stats { display: flex; gap: 28px; justify-content: center; margin-top: 34px; flex-wrap: wrap; animation: fadeInUp 0.7s ease-out 0.50s both; }
.hero-stats dt { font-size: 26px; font-weight: 800; background: linear-gradient(90deg, #fff, #f0e7ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats dd { font-size: 13px; color: #b9b0d8; }
.hero-stats > div { animation: popIn 0.6s cubic-bezier(.34,1.56,.64,1) both; }
.hero-stats > div:nth-child(1) { animation-delay: 0.50s; }
.hero-stats > div:nth-child(2) { animation-delay: 0.64s; }
.hero-stats > div:nth-child(3) { animation-delay: 0.78s; }
.hero-stats > div:nth-child(4) { animation-delay: 0.92s; }

.hero-visual { position: relative; width: 200px; margin: 12px auto 0; animation: fadeInUp 0.8s ease-out 0.35s both; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(199,125,255,0.55), rgba(139,92,246,0.25) 45%, transparent 70%);
  filter: blur(30px); border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  animation: pulseGlow 3.6s ease-in-out infinite;
}
.hero-visual > img:not(.hero-visual-sub) {
  position: relative; z-index: 2; display: block; width: 100%; height: auto;
  border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: floatMain 5s ease-in-out infinite; will-change: transform;
}
.hero-visual .hero-visual-sub {
  position: absolute; top: 26px; width: 74%; border-radius: 20px; box-shadow: var(--shadow);
  opacity: 0.5; filter: blur(0.5px); z-index: 1; display: none;
}
.hero-visual .hero-visual-sub1 { left: -12%; animation: floatSubLeft 5s ease-in-out infinite; }
.hero-visual .hero-visual-sub2 { left: auto; right: -12%; animation: floatSubRight 5.5s ease-in-out infinite 0.6s; }

@keyframes floatMain { 0%,100%{transform:translateY(0) rotate(0)} 25%{transform:translateY(-12px) rotate(-1deg)} 50%{transform:translateY(-16px) rotate(0)} 75%{transform:translateY(-8px) rotate(1deg)} }
@keyframes floatSubLeft { 0%,100%{transform:translateY(0) rotate(-6deg)} 50%{transform:translateY(-10px) rotate(-6deg)} }
@keyframes floatSubRight { 0%,100%{transform:translateY(0) rotate(6deg)} 50%{transform:translateY(-12px) rotate(6deg)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes popIn { 0%{opacity:0;transform:translateY(18px) scale(0.92)} 70%{opacity:1;transform:translateY(0) scale(1.04)} 100%{opacity:1;transform:translateY(0) scale(1)} }
@keyframes floatOrb { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(20px,-26px) scale(1.08)} }
@keyframes pulseGlow { 0%,100%{opacity:0.45;transform:scale(1)} 50%{opacity:0.85;transform:scale(1.06)} }
@keyframes gradientShift { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }
@keyframes shimmer { 0%{transform:translateX(-120%)} 100%{transform:translateX(220%)} }
@keyframes ctaPulse { 0%,100%{box-shadow:0 8px 24px rgba(199,125,255,0.45),0 0 0 0 rgba(199,125,255,0.5)} 50%{box-shadow:0 10px 30px rgba(199,125,255,0.6),0 0 0 10px rgba(199,125,255,0)} }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-main); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--c-text-soft); }

/* ---------- Characters ---------- */
.character-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.character-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); padding: 18px 14px; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.character-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.character-card img, .character-avatar-fallback {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover;
  border: 3px solid transparent; background-clip: padding-box;
}
.character-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: var(--grad-cta);
}
.character-card h3 { font-size: 16px; margin-bottom: 4px; }
.character-tag { display: inline-block; font-size: 12px; color: var(--c-primary); background: rgba(139,92,246,0.1); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.character-card p { font-size: 13px; color: var(--c-text-soft); line-height: 1.5; }
.character-note { text-align: center; color: var(--c-text-mute); font-size: 14px; margin-top: 22px; }

/* ---------- Scenes ---------- */
.scene-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.scene-card { background: var(--c-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scene-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.scene-body { padding: 22px; }
.scene-body h3 { font-size: 18px; margin-bottom: 8px; }
.scene-body p { font-size: 14px; color: var(--c-text-soft); }

/* ---------- Preview ---------- */
.preview-figure { text-align: center; }
.preview-figure img { width: 240px; margin: 0 auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
.preview-figure figcaption { margin-top: 14px; font-size: 14px; color: var(--c-text-mute); }

/* ---------- Demo ---------- */
.demo-inner { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.demo-text .section-eyebrow { margin-bottom: 14px; }
.demo-text h2 { font-size: 24px; line-height: 1.35; margin-bottom: 12px; }
.demo-desc { color: var(--c-text-soft); font-size: 15px; margin-bottom: 22px; }
.chat-demo { display: flex; flex-direction: column; gap: 14px; }
.bubble { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.bubble-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.bubble p { background: var(--c-bg-alt); padding: 12px 16px; border-radius: 14px 14px 14px 4px; font-size: 14px; color: var(--c-text); }
.bubble-user { flex-direction: row-reverse; }
.bubble-user p { background: var(--grad-main); color: #fff; border-radius: 14px 14px 4px 14px; }
.demo-visual { display: none; }
.demo-visual img { height: 460px; width: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* ---------- Tutorial ---------- */
.tutorial-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tutorial-step { display: flex; gap: 16px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.tutorial-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-main); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.tutorial-body h3 { font-size: 17px; margin-bottom: 6px; }
.tutorial-body p { font-size: 14px; color: var(--c-text-soft); }

/* ---------- Compare ---------- */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 480px; border-collapse: collapse; background: var(--c-card); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.compare-table th { background: var(--c-bg-alt); font-weight: 700; }
.compare-table th:nth-child(2) { color: var(--c-primary); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:nth-child(2) { font-weight: 600; }

/* ---------- Reviews ---------- */
.review-summary {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 28px; padding: 16px 24px;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); max-width: 520px; margin-left: auto; margin-right: auto;
}
.review-score { font-size: 32px; font-weight: 800; color: var(--c-gold); line-height: 1; }
.review-stars { color: var(--c-gold); font-size: 18px; letter-spacing: 2px; line-height: 1; }
.review-card .review-stars { font-size: 16px; margin-bottom: 10px; }
.review-count { font-size: 14px; color: var(--c-text-soft); }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.review-card p { font-size: 15px; color: var(--c-text); margin-bottom: 14px; }
.review-card footer { font-size: 13px; color: var(--c-text-mute); }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: 1fr; gap: 20px; }
.timeline-item { background: var(--c-card); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.timeline-date { font-size: 13px; color: var(--c-primary); font-weight: 600; margin-bottom: 8px; }
.timeline-item h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--c-text-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--c-primary); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { font-size: 14px; color: var(--c-text-soft); }

/* ---------- Download ---------- */
.download-section { background: linear-gradient(160deg, #1a1340 0%, #2a1458 60%, #432063 100%); color: #fff; }
.download-inner { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.download-text { text-align: center; }
.download-text .section-eyebrow { background: rgba(255,255,255,0.15); color: #f0e7ff; }
.download-text h2 { font-size: 26px; margin-bottom: 12px; }
.download-desc { color: #ddd6f0; font-size: 15px; max-width: 560px; margin: 0 auto 20px; }
.download-meta ul { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 22px; }
.download-meta li { font-size: 14px; color: #ddd6f0; }
.download-meta strong { color: #fbbf24; }
.download-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.download-hint { font-size: 13px; color: #b9b0d8; }
.download-visual img { width: 160px; border-radius: 36px; box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer { background: #140c2e; color: #b9b0d8; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
.footer-brand p { font-size: 14px; color: #9b92c0; margin-top: 10px; max-width: 360px; }
.footer-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.footer-nav h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-nav a { display: block; color: #9b92c0; font-size: 14px; padding: 5px 0; }
.footer-nav a:hover { color: #c77dff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; text-align: center; }
.footer-bottom p { font-size: 13px; color: #7e75a8; margin-bottom: 4px; }

/* ---------- Float download ---------- */
.float-download {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad-cta); color: #fff; font-size: 16px; font-weight: 600;
  padding: 15px; min-height: 50px; border-radius: 999px; box-shadow: 0 8px 24px rgba(236,72,153,0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.float-download:hover { text-decoration: none; transform: translateY(-2px); }
.float-download.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ============================================================
   Responsive — Mobile nav dropdown (<960px)
   ============================================================ */
@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .nav-download { display: none; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 6px 20px;
    box-shadow: var(--shadow); border-top: 1px solid var(--c-border); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-border); width: 100%; }
  .main-nav a:last-child { border-bottom: none; }
}

/* ============================================================
   Responsive — Tablet (≥640px)
   ============================================================ */
@media (min-width: 640px) {
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 30px; }
  .hero { padding: 60px 0 72px; }
  .hero-text h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .character-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-list { grid-template-columns: repeat(3, 1fr); }
  .tutorial-list { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .preview-figure img { width: 300px; }
}

/* ============================================================
   Responsive — Desktop (≥960px)
   ============================================================ */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .main-nav { display: flex; }
  .hero-inner { flex-direction: row; text-align: left; justify-content: space-between; gap: 48px; }
  .hero-text { flex: 1; }
  .hero-cta { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }
  .hero-visual { width: 260px; flex-shrink: 0; margin: 0; }
  .hero-visual .hero-visual-sub { display: block; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .character-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-inner { flex-direction: row; text-align: left; }
  .demo-text { flex: 1; }
  .demo-visual { display: block; }
  .tutorial-list { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .download-inner { flex-direction: row; text-align: left; }
  .download-text { text-align: left; }
  .download-desc { margin: 0 0 20px; }
  .download-meta ul { justify-content: flex-start; }
  .download-cta { align-items: flex-start; }
  .download-visual img { width: 200px; }
  .float-download { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-visual > img:not(.hero-visual-sub), .hero-cta .btn-primary { animation: none !important; }
}

/* ============================================================
   Responsive — 极小屏 (≤360px, 如 iPhone SE / 320px 安卓)
   ============================================================ */
@media (max-width: 360px) {
  :root { --header-h: 56px; }
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 22px; }
  .section-desc { font-size: 14px; }
  .section-eyebrow { font-size: 12px; padding: 4px 12px; }

  /* Hero 缩小标题与统计区间距,避免 320px 溢出 */
  .hero { padding: 36px 0 44px; }
  .hero-text h1 { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-eyebrow { font-size: 12px; padding: 5px 12px; }
  .hero-cta { gap: 10px; margin-top: 22px; }
  .hero-cta .btn { padding: 12px 22px; font-size: 14px; }
  .hero-stats { gap: 18px; margin-top: 28px; }
  .hero-stats dt { font-size: 22px; }
  .hero-stats dd { font-size: 12px; }
  .hero-visual { width: 170px; }

  /* 角色卡片:320px 下保持 2 列,缩小头像与间距 */
  .character-grid { gap: 10px; }
  .character-card { padding: 14px 10px; }
  .character-card img, .character-avatar-fallback { width: 72px; height: 72px; }
  .character-card h3 { font-size: 15px; }
  .character-card p { font-size: 12px; }

  /* 下载区元信息紧凑布局 */
  .download-meta ul { gap: 10px; }
  .download-meta li { font-size: 13px; }
  .download-text h2 { font-size: 22px; }

  /* 评分摘要:缩小分数字号,避免极小屏换行过多 */
  .review-summary { padding: 12px 16px; gap: 8px; }
  .review-score { font-size: 26px; }
  .review-stars { font-size: 16px; }
  .review-count { font-size: 13px; }

  /* FAQ 与按钮保证 ≥44px 触摸目标 */
  .faq-item summary { padding: 14px 16px; font-size: 15px; min-height: 44px; }
  .btn-sm { padding: 10px 16px; }

  /* footer 关键词行换行优化 */
  .footer-bottom p { font-size: 12px; line-height: 1.7; }
}
