:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #35485b;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

.download-page {
  position: relative;
  width: min(100%, 768px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff url("./assets/page-bg.png") top center / 100% auto no-repeat;
  box-shadow: 0 0 26px rgba(34, 48, 61, 0.08);
}

.app-card {
  width: min(390px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: clamp(300px, 34vh, 370px);
  text-align: center;
}

.app-logo {
  display: block;
  width: 122px;
  height: 122px;
  margin: 0 auto 30px;
  object-fit: contain;
}

.app-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 2px 28px;
}

.app-title img {
  width: 23px;
  height: 27px;
  object-fit: contain;
}

.app-title h1 {
  margin: 0;
  color: #35485b;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.divider {
  width: 100%;
  height: 1px;
  background: #d8dde2;
}

.app-meta {
  margin-top: 26px;
  color: #a5b2bd;
  font-size: 14px;
  line-height: 1.75;
}

.app-meta p {
  margin: 0;
}

.download-button {
  width: 200px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 50px;
  border-radius: 24px;
  color: #fff;
  background: #34b3ad;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(52, 179, 173, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
  background: #2da6a0;
}

.download-button:active {
  transform: scale(0.98);
}

.download-button:focus-visible {
  outline: 3px solid rgba(52, 179, 173, 0.3);
  outline-offset: 4px;
}

@media (max-width: 576px) {
  .download-page {
    box-shadow: none;
  }

  .app-card {
    width: min(390px, calc(100% - 56px));
    padding-top: clamp(230px, 34vh, 350px);
  }

  .app-logo {
    width: 108px;
    height: 108px;
    margin-bottom: 27px;
  }

  .app-title {
    gap: 21px;
    padding-bottom: 26px;
  }

  .app-title h1 {
    font-size: 23px;
  }

  .app-meta {
    margin-top: 24px;
    font-size: 13px;
  }

  .download-button {
    margin-top: 25px;
  }
}

@media (max-height: 700px) {
  .app-card {
    padding-top: 210px;
  }

  .app-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
  }

  .app-title {
    padding-bottom: 20px;
  }

  .app-meta {
    margin-top: 18px;
  }

  .download-button {
    margin-top: 20px;
  }
}

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