:root {
    --bg: #140b10;
    --bg-soft: #1d1017;
    --card: #241419;
    --card-hover: #2d1820;
    --border: rgba(255,232,238,.09);
    --text: #f4e9ec;
    --text-dim: #b9a1aa;
    --accent: #e0597c;
    --accent2: #a8345a;
    --grad: linear-gradient(135deg, #e8698c 0%, #a8345a 100%);
    --glow: rgba(224,89,124,.4);
    --radius: 16px;
  }
  * { 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(20,11,16,.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    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: 19px; font-weight: 700; letter-spacing: .5px;
  }
  .logo .mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    object-fit: cover; display: block;
    box-shadow: 0 0 16px var(--glow);
  }
  .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; padding: 4px 0; }
  .nav-links a:hover, .nav-links a.active { color: var(--text); }
  /* CTA 必须带 .nav-links 前缀：否则 .nav-links a 的 padding 会把胶囊压扁 */
  .nav-links a.nav-cta {
    background: var(--grad); color: #fff !important;
    padding: 9px 22px; border-radius: 999px; font-weight: 600;
    box-shadow: 0 4px 14px var(--glow);
  }
  .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(20,11,16,.97);
    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(640px 320px at 12% 8%, rgba(232,105,140,.16), transparent 70%),
      radial-gradient(520px 300px at 88% 30%, rgba(168,52,90,.14), transparent 70%),
      var(--bg);
    position: relative; overflow: hidden;
  }
  .hero-kv {
    position: absolute; inset: 0; z-index: 0;
    background: url("../images/kv-rose.webp") center / cover no-repeat;
    opacity: .26;
  }
  .hero-kv::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,11,16,.55) 0%, rgba(20,11,16,.2) 45%, var(--bg) 100%);
  }
  .hero-inner { position: relative; z-index: 1; }
  .hero-cols {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 48px; align-items: center;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,105,140,.13); color: #f0b9c8;
    border: 1px solid rgba(232,105,140,.4);
    padding: 6px 16px; border-radius: 999px;
    font-size: 13px; margin-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.25; 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: 520px; }
  .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); color: #fff;
    box-shadow: 0 8px 24px var(--glow);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow); }
  .btn-ghost {
    border: 1px solid var(--border); color: var(--text);
    background: rgba(255,255,255,.03);
  }
  .btn-ghost:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
  .hero-meta { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
  .hero-meta .item strong { font-size: 22px; display: block; }
  .hero-meta .item span { color: var(--text-dim); font-size: 13px; }

  /* hero 手机截图叠放 */
  .hero-shots { position: relative; height: 460px; }
  .hero-shots .ph {
    position: absolute; width: 46%;
    border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,232,238,.14);
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(232,105,140,.14);
    background: var(--card);
  }
  .hero-shots .ph img { width: 100%; display: block; }
  .hero-shots .ph-a { left: 0; top: 24px; transform: rotate(-3deg); z-index: 1; }
  .hero-shots .ph-b { right: 0; top: 0; transform: rotate(2.5deg); z-index: 2; }

  /* ---------- Sections ---------- */
  section { padding: 90px 0; }
  .sec-head { text-align: center; margin-bottom: 56px; }
  .sec-tag {
    color: #f0b9c8; font-size: 13px; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 10px;
  }
  .sec-head h2 { font-size: clamp(26px, 4vw, 38px); 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; }
  .card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 28px;
    transition: transform .25s, background .25s, border-color .25s;
  }
  .card:hover { transform: translateY(-6px); background: var(--card-hover); border-color: rgba(232,105,140,.45); }
  .card .icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(232,105,140,.14); border: 1px solid rgba(232,105,140,.32);
    display: grid; place-items: center; font-size: 24px; margin-bottom: 20px;
  }
  .card h3 { font-size: 19px; margin-bottom: 10px; }
  .card p { color: var(--text-dim); font-size: 15px; }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 28px; position: relative;
    transition: transform .25s, border-color .25s;
  }
  .step:hover { transform: translateY(-6px); border-color: rgba(232,105,140,.45); }
  .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 18px var(--glow);
  }
  .step h3 { font-size: 18px; margin-bottom: 8px; }
  .step p { color: var(--text-dim); font-size: 15px; }

  /* 角色卡 */
  .char-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  }
  .char-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
  .role-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .25s, border-color .25s;
  }
  .role-card:hover { transform: translateY(-6px); border-color: rgba(232,105,140,.5); }
  .role-card .avatar { aspect-ratio: 640 / 923; overflow: hidden; }
  .role-card .avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
  .role-card:hover .avatar img { transform: scale(1.04); }
  .role-card .info { padding: 18px 16px 22px; text-align: center; }
  .role-card h3 { font-size: 18px; margin-bottom: 4px; }
  .role-card .tag {
    display: inline-block; font-size: 12px; color: #f0b9c8;
    background: rgba(232,105,140,.14); border: 1px solid rgba(232,105,140,.32);
    padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
  }
  .role-card p { color: var(--text-dim); font-size: 13.5px; }
  .role-note { text-align: center; color: var(--text-dim); font-size: 13.5px; margin-top: 28px; }

  /* 界面截图展示 */
  .shot-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; max-width: 1020px; margin: 0 auto;
  }
  .shot-grid figure { margin: 0; }
  .shot-grid .frame {
    border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(255,232,238,.14);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    aspect-ratio: 658 / 1422;
    background: var(--card);
  }
  .shot-grid .frame img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
  }
  .shot-grid figcaption {
    text-align: center; color: var(--text-dim);
    font-size: 14px; margin-top: 12px;
  }

  /* 长文排版（SEO 内容区） */
  .prose { max-width: 820px; margin: 0 auto; }
  .prose h2 { font-size: 24px; margin: 42px 0 16px; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { font-size: 18px; margin: 30px 0 12px; color: #f0c3cf; }
  .prose p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 14px; }
  .prose ul { margin: 0 0 16px 22px; color: var(--text-dim); font-size: 15.5px; }
  .prose li { margin-bottom: 8px; }
  .prose strong { color: var(--text); }
  .prose a { color: #f0b9c8; border-bottom: 1px dashed rgba(232,105,140,.5); }
  .prose a:hover { color: #fff; }

  /* Download */
  .download {
    background:
      radial-gradient(700px 400px at 50% 0%, rgba(232,105,140,.15), 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: 24px; padding: 56px;
  }
  .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: #e8698c; 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(255,255,255,.06);
    position: relative;
  }
  .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;
  }
  details[open] { border-color: rgba(232,105,140,.45); }
  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 */
  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(--text); }

  /* ---------- 友情链接（静态直出在 index.html，不用 JS；.pending 为待定占位样式） ---------- */
  .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(--text); opacity: 1; }
  /* 待替换占位：仍是 <a> 标签（保留外链语义），仅视觉与交互降级 */
  .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); color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px var(--glow);
    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 var(--glow); }
  .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(20,11,16,.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;
  }

  @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; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 110px 0 60px; }
    .hero-cols { grid-template-columns: 1fr; gap: 36px; }
    .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: 16px; }
    .hero-meta .item span { font-size: 11.5px; }
    .hero-shots { height: 380px; }
    /* 功能 6 卡 → 两列 */
    .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; }
    /* 步骤 3 卡 → 整卡横滑 */
    .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; }
    /* 角色卡与截图 → 两列网格 */
    .char-grid, .char-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .role-card .info { padding: 14px 10px 18px; }
    .role-card h3 { font-size: 16px; }
    .role-card p { font-size: 12.5px; }
    .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .shot-grid figcaption { font-size: 12.5px; }
    .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; }
    .prose h2 { font-size: 21px; }
    .prose p, .prose ul { font-size: 14.5px; }
  }
  @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(8,3,6,.72);
    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(0,0,0,.6);
    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(255,255,255,.08); 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__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: #f0b9c8; }
  .dl-modal__links a:hover { color: #fff; }
  .dl-modal__links span { color: var(--border); }
  .dl-modal__qr.empty { color: var(--text-dim); font-size: 13px; }

  /* toast 轻提示 */
  .toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 300;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, .8); 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); }
  body.modal-open { overflow: hidden; }
