:root {
  color-scheme: dark;
  --ink: #070b18;
  --panel: #10172b;
  --panel-2: #151d35;
  --text: #f2f3ff;
  --muted: #b4bad0;
  --line: rgba(205, 210, 255, .16);
  --accent: #5c57e6;
  --accent-hover: #726df4;
  --warn-border: rgba(255, 196, 107, .34);
  --warn-bg: rgba(255, 196, 107, .08);
  --warn-text: #ffd99b;
  --max: 1160px;
  font-family: "Segoe UI Variable", "Segoe UI", "Noto Sans SC", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-locale="en"] [lang="zh-CN"], html[data-locale="zh"] [lang="en"] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); line-height: 1.6; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: #c7c5ff; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #aaa7ff; outline-offset: 4px; }
code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: #d8d6ff; font-size: .9em; overflow-wrap: anywhere; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 26px); font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.locale-toggle { border: 1px solid var(--line); color: var(--text); background: transparent; border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.locale-toggle:hover { background: var(--panel); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); align-items: center; gap: clamp(38px, 7vw, 86px); padding-block: 48px 70px; min-height: 620px; }
.hero-copy { max-width: 610px; }
.eyebrow { margin: 0 0 18px; color: #b3b1ff; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 670px; margin-bottom: 20px; font-size: clamp(44px, 6.2vw, 76px); line-height: 1.03; letter-spacing: -.065em; }
.lede { max-width: 51ch; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 12px 17px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease, border-color .15s ease; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { color: #fff; background: var(--accent-hover); transform: translateY(-1px); }
.button-muted { color: var(--muted); border-color: var(--line); background: var(--panel); cursor: not-allowed; }
.button-secondary { color: var(--text); border-color: var(--line); background: transparent; }
.button-secondary:hover { color: var(--text); background: var(--panel); }
.action-note { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.compat-note { flex-basis: 100%; margin: 4px 0 0; padding: 10px 14px; border: 1px solid var(--warn-border); border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: 13px; line-height: 1.5; }
.inapp-banner { display: none; flex-basis: 100%; margin: 4px 0 0; padding: 10px 14px; border: 1px solid rgba(137, 133, 255, .42); border-radius: 10px; background: rgba(92, 87, 230, .14); color: #e2e0ff; font-size: 13px; line-height: 1.5; }
html[data-inapp-browser="true"] .inapp-banner { display: block; }
.hero-art { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0b1124; aspect-ratio: 2 / 2.65; max-height: 570px; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.section { padding-block: 70px; border-top: 1px solid var(--line); }
.section-heading { max-width: 620px; margin-bottom: 32px; }
h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.05em; }
.section-heading p, .body-copy { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 24px 26px 4px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.025em; }
.steps p { max-width: 33ch; margin-bottom: 16px; color: var(--muted); font-size: 15px; }
.privacy-split { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); gap: clamp(36px, 7vw, 90px); align-items: start; }
.privacy-split p { max-width: 64ch; color: var(--muted); }
.privacy-points { margin: 0; padding: 0; list-style: none; }
.privacy-points li { padding: 16px 0; border-top: 1px solid var(--line); }
.privacy-points strong { display: block; margin-bottom: 4px; font-size: 16px; }
.privacy-points span { color: var(--muted); font-size: 14px; }
.store-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.store-note p { max-width: 64ch; margin: 0 0 6px; color: var(--muted); }
.store-note p:last-child { margin-bottom: 0; }
.store-note h2 { margin: 0 0 8px; font-size: 24px; }
.site-footer { display: flex; flex-direction: column; gap: 14px; padding-block: 26px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { text-decoration: none; }
.footer-family { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 14px; border-top: 1px solid rgba(205, 210, 255, .1); font-size: 12.5px; color: var(--muted); }
.footer-family-label { color: #8f96b3; font-weight: 600; }
.footer-family a { color: var(--text); text-decoration: none; }
.footer-family a:hover { color: #c7c5ff; text-decoration: underline; }
.footer-family-sep { color: rgba(205, 210, 255, .28); }
.page-main { padding-block: 52px 80px; }
.page-title { max-width: 820px; margin-bottom: 12px; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -.06em; }
.page-intro { max-width: 70ch; margin-bottom: 42px; color: var(--muted); font-size: 17px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; margin-bottom: 12px; font-size: 24px; letter-spacing: -.03em; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; font-size: 17px; color: var(--text); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-block: 8px; }
.notice { margin-block: 24px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid #817dff; border-radius: 12px; background: var(--panel); }
.notice-warn { border-color: var(--warn-border); border-left: 3px solid #f0b454; background: var(--warn-bg); }
.notice-warn p, .notice-warn li { color: var(--warn-text); }
.notice-warn strong { color: #ffe7bf; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.status-text { color: #d1ceff; font-weight: 700; }
.compat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 20px 28px; }
.compat-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.compat-card-unsupported { border-color: var(--warn-border); background: var(--warn-bg); }
.compat-card h3 { margin: 0 0 10px; font-size: 16px; }
.compat-card ul { margin: 0; padding-left: 20px; }
.compat-card li { margin-block: 6px; font-size: 14px; }
.compat-card-unsupported h3 { color: #ffe7bf; }
.compat-card-unsupported li { color: var(--warn-text); }
.rom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 16px 24px; }
.rom-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rom-card h3 { margin: 0 0 8px; font-size: 15px; color: #d6d4ff; }
.rom-card p { margin: 0; font-size: 14px; color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-block: 16px 28px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 18px; color: #b3b1ff; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq-body p:last-child { margin-bottom: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* In-app browser (WeChat / QQ) download guide modal */
.inapp-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 76px 20px 24px; background: rgba(4, 7, 16, .84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.inapp-overlay[hidden] { display: none; }
.inapp-arrow { position: fixed; top: 14px; right: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(167, 164, 255, .55); border-radius: 999px; background: #1d1b4b; color: #f2f3ff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.inapp-dialog { width: min(100%, 440px); padding: 24px 22px 22px; border: 1px solid rgba(167, 164, 255, .32); border-radius: 16px; background: var(--panel); box-shadow: 0 24px 64px rgba(0, 0, 0, .6); }
.inapp-dialog h2 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.inapp-dialog p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.inapp-steps { margin: 0 0 16px; padding-left: 20px; color: var(--text); font-size: 14px; }
.inapp-steps li { margin-block: 7px; }
.inapp-url-box { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: #d6d4ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; word-break: break-all; user-select: all; }
.inapp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inapp-actions .button { flex: 1 1 140px; min-height: 44px; padding: 10px 14px; }
.inapp-feedback { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; color: #9ee6b8; }
.sr-copy-temp { position: fixed; left: -9999px; top: 0; opacity: 0; }

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 36px), var(--max)); }
  .nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 42px 56px; min-height: auto; }
  .hero-art { width: min(100%, 500px); justify-self: center; max-height: none; }
  .privacy-split { grid-template-columns: 1fr; gap: 20px; }
  .compat-grid, .rom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { min-height: 64px; gap: 10px; }
  .nav { gap: 10px; font-size: 12px; }
  .nav .nav-store { display: none; }
  .locale-toggle { padding: 7px 9px; font-size: 12px; }
  .hero { padding-top: 38px; }
  h1 { font-size: clamp(40px, 11vw, 56px); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .section { padding-block: 52px; }
  .store-note { align-items: flex-start; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
