:root {
  --blue: #254dff;
  --orange: #ff5515;
  --content: 62.61vw;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { display: block; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
.content { width: var(--content); margin-inline: auto; }
.topbar { position: absolute; inset: 0 0 auto; z-index: 2; color: #fff; }
.topbar-inner {
  width: 74.7vw;
  height: 4.83vw;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 左 logo / 中 导航（页面正中）/ 右 下载按钮 */
  align-items: center;
  gap: 2vw;
  font-size: .94vw;
}
.brand { justify-self: start; }
.brand img { width: 9.3vw; height: auto; filter: brightness(0) invert(1); }
.topbar nav { display: flex; align-items: center; gap: 4.35vw; }
.special { position: relative; }
.special span { position: absolute; top: -.48vw; left: 100%; background: #ff6334; color: #fff; border-radius: .8vw; padding: .04vw .19vw; font-size: .46vw; line-height: 1.25; }
.mobile-download { position: relative; justify-self: end; }
.mobile-button { display: flex; align-items: center; justify-content: center; gap: .46vw; min-width: 10.45vw; height: 2.9vw; padding-inline: 1vw; border-radius: 3vw; background: var(--blue); white-space: nowrap; }
.mobile-button img { width: 1.22vw; height: 1.22vw; filter: brightness(0) invert(1); }
.hero { height: 51.48vw; position: relative; background: url("assets/main-top_cd2f79d.webp") center / cover no-repeat; }
.hero h1 { position: absolute; left: 50%; top: 10.57vw; transform: translateX(-50%); width: 28.04vw; }
.hero h1 img { width: 100%; height: auto; }
.hero-pet, .hero-typing { position: absolute; object-fit: contain; }
.hero-pet { left: 14.61vw; top: 20.43vw; width: 14.09vw; height: 11.52vw; }
.hero-typing { left: 23.74vw; top: 29.61vw; width: 28.91vw; height: 11.52vw; }
.download { display: inline-flex; align-items: center; justify-content: center; gap: .45vw; background: #fff; color: var(--blue); border-radius: 4vw; height: 3.13vw; min-width: 10.04vw; font-size: 1.04vw; font-weight: 500; }
.download img { width: 1.22vw; height: 1.22vw; }
.hero-download { position: absolute; top: 18.3vw; left: 50%; transform: translateX(-50%); }
h2 { text-align: center; font-size: 2.174vw; font-weight: 650; line-height: 3.48vw; }
h2 span { color: var(--orange); }
.subtitle { text-align: center; color: #0009; font-size: .783vw; line-height: 2.09vw; margin-top: .26vw; }
.skin-section, .pet-section, .search-section, .mobile-section { margin-top: 6.52vw; }
.skin-window { overflow: hidden; }
.skin-track { display: flex; width: max-content; animation: skin-scroll 35s linear infinite; animation-delay: 2s; }
.skin-track:hover, .skin-track:focus-within { animation-play-state: paused; }
.skin-track img { flex: none; width: 131.09vw; height: 24.3vw; margin-right: 1.96vw; }
@keyframes skin-scroll { to { transform: translateX(-50%); } }
.pet-gallery { position: relative; margin-top: 2.61vw; aspect-ratio: 2888 / 1420; }
.pet-panel { position: relative; height: 100%; overflow: hidden; border-radius: 1.22vw; }
.pet-poster { width: 100%; height: 100%; object-fit: contain; }
.pet-overlay { position: absolute; object-fit: contain; pointer-events: none; }
.pet-1 .pet-overlay { width: 53.5%; height: 81.7%; left: 23.8%; bottom: 17.8%; }
.pet-2 .pet-overlay { width: 26.78%; height: 81.69%; left: 47.99%; bottom: 6.62%; }
.pet-3 .pet-overlay { width: 26.78%; height: 81.69%; left: 43.35%; bottom: 17.75%; }
.pet-4 .pet-overlay { width: 26.78%; height: 81.69%; left: 45.76%; bottom: 23.66%; }
.pet-controls { position: absolute; right: 3.6%; top: 10%; bottom: 10%; display: flex; flex-direction: column; justify-content: space-between; gap: .45vw; }
.pet-controls button { border: 0; padding: 0; background: transparent; border-radius: 50%; cursor: pointer; opacity: .72; width: 5.2vw; aspect-ratio: 1; }
.pet-controls button:hover, .pet-controls button[aria-pressed="true"] { opacity: 1; }
.pet-controls img { width: 100%; height: 100%; object-fit: contain; }
.search-cards { margin-top: 2.61vw; display: grid; gap: 1.3vw; }
.search-cards img { width: 100%; height: auto; }
.mobile-showcase { width: 100%; height: auto; margin-top: 2.5vw; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: .65vw;
  color: #0009;
  font-size: .783vw;
  margin-top: 4.52vw;
  padding-bottom: 8.45vw; /* 给底部悬浮“立即下载”条留出空间 */
}
.footer-grid h3 { font-size: .93vw; color: #161616; margin-bottom: 1.7vw; }
.footer-grid p { margin-bottom: .52vw; }
.footer-platforms { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: .37vw .8vw; }
footer a:hover { color: var(--blue); }
.bottom-download { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; height: 7.83vw; display: flex; justify-content: center; align-items: end; padding-bottom: 1.12vw; background: linear-gradient(transparent, #fff 44%); }
.bottom-download .download { border: 1px solid var(--blue); min-width: 10.43vw; }
.bottom-download:not(.visible) { visibility: hidden; pointer-events: none; }
/* 子页面导航选中态（帮助中心 / 常见问题） */
.nav-link.is-active { position: relative; color: #fff; font-weight: 600; }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.55vw; height: 2px; border-radius: 2px; background: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .skin-track { animation: none; } }
@media (max-width: 700px) {
  :root { --content: 90vw; }
  .topbar-inner { width: 94vw; height: 9vw; font-size: 2vw; }
  .topbar nav { gap: 2vw; }
  .mobile-download { margin-left: 0; }
  .brand img { width: 20vw; }
  .mobile-button { height: 5vw; }
  .mobile-button img { display: none; }
  .special span { font-size: 1vw; }
  .download { min-width: 16vw; min-height: 5vw; font-size: 2vw; }
  .download img { width: 2vw; height: 2vw; }
  h2 { font-size: 4vw; line-height: 1.4; }
  .subtitle { font-size: 2vw; line-height: 1.6; }
  .pet-controls button { width: 7vw; }
  .footer-grid { flex-wrap: wrap; font-size: 2vw; gap: 2vw 3vw; }
  .footer-grid h3 { font-size: 2.25vw; }
  .bottom-download { height: 11vw; }
  .bottom-download .download { min-width: 16vw; }
}
