.yichen_head {
  font-family: var(--font-family);
}

.yichen_head .navbar-collapse {
  flex-grow: initial !important;
}

.yichen_head .nav-right {
  display: flex;
  align-items: center;
}

.yichen_head .iconfont-down4:before {
  content: "\e64c" !important;
  color: var(--color-primary);
}

.yichen_head .navbar-toggler {
  display: none;
}

.yichen_head a:hover {
  color: var(--text-color);
}

.yichen_head .nav-item a {
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.6s ease 0s;
}

.yichen_head .nav-item {
  position: relative;
}

.yichen_head .navbar {
  padding: 0 !important;
  z-index: 999;
}

.lang-selector .current-lang em {
  color: var(--color-primary) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: normal !important;
}

.yichen_head .navbar-brand {
  margin-right: 50px;
  padding: 4px 0;
}

.yichen_head .yichen-head-menu.fixed-top {
  background: #fff;
  animation: slide-down 0.7s;
}

.head-search {
  position: relative;
}

.head-search em {
  width: 45px;
  height: 34px;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  text-align: center;
  display: block;
}

.head-search em i {
  color: var(--color-primary);
  font-weight: bolder;
  font-size: 24px;
  line-height: 36px;
}

.head-search .serchbox {
  display: none;
  position: absolute;
  background: #666;
  width: 280px;
  padding: 10px;
  top: 34px;
  right: 0;
  z-index: 100;
}

