@font-face {
  font-family: HarmonyOS_Sans_SC_Medium;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/HarmonyOS_Sans_SC_Medium.woff2") format("woff2"),
    url("../fonts/HarmonyOS_Sans_SC_Medium.woff") format("woff");
}

* {
  font-family: HarmonyOS_Sans_SC_Medium;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  background-size: cover;
  user-select: none;
  img {
    -webkit-user-drag: none;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: -2;
}

/* 默认情况下，不限制容器高度 */
.container {
  display: flex;
  flex-direction: column;
  text-align: center;
  z-index: 0;
  position: relative;
  background-image: url("../images/banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}
::-webkit-scrollbar {
  display: none;
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.logo {
  user-select: none;
}

.logo img {
  height: 170px;
  width: 200px;
  -webkit-user-drag: none;
}

.title {
  font-size: 48px;
  text-align: center;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 卡片样式 */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 0;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-inner {
  padding: 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: var(--animation-delay);
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.card-content {
  font-size: 18px;
  color: white;
  line-height: 1.6;
}

/* 进入动画 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 二维码区域的样式 */
.qrcode-section {
  margin-top: 40px;
  text-align: center;
}

.qrcode-title {
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.qrcodes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 150px;
  position: relative;
  overflow: hidden;
}

.qrcode:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.qrcode-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: var(--animation-delay);
}

.qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
}

.qrcode p {
  margin: 10px 0 0 0;
  font-size: 18px;
  color: white;
}

/* 底部样式 */
.footer {
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  color: white;
  padding: 10px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  color: rgb(135, 181, 255);
}

/* 全屏动画样式 */
.fullScreen-animation {
  animation: lay_out 0.5s ease-in-out 1.5s;
  animation-fill-mode: forwards;
  background-color: #fff;
  height: 100vh;
  position: fixed;
  text-align: left;
  top: 0;
  width: 100vw;
  z-index: 1050;
}

.fullScreen-animation .header-banner-icon {
  animation: move_left 1s linear;
  animation-fill-mode: forwards;
  background-color: #fff;
  background-image: url(../images/logo.png);
  width: 85px;
  height: 85px;
  z-index: 2;
}

.fullScreen-animation .header-banner-icon,
.fullScreen-animation .title-box {
  background-repeat: no-repeat;
  background-size: contain;
  height: 75px;
  left: 50%;
  position: absolute;
  top: calc(50% - 40px);
}

.fullScreen-animation .header-banner-icon:before {
  animation: scale_min 1s ease-in-out 1.5s;
  animation-fill-mode: forwards;
  background-color: #fff;
  content: " ";
  display: block;
  height: 75px;
  position: absolute;
  right: 100%;
  width: 500%;
}

.fullScreen-animation .title-box {
  animation: move_right 1s linear;
  animation-fill-mode: forwards;
  background-image: url(../images/results.svg);
  background-position: 50%;
  opacity: 0;
  transform: translateX(-40%);
  width: 360px;
}

@keyframes lay_out {
  0% {
    opacity: 1;
    display: block;
  }
  100% {
    opacity: 0;
    z-index: 1;
    display: none;
  }
}

@keyframes move_left {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(-250%);
  }
}

@keyframes scale_min {
  0% {
    background-color: transparent;
    height: 0;
    width: 0;
  }
  100% {
    background-color: transparent;
    height: 0;
    width: 0;
  }
}

@keyframes move_right {
  0% {
    opacity: 0;
    transform: translateX(-90%);
  }
  100% {
    opacity: 1;
    transform: translateX(-30%);
  }
}

/* 针对屏幕宽度小于等于 768px 的设备 */
@media screen and (max-width: 768px) {
  /* 调整容器布局 */
  .container {
    height: auto; /* 允许内容根据需要扩展高度 */
    padding-top: 0px;
  }

  /* 调整内容区域 */
  .content {
    padding: 20px;
    gap: 15px;
  }

  /* 调整 Logo 尺寸 */
  .logo img {
    height: 120px;
    width: 150px;
  }

  /* 调整标题字体 */
  .title {
    font-size: 36px;
  }

  /* 卡片区域布局调整为纵向排列 */
  .cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    max-width: 90%; /* 适应屏幕宽度 */
  }

  .card-title {
    font-size: 20px;
  }

  .card-content {
    font-size: 16px;
  }

  /* 二维码区域布局调整为纵向排列 */
  .qrcodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-flow: row wrap;
  }

  .qrcode img {
    width: 100px;
    height: 100px;
  }

  .qrcode p {
    font-size: 16px;
  }

  /* 调整 footer 样式 */
  .footer {
    font-size: 12px;
    line-height: 1.5;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5); /* 增加背景以提升可读性 */
  }
  .fullScreen-animation {
    display: none;
  }
  .qrcode-inner {
    animation-delay: 0.5s;
  }
  .card-inner {
    animation-delay: 0.2s;
  }
}
