* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft Yahei",
    sans-serif;
}

.menu-box {
  width: 100%;
  background-color: #331056;
}

nav {
  margin: 0px auto;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 左右padding */
  /* padding: 0 5vw; */
  padding: 0px 20px;
  height: 70px;
  background-color: #331056;
  max-width: 1600px;
}

.menu-box .logo {
  font-size: 14px;
  color: white;
  /* 占一半宽度 */
  /* flex: 1; */
  margin-right: 100px;
}

.menu-box .logo img {
  width: 240px;
}

.menu-box .userName {
  max-width: 110px;
  padding: 0px 5px;
  display: inline-block;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #C4AA91;
  height: 30px;
  line-height: 30px;
  border: 1px solid #C4AA91;
  border-radius: 4px;
  text-align: center;
}

.menu-box .userName p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#menu .quitLogin .quitLoginButton {
  width: 60px;
  display: inline-block;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #C4AA91;
  height: 30px;
  line-height: 30px;
  border: 1px solid #C4AA91;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}

.menu-box .userName:hover,
#menu .quitLogin .quitLoginButton:hover {
  color: #DD4F2F;
  border: 1px solid #DD4F2F;
}

.nav-menu {
  /* 占令一半宽度 */
  flex: 1;
  display: flex;
  justify-content: space-between;

  /* 最宽550px */
  max-width: 730px;
  font-size: 18px;
}

.nav-menu li {
  cursor: pointer;
  list-style: none;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #C4AA91;
  opacity: 1;
}

.burger div {
  /* 设置汉堡按钮三层条 */
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 6px;
}

.burger {
  display: none;
}

.selectMenu {
  color: #BB381A !important;
  opacity: 1 !important;
}

.userBox {
  display: none;
}

.shopBox {
  color: white;
}

.shopBox a {
  color: white;
  display: inherit;
}

.FB1 .enterpriseShop {
  margin-bottom: 60px;
}

