:root {
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --card: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --accent: #e53935;
  --accent-text: #ffffff;
  --afdian: #946ce6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 30px rgb(0 0 0 / 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-alt: #18181b;
    --card: #1f1f23;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2e2e33;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 30px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  font: inherit; font-size: 14px; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px;
}
.lang:hover { background: var(--bg-alt); }
.gh { display: flex; color: var(--muted); }
.gh:hover { color: var(--text); }

.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero-icon { margin: 0 auto 24px; width: 96px; height: 96px; filter: drop-shadow(0 8px 20px rgb(0 0 0 / 0.18)); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 20px auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.afdian { background: var(--afdian); border-color: var(--afdian); color: #fff; }
.sub-link { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 15px; }
.note { color: var(--muted); margin: 16px auto 0; max-width: 520px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 18px; }
.hero-shot {
  margin: 48px auto 0; max-width: 1040px;
  border-radius: 12px 12px 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.18);
}

.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; text-align: center; font-weight: 750; }
.section-lead { color: var(--muted); font-size: 18px; text-align: center; max-width: 680px; margin: 14px auto 0; }

.highlight {
  display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
  margin-top: 72px;
}
.highlight.flip .hl-text { order: 2; }
.hl-text h3 { font-size: 26px; letter-spacing: -0.01em; }
.hl-text p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.shot, .platforms img, .skins img {
  border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.skins { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.skins figure:first-child { grid-column: 1 / -1; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card-icon { font-size: 22px; line-height: 1; margin-bottom: 14px; }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: end; }

.table { margin-top: 48px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.row {
  display: grid; grid-template-columns: 300px 1fr 28px; gap: 16px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--line); text-decoration: none;
}
.row:first-child { border-top: 0; }
.row.head { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--bg-alt); }
a.row:hover { background: var(--bg-alt); }
.pkg { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); min-width: 68px; text-align: center;
}
.for { color: var(--muted); font-size: 15px; }
.arrow { color: var(--accent); display: flex; justify-content: flex-end; }

.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.note-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.note-card h4 { font-size: 15px; }
.note-card p { color: var(--muted); font-size: 14px; margin: 6px 0 0; overflow-wrap: anywhere; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.two ul { list-style: none; padding: 0; margin: 16px 0 0; }
.two li { position: relative; padding-left: 28px; margin-top: 10px; color: var(--muted); }
.two li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.check li::before { content: "✓"; color: #16a34a; }
.out li::before { content: "↗"; color: var(--accent); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; overflow-wrap: anywhere; }

#support .cta { margin-top: 32px; }
.links { color: var(--muted); margin-top: 24px; font-size: 15px; }

.footer { padding: 40px 0; color: var(--muted); font-size: 14px; text-align: center; }
.footer p { margin: 4px 0; }

.noscript { max-width: 640px; margin: 80px auto; padding: 0 20px; text-align: center; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .highlight { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .highlight.flip .hl-text { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr 24px; }
  .row .for { grid-column: 1; grid-row: 2; }
  .row .arrow { grid-row: 1 / 3; grid-column: 2; }
  .row.head span:last-child { display: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 48px; }
  .section { padding: 64px 0; }
  .grid, .platforms, .notes, .two { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

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