:root {
  --bg: #0b101c;
  --bg-elev: #111729;
  --bg-card: #161d31;
  --bg-soft: #1c2540;
  --line: rgba(46, 234, 209, 0.16);
  --line-strong: rgba(46, 234, 209, 0.38);
  --text: #e8eefc;
  --muted: #9aa6c3;
  --teal: #2eead1;
  --teal-deep: #1aa894;
  --gold: #f5a623;
  --pink: #fb7185;
  --shadow: 0 28px 80px rgba(4, 8, 20, 0.55);
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  color-scheme: dark;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(46, 234, 209, 0.14), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(251, 113, 133, 0.08), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(#000, transparent 92%);
  z-index: 0;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--teal);
  color: #06221d;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 28, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.nav-keep { display: inline; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}
.lang button[aria-pressed="true"] {
  background: rgba(46, 234, 209, 0.16);
  color: var(--teal);
}
[data-stars]:not([hidden]) {
  margin-left: 6px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.dots { display: inline-flex; gap: 6px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.dot-gold { background: var(--gold); }
.dot-teal { background: var(--teal); }
.dot-pink { background: var(--pink); }

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: #06221d;
}
.btn-primary:hover { background: #7ff3e3; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(46, 234, 209, 0.08); }
.btn-sm { padding: 8px 12px; font-size: 0.9rem; border-radius: 10px; }

.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a101c;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.frame img { width: 100%; height: auto; }

.section { padding: 72px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.section .sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 44rem;
}

.grid-3, .grid-2, .editions, .first-run {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.card .mark {
  width: 36px;
  height: 6px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.mark-teal { background: var(--teal); }
.mark-gold { background: var(--gold); }
.mark-pink { background: var(--pink); }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}
.thumbs {
  display: grid;
  gap: 10px;
}
.thumbs button {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
}
.thumbs button[aria-current="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(46, 234, 209, 0.25);
}
.thumbs img {
  width: 88px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.thumbs span { color: var(--muted); font-size: 0.88rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.92rem;
}
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  white-space: nowrap;
}
thead th {
  background: #121a2e;
  font-weight: 650;
}
thead th:first-child {
  z-index: 2;
  background: #121a2e;
}
th:first-child, td:first-child, tbody th[scope="row"] {
  text-align: left;
  position: sticky;
  left: 0;
  background: #141c30;
  z-index: 1;
  white-space: normal;
  min-width: 180px;
}
tbody tr:hover td,
tbody tr:hover th { background: rgba(46, 234, 209, 0.04); }
tbody tr:hover th[scope="row"] { background: #182238; }
.ok { color: var(--teal); }
.mid { color: var(--gold); }
.no { color: #6d7690; }

.editions { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 0; }
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
}
.price-amount {
  font-size: 2.15rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}
.price-period { color: var(--muted); font-size: 0.95rem; }
.price-hint {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}
.price-card ul { margin: 12px 0 0; padding: 0; list-style: none; flex: 1; }
.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}
.price-card .btn { width: 100%; margin-top: 18px; }
.price-card.pro { border-color: rgba(46, 234, 209, 0.35); }
.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(46, 234, 209, 0.28);
}
.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #06221d;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 9px;
}
.price-card.featured h3 { padding-right: 4.6rem; }
.price-legal {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 48rem;
}
.price-legal a { margin-left: 6px; }

.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none !important;
}
.platform:hover { border-color: var(--teal); }
.platform.recommended {
  border-color: var(--teal);
  background: rgba(46, 234, 209, 0.08);
}
.platform strong { font-size: 1rem; padding-right: 3.2em; }
.platform [data-size] { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.platform .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  color: #06221d;
  background: var(--teal);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.first-run { grid-template-columns: repeat(3, 1fr); }
pre {
  background: #0a101c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  color: var(--teal);
  font-size: 0.85rem;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { max-width: 36rem; }
.footer-brand p { margin: 0; }
.footer-ops { margin-top: 6px !important; font-size: 0.85rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-end;
  max-width: 36rem;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-nav a[aria-current="page"] { color: var(--teal); }

.legal-page {
  padding: 48px 0 80px;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.legal-updated {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0 0 32px;
}
.legal-doc { max-width: 46rem; }
.legal-doc h2 {
  font-size: 1.18rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.02em;
}
.legal-doc h3 {
  font-size: 1rem;
  margin: 1.3rem 0 0.4rem;
}
.legal-doc p,
.legal-doc li { color: var(--muted); }
.legal-doc p { margin: 0.7rem 0; }
.legal-doc ul,
.legal-doc ol { padding-left: 1.2rem; }
.legal-doc li { margin: 0.4rem 0; }
.legal-doc a { word-break: break-word; }
.legal-lead { color: var(--text) !important; }

.legal-callout {
  border: 1px solid rgba(46, 234, 209, 0.32);
  background: rgba(46, 234, 209, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
}
.legal-callout h2,
.legal-callout h3 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 1rem;
}
.legal-callout p:last-child,
.legal-callout ul:last-child { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
  max-width: 46rem;
}
.contact-grid article h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 650;
}
.contact-grid article p { margin: 0; }

[data-lang-block] { display: none; }
html[lang="zh-CN"] [data-lang-block="zh"],
html[lang="zh"] [data-lang-block="zh"] { display: block; }
html[lang="en"] [data-lang-block="en"] { display: block; }

@media (max-width: 960px) {
  .hero, .gallery, .grid-3, .editions, .platforms, .first-run {
    grid-template-columns: 1fr;
  }
  .nav-links > a { display: none; }
  .nav-links > a.nav-keep { display: inline; }
  .hero { padding-top: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .platform { transition: none; }
}
