:root {
  --primary: #7B5CF6;
  --primary-deep: #5B3DF0;
  --accent: #FF8AC2;
  --dark: #241D3F;
  --text: #34304D;
  --text-light: #6E6A8C;
  --border: #E9E6F8;
  --bg: #FAF9FF;
  --bg-soft: #F2EFFB;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(91, 61, 240, 0.08);
  --shadow-hover: 0 14px 34px rgba(91, 61, 240, 0.16);
  --gradient: linear-gradient(135deg, #6A45F5 0%, #9A5CF6 55%, #FF8AC2 130%);
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }

.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  letter-spacing: 1px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin: 10px 0 44px;
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 30px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 22px rgba(123, 92, 246, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(123, 92, 246, 0.45); }

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.btn-sm { padding: 4px 14px; font-size: 12.5px; line-height: 1.4; }

.btn-lg { padding: 16px 44px; font-size: 17px; }

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 18px rgba(91, 61, 240, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  white-space: nowrap;
}

.logo-icon {
  width: 30px;
  height: 30px;
  fill: var(--primary);
  flex: none;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--primary); background: var(--bg-soft); }

/* ===== 首屏 Hero ===== */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 88px;
  color: #fff;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 2px),
    radial-gradient(1px 1px at 32% 66%, rgba(255, 255, 255, 0.7), transparent 2px),
    radial-gradient(2px 2px at 58% 22%, rgba(255, 255, 255, 0.65), transparent 3px),
    radial-gradient(1px 1px at 78% 58%, rgba(255, 255, 255, 0.75), transparent 2px),
    radial-gradient(1px 1px at 92% 30%, rgba(255, 255, 255, 0.6), transparent 2px),
    radial-gradient(2px 2px at 45% 82%, rgba(255, 255, 255, 0.55), transparent 3px),
    radial-gradient(circle at 18% 28%, rgba(255, 138, 194, 0.28), transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(167, 139, 250, 0.35), transparent 46%),
    linear-gradient(150deg, #241A4D 0%, #3A2A7A 58%, #5538B5 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-text { flex: 1 1 52%; }

.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 2px;
}

.ver-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0;
}

.hero-desc {
  margin: 22px 0 30px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-img {
  flex: 1 1 48%;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(10, 5, 40, 0.45);
  overflow: hidden;
}

.hero-img img { width: 100%; height: auto; }

/* ===== 游戏截图 ===== */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.shot-card { overflow: hidden; }

.shot-card img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.shot-card:hover img { transform: scale(1.04); }

/* ===== 游戏介绍 ===== */
.intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intro-card { padding: 32px 34px; }

.intro-card h3 {
  font-size: 20px;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.intro-card p { font-size: 15px; }

/* ===== 核心优势 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card { padding: 30px 28px; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(123, 92, 246, 0.14), rgba(255, 138, 194, 0.14));
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--primary-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }

.feature-card p { font-size: 14px; color: var(--text-light); }

/* ===== 用户评价 ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card { padding: 26px 28px; }

.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
}

.review-meta { display: flex; flex-direction: column; }

.review-name { font-size: 16px; font-weight: 600; color: var(--dark); }

.stars { color: #F7B32B; font-size: 13px; letter-spacing: 2px; line-height: 1.6; }

.review-text { font-size: 14px; }

/* ===== 版本更新 ===== */
.update-card {
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.update-info { display: flex; flex-direction: column; gap: 10px; }

.update-ver {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: 1px;
}

.update-date { font-size: 14px; color: var(--text-light); }

.update-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 15px;
  border-bottom: 1px dashed var(--border);
}

.update-list li:last-child { border-bottom: none; }

.update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item { margin-bottom: 16px; overflow: hidden; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(123, 92, 246, 0.16); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p { padding: 0 24px 22px; font-size: 14px; color: var(--text-light); }

/* ===== 下载区域 ===== */
.download {
  color: #fff;
  background:
    radial-gradient(1px 1px at 18% 30%, rgba(255, 255, 255, 0.8), transparent 2px),
    radial-gradient(1px 1px at 70% 62%, rgba(255, 255, 255, 0.65), transparent 2px),
    radial-gradient(2px 2px at 86% 24%, rgba(255, 255, 255, 0.6), transparent 3px),
    radial-gradient(circle at 78% 80%, rgba(255, 138, 194, 0.22), transparent 45%),
    radial-gradient(circle at 20% 12%, rgba(167, 139, 250, 0.3), transparent 45%),
    linear-gradient(150deg, #241A4D 0%, #3A2A7A 58%, #5538B5 100%);
}

.download-inner { text-align: center; }

.download-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
}

.download-meta {
  margin: 16px 0 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.download-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.download-tip { margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* ===== 页脚 ===== */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); }

.footer-inner {
  display: flex;
  justify-content: center;
  padding: 28px 0;
  font-size: 14px;
}

.footer-link { color: #fff; }

.footer-link:hover { color: var(--accent); }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 99;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(123, 92, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== 平板适配 ===== */
@media (max-width: 1080px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .hero-title { font-size: 44px; }
  .update-card { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 920px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
}

/* ===== 手机适配 ===== */
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }

  .section { padding: 60px 0; }

  .section-title { font-size: 26px; }
  .section-sub { margin-bottom: 32px; }

  .nav { display: none; }

  .logo { font-size: 22px; }
  .logo-icon { width: 26px; height: 26px; }

  .hero { padding: calc(var(--nav-h) + 36px) 0 56px; }

  .hero-inner { flex-direction: column; gap: 32px; }

  .hero-text { width: 100%; text-align: center; }

  .hero-title { justify-content: center; font-size: 34px; }

  .hero-desc { margin: 16px auto 24px; font-size: 15px; }

  .hero-actions { flex-direction: column; width: 100%; }

  .hero-actions .btn { width: 100%; }

  .hero-img { width: 100%; }

  .shots-grid { grid-template-columns: 1fr; gap: 18px; }

  .intro-cols { grid-template-columns: 1fr; }

  .features-grid, .reviews-grid { grid-template-columns: 1fr; }

  .update-card { padding: 26px 22px; }

  .update-ver { font-size: 32px; }

  .faq-q { font-size: 15px; padding: 18px 18px; }
  .faq-a p { padding: 0 18px 20px; }

  .download-title { font-size: 32px; }

  .download-meta {
    font-size: 12px;
    white-space: nowrap;
    margin: 14px 0 24px;
  }

  .download-actions { flex-direction: column; width: 100%; }

  .download-actions .btn { width: 100%; }

  .download-tip { font-size: 13px; }

  .back-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}
