@charset "UTF-8";

:root {
  --theme_color: #07b3c7;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(100vw / 1920 * 16);
}

header {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
}

.mobileHeader {
  display: none;
}

.myHeader {

  background: #65cce2;
  width: 100%;
}

.headerBox {
  max-width: 1440px;
  margin: auto;
  padding: 0 24px;
  width: 100%;
  height: 126px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
}

.myHeader .logo {
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all .3s ease;
}

.myHeader .logo .img {
  display: block;
  width: auto;
  height: 108px;
}

.myHeader .myNav {
  /* flex: 1; */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease;
}

.myHeader .myNav .item {
  margin-right: 24px;
  display: flex;
  position: relative;
  align-items: center;
  height: 100%;
}

.myHeader .myNav .item .itemTitle {
  color: #FFF;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
}

.myHeader .myNav .item .toBottom {
  margin-right: 16px;
  margin-left: 5px;
}

.myHeader .myNav .item .toBottom .icon {
  width: 15px;
  height: auto;
}

.myHeader .myNav .item .itemContent {
  display: none;
  position: absolute;
  top: 100%;
  width: 240px;
  box-sizing: border-box;
  border-top: 2px solid #07B3C7;
  background: #07B3C7;
}

.myHeader .myNav .item .itemContent .sonItem {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  font-size: 16px;
}

.myHeader .myNav .item .itemContent .sonItem .sonItemTitle {
  color: #FFF;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.myHeader .myNav .item .itemContent .sonItem .sonContent {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 240px;
  box-sizing: border-box;
  border-top: 2px solid #07B3C7;
  background: rgba(0, 0, 0, 0.4);
}

.myHeader .myNav .item .itemContent .sonItem .sonContent .grandSonItem {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  text-align: left;
  color: #FFF;
  cursor: pointer;
}

