:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f0f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f5f0f8;
  -webkit-tap-highlight-color: transparent;
}

button, a { font: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #8b59ca;
  outline-offset: 2px;
}

.official-page {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  overflow-x: clip;
  background: #fff;
}

.official-segment {
  position: relative;
  width: 100%;
  line-height: 0;
}

.official-segment-bottom { container-type: inline-size; }

.official-art, .official-art img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 1;
  display: block;
  background: transparent;
  color: transparent;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.hotspot:focus-visible {
  border-radius: 5px;
  outline: 2px solid #8b59ca;
  outline-offset: 1px;
}

.nav-features { top: .2%; left: 46%; width: 7.2%; height: 2%; }
.nav-characters { top: .2%; left: 53.1%; width: 7.8%; height: 2%; }
.nav-download { top: .2%; left: 60.5%; width: 7.6%; height: 2%; }
.nav-tutorial { top: .2%; left: 68%; width: 9%; height: 2%; }
.nav-faq { top: .2%; left: 77%; width: 8%; height: 2%; }
.nav-header-download { top: .1%; left: 87%; width: 11.5%; height: 2.2%; }

.hero-download { top: 17%; left: 7%; width: 36%; height: 3.2%; }
.hero-more { top: 17%; left: 44%; width: 21%; height: 3.2%; }
.download-android { top: 29.7%; left: 60%; width: 16%; height: 3%; }
.download-ios { top: 29.7%; left: 77%; width: 16%; height: 3%; }
.download-qrcode { top: 23.5854%; left: 70.2083%; width: 11.40625%; height: 5.63272%; aspect-ratio: 1; overflow: hidden; background: #fff; }
.download-qrcode img { display: block; width: 100%; height: 100%; object-fit: contain; }
.campaign-join { top: 39.5%; left: 75%; width: 19%; height: 3.1%; }

.scroll-target {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 12px;
  pointer-events: none;
}

.target-download { top: 21%; }
.target-features { top: 45%; }
.target-characters { top: 63%; }
.target-tutorial { top: 29.5%; }

.faq-section {
  position: absolute;
  z-index: 1;
  top: 73.6%;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 0 32px;
  color: #675985;
  background: rgba(255, 250, 255, .985);
  line-height: 1.6;
  scroll-margin-top: 12px;
}

.faq-content {
  width: 65%;
  max-width: 1240px;
  margin-inline: auto;
}

.faq-title {
  margin: 0 0 6px;
  color: #554675;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.faq-subtitle {
  margin: 0;
  color: #80739d;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(159, 127, 194, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(126, 88, 164, .08);
}

.faq-item summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  color: #665783;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary::after {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid #9379bb;
  border-bottom: 2px solid #9379bb;
  content: "";
  transform: translateY(-3px) rotate(45deg);
  transition: transform 180ms ease;
}

.faq-item[open] summary { color: #805ab1; }
.faq-item[open] summary::after { transform: translateY(3px) rotate(225deg); }

.faq-item p {
  margin: 0 20px 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(159, 127, 194, .16);
  color: #746b86;
  font-size: 14px;
  line-height: 1.85;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 11px 15px;
  border-radius: 7px;
  color: #fff;
  background: rgba(48, 36, 66, .94);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 640px) {
  .faq-section {
    top: 73.6%;
    padding: 18px 16px 28px;
  }

  .faq-title {
    margin-bottom: 5px;
    font-size: 20px;
  }

  .faq-subtitle { font-size: 14px; }

  .faq-list {
    gap: 8px;
    margin-top: 14px;
  }

  .faq-item summary {
    min-height: 48px;
    gap: 10px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .faq-item p {
    margin: 0 12px 13px;
    padding-top: 10px;
    font-size: 14px;
  }
}

@supports (font-size: 1cqi) {
  .faq-section { padding: 1cqi 0 1.7cqi; }

  .faq-title {
    margin-bottom: .3cqi;
    font-size: 4cqi;
  }

  .faq-subtitle { font-size: 2.2cqi; }

  .faq-list {
    gap: 1.05cqi;
    margin-top: 1.8cqi;
  }

  .faq-item {
    border-radius: .8cqi;
    box-shadow: 0 .2cqi .75cqi rgba(126, 88, 164, .08);
  }

  .faq-item summary {
    min-height: 5.5cqi;
    gap: 1cqi;
    padding: .6cqi 2.1cqi;
    font-size: 2.1cqi;
  }

  .faq-item summary::after {
    width: 1.8cqi;
    height: 1.8cqi;
    flex-basis: 1.8cqi;
    border-width: .12cqi;
    transform: translateY(-.16cqi) rotate(45deg);
  }

  .faq-item[open] summary::after { transform: translateY(.16cqi) rotate(225deg); }

  .faq-item p {
    margin: 0 2.1cqi 1.7cqi;
    padding-top: 1.1cqi;
    font-size: 1.7cqi;
  }
}
