@font-face {
  font-family: 'HarmonyOS Sans SC';
  src: url('./font/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'HarmonyOS Sans SC Regular', sans-serif;
  user-select: none;
}

.container {
  width: 100%;
  height: 100%;
  background-image: url('./imgs/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.page {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  gap: 20px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page > * {
  position: relative;
  z-index: 2;
}

.desc-content {
  margin-top: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.desc-content h1,
.desc-content h3 {
  opacity: 0;
}

.page img {
  opacity: 0;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInUp-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.animate-fadeInUp-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

#page1 .desc-content h1 {
  animation: fadeInUp 0.8s ease-out forwards;
}

#page1 .desc-content h3 {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

#page1 img {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

img {
  width: 287px;
}

h1 {
  color: #ff4444;
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0px;
}

h3 {
  margin-top: 14px;
  font-family: 'HarmonyOS Sans SC', sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0px;
  color: #666666;
}

p {
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.bottom-container {
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 30px;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.download-btn {
  width: 257px;
  height: 44px;
  border-radius: 24px;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ff4444;
  box-shadow: 0px 6px 12px 0px rgba(255, 68, 68, 0.0902);
  outline: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 500;
  font-family: 'HarmonyOS Sans SC Medium', sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

@keyframes ripple {
  to {
    transform: scale(15);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s linear;
}

.download-btn:focus {
  outline: none;
}

.download-btn:focus-visible {
  box-shadow: 0px 0px 0px 2px white, 0px 0px 0px 4px rgba(255, 68, 68, 0.5);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 15px 0px rgba(255, 68, 68, 0.2);
  background: #ff5555;
}

.download-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0px 4px 8px 0px rgba(255, 68, 68, 0.15);
  background: #ff3333;
}

.scroll-btn {
  margin-top: 26px;
  width: 16px;
  height: 16px;
  background-image: url('./imgs/arrow_down.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  z-index: 100;
  background-color: transparent;
  animation: bounce 2s infinite;
}
.browser-tip {
  position: sticky;
  z-index: 3;
  width: 100%;
  height: 0;
  font-family: 'HarmonyOS Sans SC', sans-serif;
  padding: 0 66px 0 36px;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  transition: height 0.4s ease-out;
  overflow: hidden;
}
.browser-tip.show {
  height: 100px;
}
.alert-arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
}
