/* ===== 基础变量与全局 ===== */
:root {
  --bg: #070a18;
  --bg-soft: #0b1030;
  --card: rgba(255, 255, 255, 0.045);
  --card-line: rgba(255, 255, 255, 0.09);
  --text: #e8eaf6;
  --muted: #9aa3c2;
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --grad: linear-gradient(120deg, #a78bfa 0%, #8b5cf6 45%, #22d3ee 100%);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, rgba(167,139,250,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 14%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, rgba(34,211,238,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 62%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 74%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 86%, rgba(167,139,250,.4) 50%, transparent 51%),
    radial-gradient(900px 520px at 85% -5%, rgba(139,92,246,.16), transparent 65%),
    radial-gradient(760px 480px at -8% 40%, rgba(34,211,238,.10), transparent 65%),
    var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 92%); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== 导航 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 13, 30, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { padding: 4px 0; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { background: linear-gradient(transparent 70%, rgba(139,92,246,.35) 70%); }
.nav-links a.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  transition: opacity .2s;
}
.nav-links a.nav-cta:hover { opacity: .88; color: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 26px; height: 26px; stroke: var(--text); }

/* ===== 首屏 ===== */
.hero { padding: 84px 0 40px; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 999px;
  font-size: 13px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.1);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.28; letter-spacing: 1px; }
.hero .sub { max-width: 640px; margin: 18px auto 30px; color: var(--muted); font-size: 17px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  margin: 44px auto 10px;
  flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; min-width: 0; }
.hero-stats b { display: block; font-size: clamp(17px, 2.4vw, 22px); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ===== 区块通用 ===== */
section { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .kicker {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
}
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 8px 0 10px; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
h1 { font-size: 26px; }

/* ===== 界面截图 ===== */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.shots > * { min-width: 0; }
.shot {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.shot .frame { border-radius: 12px; overflow: hidden; aspect-ratio: 658 / 1422; }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ===== 功能卡片 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-3 > *, .grid-5 > *, .grid-2 > * { min-width: 0; }
.feat {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.feat:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-3px); }
.feat .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,211,238,.18));
  margin-bottom: 16px;
}
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }

