/* ============================================
 * 月匣ai · 粉紫梦幻二次元风
 * 浅粉紫底 + 描边贴纸卡 + 星光点缀 + 深夜剧本带
 * ============================================ */
:root {
  --bg: #fdf5fc;
  --bg-grad: linear-gradient(160deg, #fff0f8 0%, #f6ecff 45%, #efe6ff 100%);
  --card: #ffffff;
  --ink: #3b2b52;
  --dim: #8d7ba6;
  --accent: #a24df0;
  --pink: #ff6ec7;
  --grad: linear-gradient(135deg, #ff6ec7 0%, #a24df0 100%);
  --grad-deep: linear-gradient(135deg, #f24fb0 0%, #8e3ae0 100%);
  --night-1: #2b1b45;
  --night-2: #45276b;
  --border: #f0d9f5;
  --shadow: 0 10px 30px rgba(162, 77, 240, .14);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--bg-grad) fixed;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.3; }

/* 波点纹理，二次元手账感 */
.features, .characters, #faq {
  background-image: radial-gradient(rgba(162, 77, 240, .07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ===== 导航 ===== */
header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 248, 254, .88);
  backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; letter-spacing: .5px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px;
  border: 2px solid #fff; box-shadow: 0 3px 10px rgba(162,77,240,.25);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { padding: 4px 0; color: var(--dim); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-cta {
  padding: 9px 22px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 110, 199, .35);
}
.nav-links a.nav-cta:hover { background: var(--grad-deep); color: #fff; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 22px; height: 2.5px; margin: 4.5px 0;
  background: var(--accent); border-radius: 3px;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 22px 16px; border-top: 1px solid var(--border);
  background: rgba(255, 248, 254, .97);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px dashed var(--border); }
.mobile-menu a.mm-cta { color: var(--accent); border-bottom: 0; }

/* ===== 首屏 ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,110,199,.14), transparent 34%),
    radial-gradient(circle at 88% 30%, rgba(162,77,240,.14), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 34px; align-items: center; padding-top: 64px; padding-bottom: 84px;
}
.hero-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--pink);
  color: var(--accent); font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(255,110,199,.18);
  transform: rotate(-1.2deg);
}
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; margin: 18px 0 16px; letter-spacing: 1px; }
.hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--dim); font-size: 16.5px; max-width: min(34em, 100%); }
.btn-row { display: flex; gap: 14px; margin: 26px 0 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 30px; border-radius: 999px; font-weight: 800; font-size: 16px;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px rgba(255, 110, 199, .4);
}
.btn-primary:hover { background: var(--grad-deep); transform: translateY(-2px); }
.btn-ghost {
  background: #fff; color: var(--accent); border: 2px solid var(--accent);
}
.btn-ghost:hover { background: #f7ecff; transform: translateY(-2px); }
.hero-meta { display: flex; gap: 12px; }
.hero-meta .item {
  flex: 1; background: rgba(255,255,255,.75); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 12px 14px; text-align: center;
}
.hero-meta strong { display: block; font-size: 15.5px; }
.hero-meta span { font-size: 12.5px; color: var(--dim); }

/* 首屏贴纸截图 */
.hero-img { position: relative; min-height: 480px; }
.shot {
  background: #fff; border: 3px solid #fff; border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s;
}
.shot img { display: block; width: 100%; }
.hero-img .stick-l {
  position: absolute; left: 0; top: 30px; width: 52%;
  transform: rotate(-3.5deg); z-index: 2;
}
.hero-img .stick-r {
  position: absolute; right: 0; top: 0; width: 52%;
  transform: rotate(2.8deg);
}
.hero-img .stick-l:hover { transform: rotate(-1.5deg) scale(1.02); z-index: 3; }
.hero-img .stick-r:hover { transform: rotate(1deg) scale(1.02); z-index: 3; }
.spark {
  position: absolute; color: var(--pink); font-size: 22px;
  animation: twinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.spark.s1 { top: 6%; left: 44%; }
.spark.s2 { bottom: 12%; right: 6%; color: var(--accent); animation-delay: .8s; }
.spark.s3 { top: 40%; right: 46%; font-size: 16px; animation-delay: 1.5s; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

/* ===== 板块通用 ===== */
section { padding: 76px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 3px;
  color: var(--pink); background: rgba(255,110,199,.1);
  border: 1.5px dashed var(--pink); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 12px;
}
.sec-tag.light { color: #ffd7ef; background: rgba(255,215,239,.08); border-color: rgba(255,215,239,.5); }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; letter-spacing: 1px; }
.sec-head p { color: var(--dim); margin-top: 8px; }
.fine { color: var(--dim); font-size: 13px; }
.fine.center { text-align: center; margin-top: 26px; }

/* ===== 功能卡片 ===== */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); position: relative;
  transition: transform .2s, border-color .2s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--grad); opacity: 0;
  transition: opacity .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--pink); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff0f8, #f4e8ff);
  border: 1.5px solid var(--border); margin-bottom: 14px;
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--dim); }

