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

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

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

.logo {
  /* margin-left: 20px; */
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  /* 占一半宽度 */
  /* flex: 1; */
}

.logo img {
  width: 109px;
  height: 27px;
}

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

  /* 最宽550px */
  max-width: 600px;
  font-size: 14px;
}

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

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

.burger {
  display: none;
}

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

.userInfoBox {
  color: white;
  position: absolute;
  right: 10px;
  top: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
}

.userInfoBox .userName {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.userInfoBox .userName a {
  color:#fff !important;
}

.userInfoBox span {
  padding: 0px 20px;
}

.userInfoBox .managementCenter {
  padding: 2px 10px;
  border: 1px solid white;
  border-radius: 4px;
}

/* 导航栏屏幕适配 */
@media screen and (max-width: 1200px) {
  .burger {
    display: block;
  }

  nav {
    justify-content: space-between;
  }

  /* 小屏幕菜单显示位置为右侧抽屉形式 */
  .nav-menu {
    max-width: 250px;
    z-index: 1000000;
    /* position: absolute; */
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    width: 50vw;
    /* height: calc(100vh - 80px); */
    height: 100vh;
    background-color: #000000;
    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: 18px;
    color: white;
    /* 上下间距 */
    margin: 2vh;
    transform: translateX(20px);
    opacity: 0;
    width: 100%;
    margin-left: 20px;
    margin-right: 0px;
  }

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

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

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

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

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

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

  .userInfoBox {
    display: none;
  }

}

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

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

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

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