/* ============================================================
   漫天星漫画 app 下载官网  style.css
   主题：深邃星空夜幕 + 星光金（参考 doumanmh.cc 版式）
   ============================================================ */
:root {
  --bg: #0d1030;
  --bg-2: #141845;
  --surface: #1b2050;
  --surface-2: #222860;
  --ink: #eef1ff;
  --muted: #9aa3d0;
  --gold: #ffd166;
  --gold-deep: #ff9e4a;
  --grad: linear-gradient(120deg, #ffd166, #ff9e4a);
  --border: rgba(255, 255, 255, .10);
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #232a6e 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 30%, #1a1f56 0%, transparent 55%),
              var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- 星星背景 ---------- */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; opacity: .6; animation: twinkle 3s ease-in-out infinite;
}
.stars span:nth-child(1){ top:12%; left:8%;  animation-delay:0s;   width:3px;height:3px;}
.stars span:nth-child(2){ top:22%; left:22%; animation-delay:.6s;  width:2px;height:2px;}
.stars span:nth-child(3){ top:8%;  left:45%; animation-delay:1.2s; width:4px;height:4px;}
.stars span:nth-child(4){ top:30%; left:68%; animation-delay:.3s;  width:2px;height:2px;}
.stars span:nth-child(5){ top:18%; left:85%; animation-delay:1.8s; width:3px;height:3px;}
.stars span:nth-child(6){ top:48%; left:5%;  animation-delay:.9s;  width:2px;height:2px;}
.stars span:nth-child(7){ top:62%; left:90%; animation-delay:.2s;  width:3px;height:3px;}
.stars span:nth-child(8){ top:75%; left:15%; animation-delay:1.4s; width:2px;height:2px;}
.stars span:nth-child(9){ top:82%; left:55%; animation-delay:.7s;  width:3px;height:3px;}
.stars span:nth-child(10){top:55%; left:40%; animation-delay:1.1s; width:2px;height:2px;}
.stars span:nth-child(11){top:38%; left:78%; animation-delay:1.6s; width:2px;height:2px;}
.stars span:nth-child(12){top:70%; left:72%; animation-delay:.4s;  width:4px;height:4px;}
.stars span:nth-child(13){top:90%; left:35%; animation-delay:1.9s; width:2px;height:2px;}
.stars span:nth-child(14){top:40%; left:30%; animation-delay:.5s;  width:3px;height:3px;}
.stars span:nth-child(15){top:5%;  left:60%; animation-delay:1.3s; width:2px;height:2px;}
@keyframes twinkle { 0%,100%{opacity:.25; transform:scale(1)} 50%{opacity:.9; transform:scale(1.3)} }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-gold { background: var(--grad); color: #3a2400; box-shadow: 0 10px 26px rgba(255,209,102,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,180,80,.5); }
.btn-light { background: #fff; color: #3a2400; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.btn-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-xl { padding: 18px 48px; font-size: 18px; }
.ico { width: 20px; height: 20px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 16, 48, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1140px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { font-size: 19px; font-weight: 800; }
.brand-name em { font-style: normal; color: var(--gold); }
.nav-tagline { color: var(--muted); font-size: 14px; }
.nav-download { padding: 9px 22px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; z-index: 1; }
.hero-glow {
  position: absolute; top: -80px; right: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,209,102,.20), transparent 65%);
  filter: blur(30px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.18; font-weight: 900; letter-spacing: -1px; }
.hero h1 br { display: block; }
.hero-sub { color: var(--muted); font-size: 17px; margin: 22px 0 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 13px; color: var(--muted); }

.phone-frame {
  width: 280px; margin: 0 auto; border-radius: 38px; padding: 12px;
  background: #06081f; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.phone-frame img { border-radius: 28px; width: 100%; height: auto; }
.phone-frame.sm { width: 200px; border-radius: 30px; padding: 9px; }
.phone-frame.sm img { border-radius: 22px; }
.hero-visual { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ---------- 核心优势 ---------- */
.features { padding: 60px 0; position: relative; z-index: 1; }
.section-tag { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 34px; font-weight: 800; }
.section-desc { color: var(--muted); margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s, border-color .25s, background .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,209,102,.5); background: var(--surface-2); }
.f-no { font-size: 30px; font-weight: 900; color: var(--gold); opacity: .95; }
.feature-card h3 { font-size: 20px; margin: 14px 0 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 界面一览 ---------- */
.showcase { padding: 40px 0 70px; position: relative; z-index: 1; }
.showcase-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.shot { text-align: center; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0; position: relative; z-index: 1; }
.faq-inner { max-width: 820px; }
.faq-list { margin-top: 36px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: 0; color: var(--ink);
  padding: 20px 24px; font-size: 16px; font-weight: 600; text-align: left;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-arrow { color: var(--gold); font-size: 22px; transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,209,102,.25), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(120,140,255,.25), transparent 55%),
    linear-gradient(135deg, #1a1f56, #2a3080);
  padding: 90px 0;
}
.cta-inner h2 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.cta-inner p { opacity: .9; font-size: 16px; margin-bottom: 28px; }
.cta-meta { margin-top: 18px; font-size: 13px; opacity: .8; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: rgba(0,0,0,.25); position: relative; z-index: 1; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; font-weight: 600; }
.footer-logo { width: 34px; height: 34px; border-radius: 8px; }
.footer-copy { color: var(--muted); font-size: 13px; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #3a2400; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  box-shadow: 0 8px 22px rgba(255,180,80,.4);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top svg { width: 22px; height: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { padding: 110px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .hero h1 { font-size: 38px; }
  .nav-tagline { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; gap: 30px; }
  .nav-toggle { display: flex; }
  .nav-download { display: none; }
  .section-title { font-size: 28px; }
  .cta-inner h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .btn-xl { padding: 15px 32px; font-size: 16px; }
}
