:root {
  --bg: #f7f8fa;
  --ink: #102033;
  --ink-soft: #3a4d63;
  --line: rgba(16, 32, 51, 0.1);
  --blue: #1565d8;
  --blue-deep: #0d4eaf;
  --cyan: #12b5c9;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC", serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #fff; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  background: #f7f8fa;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.vr-scene { display: none; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  padding: 8px 12px;
  clip: auto;
  overflow: visible;
  background: var(--blue);
  color: #fff;
  z-index: 30;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.logo { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.brand strong {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.2;
}
.brand span { color: var(--ink-soft); font-size: 13px; }
.nav { display: flex; gap: 18px; }
.nav a, .nav-about { text-decoration: none; color: var(--ink-soft); font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .nav-about:hover { color: var(--blue-deep); font-weight: 700; }
.nav-about {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
}
.menu-btn svg { display: block; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.hero { padding: 48px 0 28px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
}
.hero-copy { max-width: none; }
.hero-shot {
  margin: 0;
  background: transparent;
  box-shadow: none;
}
.hero-shot img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s ease;
}
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.pill-row .free-flag { margin: 0; }
.pill.latest {
  display: inline-flex;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #102033;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 16px;
}
.free-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.1);
}
.kicker {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; }
h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.12;
}
.lead { max-width: 40em; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn.primary { background: linear-gradient(180deg, #3d94ff, var(--blue-deep)); color: #fff; box-shadow: 0 10px 24px rgba(11, 94, 215, 0.28); }
.btn.ghost { background: #fff; color: var(--ink); border-color: rgba(26, 124, 255, 0.35); }
.btn.block { width: 100%; }

.ticket, .dl-card, .feature, .rule-list li, .slide-frame {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.ticket {
  border-radius: 22px;
  padding: 26px 24px 22px;
}
.ticket .eyebrow, .kicker { font-weight: 700; }
.ticket .eyebrow { margin: 0; color: var(--blue-deep); letter-spacing: 0.14em; font-size: 12px; text-transform: uppercase; }
.ticket h2 { margin: 8px 0; font-size: 36px; }
.ticket p { margin: 0 0 18px; color: var(--ink-soft); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px auto 8px;
  text-align: center;
}
.stats article {
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow);
}
.stats strong { display: block; font-family: var(--serif); font-size: 32px; color: #102033; }
.stats span { color: var(--ink-soft); font-size: 15px; }
.ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--blue-deep);
  border: 1px solid rgba(21, 101, 216, 0.18);
  margin-bottom: 8px;
  box-shadow: 0 8px 16px rgba(16, 32, 51, 0.08);
}
.ico svg { width: 28px; height: 28px; display: block; }
.stats .ico { margin: 0 auto 8px; color: var(--blue-deep); }
.feature .head, .dl-card .head { display: flex; align-items: center; gap: 12px; }
.feature .head h3, .dl-card .head h3 { margin: 0; }
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s ease forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.feature:hover, .dl-card:hover, .stats article:hover, .cmp-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}

.section { padding: 72px 0; scroll-margin-top: 84px; }
.section h1, .section h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 10px; }
.section h1::after, .section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--blue);
}
.section-intro { max-width: 42em; color: var(--ink-soft); margin-top: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.feature { border-radius: 18px; padding: 22px; }
.idx { font-family: var(--serif); color: var(--blue); }
.feature h3 { margin: 6px 0 8px; font-size: 24px; }
.feature p { margin: 10px 0 0; color: var(--ink-soft); }

.download-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}
.dl-card {
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.dl-card h3 { font-size: 34px; margin: 10px 0; }
.dl-card p { color: var(--ink-soft); margin-top: 0; }
.dl-card ul { padding-left: 18px; margin: 0 0 22px; }
.dl-card li { margin: 6px 0; }
.dl-card .btn { margin-top: auto; }
.slider {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  column-gap: 20px;
  align-items: center;
  margin-top: 22px;
}
.slide-frame {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  height: min(68vh, 640px);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transition: opacity 0.28s ease;
}
.slide-frame img.is-swap { opacity: 0; }
.slide-nav {
  position: static;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--blue-deep);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  justify-self: center;
}
.slide-nav.prev { grid-column: 1; grid-row: 1; }
.slide-nav.next { grid-column: 3; grid-row: 1; }
.slide-nav:hover { background: var(--blue); color: #fff; }
.zoom-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.78);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.zoom-dialog {
  width: min(1080px, calc(100% - 20px));
  max-height: calc(100vh - 20px);
  margin: auto;
  border: 0;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}