.myHeader .myNav .item .itemContent .sonItem .sonContent .grandSonItem .grandSonItemTitle {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.myHeader .myNav .item .itemContent .sonItem .sonContent .grandSonItem:hover {
  background: rgba(7, 179, 199, 0.5);
}

.myHeader .myNav .item .itemContent .sonItem:hover {
  background: rgba(7, 179, 199, 0.5);
}

.myHeader .myNav .item .itemContent .sonItem:hover .sonContent {
  display: block;
}

.myHeader .myNav .item:hover .itemTitle {
  color: var(--theme_color);
}

.myHeader .myNav .item:hover .itemContent {
  display: block;
}

.myHeader .myNav .active_1 .itemTitle {
  /* color: var(--theme_color); */
  /* color: #ed6942; */
}

.myHeader .myNav .margin_right_0 {
  margin-right: 12px;
  /* font-weight: bold; */
}

.myHeader .hideLogo {
  width: 0;
}

.myHeader .hideLogo~.myNav {
  justify-content: flex-start;
}

.myHeader .langAndSearchBox {
  display: flex;
  align-items: center;
}

.myHeader .langAndSearchBox .langAndSearch {
  width: 240px;
  text-align: right;
}

.myHeader .langAndSearchBox .langAndSearch .flag {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 96px;
  background-size: 24px auto;
  background-repeat: no-repeat;
  background-position: 0 -192px;
  font-size: 24px;
  background-image: url(https://static.igem.wiki/teams/5082/icon_flag.png);
  vertical-align: text-bottom;
}

.myHeader .langAndSearchBox .langAndSearch .text {
  display: inline-block;
  color: #FFF;
  font-size: 18px;
  margin-left: 5px;
  vertical-align: bottom;
}

.myHeader .langAndSearchBox .langAndSearch .toBottom {
  width: 15px;
  height: auto;
  margin-left: 3px;
  display: inline-block;
  margin-right: 15px;
}

.myHeader .langAndSearchBox .langAndSearch .place {
  display: inline-block;
  vertical-align: text-bottom;
  color: #FFF;
  font-weight: 100;
}

.myHeader .langAndSearchBox .langAndSearch .search {
  width: 24px;
  height: 24px;
  margin-left: 15px;
  display: inline-block;
  vertical-align: text-bottom;
}

@media (max-width: 1279px) {
  .myHeader .logo {
    width: 0;
  }

  .myHeader .myNav {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .myHeader .logo .img {
    height: 56px;
  }

  .headerBox {
    height: 56px;
  }

  header {
    position: sticky;
  }

  .myHeader {
    height: 56px;
    background: #7f7f7f;
    justify-content: center;
  }

  .myHeader .logo {
    width: auto;
  }

  .myHeader .myNav {
    display: none;
  }

  .myHeader .langAndSearchBox {
    display: none;
  }

  .mobileHeader {
    padding: 8px 0;
    background-color: #333;
    display: flex;
    align-items: center;
  }

  .mobileHeader .img {
    display: block;
    width: auto;
    height: 24px;
    margin: 0 8px;
  }

  .mobileNavBox {
    background: #333;
    width: 80% !important;
  }

  .searchBox {
    position: relative;
  }

  .searchBox .close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }

  .searchBox .close::before {
    content: '';
    display: block;
    width: 2px;
    height: 32px;
    background-color: #07B3C7;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    margin-top: -16px;
    transform: rotate(45deg);
  }

  .searchBox .close::after {
    content: '';
    display: block;
    width: 2px;
    height: 32px;
    background-color: #07B3C7;
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    margin-top: -16px;
    transform: rotate(-45deg);
  }

  .searchBox .searchBox {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 16px;
    width: 100%;
    justify-content: center;
  }

  .searchBox .searchBox .myinp {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    display: block;
    line-height: 56px;
    height: 56px;
    max-width: 640px;
    width: 100%;
  }

  .searchBox .searchBox .button {
    width: 72px;
    height: 56px;
    background-color: #07B3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .searchBox .searchBox .button .img {
    width: 28px;
    height: auto;
  }

  .offcanvas.offcanvas-start {
    max-width: 400px;
  }

  .content {
    height: 100%;
    /* background-color: #333333; */
    max-width: 0;
    box-sizing: border-box;
    padding: 0 16px;
    overflow: hidden;
    transition: all 0.5s;
    width: 80vw;
    max-width: 400px;
    position: relative;
    z-index: 9999;
    line-height: 28px;
  }

  .content .top {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
  }

  .content .top .title {
    font-size: 18px;
    color: #FFF;
  }

  .content .top .close {
    width: 32px;
    height: 32px;
    position: relative;
  }

  .content .top .close::after {
    content: '';
    display: block;
    width: 1px;
    height: 20px;
    background-color: #FFF;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -10px;
    transform: rotate(-45deg);
  }

  .content .top .close::before {
    content: '';
    display: block;
    width: 1px;
    height: 20px;
    background-color: #FFF;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -10px;
    transform: rotate(45deg);
  }

  .content .itemBox {
    margin-top: 8px;
  }

  .content .itemBox .item .itemTitle {
    color: #FFF;
  }

  .content .itemBox .item .sonContent {
    margin-left: 16px;
  }

  .content .itemBox .item .sonContent .sonItem .sonTitle {
    font-size: 14px;
    color: #999;
  }

  .content .itemBox .item .sonContent .sonItem .grandSonContent {
    margin-left: 16px;
  }

  .content .itemBox .item .sonContent .sonItem .grandSonContent .grandSonTitle {
    font-size: 14px;
    color: #999;
  }

  .content .langBox {
    margin-top: 8px;
  }

  .content .langBox .langItem {
    padding: 4px 0;
    display: flex;
    align-items: center;
  }

  .content .langBox .langItem .icon {
    width: 24px;
    height: 24px;
    background-size: 24px auto;
    /* background-image: url(https://static.igem.wiki/teams/5082/icon_flag.png); */
    background-repeat: no-repeat;
    margin-right: 8px;
  }

  .content .langBox .langItem .text {
    font-size: 16px;
    color: #FFF;
    line-height: 1;
    font-family: '微软雅黑';
  }
}