/* ===== 基础变量与全局 ===== */
:root {
  --bg: #0b1d15;
  --bg-soft: #11261b;
  --card: rgba(243, 237, 224, 0.05);
  --card-line: rgba(217, 179, 106, 0.22);
  --text: #ede7d8;
  --muted: #a3b8a8;
  --accent: #d9b36a;
  --accent2: #e8cf9a;
  --grad: linear-gradient(120deg, #f0e2bc 0%, #d9b36a 52%, #c19a55 100%);
  --radius: 16px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
}
* { 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 14% 20%, rgba(232,207,154,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 10%, rgba(237,231,216,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 34%, rgba(217,179,106,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 16%, rgba(237,231,216,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 52%, rgba(232,207,154,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 26% 72%, rgba(237,231,216,.25) 50%, transparent 51%),
    radial-gradient(900px 560px at 84% -6%, rgba(217,179,106,.13), transparent 65%),
    radial-gradient(760px 480px at -10% 42%, rgba(64,105,80,.35), transparent 65%),
    radial-gradient(680px 420px at 55% 108%, rgba(64,105,80,.28), 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; }
h1, h2, h3, .logo, .kicker { font-family: var(--serif); }

/* ===== 导航 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 20, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-line);
}
.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; border: 1px solid var(--card-line); }
.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(217,179,106,.35) 70%); }
.nav-links a.nav-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #2a1f0e;
  font-weight: 600;
  transition: opacity .2s;
}
.nav-links a.nav-cta:hover { opacity: .88; color: #2a1f0e; }
.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(217, 179, 106, 0.45);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent2);
  background: rgba(217, 179, 106, 0.08);
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.28; letter-spacing: 1px; }
.hero .sub { max-width: 680px; 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: #2a1f0e; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(217,179,106,.4); }
.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; }
section.alt { background: rgba(232, 207, 154, 0.035); border-top: 1px solid rgba(217,179,106,.08); border-bottom: 1px solid rgba(217,179,106,.08); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .kicker {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.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(3, 1fr); gap: 20px; max-width: 900px; 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: 500 / 1050; border: 1px solid rgba(217,179,106,.12); }
.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(217, 179, 106, 0.6); 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(217,179,106,.22), rgba(64,105,80,.35));
  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: #2a1f0e;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(217, 179, 106, 0.35);
}
.step h3 { margin: 10px 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== 角色立绘 ===== */
.roster {
  display: grid;
  grid-template-columns: repeat(4, 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(232, 207, 154, 0.55); transform: translateY(-3px); }
.role .pic { aspect-ratio: 640 / 922; 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: var(--accent2);
  border: 1px solid rgba(217, 179, 106, 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; }

/* ===== 用户评价 ===== */
.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: #dde3d4; }
.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: #2a1f0e;
}

/* ===== 下载区 ===== */
.dl-band {
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(217, 179, 106, 0.16), transparent 70%),
    radial-gradient(500px 300px at 85% 80%, rgba(64, 105, 80, 0.4), 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(--accent); 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(--accent); 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: #d4dbcd; font-size: 16px; margin-bottom: 14px; }
.article ul { padding-left: 22px; }
.article .tip {
  background: rgba(217, 179, 106, 0.09);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: #e9dcbb;
  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(217, 179, 106, 0.6); }
.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 var(--card-line);
  background: rgba(6, 15, 10, 0.65);
  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(217, 179, 106, 0.2);
  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: #5d6f60; text-decoration: underline dashed rgba(217,179,106,.3); }
.fl-list a.pending:hover { color: #5d6f60; }
body > footer small { display: block; text-align: center; color: #5d6f60; 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(8, 20, 14, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--card-line);
}
.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; border: 1px solid var(--card-line); }
.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(17, 38, 27, 0.92);
  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, 10, 7, 0.8);
  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(243, 237, 224, 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: #f4efe2;
  border-radius: 10px;
  overflow: hidden;
  color: #3a2f1c;
  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(17, 38, 27, 0.96);
  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(8, 20, 14, 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(217,179,106,.12); }
  .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; }

  .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; }
}
