/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --purple: #7B5CFF;
  --cyan: #00D2FF;
  --pink: #FF5C8A;
  --ink: #1b1b2f;
  --muted: #6b6b85;
  --bg: #f6f7fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(123, 92, 255, .12);
  --maxw: 480px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding-bottom: 76px; /* 给吸底条留位 */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 700; border-radius: 999px;
  padding: 12px 22px; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; box-shadow: 0 8px 20px rgba(255,92,138,.35); }
.btn-outline { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-light { background: #fff; color: var(--purple); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.btn-ghost { background: rgba(123,92,255,.12); color: var(--purple); padding: 8px 16px; font-size: 14px; }

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(123,92,255,.08);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 9px; object-fit: cover;
  background: #fff;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(0,210,255,.55), transparent 60%),
    radial-gradient(120% 80% at 90% 10%, rgba(255,92,138,.55), transparent 60%),
    linear-gradient(160deg, #6a4bff, #8e54ff 55%, #b15cff);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .35;
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 46px 20px 40px; }
.app-icon {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 24px;
  object-fit: cover;
  background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.3);
  border: 3px solid rgba(255,255,255,.6);
}
.hero-title { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { margin-top: 8px; font-size: 15px; opacity: .95; }
.rating { margin: 16px 0 22px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.stars { color: #FFD43B; letter-spacing: 2px; }
.rating-num { font-weight: 800; font-size: 16px; }
.rating-count { opacity: .9; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero-tip { margin-top: 16px; font-size: 12.5px; opacity: .85; }

/* ===== 区块标题 ===== */
.section-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.section-title.light { color: #fff; }
.section-desc { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.section-desc.light { color: rgba(255,255,255,.85); }

.features, .showcase, .article, .faq, .version, .cta-final {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 18px;
}

/* ===== 核心卖点 ===== */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow); text-align: left;
}
.feature-ico { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; margin-bottom: 10px; padding: 8px; }
.ico-1 { background: #ffe9ef; } .ico-2 { background: #e6f0ff; }
.ico-3 { background: #e3fbff; } .ico-4 { background: #f0e9ff; }
.feature-card h3 { font-size: 16px; margin-bottom: 4px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ===== 截图展示 ===== */
.showcase { background: linear-gradient(180deg, #fff, #f3f1ff); }
.screen-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.screen-scroll::-webkit-scrollbar { display: none; }
.phone {
  flex: 0 0 auto; scroll-snap-align: center; text-align: center;
}
.phone img {
  width: 180px; height: auto; aspect-ratio: 9/16; object-fit: cover;
  border-radius: 24px; border: 6px solid #1b1b2f;
  background: #1b1b2f;
  box-shadow: 0 16px 34px rgba(27,27,47,.18);
}
.screen-cap {
  margin-top: 10px; font-size: 13px; color: var(--muted);
}

/* ===== 下载区 ===== */
.download { background: linear-gradient(160deg, #6a4bff, #b15cff); color: #fff; margin: 0; max-width: none; }
.download-inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 18px; text-align: center; }
.dl-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; margin: 22px 0 14px; }
.dl-note { font-size: 12.5px; opacity: .9; max-width: 360px; margin: 0 auto; }

/* ===== 文章/长尾词 ===== */
.article h2 { font-size: 21px; margin-bottom: 14px; }
.article h3 { font-size: 17px; margin: 22px 0 8px; color: var(--purple); }
.article p { font-size: 14.5px; color: #3a3a52; margin-bottom: 10px; }
.article strong { color: var(--ink); }
.steps { padding-left: 20px; font-size: 14.5px; color: #3a3a52; }
.steps li { margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 4px 16px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 15px; padding: 14px 0;
  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: "+"; color: var(--purple); font-size: 22px; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { font-size: 14px; color: var(--muted); padding: 0 0 14px; }

/* ===== 版本 ===== */
.ver-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}
.ver-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ver-name { font-weight: 800; font-size: 16px; color: var(--purple); }
.ver-date { font-size: 12px; color: var(--muted); }
.ver-log { padding-left: 20px; font-size: 14px; color: #3a3a52; }
.ver-log li { margin-bottom: 8px; }

/* ===== 下载卡片（download 页） ===== */
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 10px;
}
.dl-card h3 { font-size: 16px; }
.dl-card p { font-size: 13px; color: var(--muted); flex: 1; }
.dl-card .btn { align-self: flex-start; }

/* ===== 底部 CTA ===== */
.cta-final { text-align: center; background: linear-gradient(180deg,#fff,#f3f1ff); }
.cta-final h2 { font-size: 20px; margin-bottom: 18px; }

/* ===== 页脚 ===== */
.footer { background: #ffffff; color: var(--muted); padding: 30px 18px; text-align: center; border-top: 1px solid rgba(123,92,255,.1); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 14px; }
.footer-links a { color: var(--purple); font-size: 14px; }
.footer-disclaimer { font-size: 12px; color: #8a8ab0; line-height: 1.7; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: #a0a0bf; }

/* ===== 吸底下载条 ===== */
.sticky-dl {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(123,92,255,.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  max-width: var(--maxw); margin: 0 auto;
}
.sticky-dl-info { display: flex; align-items: center; gap: 10px; }
.sticky-logo {
  width: 38px; height: 38px; border-radius: 11px; object-fit: cover;
  background: #fff;
}
.sticky-dl-info strong { display: block; font-size: 15px; color: var(--ink); }
.sticky-dl-info small { font-size: 11.5px; color: var(--muted); }

/* 隐藏吸底条时的状态（JS 控制） */
.sticky-dl.hide { transform: translateY(120%); transition: transform .3s ease; }

/* ===== 面包屑 ===== */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 12px 18px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--purple); }
.breadcrumb .sep { margin: 0 6px; color: #cfcfe0; }
.breadcrumb .cur { color: var(--ink); }

/* ===== 大屏适配（平板/桌面居中手机视图） ===== */
@media (min-width: 600px) {
  body { background: linear-gradient(160deg, #efeaff, #e6f6ff); }
  .topbar-inner, .hero-inner, .features, .showcase, .article, .faq, .version, .cta-final, .footer-inner, .sticky-dl {
    box-shadow: 0 20px 60px rgba(80,60,160,.12);
  }
  .hero, .download { max-width: var(--maxw); margin: 0 auto; border-radius: 0; }
  .features, .showcase, .article, .faq, .version, .cta-final { background: #fff; }
}
