/* ==========================================================================
   星空动漫Pro 官网 · style.css
   主题：深蓝星空（品牌图标同源） · 单页落地页
   ========================================================================== */

:root {
  --navy-900: #0d1730;
  --navy-800: #14203f;
  --navy-700: #1c2b52;
  --navy-600: #26376a;
  --sky-600: #2f8fe0;
  --sky-500: #3ea8f5;
  --sky-400: #5cb9ff;
  --sky-100: #dceefc;
  --sky-50: #eff6fd;
  --star: #f5c14e;
  --ink: #131c30;
  --ink-2: #46526b;
  --ink-3: #7b8699;
  --paper: #f6f9fd;
  --card: #ffffff;
  --line: #e2e9f4;
  --line-dark: rgba(255, 255, 255, .14);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 23, 48, .06);
  --shadow-md: 0 12px 32px -14px rgba(13, 23, 48, .24);
  --container: 1160px;
  --nav-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }

.container { width: min(var(--container), 92%); margin: 0 auto; }
.container-narrow { width: min(780px, 92%); }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- 星辰点缀（深色背景上的星光） ---------- */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(255, 255, 255, .85), transparent 55%),
    radial-gradient(1.2px 1.2px at 38% 8%, rgba(255, 255, 255, .6), transparent 55%),
    radial-gradient(1.8px 1.8px at 55% 18%, rgba(255, 255, 255, .75), transparent 55%),
    radial-gradient(1.1px 1.1px at 72% 6%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(1.5px 1.5px at 86% 24%, rgba(255, 255, 255, .7), transparent 55%),
    radial-gradient(1.2px 1.2px at 8% 48%, rgba(255, 255, 255, .5), transparent 55%),
    radial-gradient(1.4px 1.4px at 30% 64%, rgba(255, 255, 255, .45), transparent 55%),
    radial-gradient(1.1px 1.1px at 48% 78%, rgba(255, 255, 255, .5), transparent 55%),
    radial-gradient(1.6px 1.6px at 66% 55%, rgba(255, 255, 255, .4), transparent 55%),
    radial-gradient(1.2px 1.2px at 84% 72%, rgba(255, 255, 255, .45), transparent 55%),
    radial-gradient(1.3px 1.3px at 94% 42%, rgba(255, 255, 255, .5), transparent 55%),
    radial-gradient(1.1px 1.1px at 60% 90%, rgba(255, 255, 255, .4), transparent 55%);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 30px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sky-500); color: #fff; box-shadow: 0 8px 20px -10px rgba(62, 168, 245, .6); }
.btn-primary:hover { background: var(--sky-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--sky-400); background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { background: var(--sky-50); }
.btn-lg { padding: 16px 38px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- 导航 ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(246, 249, 253, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--navy-700); }
.brand-name em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--sky-600); margin-left: 2px; vertical-align: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--navy-700); background: var(--sky-50); }
.nav-link.active { color: var(--sky-600); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy-700); transition: transform .25s ease, opacity .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;
  padding: calc(var(--nav-h) + 72px) 0 76px;
  background:
    radial-gradient(720px 380px at 84% 6%, rgba(62, 168, 245, .22), transparent 62%),
    radial-gradient(560px 340px at 4% 92%, rgba(92, 185, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #eaf2fd;
  overflow: hidden;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 48px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(92, 185, 255, .4);
  border-radius: 999px;
  background: rgba(62, 168, 245, .12);
  color: var(--sky-400);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky-400); }
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); line-height: 1.22; letter-spacing: -.01em; color: #fff; }
.hero-sub { margin-top: 18px; max-width: 540px; color: rgba(234, 242, 253, .78); font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; color: rgba(234, 242, 253, .55); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stat dt { font-size: 26px; font-weight: 800; color: var(--sky-400); line-height: 1.2; }
.hero-stat .stat-suffix { font-size: 15px; font-weight: 700; }
.hero-stat dd { font-size: 13px; color: rgba(234, 242, 253, .55); margin-top: 2px; }

.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 168, 245, .22), transparent 68%);
}

