:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(148, 69, 255, 0.34), transparent 42%),
    linear-gradient(180deg, #140122 0%, #0b0117 100%);
  --page-max-width: 560px;
  --body-art-ratio: calc(720 / 2281);
  --shell-radius: 32px;
  --border-color: rgba(255, 255, 255, 0.12);
  --panel-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.mobile-shell {
  min-height: 100vh;
  padding: 24px 16px 36px;
}

.mobile-shell__device {
  position: relative;
  width: min(100%, var(--page-max-width));
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--shell-radius);
  overflow: clip;
  background: linear-gradient(180deg, rgba(8, 3, 20, 0.96), rgba(10, 3, 18, 0.92));
  box-shadow: var(--panel-shadow);
}

.landing-reference {
  position: relative;
  aspect-ratio: var(--body-art-ratio);
  overflow: hidden;
  background: #21002c;
}

.landing-reference__background {
  position: absolute;
  inset: 0;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  z-index: 0;
}

.landing-reference::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
  pointer-events: none;
}

.reference-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--page-max-width));
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(14, 3, 18, 0.38);
}

.reference-header__bar,
.reference-footer__bar {
  width: 100%;
  height: 117px;
  object-fit: cover;
  opacity: 0.96;
}

.reference-header__logo {
  position: absolute;
  left: 18px;
  top: calc(env(safe-area-inset-top, 0) + 15px);
  display: inline-flex;
  width: 198px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.reference-header__button {
  position: absolute;
  right: 18px;
  top: calc(env(safe-area-inset-top, 0) + 24px);
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 174px;
  animation: pulse-scale 0.9s infinite;
}

.reference-header__button img {
  width: 100%;
  transform: scaleY(1.2);
  transform-origin: center;
}

.reference-header__logo:hover,
.reference-header__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.42);
}

.reference-main {
  position: relative;
  z-index: 1;
  padding: 138px 0 184px;
  min-height: 100%;
}

.reference-banner {
  position: relative;
  width: 100%;
  padding: 16px 14px 0;
}

.reference-banner__image {
  width: 100%;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
}

.reference-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--page-max-width));
  z-index: 30;
  background: rgba(14, 3, 18, 0.38);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.reference-footer__buttons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 20px;
}

.reference-footer__button {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.reference-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.reference-footer__icon img {
  width: 100%;
  max-width: 227px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.reference-footer__text {
  display: inline-flex;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  margin-top: -2px;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@keyframes pulse-scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 420px) {
  .mobile-shell {
    padding: 0;
  }

  .mobile-shell__device {
    width: 100%;
    border: none;
    border-radius: 0;
  }

  .reference-header__logo {
    width: 180px;
  }

  .reference-header__button {
    width: 159px;
    top: calc(env(safe-area-inset-top, 0) + 27px);
  }
}
