html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  min-width: 0;
  background: #ffffff;
  color: #333333;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

button {
  font: inherit;
}

.box {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  overflow-x: hidden;
}

.bot {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 1182;
  overflow: hidden;
}

.hero-media,
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.download-actions {
  position: absolute;
  top: 65%;
  left: 36%;
  display: flex;
  width: max-content;
  gap: clamp(10px, 1vw, 24px);
  transform: translateX(-50%);
}

.download-button {
  display: flex;
  width: clamp(120px, 11vw, 240px);
  aspect-ratio: 2.5;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.65vw, 14px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(25, 32, 55, 0.2);
  color: #ffffff;
  cursor: pointer;
  line-height: 1.1;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.download-icon {
  display: block;
  width: clamp(24px, 2.2vw, 48px);
  height: clamp(24px, 2.2vw, 48px);
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.download-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.download-button:hover {
  box-shadow: 0 10px 24px rgba(25, 32, 55, 0.28);
  transform: translateY(-2px);
}

.download-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.download-platform {
  font-size: clamp(13px, 1vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.download-label {
  margin-top: clamp(2px, 0.2vw, 5px);
  font-size: clamp(9px, 0.7vw, 15px);
  white-space: nowrap;
}

.app-store-button {
  background: linear-gradient(135deg, #5597ff, #3579e8);
}

.google-play-button {
  background: linear-gradient(135deg, #66d447, #38ad32);
}

.official-apk-button {
  background: linear-gradient(135deg, #ffad42, #f17622);
}

.top {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 4vw, 80px);
  padding: clamp(20px, 2.5vw, 44px) clamp(12px, 3vw, 48px);
  color: #888888;
  font-size: clamp(18px, 1.45vw, 28px);
  font-weight: 400;
}

.home,
.nav-link {
  padding: 0 clamp(8px, 1.5vw, 28px);
  white-space: nowrap;
}

.word {
  display: flex;
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 48px) 0 clamp(34px, 4vw, 64px);
  text-align: left;
}

.word_title {
  color: #333333;
  font-size: clamp(17px, 1.15vw, 22px);
  font-weight: bold;
}

.word p {
  margin-top: 8px;
  color: #333333;
  font-size: clamp(14px, 1vw, 19px);
}

.nav-link {
  color: #adb5bd;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: #555555;
}

.nav-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #6d4cc4;
  outline-offset: 4px;
}

footer {
  display: flex;
  min-height: clamp(38px, 3vw, 58px);
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 16px;
  background: #666666;
  color: white;
  font-size: clamp(11px, 0.85vw, 16px);
  text-align: center;
}

@media (max-width: 767px) {
  .top {
    gap: clamp(2px, 2vw, 10px);
    padding: clamp(18px, 6vw, 28px) 8px;
    font-size: clamp(15px, 4.4vw, 18px);
  }

  .home,
  .nav-link {
    padding: 0 clamp(7px, 2.5vw, 12px);
  }

  .bot {
    aspect-ratio: 1500 / 1996;
  }

  .download-actions {
    top: 65%;
    left: 50%;
    gap: clamp(5px, 2vw, 10px);
  }

  .download-button {
    width: clamp(88px, 27vw, 150px);
    gap: clamp(4px, 1.3vw, 7px);
    box-shadow: 0 5px 12px rgba(25, 32, 55, 0.2);
  }

  .download-icon {
    width: clamp(20px, 6vw, 34px);
    height: clamp(20px, 6vw, 34px);
  }

  .download-button:focus-visible {
    outline-width: 2px;
    outline-offset: 2px;
  }

  .download-platform {
    font-size: clamp(10px, 2.8vw, 16px);
  }

  .download-label {
    margin-top: 2px;
    font-size: clamp(8px, 2.2vw, 12px);
  }

  .word {
    width: min(100% - 32px, 520px);
    justify-content: center;
    padding: clamp(24px, 7vw, 38px) 0 clamp(34px, 10vw, 52px);
    text-align: center;
  }

  .word_title {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  .word p {
    margin-top: 7px;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  footer {
    min-height: 42px;
    font-size: clamp(10px, 3vw, 13px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button,
  .nav-link {
    transition: none;
  }
}
