/* ===== 变量 ===== */
:root {
  --primary: #3D8BFF;
  --primary-2: #FF8F6B;
  --bg: #F6F9FE;
  --bg-soft: #EAF1FC;
  --card: #FFFFFF;
  --border: #E2EAF6;
  --text: #24304F;
  --text-2: #566079;
  --text-3: #8B94AA;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 24px rgba(61, 139, 255, .12);
  --shadow-hover: 0 16px 36px rgba(61, 139, 255, .2);
  --nav-h: 64px;
}

/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
section { padding: 76px 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .97); border-bottom-color: var(--border); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo {
  position: relative;
  font-size: 19px; font-weight: 700; letter-spacing: .5px; white-space: nowrap;
  color: var(--primary);
}
.logo::before { content: ""; position: absolute; inset: -8px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  font-size: 14px; color: var(--text-2); padding: 8px 12px; border-radius: 10px;
  transition: color .25s, background .25s;
}
.menu a:hover { color: var(--text); background: rgba(61, 139, 255, .1); }
.menu a.active { color: var(--primary); }
.nav-btn {
  position: relative;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--primary);
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  transition: box-shadow .25s, transform .25s;
}
.nav-btn::before { content: ""; position: absolute; inset: -8px; }
.nav-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

/* ===== 首屏 Hero ===== */
.hero { padding: calc(var(--nav-h) + 64px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.ver {
  font-size: .52em; font-weight: 800; vertical-align: middle; margin-left: 10px; letter-spacing: 1px;
  color: var(--primary);
}
.hero-desc { margin-top: 22px; font-size: 16px; color: var(--text-2); max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 600; border-radius: 999px;
  transition: transform .25s, box-shadow .25s;
}
.btn-primary {
  background: var(--primary); color: #fff; font-size: 15px; padding: 13px 28px;
  box-shadow: 0 6px 18px rgba(61, 139, 255, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-lg { font-size: 16px; padding: 15px 34px; }
.hero-img { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== 通用标题 ===== */
.sec-title { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: 1px; margin-bottom: 44px; }
.sec-title::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px;
  background: var(--primary); margin: 14px auto 0;
}

/* ===== 截图预览 ===== */
.shots { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shot-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.shot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* ===== 游戏介绍 ===== */
.intro-card {
  max-width: 860px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 42px;
  display: grid; gap: 16px;
}
.intro-card p { font-size: 15.5px; color: var(--text-2); }

/* ===== 核心优势 ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(61, 139, 255, .5); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(61, 139, 255, .12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* ===== 用户评价 ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .3s, box-shadow .3s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.review-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--primary-2);
  color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.review-name { font-size: 15px; font-weight: 600; }
.stars { color: #FFC53D; font-size: 13px; letter-spacing: 2px; line-height: 1; margin-top: 4px; }
.review-text { margin-top: 14px; font-size: 14px; color: var(--text-2); }

/* ===== 版本更新 ===== */
.version-card {
  max-width: 860px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 42px;
}
.version-top { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.ver-badge {
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 700;
  padding: 6px 18px; border-radius: 999px;
}
.ver-date { font-size: 14px; color: var(--text-2); }
.changelog { display: grid; gap: 12px; }
.changelog li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.changelog li::before {
  content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--primary);
}

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .3s;
}
.faq-item.open { border-color: rgba(61, 139, 255, .55); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; color: var(--text); font-size: 15.5px; font-weight: 600;
  padding: 18px 22px; cursor: pointer; text-align: left;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; border-radius: 1px; background: var(--primary);
  transform: translate(-50%, -50%);
  transition: transform .3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 20px; }
.faq-a-inner p { font-size: 14.5px; color: var(--text-2); }

/* ===== 下载区域 ===== */
.download {
  background: var(--bg-soft);
  text-align: center;
}
.download-title { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.download-meta { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 32px; }
.download-tip { margin-top: 28px; font-size: 14px; color: var(--text-2); }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--border); padding: 28px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.footer-link { color: var(--text-2); transition: color .25s; }
.footer-link:hover { color: var(--primary); }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed; right: 24px; bottom: 28px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--primary);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, box-shadow .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; }

/* ===== 平板 ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-desc { max-width: none; }
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 手机导航 ===== */
@media (max-width: 768px) {
  .menu { display: none; }
  .nav-inner { justify-content: space-between; gap: 12px; }
  .hero h1 { font-size: 31px; }
  .download-title { font-size: 29px; }
  .sec-title { font-size: 26px; }
  section { padding: 60px 0; }
}

/* ===== 手机 ===== */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .download-btns { flex-direction: column; }
  .download-btns .btn { width: 100%; }
  .download-meta { font-size: 12px; white-space: nowrap; }
  .shots-grid, .features-grid, .reviews-grid { grid-template-columns: 1fr; }
  .intro-card { padding: 28px 22px; }
  .version-card { padding: 28px 22px; }
  .to-top { right: 16px; bottom: 20px; }
}
