/* 极简版 - APP下载页 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  overflow: hidden;
  background-color: #f5f5f5;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  position: relative;
}

/* 背景图片 */
.container .bg_img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.container .bg_img .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 中央内容区 */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.logo {
  width: 260px;
  height: 260px;
  border-radius: 60px;
  margin-bottom: 40px;
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); */
  transition: transform 0.3s ease;
  background-color: #fff;
}

.logo:active {
  transform: scale(0.95);
}

.app-name {
  font-size: 64px;
  font-weight: 700;
  color: #071122;
  text-align: center;
  letter-spacing: 4px;
  /* text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); */
}

/* 底部按钮区 */
.bottom {
  width: 100%;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

.download-btn {
  display: block;
  width: 100%;
  height: 100px;
  line-height: 100px;
  text-align: center;
  background: linear-gradient(135deg, #1e3d74 0%, #2a5298 100%);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(30, 61, 116, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.download-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(30, 61, 116, 0.3);
}

/* 响应式适配 */
@media screen and (max-width: 600px) {
  .container {
    padding: 0 30px;
  }

  .logo {
    width: 220px;
    height: 220px;
    border-radius: 50px;
    margin-bottom: 30px;
  }

  .app-name {
    font-size: 54px;
    letter-spacing: 3px;
  }

  .download-btn {
    height: 88px;
    line-height: 88px;
    font-size: 32px;
    border-radius: 44px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 24px;
  }

  .content {
    padding-top: 60px;
  }

  .logo {
    width: 180px;
    height: 180px;
    border-radius: 42px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  }

  .app-name {
    font-size: 44px;
    letter-spacing: 2px;
  }

  .bottom {
    padding-bottom: 50px;
  }

  .download-btn {
    height: 76px;
    line-height: 76px;
    font-size: 28px;
    border-radius: 38px;
  }
}

@media screen and (max-width: 375px) {
  .container {
    padding: 0 20px;
  }

  .logo {
    width: 160px;
    height: 160px;
    border-radius: 38px;
    margin-bottom: 20px;
  }

  .app-name {
    font-size: 38px;
  }

  .download-btn {
    height: 68px;
    line-height: 68px;
    font-size: 24px;
    border-radius: 34px;
  }
}

/* iPhone X及以上机型的安全区域适配 */
@supports (padding: max(0px)) {
  .bottom {
    padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 20px));
  }
}

/* 横屏适配 */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .content {
    padding-top: 40px;
  }

  .logo {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    margin-bottom: 16px;
  }

  .app-name {
    font-size: 32px;
  }

  .bottom {
    padding-bottom: 30px;
  }

  .download-btn {
    height: 56px;
    line-height: 56px;
    font-size: 20px;
    border-radius: 28px;
  }
}
