:root {
    --bg: #fbf8fd;
    --bg-soft: #f4eefa;
    --card: #ffffff;
    --card-hover: #fff9fc;
    --border: rgba(155, 123, 245, .16);
    --border-strong: rgba(155, 123, 245, .32);
    --text: #46395c;
    --text-dim: #8b7fa3;
    --accent: #9b7bf5;
    --accent2: #f09cc4;
    --grad: linear-gradient(135deg, #a78bfa 0%, #f0a2c8 100%);
    --grad-deep: linear-gradient(135deg, #8f6cf0 0%, #ec8fbd 100%);
    --radius: 18px;
    --shadow: 0 10px 34px rgba(155, 123, 245, .12);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-decoration: none; }
  .container { width: min(1120px, 92%); margin: 0 auto; }

  /* ---------- Nav ---------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(251, 248, 253, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; letter-spacing: .5px;
    cursor: pointer; color: var(--text);
  }
  .logo .mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    object-fit: cover; display: block;
    box-shadow: 0 4px 14px rgba(155, 123, 245, .35);
  }
  .nav-links { display: flex; gap: 26px; font-size: 15px; align-items: center; }
  .nav-links a { color: var(--text-dim); transition: color .2s; line-height: 1; }
  .nav-links a:hover { color: var(--accent); }
  /* CTA 胶囊 */
  .nav-links a.nav-cta {
    background: var(--grad-deep); color: #fff !important;
    padding: 9px 22px; border-radius: 999px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(155, 123, 245, .3);
  }
  .hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .hamburger span {
    width: 24px; height: 2px; background: var(--text);
    border-radius: 2px; transition: .3s;
  }
  .mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 8px 4% 16px; background: rgba(251, 248, 253, .98);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu a { padding: 10px 0; color: var(--text-dim); border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu.open { display: flex; }

  /* ---------- Hero ---------- */
  .hero {
    padding: 140px 0 90px;
    background:
      radial-gradient(560px 320px at 12% 18%, rgba(240, 156, 196, .16), transparent 70%),
      radial-gradient(640px 360px at 88% 8%, rgba(167, 139, 250, .18), transparent 70%),
      radial-gradient(420px 280px at 55% 100%, rgba(240, 156, 196, .1), transparent 70%),
      var(--bg);
    position: relative; overflow: hidden;
  }
  .hero .sparkle {
    position: absolute; color: var(--accent2); opacity: .5;
    user-select: none; pointer-events: none;
  }
  .sp1 { top: 16%; left: 6%; font-size: 22px; }
  .sp2 { top: 30%; right: 8%; font-size: 16px; opacity: .35; }
  .sp3 { bottom: 18%; left: 44%; font-size: 14px; opacity: .4; }
  .sp4 { top: 12%; left: 52%; font-size: 18px; opacity: .3; }
  .hero-inner {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 48px; align-items: center; position: relative; z-index: 1;
  }
  .hero-inner > * { min-width: 0; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(240, 156, 196, .14); color: #d66ba4;
    border: 1px solid rgba(240, 156, 196, .38);
    padding: 6px 16px; border-radius: 999px;
    font-size: 13px; margin-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.28; font-weight: 800; margin-bottom: 20px;
  }
  .hero h1 .hl {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p.lead { color: var(--text-dim); font-size: 17px; margin-bottom: 34px; max-width: 500px; }
  .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; border-radius: 999px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
  }
  .btn-primary {
    background: var(--grad-deep); color: #fff;
    box-shadow: 0 8px 24px rgba(155, 123, 245, .35);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(155, 123, 245, .45); }
  .btn-ghost {
    border: 1px solid var(--border-strong); color: var(--accent);
    background: rgba(255, 255, 255, .6);
  }
  .btn-ghost:hover { background: #fff; transform: translateY(-2px); }

  /* 首屏右侧：手机框 + 漂浮角色卡 */
  .hero-visual { position: relative; display: flex; justify-content: center; }
  .phone-frame {
    width: min(300px, 78%);
    border-radius: 36px;
    border: 6px solid #fff;
    box-shadow: var(--shadow), 0 30px 70px rgba(155, 123, 245, .22);
    overflow: hidden;
    background: #fff;
  }
  .phone-frame img { width: 100%; }
  .float-card {
    position: absolute; left: 2%; bottom: 8%;
    width: 118px;
    border-radius: 14px;
    border: 3px solid #fff;
    box-shadow: 0 14px 34px rgba(155, 123, 245, .3);
    transform: rotate(-6deg);
  }
  .float-card.alt { left: auto; right: 0; bottom: auto; top: 6%; transform: rotate(7deg); width: 104px; }
  .hero-meta { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
  .hero-meta .item strong { font-size: 17px; display: block; }
  .hero-meta .item span { color: var(--text-dim); font-size: 13px; }

  /* ---------- Sections ---------- */
  section { padding: 90px 0; }
  .sec-head { text-align: center; margin-bottom: 52px; }
  .sec-tag {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 13px; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
  }
  .sec-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
  .sec-head p { color: var(--text-dim); margin-top: 12px; }

  /* Features */
  .features { background: var(--bg-soft); }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-3 > * { min-width: 0; }
  .card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 28px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
  }
  .card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 16px 44px rgba(155, 123, 245, .2); }
  .card .icon {
    width: 52px; height: 52px; border-radius: 15px;
    background: var(--grad); color: #fff;
    display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(155, 123, 245, .28);
  }
  .card h3 { font-size: 19px; margin-bottom: 10px; }
  .card p { color: var(--text-dim); font-size: 15px; }

  /* 界面预览 */
  .jieguan-lan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .jieguan-lan > * { min-width: 0; }
  .jieguan-tu {
    border-radius: 22px; overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
    background: #fff;
  }
  .jieguan-tu img {
    width: 100%;
    aspect-ratio: 658 / 1422;
    object-fit: cover; object-position: center top;
  }
  .jieguan-tu figcaption {
    text-align: center; font-size: 13.5px; color: var(--text-dim);
    padding: 10px 6px 12px; background: #fff;
  }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps > * { min-width: 0; }
  .step {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 28px; position: relative;
    box-shadow: var(--shadow);
    transition: transform .25s, border-color .25s;
  }
  .step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
  .step .num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: grid; place-items: center;
    font-size: 19px; font-weight: 800; margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(155, 123, 245, .32);
  }
  .step h3 { font-size: 18px; margin-bottom: 8px; }
  .step p { color: var(--text-dim); font-size: 15px; }

  /* 角色一览（整图卡） */
  .juese-lie {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  }
  .juese-lie > * { min-width: 0; }
  .juese-ka {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
    transition: transform .25s, box-shadow .25s;
  }
  .juese-ka:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(155, 123, 245, .24); }
  .juese-ka img {
    width: 100%;
    aspect-ratio: 408 / 572;
    object-fit: cover;
  }

  /* Download */
  .download {
    background:
      radial-gradient(700px 400px at 50% 0%, rgba(240, 156, 196, .14), transparent 70%),
      var(--bg-soft);
  }
  .dl-box {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 26px; padding: 56px;
    box-shadow: var(--shadow);
  }
  .dl-box h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 14px; }
  .dl-box .sub { color: var(--text-dim); margin-bottom: 30px; }
  .dl-list { list-style: none; margin-bottom: 34px; }
  .dl-list li {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-dim); font-size: 15px; padding: 6px 0;
  }
  .dl-list li::before { content: "✓"; color: var(--accent2); font-weight: 700; }
  .dl-side { display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .qr {
    width: 170px; height: 170px; border-radius: 18px;
    background: #fff; display: grid; place-items: center;
    box-shadow: 0 0 0 8px rgba(155, 123, 245, .1);
    position: relative;
    color: var(--text-dim); font-size: 13px; text-align: center;
  }
  .qr::after {
    content: "安卓扫码下载"; position: absolute; bottom: -30px;
    color: var(--text-dim); font-size: 13px; white-space: nowrap;
  }
  .qr svg { width: 84%; height: 84%; }
  .qr canvas, .qr img { width: 84% !important; height: 84% !important; }
  .store-note { font-size: 13px; color: var(--text-dim); text-align: center; margin-top: 12px; }

  /* FAQ */
  .faq-list { max-width: 780px; margin: 0 auto; }
  details {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; margin-bottom: 14px; overflow: hidden;
    transition: border-color .2s;
    box-shadow: var(--shadow);
  }
  details[open] { border-color: var(--border-strong); }
  summary {
    cursor: pointer; list-style: none;
    padding: 20px 24px; font-size: 16px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after {
    content: "+"; font-size: 22px; color: var(--accent);
    transition: transform .25s; flex-shrink: 0;
  }
  details[open] summary::after { transform: rotate(45deg); }
  details .ans { padding: 0 24px 22px; color: var(--text-dim); font-size: 15px; }

  /* Footer */
  body > footer {
    border-top: 1px solid var(--border);
    padding: 40px 0; text-align: center;
    color: var(--text-dim); font-size: 14px;
    background: var(--bg);
  }
  footer .foot-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
  footer a:hover { color: var(--accent); }
  footer .foot-desc { max-width: 640px; margin: 0 auto 8px; font-size: 13px; opacity: .85; }

  /* ---------- 友情链接 ---------- */
  .friend-links {
    display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
    gap: 8px 16px; max-width: 760px; margin: 0 auto 14px; padding-top: 14px;
    border-top: 1px dashed var(--border); font-size: 13px;
  }
  .fl-label { color: var(--text-dim); opacity: .85; }
  .fl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
  .fl-list a { color: var(--text-dim); opacity: .85; transition: color .2s, opacity .2s; }
  .fl-list a:hover { color: var(--accent); opacity: 1; }
  /* 待替换占位 */
  .fl-list a.pending {
    color: var(--text-dim); opacity: .5; cursor: default;
    border-bottom: 1px dashed var(--border);
  }
  .fl-list a.pending:hover { color: var(--text-dim); opacity: .5; }

  /* ---------- Back to top ---------- */
  .back-top {
    position: fixed; right: 28px; bottom: 40px; z-index: 99;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-deep); color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(155, 123, 245, .4);
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .3s, transform .3s, visibility .3s, box-shadow .2s;
  }
  .back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
  .back-top:hover { box-shadow: 0 12px 28px rgba(155, 123, 245, .55); }
  .back-top .arrow { font-size: 20px; font-weight: 700; line-height: 1; }
  .back-top .txt { display: none; }

  /* 手机端底部固定下载条 */
  .mobile-dl {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
    padding: 10px 4% calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 248, 253, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  .mobile-dl .btn {
    width: 100%; justify-content: center; padding: 13px 0; font-size: 15px;
  }

  /* ---------- toast 轻提示 ---------- */
  .toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 300;
    transform: translateX(-50%) translateY(10px);
    background: rgba(70, 57, 92, .92); color: #fff;
    padding: 10px 20px; border-radius: 999px;
    font-size: 14px; pointer-events: none;
    opacity: 0; transition: opacity .25s, transform .25s;
    max-width: 86vw; text-align: center;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 900px) {
    .mobile-dl { display: block; }
    .back-top { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    body { padding-bottom: 66px; }
    .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 110px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero p.lead { max-width: none; }
    .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
    .hero-meta .item strong { font-size: 15px; }
    .hero-meta .item span { font-size: 11.5px; }
    .float-card { width: 92px; left: 0; }
    .float-card.alt { width: 80px; right: 0; }
    /* 界面预览 → 两列 */
    .jieguan-lan { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 640px; margin: 0 auto; }
    .jieguan-tu { border-width: 3px; }
    .jieguan-tu figcaption { font-size: 12px; padding: 8px 4px 10px; }
    /* 功能卡 → 两列 */
    .features .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card { padding: 24px 18px; }
    .card .icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 14px; }
    .card h3 { font-size: 16.5px; }
    .card p { font-size: 13.5px; }
    /* 使用指南 → 横滑 */
    .steps {
      display: flex; overflow-x: auto;
      gap: 14px; padding-bottom: 6px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .steps::-webkit-scrollbar { display: none; }
    .steps .step { flex: 0 0 74%; scroll-snap-align: start; }
    .step { padding: 24px 18px; }
    .step .num { width: 38px; height: 38px; font-size: 16px; margin-bottom: 12px; }
    .step h3 { font-size: 16px; }
    .step p { font-size: 13.5px; }
    /* 角色卡 → 横滑 */
    .juese-lie {
      display: flex; overflow-x: auto;
      gap: 14px; padding: 4px 4% 10px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      margin: 0 -4%;
    }
    .juese-lie::-webkit-scrollbar { display: none; }
    .juese-ka { flex: 0 0 64%; scroll-snap-align: start; }
    .dl-box { grid-template-columns: 1fr; padding: 36px 26px; text-align: center; }
    .dl-side { display: none; }   /* 手机端隐藏二维码 */
    .dl-list { display: inline-block; text-align: left; }
    .btn-row { justify-content: center; }
    section { padding: 64px 0; }
  }
  @media (max-width: 360px) {
    .features .grid-3 { grid-template-columns: 1fr; }
  }

  /* ---------- 扫码下载弹层（仅 PC） ---------- */
  .dl-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .dl-modal.open { opacity: 1; visibility: visible; }
  .dl-modal__mask {
    position: absolute; inset: 0;
    background: rgba(70, 57, 92, .4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .dl-modal__card {
    position: relative; z-index: 1;
    width: min(400px, 92vw);
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 28px 24px 24px; text-align: center;
    box-shadow: 0 24px 60px rgba(70, 57, 92, .3);
    transform: translateY(14px) scale(.97);
    transition: transform .28s;
  }
  .dl-modal.open .dl-modal__card { transform: none; }
  .dl-modal__close {
    position: absolute; top: 10px; right: 12px;
    width: 32px; height: 32px; border: none; border-radius: 50%;
    background: transparent; color: var(--text-dim);
    font-size: 22px; line-height: 1; cursor: pointer;
    transition: background .2s, color .2s;
  }
  .dl-modal__close:hover { background: rgba(155, 123, 245, .12); color: var(--text); }
  .dl-modal h3 { font-size: 19px; margin-bottom: 6px; }
  .dl-modal__sub { color: var(--text-dim); font-size: 13px; }
  .dl-qrrow {
    display: flex; gap: 18px; justify-content: center;
    margin: 20px 0 12px;
  }
  .dl-qr-item { text-align: center; font-size: 13px; color: var(--text-dim); }
  .dl-qr-item span { display: block; margin-top: 8px; }
  .dl-qr-item[hidden] { display: none; }
  .dl-modal__qr {
    width: 142px; height: 142px;
    background: #fff; border-radius: 12px; padding: 8px;
    display: grid; place-items: center; overflow: hidden;
  }
  .dl-modal__qr[hidden] { display: none; }
  .dl-modal__qr img, .dl-modal__qr canvas { width: 100% !important; height: 100% !important; display: block; }
  .dl-modal__qr.empty { color: var(--text-dim); font-size: 13px; }
  .dl-modal__hint { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }
  .dl-modal__links {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 13px;
  }
  .dl-modal__links a { color: var(--accent); }
  .dl-modal__links a:hover { color: var(--accent2); }
  .dl-modal__links span { color: var(--border); }
  body.modal-open { overflow: hidden; }
