/* ==========================================================================
   Cemu 中文官网 - 公共样式表
   配色依据官方 Logo：品牌蓝 #0090D8
   风格：扁平 / 现代 / 专业
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --primary: #0090D8;
  --primary-dark: #0072B4;
  --primary-deep: #00599A;
  --primary-bright: #17AEE8;
  --primary-tint: #E8F5FD;
  --primary-tint-2: #D2EAF9;

  /* 中性色 */
  --ink: #0F2740;
  --text: #33475C;
  --muted: #64778A;
  --line: #DCE7EF;
  --line-soft: #EAF1F7;
  --bg: #FFFFFF;
  --bg-alt: #F4F8FB;

  /* 深色区域 */
  --dark: #062842;
  --dark-2: #0A3657;
  --on-dark: #EAF5FC;
  --on-dark-muted: #A8CBDF;

  /* 语义色 */
  --ok: #1F9D5F;
  --ok-bg: #E4F5EB;
  --ok-line: #BCE3CD;
  --warn: #B87810;
  --warn-bg: #FBF1DD;
  --warn-line: #EBD9AF;
  --danger: #C94840;

  /* 布局 */
  --container: 1160px;
  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue",
    Arial, sans-serif;
}

/* ---------- 2. 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

ul, ol { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-tint-2);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head p { color: var(--muted); }

.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- 图标尺寸 ---------- */
svg.ic { width: 20px; height: 20px; flex: none; }
svg.ic-sm { width: 16px; height: 16px; flex: none; }
svg.ic-lg { width: 28px; height: 28px; flex: none; }
.btn .ic, .btn .ic-sm { width: 18px; height: 18px; }
.float-card .fc-icon .ic { width: 20px; height: 20px; }
.feature-card .fc-icon-lg .ic { width: 24px; height: 24px; }
.feature-block .fb-side .fc-icon-lg .ic { width: 26px; height: 26px; }
.platform-icon .ic { width: 26px; height: 26px; }
.note-box .nb-icon .ic { width: 18px; height: 18px; }
.feature-points .fp-icon .ic { width: 18px; height: 18px; }

/* 无障碍：跳转链接 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-primary:active { background: var(--primary-deep); }

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-tint-2);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary-dark);
}

.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--primary); color: var(--primary-dark); }

.btn-lg { font-size: 17px; padding: 16px 38px; }
.btn-sm { font-size: 14px; padding: 10px 20px; }
.btn-block { width: 100%; }

.btn:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 2px; }

/* ---------- 4. 页头与导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(6, 40, 66, 0.08); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}
.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.22em;
  margin-top: -2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.main-nav a:hover { color: var(--primary-dark); background: var(--primary-tint); }
.main-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-tint);
  font-weight: 700;
}

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

/* ---------- 5. 首页 Hero ---------- */
.hero {
  background: linear-gradient(180deg, #EAF5FD 0%, #F6FAFD 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 0 84px;
}
.hero-copy h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-copy h1 .accent { color: var(--primary); }
.hero-lead {
  font-size: 18px;
  color: var(--text);
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--ok); }

.hero-visual { position: relative; }
.hero-visual svg,
.hero-visual img { width: 100%; height: auto; display: block; }

