* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei',
    sans-serif;
  background: #f5f3ff;
}

.bg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  background-attachment: fixed;
  position: relative;
  width: 100%;
  min-height: 100svh;
}

.content {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.title {
  font-size: 1.35rem;
  font-weight: bold;
  margin: auto;
  padding: 3.2rem 1rem 1.5rem;
  text-align: center;
  color: #221266;
  line-height: 1.35;
}

.weixin {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 1rem auto;
  text-align: center;
  color: #221266;
}

.erweima {
  width: 11rem;
  height: 11rem;
  margin: 0.6rem auto 0;
  background-color: aliceblue;
  border-radius: 0.65rem;
  padding: 0.8rem;
}

.erweima img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0.25rem;
}

.uni-flex {
  display: flex;
  justify-content: space-between;
  margin: 2.8rem 1.4rem 0;
  flex-wrap: wrap;
  text-align: center;
}

.item {
  width: 50%;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #221266;
  line-height: 1.4;
  padding: 0 0.25rem;
}

.zixun {
  font-size: 1.05rem;
  font-weight: bold;
  text-align: center;
  position: fixed;
  bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  color: #221266;
  pointer-events: none;
}

.bottom {
  background-color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 2.2rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgb(34 18 102 / 0.06);
}

.btn {
  width: 100%;
  background-color: #0000ff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem;
  display: block;
  cursor: pointer;
}

.btn:active {
  opacity: 0.9;
}

.preview {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.preview[hidden] {
  display: none !important;
}

.preview img {
  width: min(80vw, 20rem);
  height: auto;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.toast {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.96);
  background: rgb(0 0 0 / 0.78);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