.head-search .serchbox form {
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.head-search .serchbox .submit_text {
  flex: 1;
  background: #fff;
  height: 35px;
  line-height: 35px;
  color: #333;
  padding: 0 10px;
}

.head-search .serchbox .submit_btn {
  width: 40px;
  background: var(--color-primary);
  font-size: 16px;
  color: #fff;
  height: 35px;
  line-height: 35px;
  text-align: center;
  display: block;
  cursor: pointer;
}

.head-search:hover em {
  background: #666;
}

.head-search:hover em i {
  color: #fff;
}

.head-search:hover .serchbox {
  display: block;
}

@keyframes slide-down {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

.yichen_head .navbar-box {
  display: flex;
  align-items: center;
}

.yichen_head .navbar-expand-lg {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yichen_head .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.yichen_head .navbar-nav {
  flex-wrap: wrap;
  font-family: var(--font-family);
}

.yichen_head .navbar {
  position: static !important;
}

.yichen_head .nav-item {
  position: relative;
}

.yichen_head .nav-link.active,
.yichen_head .show>.nav-link {
  color: var(--text-color);
}

.yichen_head .dropdown-menu {
  position: static;
}

.navbar-text {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.9);
}

.yichen_head .navbar-brand img {
  width: auto;
  max-height: 52px;
  object-fit: cover;
}

/*============================
13. Multi level dropdown menu
==============================*/

.yichen_head .nav-item .dropdown-submenu {
  position: relative;
}

.yichen_head .nav-item .dropdown-submenu .dropdown-menu::before {
  display: none;
}

.yichen_head .nav-item .dropdown-submenu a::after {
  transform: rotate(-90deg);
  position: absolute;
  right: 15px;
  top: 13px;
  font-weight: 600;
}

.yichen_head .nav-item .dropdown-submenu a:hover {
  background: transparent;
  color: #fff;
}

.yichen_head .nav-item.active .nav-link {
  color: #fff;
  background: var(--color-primary);
}

.yichen_head .nav-item .dropdown-submenu .dropdown-menu {
  top: 120%;
  left: 100%;
  opacity: 0;
  display: none;
  visibility: hidden;
}

.yichen_head .nav-item .dropdown-submenu:hover .dropdown-menu {
  top: 0;
  opacity: 1;
  display: block;
  visibility: visible;
}

@media all and (min-width: 992px) {
  .yichen_head .nav-item .nav-link {
    margin-right: 16px;
    min-width: 100px;
    text-align: center;
    padding: 0 12px;
    height: 60px;
    line-height: 60px;
    font-size: var(--head-title-size);
    font-weight: 900;
    color: var(--color-primary);
  }

  .yichen_head .nav-item:last-child .nav-link {
    margin-right: 0;
  }

  .yichen_head .nav-item .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    margin-top: 0;
    border: none;
    left: -15px;
    border-radius: 8px;
    background: #fff;
    width: 220px;
    box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
  }

  .yichen_head .nav-item .dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .yichen_head .nav-item .dropdown-menu li:last-child {
    margin-bottom: 0;
    border-bottom: none;
  }

  .yichen_head .nav-item .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 9px 25px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000;
    position: relative;
    overflow: hidden;
    white-space: inherit;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
  }

  .yichen_head .nav-item .dropdown-menu .dropdown-item:hover {
    background: transparent;
    color: var(--color-primary);
    padding-left: 32px;
  }

  .yichen_head .nav-item .dropdown-menu .dropdown-item::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 9px;
    color: var(--color-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    z-index: -1;
  }

  .yichen_head .nav-item .dropdown-menu .dropdown-item:hover::before {
    opacity: 1;
    visibility: visible;
  }

  .yichen_head .nav-item .nav-link {
    position: relative;
  }

  .yichen_head .nav-item:hover .dropdown-menu {
    transition: 0.3s;
    opacity: 1;
    visibility: visible;
    top: 100%;
    transform: rotateX(0deg);
  }

  .yichen_head .dropdown-menu-end {
    right: 0;
    left: auto;
  }

  .yichen_head .dropdown-menu.fade-down {
    top: 80%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
  }

  .yichen_head .dropdown-menu.fade-up {
    top: 140%;
  }
  
}
@media screen and (max-width: 1200px) {
  .yichen_head .navbar-brand {
    margin-right: 20px;
  }
  .yichen_head .nav-item .nav-link {
        margin-right: 2px;
        min-width: 95px;
  }
  .yichen_head .nav-item .nav-link {
      padding: 0 6px;
  }
}
@media all and (max-width: 991px) {
  .yichen_head .navbar-toggler {
    display: block;
  }

  .head-search em i {
    font-size: 20px;
  }

  .collapse .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 20px;
  }

  .collapse .logo .qico {
    font-size: 20px;
    cursor: pointer;
    color: #000;
  }

  .yichen_head .navbar-brand {
    margin-right: 0px;
    margin-left: 0px;
  }

  .yichen_head .nav-link.hasSubNav::after {
    display: inline-block;
    width: auto;
    height: auto;
    /* margin-left: 5px; */
    vertical-align: baseline;
    font-family: "iconfont";
    content: "\e64c";
    font-weight: 600;
    border: none;
    font-size: 14px;
    position: absolute;
    right: 20px;
  }
  .yichen_head .nav-item .nav-link {
        margin-right: 0;
        width: 100%;
        padding: 5px 0;
    }
  .yichen_head .nav-item .dropdown-submenu a::after {
    transform: rotate(0);
  }

  /* .yichen_head .nav-item .dropdown-submenu .dropdown-menu {
    margin: 0 17px;
  } */

  .yichen_head .dropdown-menu {
    padding: 0 10px 0 20px;
  }

  .yichen_head .nav-item .dropdown-submenu:hover .dropdown-menu {
    display: none;
  }

  .yichen_head .nav-item .dropdown-submenu .dropdown-menu {
    opacity: unset;
    visibility: unset;
  }

  .tanthos_head_nav_setting_form,
  .tanthos_head_nav_setting_icon {
    display: none;
  }

  .yichen_head .navbar-nav {
    margin-left: 0;
  }

  .yichen_head .nav-item .dropdown-submenu a::after {
    top: 4px;
  }

  .baoxin-head-info .iconfont {
    font-size: 14px;
  }


  .yichen_head .nav-item .dropdown-submenu a::after {
    transform: rotate(0);
  }

  /* .yichen_head .nav-item .dropdown-submenu .dropdown-menu {
    margin: 0 17px;
  } */

  .yichen_head .nav-item .dropdown-submenu .dropdown-menu {
    opacity: unset;
    visibility: unset;
  }

  .dropdown-toggle::after {
    border-top: 8px solid;
    border-right: 6px solid transparent;
    border-bottom: 0;
    border-left: 6px solid transparent;
    
  }

  .yichen_head .nav-item .dropdown-submenu a::after {
    top: 12px;
  }

  .yichen_head .nav-item .dropdown-submenu a:hover {
    color: var(--color-primary);
  }

  .navbar-collapse {
    width: 70vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    background: #fff;
    padding: 10px 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .yichen_head a:hover {
    color: var(--text-color);
    position: relative;
  }

  .yichen_head .nav-item a {
    text-decoration: none;
    transition: all 0.6s ease 0s;
    padding-left: 10px !important;
    padding-right: 40px !important;
    width: 100%;
    white-space: unset;
    overflow: hidden;
    /* text-overflow: ellipsis; */
  }
  .yichen_head .nav-item .dropdown-item{
    font-size: .9rem;
    padding-right: 7px !important;
  }
.yichen_head .dropdown-item span{
  font-size: .9rem;
}
  .yichen_head .nav-item {
    position: relative;

  }

  .yichen_head .navbar-nav li {
    width: 100%;
    /* white-space: nowrap; */
    overflow: hidden;
    /* text-overflow: ellipsis; */
  }

  .yichen_head .dropdown-menu {
    border: none;
  }

  .navbar-brand img {
    width: auto;
    height: 52px;
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {
  .yichen_head .navbar-brand img {
    height: 39px;
  }

  .yichen_head .navbar {
    padding: 0.5rem 1rem !important;
  }

  .yichen_head .navbar-toggler {
    padding-right: 0 !important;
  }

  .yichen_head .navbar-brand {
    margin-right: 0px;
  }
}
@media screen and (max-width: 576px) {
  .head-search .serchbox{
    right: 50%;
    transform: translateX(50%);
  }
}