/* ---------- 手机相框 ---------- */
.phone {
  position: relative;
  border-radius: 42px;
  border: 10px solid var(--navy-900);
  background: var(--navy-900);
  box-shadow: 0 18px 44px -16px rgba(4, 10, 26, .55);
  overflow: hidden;
  aspect-ratio: 9 / 19;
}
.phone-top {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  border-radius: 999px;
  background: var(--navy-900);
  z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-hero { width: 292px; }
.phone-shot { width: 226px; border-width: 8px; border-radius: 34px; }
.phone-shot .phone-top { width: 64px; height: 16px; top: 7px; }

/* ---------- 区块通用 ---------- */
.section { padding: 92px 0; }
.section-alt { background: #fff; }
.section-dark {
  position: relative;
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(62, 168, 245, .2), transparent 60%),
    var(--navy-800);
  color: #eaf2fd;
  overflow: hidden;
}
.section-dark .hero-stars { opacity: .8; }
.section-dark > .container { position: relative; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head-left { margin: 0 0 26px; text-align: left; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-600);
  margin-bottom: 12px;
}
.section-label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--sky-400); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.3; color: var(--navy-800); letter-spacing: -.01em; }
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.section-dark .section-label { color: var(--sky-400); }
.section-dark .section-label::before { background: var(--sky-400); }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: rgba(234, 242, 253, .7); }

/* ---------- 热门分类 ---------- */
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.genre-card {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.genre-card:hover { transform: translateY(-4px); border-color: var(--sky-100); box-shadow: var(--shadow-md); }
.genre-dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--sky-500)); margin-bottom: 14px; }
.genre-card h3 { font-size: 16.5px; color: var(--navy-800); margin-bottom: 6px; }
.genre-card p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* ---------- 功能特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--sky-100); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sky-50);
  color: var(--sky-600);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; color: var(--navy-800); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 应用展示 ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; justify-items: center; }
.showcase-item { text-align: center; }
.showcase-item .phone { margin: 0 auto; }
.showcase-item figcaption { margin-top: 20px; }
.showcase-item h3 { font-size: 17px; color: #fff; margin-bottom: 4px; }
.showcase-item p { font-size: 14px; color: rgba(234, 242, 253, .68); }

/* ---------- 为什么选择 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  position: relative;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--sky-400);
  margin-bottom: 14px;
}
.why-card h3 { font-size: 16.5px; color: var(--navy-800); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 用户评价 ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.voice-card {
  position: relative;
  padding: 30px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.voice-card::before {
  content: "“";
  position: absolute;
  top: 8px; right: 20px;
  font-size: 64px;
  line-height: 1;
  color: var(--sky-100);
  font-family: Georgia, serif;
}
.voice-card p { font-size: 15px; color: var(--ink); line-height: 1.8; }
.voice-card footer { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ---------- 关于 ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy p { color: var(--ink-2); margin-bottom: 16px; }
.about-copy .btn { margin-top: 10px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-stat {
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.about-stat dt { font-size: 28px; font-weight: 800; color: var(--navy-700); line-height: 1.2; }
.about-stat dd { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--sky-100); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-800);
  text-align: left;
  cursor: pointer;
}
.faq-q svg { width: 20px; height: 20px; color: var(--sky-500); flex: none; transition: transform .3s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 下载 CTA ---------- */
.cta-banner {
  position: relative;
  padding: 68px 32px;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(560px 260px at 15% 0%, rgba(62, 168, 245, .28), transparent 62%),
    radial-gradient(480px 240px at 88% 100%, rgba(92, 185, 255, .22), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff;
  overflow: hidden;
}
.cta-banner h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.4; letter-spacing: -.01em; }
.cta-banner p { margin-top: 14px; color: rgba(255, 255, 255, .82); }
.cta-banner .btn { margin-top: 28px; }
.cta-note { font-size: 12.5px; color: rgba(255, 255, 255, .6) !important; margin-top: 16px !important; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(234, 242, 253, .78); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-name em { color: var(--sky-400); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(234, 242, 253, .7); transition: color .2s ease; }
.footer-col a:hover { color: var(--sky-400); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { font-size: 12.5px; color: rgba(234, 242, 253, .5); }

/* ---------- 移动端下载条 / 返回顶部 ---------- */
.mobile-download {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px -12px rgba(13, 23, 48, .18);
}
.mobile-download-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-download strong { display: block; font-size: 15px; color: var(--navy-800); }
.mobile-download span { font-size: 12px; color: var(--ink-3); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sky-100);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--sky-50); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 滚动揭示动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-visual::before { width: 260px; height: 260px; }
  .phone-hero { width: 240px; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { gap: 28px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 4vw 20px;
    background: rgba(246, 249, 253, .98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .mobile-download { display: block; }
  body { padding-bottom: 62px; }
  .to-top { bottom: 78px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--nav-h) + 44px) 0 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stat dt { font-size: 22px; }
  .feature-grid, .why-grid, .voices-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-banner { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; }
  .btn-lg { padding: 14px 30px; }
  /* 移动端触控目标 ≥ 44px */
  .btn { min-height: 44px; }
  .brand { min-height: 44px; align-items: center; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .genre-card p { font-size: 14px; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