/* ===== 使用步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.steps > * { min-width: 0; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.step .no {
  position: absolute;
  top: -16px;
  left: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}
.step h3 { margin: 10px 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== 角色立绘（横滑 + 网格） ===== */
.roster {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.role {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.role:hover { border-color: rgba(34, 211, 238, 0.5); transform: translateY(-3px); }
.role .pic { aspect-ratio: 720 / 1038; overflow: hidden; }
.role .pic img { width: 100%; height: 100%; object-fit: cover; }
.role .meta { padding: 12px 14px 14px; }
.role .meta b { font-size: 15px; }
.role .meta .tag {
  display: inline-block;
  font-size: 12px;
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 8px;
  vertical-align: 1px;
}
.role .meta p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* 社区热门角色卡（名字台词在图里） */
.card-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.card-strip figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  overflow: hidden;
}
.card-strip img { width: 100%; display: block; }

/* ===== 用户评价 ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reviews > * { min-width: 0; }
.review {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
}
.review p { font-size: 15px; color: #d6dbef; }
.review footer { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.review .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

/* ===== 下载区 ===== */
.dl-band {
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(500px 300px at 85% 80%, rgba(34, 211, 238, 0.14), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--card-line);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.dl-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.dl-band .sub { color: var(--muted); margin-bottom: 28px; }
.dl-band .hero-btns { margin-bottom: 0; }
.dl-list { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.dl-list li { list-style: none; }
.dl-list li::before { content: "✓ "; color: var(--accent2); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 0 22px;
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; color: var(--accent2); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .ans { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ===== 文章 ===== */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.4; margin: 18px 0 8px; }
.article .byline { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.article h2 { font-size: 21px; margin: 34px 0 12px; }
.article p, .article li { color: #cfd5e8; font-size: 16px; margin-bottom: 14px; }
.article ul { padding-left: 22px; }
.article .tip {
  background: rgba(34, 211, 238, 0.08);
  border-left: 3px solid var(--accent2);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: #bfe9f5;
  font-size: 15px;
}
.article-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--card-line); }
.article-nav a { color: var(--accent2); font-size: 14px; }

.news-list { max-width: 800px; margin: 0 auto; display: grid; gap: 18px; }
.news-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color .25s;
}
.news-card:hover { border-color: rgba(139, 92, 246, 0.5); }
.news-card .date { font-size: 13px; color: var(--muted); }
.news-card h2 { font-size: 19px; margin: 6px 0 8px; }
.news-card p { color: var(--muted); font-size: 15px; }

/* ===== 页脚 ===== */
body > footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 20, 0.6);
  padding: 48px 0 34px;
  margin-top: 40px;
}
.foot-seo { max-width: 860px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.9; }
.foot-nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 22px 0; }
.foot-nav a { color: var(--muted); font-size: 14px; }
.foot-nav a:hover { color: var(--text); }
.friend-links {
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  margin-top: 22px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.fl-label { color: var(--muted); }
.fl-list { display: inline; }
.fl-list a { color: var(--muted); }
.fl-list a:hover { color: var(--text); }
.fl-list a.pending { color: #5b637d; text-decoration: underline dashed rgba(255,255,255,.25); }
.fl-list a.pending:hover { color: #5b637d; }
body > footer small { display: block; text-align: center; color: #5b637d; margin-top: 22px; font-size: 12px; }

/* ===== 移动端底部下载条 ===== */
.dl-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 13, 30, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dl-bar .inner { display: flex; align-items: center; gap: 12px; }
.dl-bar .app { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dl-bar .app img { width: 40px; height: 40px; border-radius: 10px; }
.dl-bar .app b { font-size: 15px; display: block; }
.dl-bar .app span { font-size: 12px; color: var(--muted); display: block; }
.dl-bar .btn { padding: 10px 22px; font-size: 15px; white-space: nowrap; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-line);
  background: rgba(11, 16, 48, 0.9);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.to-top.show { display: flex; }

/* ===== PC 扫码弹层 ===== */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--bg-soft);
  border: 1px solid var(--card-line);
  border-radius: 20px;
  padding: 34px 34px 28px;
  width: min(560px, 94vw);
  position: relative;
  text-align: center;
}
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal .hint { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.qr-slots { display: flex; gap: 20px; justify-content: center; }
.qr-slot {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 16px;
}
.qr-slot .box {
  width: 168px;
  height: 168px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  color: #333;
  font-size: 13px;
}
.qr-slot b { font-size: 14px; display: block; }
.qr-slot span { font-size: 12px; color: var(--muted); }
.modal .direct { margin-top: 18px; font-size: 13px; color: var(--muted); }
.modal .direct a, .modal .direct button { color: var(--accent2); background: none; border: 0; cursor: pointer; font-size: 13px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 95;
  background: rgba(20, 26, 54, 0.95);
  border: 1px solid var(--card-line);
  color: var(--text);
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  max-width: 86vw;
  text-align: center;
}
.toast.show { opacity: 1; }

/* ===== 浮现动画 ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
html.snap .reveal { opacity: 1; transform: none; transition: none; }

/* ===== 移动端 ===== */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 13, 30, 0.97);
    border-bottom: 1px solid var(--card-line);
    padding: 8px 6vw 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; font-size: 16px; border-bottom: 1px dashed rgba(255,255,255,.06); }
  .nav-links li:last-child a { border-bottom: 0; margin-top: 8px; text-align: center; }
  .nav-links a.nav-cta { padding: 12px 22px; }
  .nav-links a.active { background: none; color: var(--accent2); }

  .hero { padding: 56px 0 30px; }
  section { padding: 48px 0; }

  /* 截图两列 */
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 640px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-3 > .feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .reviews { grid-template-columns: 1fr; }

  /* 角色立绘整卡横滑 */
  .roster {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .roster::-webkit-scrollbar { display: none; }
  .roster .role { flex: 0 0 74%; scroll-snap-align: center; }

  /* 角色卡横滑 */
  .card-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 14px;
    scrollbar-width: none;
  }
  .card-strip::-webkit-scrollbar { display: none; }
  .card-strip figure { flex: 0 0 58%; scroll-snap-align: center; }

  .dl-bar { display: block; }
  body { padding-bottom: 76px; }
  .to-top { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .qr-slots { flex-direction: row; }
  .qr-slot .box { width: 138px; height: 138px; }
}
@media (max-width: 640px) {
  .shots { max-width: 100%; }
  .qr-slot .box { width: 120px; height: 120px; }
  .modal { padding: 26px 18px 22px; }
}
@media (max-width: 360px) {
  .grid-3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