/* 浮动小卡片 */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(6, 40, 66, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card .fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.float-card .fc-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.float-card .fc-sub { font-size: 12px; color: var(--muted); line-height: 1.4; }
.float-card-a { right: -14px; top: -22px; }
.float-card-b { left: -18px; bottom: -26px; }

/* ---------- 6. 数据带 ---------- */
.stats-band { background: var(--dark); color: var(--on-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 40px 0;
  gap: 20px;
}
.stat-item { text-align: center; padding: 6px 8px; position: relative; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-bright);
  line-height: 1.2;
}
.stat-value .unit { font-size: 16px; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 13.5px; color: var(--on-dark-muted); margin-top: 4px; }

/* ---------- 7. 认识 Cemu ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy h2 { font-size: 32px; margin-bottom: 18px; }
.about-copy p { margin-bottom: 16px; }
.about-copy strong { color: var(--ink); }
.about-visual {
  background: var(--primary-tint);
  border: 1px solid var(--primary-tint-2);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.about-milestones li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.about-milestones li:last-child { border-bottom: 0; }
.about-milestones .ms-date {
  flex: none;
  width: 84px;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 15px;
}
.about-milestones .ms-text { font-size: 15px; color: var(--text); line-height: 1.6; }

/* ---------- 8. 优势卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-card .fc-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--muted); }
.feature-card .fc-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 600;
}

/* ---------- 9. 对比表 ---------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 620px;
}
.compare thead th, .compare td, .compare tbody th {
  padding: 16px 22px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.compare thead th {
  background: var(--dark);
  color: var(--on-dark);
  font-weight: 700;
  border-bottom: 0;
}
.compare tbody th { color: var(--ink); font-weight: 700; background: var(--bg-alt); width: 180px; }
.compare td.cemu-col { color: var(--ink); font-weight: 600; background: var(--primary-tint); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- 10. 使用场景 ---------- */
.scenario {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.scenario + .scenario { border-top: 1px solid var(--line-soft); }
.scenario:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.scenario:nth-child(even) .scenario-visual { order: 2; }
.scenario-copy .sc-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.scenario-copy h3 { font-size: 24px; margin-bottom: 12px; }
.scenario-copy p { color: var(--muted); margin-bottom: 14px; }
.scenario-copy ul { margin-top: 6px; }
.scenario-copy ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}
.scenario-copy ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}
.scenario-visual svg { width: 100%; height: auto; }
.scenario-visual {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

/* ---------- 11. 游戏卡片 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.game-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.game-cover {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.game-cover .gc-short {
  font-size: 30px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(6, 40, 66, 0.18);
}
.game-cover .gc-corner {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-body { padding: 16px 18px 18px; }
.game-body h3 { font-size: 15.5px; margin-bottom: 6px; }
.game-body .game-genre { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.game-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

.compat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.compat-perfect { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.compat-playable { color: var(--primary-dark); background: var(--primary-tint); border: 1px solid var(--primary-tint-2); }
.compat-runs { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }

.compat-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--muted);
}
.compat-legend span { display: inline-flex; align-items: center; gap: 8px; }
.compat-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.dot-ok { background: var(--ok); }
.dot-info { background: var(--primary); }
.dot-warn { background: var(--warn); }

/* ---------- 12. 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-card .step-no {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ---------- 13. FAQ 手风琴 ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 18px 22px;
  transition: background-color 0.15s ease;
}
.faq-q:hover { background: var(--primary-tint); }
.faq-q .faq-chevron { flex: none; color: var(--muted); transition: transform 0.2s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner {
  padding: 4px 22px 20px;
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid var(--line-soft);
}
.faq-a-inner p { margin-top: 12px; }
.faq-a-inner ul { margin: 10px 0; }
.faq-a-inner li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.faq-a-inner li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}

/* ---------- 14. 下载页：平台卡片 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.platform-card.featured { border-color: var(--primary); position: relative; }
.platform-card.featured::after {
  content: "推荐";
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.platform-card h3 { font-size: 20px; margin-bottom: 8px; }
.platform-card .platform-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.platform-card .platform-meta strong { color: var(--text); font-weight: 600; }
.platform-list { margin: 0 0 22px; flex: 1; }
.platform-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.platform-list li:last-child { border-bottom: 0; }
.platform-list svg { flex: none; color: var(--ok); }
.platform-list .file-size { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.platform-card .btn { width: 100%; }
.platform-card .alt-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.platform-card .alt-link a { color: var(--primary-dark); font-weight: 600; }

/* ---------- 15. 时间线 ---------- */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--primary-tint-2);
}
.timeline-item { position: relative; padding: 0 0 30px 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
}
.timeline-item .tl-version {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}
.timeline-item .tl-date { font-size: 13px; color: var(--muted); margin-left: 10px; }
.timeline-item h3 { font-size: 17px; margin: 4px 0 6px; }
.timeline-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- 16. 二维码区与下载弹窗 ---------- */
.qr-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 28px;
  justify-content: center;
}
.qr-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.qr-card img {
  width: 190px;
  height: 190px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.qr-card .qr-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.qr-card .qr-platform svg { color: var(--primary-dark); }
.qr-card .qr-desc { font-size: 13.5px; color: var(--muted); }
.qr-card .qr-req { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* 下载弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 40, 66, 0.55);
}
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 36px 36px 34px;
  box-shadow: 0 24px 64px rgba(6, 40, 66, 0.25);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-head { text-align: center; margin-bottom: 24px; padding-right: 40px; }
