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

body {
  max-height: 100%;
  color: #fff;
  background: #020b24 url("./pc/bg.jpg") center / cover no-repeat;
  font-family: "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  overflow: hidden;
}

main {
  height: 100%;
}

.pc,
.h5 {
  height: 100%;
}

.h5 {
  display: none;
}

.btn {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.btn img {
  display: block;
  width: 100%;
  height: auto;
}

/* -------- PC：logo 在三按钮正上方并水平居中对齐 -------- */
.pc-stage {
  box-sizing: border-box;
  height: 100%;
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 0 0 0 7.5vw;
  display: flex;
  align-items: center;
}

.pc-panel {
  width: min(430px, 32vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.pc-logo {
  width: 58%;
  max-width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
}

.pc-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pc-stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pc-actions .btn-browse {
  width: 100%;
}

/* -------- H5 -------- */
@media (max-width: 900px), (orientation: portrait) {
  body {
    background: #020b24;
  }

  .pc {
    display: none;
  }

  .h5 {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    /* 常规手机：铺满，对齐顶部 */
    background: #020b24 url("./app/bg.jpg") center top / cover no-repeat;
  }

  .h5-artboard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
  }

  .h5-panel {
    position: absolute;
    left: 50%;
    top: calc(7.5% + 20px);
    transform: translateX(-50%);
    width: min(640px, 86vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1;
  }

  .h5-logo {
    width: min(152px, 34vw);
    height: auto;
    display: block;
    object-fit: contain;
  }

  .h5-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .h5-stores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .h5-actions .btn-browse {
    width: 100%;
    margin-top: 0;
  }

  /* -------- 小屏 / 矮屏：完整显示背景（含手机底座），并压缩顶部区域 -------- */
  @media (max-height: 760px), (max-width: 380px) {
    .h5 {
      /* 按高度完整装入，避免底部被裁切 */

      background-size: 100% 100%;
      background-position: center bottom;
    }

    .h5-panel {
      top: 8.8%;
      width: min(560px, 78vw);
      gap: 10px;
    }

    .h5-logo {
      width: min(112px, 26vw);
    }

    .h5-actions {
      gap: 8px;
    }

    .h5-stores {
      gap: 8px;
    }
  }
}
