html {
  font-size: 5.2083333vw;
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 85px;
  }
}

@media screen and (max-width: 1024px) {
  .header .header-left .agent-logo {
    height:0.35rem !important;
    width:auto !important;
    margin-right:0.2rem !important;
  }
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.0rem;
  padding: 0 0.2rem;
  background-color: #fff;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
}
.header .header-left {
  display: flex;
  align-items: center;
}

.header .header-left .school-icon {
  height: 0.4rem;
  width: auto;
  margin-right: 0.2rem;
}

.header .header-left .agent-logo {
  height: 0.22rem;
  width: auto;
  margin-right: 0.2rem;
}

.header .header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header .header-center ul {
  display: flex;
  align-items: center;
}

.header .header-center ul li {
  border-radius: 0.04rem;
  padding: 0.06rem 0.06rem;
  cursor: pointer;
}
.header .header-center ul li a {
  font-size: 0.16rem;
  font-weight: 500;
  color: #1f2329;
}

.header .header-center ul .active {
  background: rgba(229, 230, 235, 0.46);
}
.header .header-center ul li + li {
  margin-left: 0.08rem;
}

.header .header-right {
  display: flex;
  align-items: center;
}

.header .header-right .ai-button {
  margin-right: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 0.34rem;
  background: url("../imgs/header/ai-bg.png");
  background-size: 100% 100%;
  cursor: pointer;
}

.header .header-right .ai-button img {
  width: 0.26rem;
  height: 0.26rem;
  margin-right: 0.08rem;
  /* box-shadow: 0rem 0.085rem 0.17rem 0rem rgba(145, 172, 252, 0.4); */
}

.header .header-right .ai-button span {
  color: #6b5af8;
  font-size: 0.14rem;
  font-weight: 500;
}

.header .header-right .user-button {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header .header-right .user-button .profile-photo {
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 0.06rem;
}

.header .header-right .user-button span {
  font-size: 0.14rem;
  color: #1f2329;
}
.header .header-right .user-button .arrow-down {
  width: 0.08rem;
  height: 0.05rem;
  margin-left: 0.06rem;
}

.header .header-right .switch-button {
  display: none;
}

.drawer-box {
  display: none;
}

/*  新增头部样式 start */

body {
  font-size: 0.16rem;
}

.header .header-right .user-button {
  position: relative;
}

.header .header-right .user-button a {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.06rem;
  width: 1.12rem;
  line-height: 0.48rem;
  text-align: center;
  font-size: 0.14rem;
  border-radius: 0.04rem;
  background: #ffffff;
  box-shadow: 0rem 0rem 0.04rem 0rem rgba(111, 123, 141, 0.251);
  top: 100%;
  transition: all 0.6s;
  visibility: hidden;
  transform: translateX(-50%) translateY(0.25rem);
  opacity: 0;
  z-index: 1;
}

.header .header-right .user-button:hover a {
  transform: translateX(-50%) translateY(0.18rem);
  z-index: 9;
  opacity: 1;
  visibility: visible;
}

.header .header-right .user-button a:hover {
  background: #6b5af8;
  color: #fff;
}

.drawer-ai {
  position: fixed;
  top: 0.84rem;
  right: 0.1rem;
  bottom: 0.7rem;
  width: 4rem;
  max-width: calc(100vw - 0.2rem);
  background: #ffffff url() no-repeat;
  background-position: center top;
  background-size: 100% auto;
  backdrop-filter: blur(2.76rem);
  z-index: 99;
  border-radius: 0.16rem;
  padding: 0.14rem 0.24rem 0.2rem 0.24rem;
  display: none;
  box-sizing: border-box;
  box-shadow: 0rem 0.08rem 0.24rem 0rem rgba(149, 157, 165, 0.2);
}

.drawer-aibox {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.drawer-aitit {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
}

.drawer-aitit img {
  height: 0.34rem;
  margin-right: 0.1rem;
}

.drawer-aitit p {
  font-size: 0.16rem;
  font-weight: 500;
  line-height: 0.24rem;
  color: #1f2329;
}

.drawer-aibd {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

/*  新增头部样式  end*/

@media screen and (max-width: 1024px) {
  .school-icon {
    display: none;
  }
  .header .header-center {
    display: none;
  }

  .header .header-right .ai-button {
    width: auto;
    background-image: none;
  }
  .header .header-right .ai-button span {
    display: none;
  }

  .header .header-right .user-button {
    display: none;
  }

  .header .header-right .switch-button {
    display: block;
    width: 0.24rem;
    height: 0.24rem;
    cursor: pointer;
  }

  .drawer-box {
    position: fixed;
    top: 0;
    right: -200%;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-out 0s;
  }

  .drawer-box-show {
    right: 0;
  }

  .drawer-box .drawer-content {
    width: 70%;
    background-color: #fff;
    height: 100%;
    margin-left: 30%;
    box-sizing: border-box;
    padding: 0.8rem 0.24rem 0.24rem 0.24rem;
    position: relative;
  }

  .drawer-box .drawer-content ul li {
    font-size: 0.16rem;
    font-weight: 500;
    color: #1f2329;
    border-radius: 0.04rem;
    padding: 0.06rem 0.16rem;
    cursor: pointer;
    height: 0.56rem;
    line-height: 0.56rem;
    text-align: center;
    background-color: transparent;
  }

  .drawer-box .drawer-content ul li a {
    font-size: 0.16rem;
    font-weight: 500;
    color: #1f2329;
  }
  .drawer-box .drawer-content ul .active {
    background: #f3f4f6;
  }

  .drawer-box .drawer-content .logout-btn {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.68rem;
    line-height: 0.68rem;
    bottom: 0.24rem;
    border-top: 0.01rem solid #f2f4f7;
    color: #909aaa;
    font-size: 0.16rem;
    text-align: center;
    cursor: pointer;
  }
}