/* 三步指南 */
.steps-wrap { margin-top: 72px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff; border: 2px dashed var(--accent); border-radius: var(--radius);
  padding: 26px 24px; position: relative; text-align: center;
}
.step .num {
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(162,77,240,.3);
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--dim); }

/* ===== 剧本玩法（深夜带） ===== */
.stories {
  background:
    radial-gradient(circle at 82% 20%, rgba(255,110,199,.18), transparent 40%),
    radial-gradient(circle at 8% 85%, rgba(162,77,240,.22), transparent 45%),
    linear-gradient(150deg, var(--night-1), var(--night-2));
  color: #f3eaff;
}
.stories-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.stories h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; margin-bottom: 10px; }
.stories .lead2 { font-size: 18px; font-weight: 700; color: #ffd7ef; margin-bottom: 12px; }
.stories p { color: #cdbfec; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,215,239,.4);
  color: #ffd7ef;
}
.stories .fine { color: rgba(205,191,236,.65); margin-top: 10px; }
.stories-shot { position: relative; max-width: 400px; justify-self: center; }
.stories-shot .big { transform: rotate(2deg); }
.stories-shot .big:hover { transform: rotate(0); }
.stories-shot .spark.s1 { top: 4%; left: -4%; }
.stories-shot .spark.s3 { bottom: 8%; right: -6%; color: #ffd7ef; }

/* ===== 界面一览横滑 ===== */
.shots { padding-bottom: 70px; }
.shots-strip {
  display: flex; gap: 22px; overflow-x: auto; padding: 10px 22px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shots-strip::-webkit-scrollbar { display: none; }
/* 居中：内容不溢出时用首尾 auto margin 居中，溢出时自动归零、可正常横滑 */
.shots-strip .shot:first-child { margin-left: auto; }
.shots-strip .shot:last-child { margin-right: auto; }
.shots-strip .shot {
  flex: 0 0 240px; scroll-snap-align: center;
}
.shots-strip .shot:nth-child(odd) { transform: rotate(-1.4deg); }
.shots-strip .shot:nth-child(even) { transform: rotate(1.4deg); }

/* ===== 角色题材 ===== */
.char-row { display: flex; justify-content: center; gap: 18px; }
.char-card {
  flex: 0 0 196px; background: #fff; border: 3px solid #fff; border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); scroll-snap-align: center;
  transition: transform .2s;
}
.char-card:nth-child(odd) { transform: rotate(-1.6deg); }
.char-card:nth-child(even) { transform: rotate(1.6deg); }
.char-card:hover { transform: rotate(0) translateY(-6px); }

/* ===== 下载区 ===== */
.download { padding-top: 30px; }
.dl-box {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center;
  background: #fff; border: 2px solid var(--border); border-radius: 26px;
  padding: 44px 40px; box-shadow: var(--shadow);
  background-image: radial-gradient(rgba(162,77,240,.06) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.dl-box h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; }
.dl-box .sub { color: var(--accent); font-weight: 700; margin: 10px 0 16px; font-size: 15px; }
.dl-list { list-style: none; margin-bottom: 26px; }
.dl-list li { padding: 5px 0 5px 26px; position: relative; color: var(--dim); font-size: 14.5px; }
.dl-list li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 900; }
.dl-side { text-align: center; }
.qr {
  width: 168px; height: 168px; margin: 0 auto; background: #fff;
  border: 2px dashed var(--accent); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 13px; color: var(--dim); text-align: center;
  padding: 10px;
}
.store-note { color: var(--dim); font-size: 13px; margin-top: 12px; }

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
details {
  background: #fff; border: 2px solid var(--border); border-radius: 18px;
  padding: 18px 24px; transition: border-color .2s;
}
details[open] { border-color: var(--pink); }
summary {
  cursor: pointer; font-weight: 800; font-size: 16px; list-style: none;
  position: relative; padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 900; transition: transform .2s;
}
details[open] summary::after { content: "−"; }
.ans { margin-top: 10px; color: var(--dim); font-size: 14.5px; }

/* ===== 页脚 ===== */
footer {
  background: linear-gradient(150deg, #31204e, #4a2a72);
  color: #cdbfec; padding: 46px 0 60px; text-align: center;
}
.seo-p { max-width: 860px; margin: 0 auto 18px; font-size: 13px; line-height: 1.9; color: rgba(205,191,236,.8); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; }
.foot-links a { color: #ffd7ef; font-size: 14px; }
.foot-links a:hover { color: #fff; }
.friend-links {
  border-top: 1px dashed rgba(205,191,236,.35);
  padding-top: 18px; margin-top: 4px;
  display: flex; justify-content: center; align-items: baseline;
  flex-wrap: wrap; gap: 8px 14px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.fl-label { font-size: 13px; color: rgba(205,191,236,.7); }
.fl-list { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
.fl-list a { font-size: 13px; color: #cdbfec; }
.fl-list a:hover { color: #fff; }
.fl-list a.pending {
  color: rgba(205,191,236,.55);
  text-decoration: underline dotted rgba(205,191,236,.5);
}
.fl-list a.pending:hover { color: rgba(205,191,236,.8); }
footer small { display: block; margin-top: 20px; font-size: 12.5px; color: rgba(205,191,236,.6); }

/* ===== 手机底部下载条（仅移动端显示） ===== */
.mobile-dl { display: none; }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 85;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff;
  background: var(--grad); color: #fff; font-size: 19px; font-weight: 900;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  box-shadow: 0 6px 16px rgba(162,77,240,.35);
  display: flex; align-items: center; justify-content: center;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { box-shadow: 0 10px 22px rgba(162,77,240,.5); }
.back-top .arrow { line-height: 1; }
.back-top .txt { display: none; }

/* ===== toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(16px);
  background: rgba(59, 43, 82, .94); color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; z-index: 99;
  opacity: 0; visibility: hidden; transition: all .25s; white-space: nowrap;
  max-width: 86vw;
  box-shadow: 0 8px 22px rgba(59,43,82,.3);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%); }

/* ===== PC 扫码弹层 ===== */
.dl-modal { position: fixed; inset: 0; z-index: 95; display: none; }
.dl-modal.open { display: block; }
.dl-modal__mask { position: absolute; inset: 0; background: rgba(43, 27, 69, .55); }
.dl-modal__card {
  position: relative; width: min(420px, 92vw); margin: 9vh auto 0;
  background: #fff; border-radius: 24px; padding: 34px 30px; text-align: center;
  box-shadow: 0 24px 60px rgba(43,27,69,.35);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dl-modal__close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 26px; color: var(--dim); cursor: pointer; line-height: 1;
}
.dl-modal__card h3 { font-size: 20px; font-weight: 900; }
.dl-modal__sub { color: var(--dim); font-size: 13.5px; margin: 6px 0 20px; }
.dl-qrrow { display: flex; justify-content: center; gap: 28px; }
.dl-qr-item span { display: block; margin-top: 10px; font-weight: 700; font-size: 14px; }
.dl-modal__qr {
  width: 148px; height: 148px; border: 2px dashed var(--accent); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 13px; color: var(--dim); margin: 0 auto; padding: 8px;
}
.dl-modal__hint { color: var(--dim); font-size: 12.5px; margin-top: 18px; }
.dl-modal__links { margin-top: 12px; font-size: 14px; }
.dl-modal__links a { color: var(--accent); font-weight: 700; }
body.modal-open { overflow: hidden; }

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  body { padding-bottom: 76px; } /* 给底部下载条留白 */

  .mobile-dl {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 248, 254, .9); backdrop-filter: blur(12px);
    border-top: 2px dashed var(--border);
  }
  .mobile-dl .btn { width: 100%; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 50px; gap: 40px; }
  .hero h1 { font-size: 31px; }
  .hero-img { min-height: 0; height: 430px; }
  .hero-img .stick-l, .hero-img .stick-r { width: 47%; }
  .hero-img .stick-l { left: 4%; top: 40px; }
  .hero-img .stick-r { right: 4%; top: 0; }
  .hero-meta { flex-direction: row; }

  section { padding: 56px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 20px 18px; }
  .steps { grid-template-columns: 1fr; }

  .stories-inner { grid-template-columns: 1fr; gap: 34px; }
  .stories-shot { max-width: 320px; }

  .shots-strip .shot { flex: 0 0 200px; }

  /* 角色卡横滑：整卡约 62% 宽，露出下一张边缘 */
  .char-row {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 22px 20px; margin: 0 -22px; scrollbar-width: none;
  }
  .char-row::-webkit-scrollbar { display: none; }
  .char-card { flex: 0 0 62%; }

  .dl-box { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .dl-list { text-align: left; display: inline-block; }
  .dl-side { display: none; } /* 手机端隐藏二维码区块 */
  .btn-row { justify-content: center; }

  .back-top { bottom: 86px; right: 14px; }
}

@media (max-width: 360px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; }
  .hero-img { height: 360px; }
  .char-card { flex: 0 0 76%; }
}