.zoom-dialog::backdrop { background: rgba(16, 32, 51, 0.72); }
.zoom-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.zoom-bar button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.zoom-stage {
  overflow: auto;
  max-height: calc(100vh - 96px);
  border-radius: 12px;
  background: #f4f6f8;
  -webkit-overflow-scrolling: touch;
}
.zoom-stage img { width: 100%; height: auto; max-width: none; display: block; }
.slide-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.dots { display: flex; justify-content: center; gap: 10px; }
.dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(26, 124, 255, 0.28);
  cursor: pointer;
  padding: 0;
}
.dots button[aria-selected="true"] {
  background: var(--blue);
  transform: scale(1.25);
}
.slide-count { margin: 0; color: var(--ink-soft); font-size: 14px; }
.slide-copy {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.slide-copy strong { display: block; margin-bottom: 4px; }
.slide-copy span { color: var(--ink-soft); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.cmp-card {
  position: relative;
  border-radius: 20px;
  padding: 26px 26px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mark {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.mark.good { background: #d9f5e5; color: #0d6b3c; }
.mark.bad { background: #fde2e2; color: #9b2c2c; }
.ours .mark.good { background: #1f8f55; color: #fff; }
.cmp-card ul { margin: 12px 0 8px; padding-left: 0; list-style: none; }
.cmp-card li { margin: 10px 0; padding-left: 28px; position: relative; }
.cmp-card li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}
.ours li::before { content: "✓"; color: #fff; }
.store li::before { content: "×"; color: #c44747; }
.cmp-label { margin: 0; font-size: 13px; letter-spacing: 0.14em; font-weight: 700; }
.ours { background: #102033; color: #f4f7fb; }
.ours .cmp-label { color: #9ec0ef; }
.cmp-free {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
}
.store .cmp-label { color: #8a4b4b; }
.store li { color: var(--ink-soft); }

.refund-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 22px;
}
.refund-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
.refund-card h3 { margin: 0 0 10px; font-size: 26px; }
.refund-card ol { margin: 0; padding-left: 1.2em; }
.refund-card li { margin: 8px 0; }
.refund-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: rgba(16, 32, 51, 0.16); }
.refund-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#refund-template {
  margin: 12px 0 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f6f8fb;
  border-radius: 14px;
  padding: 14px;
  font-family: Consolas, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #24364c;
}
@media (max-width: 860px) {
  .refund-grid { grid-template-columns: 1fr; }
  .refund-head { align-items: flex-start; flex-direction: column; }
}
.crumb {
  width: min(var(--max), calc(100% - 40px));
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.crumb a { color: var(--blue-deep); text-decoration: none; }
.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 8px;
}
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0; }
.footer-copy { user-select: all; cursor: text; }
.footer-inner p { margin: 0; }
.donate-dialog {
  border: 0;
  border-radius: 20px;
  padding: 22px;
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.donate-dialog::backdrop { background: rgba(16, 32, 51, 0.46); }
.donate-dialog h2 { margin: 0 0 8px; padding-right: 42px; font-size: 28px; }
.donate-dialog p { margin: 0 0 14px; color: var(--ink-soft); }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.donate-grid figure { margin: 0; text-align: center; }
.donate-grid img { width: min(100%, 240px); height: auto; margin: 0 auto; border-radius: 12px; background: #fff; }
.donate-grid figcaption { margin-top: 6px; font-weight: 700; }
.dialog-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dialog-x:hover { background: #e7ebf0; }
.about-dialog {
  border: 0;
  border-radius: 20px;
  padding: 26px 24px 20px;
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.about-dialog::backdrop { background: rgba(16, 32, 51, 0.46); }
.about-dialog h2 { margin: 0 0 8px; padding-right: 42px; font-size: 30px; }
.about-lead { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.about-points { margin: 0 0 18px; padding: 0; list-style: none; }
.about-points li {
  margin: 8px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f7f9;
  line-height: 1.6;
}
.about-points li:first-child { background: #fdeeee; color: #8d1d1d; font-weight: 700; }
.about-dialog h3 { margin: 0 0 10px; font-size: 20px; }
.about-apps { display: grid; gap: 8px; }
.about-apps a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--blue-deep);
  background: #fff;
}
.about-apps a::after { content: "›"; font-size: 22px; line-height: 1; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(26, 124, 255, 0.35)); }
}
@keyframes drift { from { background-position: 0 0; } to { background-position: 0 48px; } }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .slider {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "frame frame"
      "prev next"
      "meta meta";
    row-gap: 12px;
    column-gap: 12px;
  }
  .slide-frame { grid-area: frame; height: auto; }
  .slide-frame img { width: 100%; height: auto; }
  .slide-nav.prev { grid-area: prev; justify-self: end; }
  .slide-nav.next { grid-area: next; justify-self: start; }
  .slide-meta { grid-area: meta; margin-top: 0; }
  .slide-nav { width: 48px; height: 48px; font-size: 28px; }
  .zoom-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); padding: 10px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 32, 51, 0.06);
  }
  .nav a, .nav-about { padding: 10px 0; font-size: 17px; text-align: left; }
  .nav.open { display: flex; }
  .header-inner { gap: 8px; min-height: 60px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 16px; }
  .brand span { display: none; }
  .logo { width: 32px; height: 32px; }
  .pill.latest, .free-flag { letter-spacing: 0.04em; font-size: 14px; padding: 6px 12px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .refund-actions .btn { width: 100%; }
  .hero-layout, .download-layout, .feature-grid, .compare-grid, .stats { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .hero { padding: 28px 0 12px; }
  .hero-copy { max-width: none; }
  h1 { font-size: 34px; }
  .lead, .section-intro { font-size: 16px; }
  .free-flag { font-size: 15px; letter-spacing: 0.12em; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 48px 0; }
  .dl-card h3, .cmp-free { font-size: 30px; }
  .donate-grid { grid-template-columns: 1fr; }
  .wrap, .crumb { width: min(var(--max), calc(100% - 20px)); }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .slide-frame img { transition: none; }
}