/* 导航栏屏幕适配 */
@media screen and (max-width: 1000px) {
  nav {
    height: 60px;
    padding: 0px 10px;
  }

  nav .shopBox a {
    display: flex;
  }

  nav .shopBox .shop {
    display: inline-block;
    width: 100%;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .userBox {
    display: inline-block;
    position: absolute;
    right: 50px;
    height: 35px;
    padding: 7px;
    z-index: 1000;
  }

  .userBox img {
    height: 100%;
  }

  .burger {
    display: block;
  }

  .selectMenu {
    color: #331056 !important;
    position: relative;
  }

  .selectMenu::after {
    content: "";
    width: 3px;
    height: 100%;
    position: absolute;
    left: -20px;
    bottom: 0px;
    background-color: #331056;
  }

  /* 小屏幕菜单显示位置为右侧抽屉形式 */
  .nav-menu {
    max-width: 250px;
    z-index: 1000000;
    /* position: absolute; */
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 50vw;
    height: calc(100vh - 60px);
    /* height: 100vh; */
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    /* 动画 */
    transform: translateX(100%);
  }

  /* 菜单打开时，滑到初始位置 */
  .nav-menu.open {
    transform: translateX(0);
    transition: 0.4s ease-in-out;
  }

  .page.open {
    overflow-y: hidden;
  }

  .FBBox_hide.open {
    content: '';
    width: 100vw;
    height: 100%;
    background: black;
    opacity: 0.5;
    position: absolute;
    z-index: 100;
    top: 0px;
  }

  .nav-menu a {
    width: 100%;
  }

  /* 每个菜单项默认看不到，向右移动20象素 */
  .nav-menu li {
    font-size: 15px;
    color: #000000;
    /* 上下间距 */
    margin: 2vh;
    transform: translateX(20px);
    opacity: 0;
    width: 100%;
    margin-left: 20px;
    margin-right: 0px;
  }

  /* 汉堡按钮被点开时，设置按钮过渡 */
  .burger.active div {
    transition: 0.3s ease-in-out 0.3s;
  }

  /* 第一条线旋转45度 */
  .burger.active .top-line {
    /* transform: rotate(45deg) translate(4px, 6px); */
    transform: rotate(45deg) translate(6px, 6px);
  }

  /* 第三条线旋转-45度 */
  .burger.active .bottom-line {
    /* transform: rotate(-45deg) translate(4px, -6px); */
    transform: rotate(-45deg) translate(6px, -7px);
  }

  /* 中间线向右移动并变为透明 */
  .burger.active .middle-line {
    opacity: 0;
    transform: translateX(10px);
    transition: 0.3s ease-in-out;
  }

  /* 菜单项滑入动画 */
  @keyframes slideIn {
    from {
      transform: translateX(20px);
      opacity: 1;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .menu-box .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-box .logo img {
    width: 170px;
  }

  .loginButton_a {
    display: none !important;
  }

  .shopSwitch1 {
    display: none;
  }

  .shopSwitch2 {
    display: inline-block;
    width: 12px;
  }

  .shopSwitch2 img {
    width: 100%;
  }

  .wechatMenu1 {
    display: none;
  }

  .wechatMenu2 {
    width: 100%;
    position: absolute;
    left: 0px;
    bottom: 80px;
    padding: 10px;
  }

  .wechatMenu2 .p1 {
    font-size: 15px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #000000;
    margin: 10px 5px;
  }

  .wechatMenu2 .qrCode {
    width: 50%;
    float: left;
    padding: 5px;
    text-align: center;
  }

  .wechatMenu2 .qrCode p {
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #999999;
  }

  .wechatMenu2 .qrCode img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
  }

}

@media screen and (min-width: 1001px) {
  .selectMenu:after {
    content: '';
    width: auto;
    min-width: 30px;
    height: 2px;
    background: #BB381A;
    border-radius: 1px;
    display: block;
    margin-top: -5px;
  }

  nav {
    line-height: 50px;
    z-index: 10;
  }

  .nav-menu li {
    /* margin-top: 10px; */
    line-height: 70px;
  }

  .nav-menu li:hover {
    color: #DD4F2F;
    opacity: 1;
  }

  .loginButton:hover {
    color: #DD4F2F;
    border: 1px solid #DD4F2F;
  }

  .menu-box.logo {
    margin-right: 120px;
  }

  .shopBox {
    color: white;
    position: absolute;
    left: 255px;
    top: 18px;
    cursor: pointer;
    display: flex;
  }

  .shop {
    font-size: 15px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #FFFFFF;
    margin-left: 10px;
    display: inline-block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shopSwitch1 {
    display: inline-block;
    font-size: 12px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #FFFFFF;
  }

  .shopSwitch2 {
    display: none;
  }

  .loginButton_a {
    line-height: 70px;
    display: none;
    align-items: center;
  }

  .loginButton {
    display: inline-block;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #C4AA91;
    width: 80px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #C4AA91;
    border-radius: 4px;
    text-align: center;
  }

  #menu .loginButton_a.userNameBox.open {
    display: flex;
  }

  #menu .loginButton_a.loginButtonBox.open {
    display: flex;
  }

  #menu .quitLogin.open {
    display: flex;
  }

  .wechatMenu2 {
    display: none;
  }

  .wechatMenu1 {
    position: relative;
  }

  .wechatButton:hover~.card {
    display: inherit;
  }

  .wechatMenu1 .card {
    width: 370px;
    height: 220px;
    position: absolute;
    right: -33px;
    top: 70px;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
    display: none;
  }

  .wechatMenu1 .triangle {
    position: absolute;
    z-index: 10;
    right: 69px;
    top: -8px;
    width: 16px;
    height: 16px;
    background-color: white;
    box-shadow: -14px -12px 7px rgb(0 0 0 / 7%);
    transform: translateX(6.53553391px) rotate(45deg);
  }

  .wechatMenu1 .content {
    background-color: white;
    position: absolute;
    z-index: 20;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    display: flex;
  }

  .wechatMenu1 .content .qrCodeT {
    width: 50%;
    text-align: center;
    padding: 15px;
  }

  .wechatMenu1 .content .qrCodeT img {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
  }

  .wechatMenu1 .content .qrCodeT p {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #000000;
    line-height: 30px;
    margin-top: 10px;
  }

}