.modal-head h3 { font-size: 24px; margin-bottom: 8px; }
.modal-head .modal-sub { font-size: 14px; color: var(--muted); }
.modal-head .modal-sub strong { color: var(--primary-dark); }
.modal-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.modal-qr {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.modal-qr img { width: 150px; height: 150px; margin: 0 auto 12px; }
.modal-qr .mq-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 4px;
}
.modal-qr .mq-title svg { color: var(--primary-dark); }
.modal-qr .mq-desc { font-size: 12.5px; color: var(--muted); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.modal-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  padding-bottom: 2px;
  line-height: 1.75;
}
.modal-note a { font-weight: 600; }

/* ---------- 17. 通用页头（子页面） ---------- */
.page-hero {
  background: linear-gradient(180deg, #EAF5FD 0%, #F6FAFD 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 0 52px;
}
.page-hero h1 { font-size: 36px; margin-bottom: 12px; }
.page-hero .page-lead {
  font-size: 16.5px;
  color: var(--text);
  max-width: 760px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- 18. CTA 横幅 ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 60px 0;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: var(--on-dark-muted); max-width: 560px; }
.cta-band .btn-primary { background: var(--primary-bright); }
.cta-band .btn-primary:hover { background: #3FBCEF; }

/* ---------- 19. 页脚 ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 0 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand span { color: #fff; font-size: 20px; font-weight: 800; }
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.site-footer p { line-height: 1.8; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--on-dark-muted); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  font-size: 12.5px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 20. 提示框 ---------- */
.note-box {
  border: 1px solid var(--primary-tint-2);
  background: var(--primary-tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.note-box .nb-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-tint-2);
}
.note-box .nb-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.note-box p { font-size: 14px; color: var(--text); line-height: 1.7; }
.note-box.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.note-box.warn .nb-icon { color: var(--warn); border-color: var(--warn-line); }

/* ---------- 21. 系统要求表 ---------- */
.req-table-wrap { overflow-x: auto; }
table.req-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 640px;
}
table.req-table th, table.req-table td {
  padding: 15px 20px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft);
}
table.req-table thead th {
  background: var(--dark);
  color: var(--on-dark);
  font-weight: 700;
}
table.req-table tbody th {
  color: var(--ink);
  font-weight: 700;
  background: var(--bg-alt);
  width: 140px;
}
table.req-table tbody tr:last-child th, table.req-table tbody tr:last-child td { border-bottom: 0; }
table.req-table td { color: var(--text); }
table.req-table td em { font-style: normal; color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

/* ---------- 22. 功能特性页 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  padding: 56px 0;
  align-items: flex-start;
}
.feature-block + .feature-block { border-top: 1px solid var(--line-soft); }
.feature-block .fb-side { position: sticky; top: 100px; }
.feature-block .fb-side .fc-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-block .fb-side h2 { font-size: 24px; margin-bottom: 10px; }
.feature-block .fb-side p { font-size: 14.5px; color: var(--muted); }
.feature-points li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.feature-points li:last-child { border-bottom: 0; }
.feature-points .fp-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-points h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature-points p { font-size: 14.5px; color: var(--muted); }

/* ---------- 23. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 8px 20px rgba(0, 114, 180, 0.35);
  z-index: 90;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary-dark); }

/* ---------- 24. 入场动画（渐进增强：仅在 JS 可用时启用，无 JS 时内容直接可见） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1080px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .stat-item + .stat-item::before { display: none; }
  .hero-copy h1 { font-size: 38px; }
  .feature-block { grid-template-columns: 1fr; gap: 28px; }
  .feature-block .fb-side { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    display: none;
    box-shadow: 0 12px 24px rgba(6, 40, 66, 0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 14px; font-size: 16px; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 60px; gap: 44px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .float-card-a { right: 0; top: -16px; }
  .float-card-b { left: 0; bottom: -18px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .scenario, .scenario:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .scenario:nth-child(even) .scenario-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-band-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
  .hero-copy h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .grid-3, .grid-4, .game-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .qr-section-grid { grid-template-columns: 1fr; }
  .modal-qr-grid { grid-template-columns: 1fr; }
  .modal-actions { grid-template-columns: 1fr; }
  .modal-dialog { padding: 28px 20px 24px; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-actions .btn { width: 100%; }
}
