* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
}
form {
  line-height: 0;
}
/* 清除默认样式 */
input[type="text"],
input[type="password"],
button {
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  font: inherit;
}
/*重新设置样式*/
input[type="text"],
input[type="password"] {
  width: 100%;
  height: 0.9333rem;
  border-radius: 0.2133rem;
  border: 0.0267rem solid #CCCCCC;
  padding: 0 0.3333rem;
  margin-bottom: 0.4rem;
  font-size: 0.3733rem;
}
input[type="text"]:focus,
input[type="password"]:focus {
  border: 0.0267rem solid #1269F1;
}
.df {
  display: flex;
}
.jcc {
  justify-content: center;
}
.jcsb {
  justify-content: space-between;
}
.aic {
  align-items: center;
}
.custom-btn {
  width: 100%;
  height: 0.96rem;
  background: linear-gradient(180deg, #09CEFE 0%, #0C67F1 100%);
  border-radius: 0.48rem;
  border: 0.0267rem solid #FFFFFF;
  text-align: center;
  line-height: 0.96rem;
  font-size: 0.4rem;
  color: #FFFFFF;
  transition: all 0.1s ease-in-out;
}
.custom-btn:hover {
  opacity: 0.8;
}
.container {
  overflow-y: auto;
  width: 100%;
  height: 100%;
  background: url('../img/bg.png') no-repeat bottom fixed;
  background-size: cover;
}
.header {
  position: sticky;
  top: 0;
  padding: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1269f1;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -0.2667rem;
  /* 阴影的位置 */
  left: 0;
  width: 100%;
  height: 0.2667rem;
  /* 阴影的高度 */
  background: linear-gradient(180deg, rgba(0, 82, 211, 0.76) 0%, rgba(69, 62, 255, 0) 100%);
}
.header .school-logo {
  width: 3.1467rem;
}
.header .login-btn {
  width: 1.1733rem;
  height: 0.64rem;
  line-height: 0.64rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5867rem;
  font-size: 0.3733rem;
  text-align: center;
  color: #fff;
}
.header .login-btn:active {
  opacity: 0.7;
}
.header .login-info {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 0.3733rem;
  text-align: center;
  color: #8CC6FF;
}
.header .login-info .avatar {
  width: 1.0667rem;
  margin-left: 0.32rem;
}
.header .login-info .logout-btn {
  width: 1.1733rem;
  height: 0.64rem;
  line-height: 0.64rem;
  background: #004BC1;
  border-radius: 0.5867rem;
  font-size: 0.3733rem;
}
.header .login-info .logout-btn:active {
  opacity: 0.7;
}
.main {
  padding: 0.63rem 1rem;
}
.main .product-box {
  margin-bottom: 0.5rem;
  padding: 0.3733rem;
  width: 100%;
  background: linear-gradient(180deg, #F3FCFF 0%, #51CFFB 100%);
  box-shadow: 0px 0.1067rem 0.5333rem 0px rgba(25, 79, 183, 0.4), inset 0px 0.0267rem 0.32rem 0px #83DDFC;
  border-radius: 0.4267rem;
  border: 0.0267rem solid #FFFFFF;
}
.main .product-box:last-child {
  margin-bottom: 0;
}
.main .product-box .top-title {
  font-size: 0.56rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 0.0267rem solid #FFFFFF;
}
.main .product-box .top-title img {
  height: 0.96rem;
}
.main .product-box .content {
  padding: 0.2667rem;
  font-size: 0.32rem;
  color: #333333;
  line-height: 0.4533rem;
  text-align: justify;
}
.main .product-box .btn-section {
  padding: 0 0.2667rem;
  display: flex;
  justify-content: center;
}
.main .product-box .btn-section button:nth-child(2) {
  margin-left: 0.32rem;
}
.popup-box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  /* 半透明黑色背景 */
  z-index: 1;
  /* 确保遮罩层在其他内容之上 */
}
.popup-box .popup-box-con {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8rem;
  border-radius: 0.4267rem;
  background: #FFFFFF;
  padding: 0.5rem 0;
}
.popup-box .popup-box-con .title {
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.5333rem;
  color: #333333;
  line-height: 0.88rem;
  text-align: center;
}
.popup-box .popup-box-con .close-btn {
  cursor: pointer;
  position: absolute;
  width: 0.48rem;
  right: -0.5867rem;
  top: -0.48rem;
}
.popup-box .popup-box-con.login-box {
  zoom: 0.9;
  padding: 0.3rem 0 1.2rem;
}
.popup-box .popup-box-con.qrcode-box {
  width: 6rem;
}
.login-box .eye-btn {
  cursor: pointer;
  position: absolute;
  width: 0.4533rem;
  top: 0.32rem;
  right: 0.32rem;
}
.login-box .forget-pwd {
  text-align: right;
  font-size: 0.3733rem;
  color: #0E60F0;
}
.login-box .login-btn {
  cursor: pointer;
  margin-top: 0.32rem;
  width: 100%;
  height: 0.9333rem;
  background: linear-gradient(180deg, #05D3FF 0%, #0E60F0 100%);
  border-radius: 0.4267rem;
  font-weight: 500;
  font-size: 0.4267rem;
  color: #FFFFFF;
}
.login-box .login-btn:hover {
  opacity: 0.8;
}
.login-box .login-tip {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1rem;
  background: #F8F9FC;
  border-radius: 0px 0px 0.4267rem 0.4267rem;
  font-size: 0.32rem;
  color: #999999;
  line-height: 1rem;
  text-align: center;
}
.login-box .login-tip .service {
  cursor: pointer;
  border-bottom: 0.0267rem solid #999999;
}
.login-box .login-tip .service:hover {
  color: #0E60F0;
}
.toast {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.55);
  /* 半透明黑色背景 */
  color: white;
  /* 白色文字 */
  padding: 0.2133rem 0.32rem;
  /* 设置内边距 */
  border-radius: 0.2667rem;
  /* 圆角边框 */
  box-shadow: 0 0 0.2667rem rgba(0, 0, 0, 0.3);
  /* 添加阴影效果 */
  /* 文字居中 */
  z-index: 1000;
  /* 确保Toast在最上层显示 */
  font-size: 0.3733rem;
}

.popup-service,
.popup-privacy {
  display: none;
  width: 8.3rem;
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.popup-service .back-btn,
.popup-privacy .back-btn {
  cursor: pointer;
  position: absolute;
  width: 0.48rem;
  right: -0.4rem;
  top: -0.4rem;
}
.popup-service .service-content,
.popup-privacy .service-content {
  padding: 0.3733rem 0.3733rem;
  width: 100%;
  height: 76vh;
  background: linear-gradient(0deg, #71F7FF 0%, #FFFFFF 100%);
  box-shadow: 0px 0px 51px 0px rgba(0, 81, 205, 0.24), 0px 4px 21px 0px rgba(43, 205, 224, 0.34);
  border-radius: 0.4267rem;
  overflow-y: auto;
  scrollbar-width: none;
  font-size: .3733rem;
}
.popup-service .service-content .service-title,
.popup-privacy .service-content .service-title {
  font-size: .5rem;
  text-align: center;
}

.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7) no-repeat center center;
  z-index: 1000;
  /* 确保加载动画在其他内容之上 */
}

.loading-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

/* 如果你选择使用CSS动画而不是GIF */
@keyframes spin {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4393f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
