.xili-head {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
}

@media screen and (min-width: 1680px) {
  .xili-head .xili-container {
    max-width: 1680px;
  }
}

.xili-head-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 100px;
  border-radius: 12px;
  background: rgba(51, 51, 51, 0.70);
  backdrop-filter: blur(8px);
}

.head-info-lang .current-lang em {
  display: none;
}

.head-search .serchbox {
  display: none;
}

.head-toggle-btn {
  display: none;
}

.head-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

.head-logo a {
  padding: 13px;
  display: block;
}

.head-logo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  object-position: center;
}

.head-list-box {
  flex: 1;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 27px;
}

.head-tools .head-info-lang,
.head-search.search-box-only,
.head-toggle-btn {
  font-size: 0;
  line-height: 0;
}

.lang-selector {
  width: auto !important;
}

.lang-selector .current-lang {
  padding: 0 !important;
}

.head-tools .iconfont {
  color: #FFF;
  font-size: var(--font-24);
}

.head-search-icon,
.head-lang-icon {
  width: var(--font-24);
  height: var(--font-24);
  cursor: pointer;
}

.head-search-icon svg,
.head-lang-icon svg {
  width: 100%;
  height: 100%;
}

.head-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.head-list .nav-item {
  position: relative;
}

.head-list .nav-item .head-nav-link {
  color: #FFF;
  font-size: var(--font-24);
  font-weight: 400;
  line-height: 1.5;
  position: relative;
}

.head-list .nav-item:hover .head-nav-link:before,
.head-list .nav-item.active .head-nav-link:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #FFF;
}

.head-list .nav-item .hasSubNav:after {
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border: none !important;
  font-family: "iconfont" !important;
  content: "\e68d" !important;
  position: absolute !important;
  right: -20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.lang-selector .lang-box::before {
  display: none !important;
}

.head-list .nav-item .dropdown-menu {
  padding: 24px;
  border-radius: 12px;
  background: rgba(51, 51, 51, 0.70);
  backdrop-filter: blur(8px);
  border: none !important;
  margin-top: 0 !important;
}

.head-list .nav-item:hover>.dropdown-menu {
  display: block;
}

.head-list .nav-item .dropdown-menu li a {
  color: rgba(255, 255, 255, 0.50);
  font-size: var(--font-24);
  font-weight: 400;
  line-height: 1.5;
  border: none;
  transition: all 0.3s ease;
  padding: 0 !important;
  background: transparent !important;
}

.head-list .nav-item .dropdown-menu li a:hover {
  color: #FFF;
}

.head-list .nav-item .dropdown-menu .dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.head-list .nav-item .dropdown-menu .dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  transform: translateX(-24px);
}

.head-search.search-box-only {
  position: relative;
}

.head-search .serchbox {
  position: absolute;
  top: 100%;
  right: 0;
  background: #333;
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px;
}

.head-search .serchbox form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.head-search .serchbox form input[type="text"],
.head-search .serchbox form input.submit_text {
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: var(--font-24);
  font-weight: 400;
  line-height: 1.2;
  padding: 12px 12px;
  border-radius: 4px 0 0 4px;
  flex: 1 1 auto;
  min-width: 220px;
  max-width: 320px;
  box-sizing: border-box;
  transition: background 0.19s, box-shadow 0.19s;
}

.head-search .serchbox form input[type="text"]:focus,
.head-search .serchbox form input.submit_text:focus {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: 2px solid #fff;
}

.head-search .serchbox form input::placeholder {
  color: #d9d9d9;
  font-size: var(--font-24);
  font-weight: 400;
  opacity: 1;
}

.head-search .serchbox form input[type="submit"],
.head-search .serchbox form input.submit_btn {
  background: #555;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 12px 20px;
  font-size: var(--font-24);
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: 54px;
}

.head-search .serchbox form input[type="submit"]:hover,
.head-search .serchbox form input.submit_btn:hover {
  background: #fff;
  color: #333;
}


@media screen and (max-width: 1500px) {
  .head-list {
    gap: 30px;
  }

  .head-list .nav-item .dropdown-menu {
    padding: 12px;
  }

  .head-list .nav-item .dropdown-menu .dropdown-submenu>.dropdown-menu {
    transform: translateX(-12px);
  }
}

@media screen and (max-width: 1200px) {

  .head-logo {
    width: 80px;
    height: 80px;
  }

  .xili-head-wrapper {
    padding: 0 12px;
  }

  .head-list {
    gap: 20px;
  }

  .head-tools {
    gap: 10px;
  }
}

@media screen and (max-width: 992px) {

  .head-logo {
    width: 70px;
    height: 70px;
  }

  /* .head-logo a {
    padding: 0px;
  } */

  .head-list {
    display: none;
  }

  .head-toggle-btn {
    display: block;
  }

  .xili-head-wrapper {
    height: auto;
  }

  .xili-head .xili-container {
    max-width: 90%;
  }

  .xili-head {
    top: 20px;
  }
}

@media screen and (max-width: 576px) {
  .head-logo {
    width: 60px;
    height: 60px;
  }
}

@media all and (max-width: 991px) {
  .xili-head .iconfont-down2 {
    color: var(--title-text-color) !important;
  }

  .xili-head .navbar-toggler {
    display: block;
  }

  .xili-head .navbar-nav {
    gap: 10px;
  }

  .navbar-toggler {
    line-height: 1.2;
  }

  .head-search em i {
    font-size: 20px;
    line-height: 40px;
    color: #666;
  }

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

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

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

  .xili-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;
  }

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

  .xili-head .nav-item .dropdown-submenu .dropdown-menu {
    margin: 0 17px;
  }

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

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

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

  .tanthos_head_nav_setting_form,
  .tanthos_head_nav_setting_icon {
    display: none;
  }

  .xili-head .navbar-nav {
    margin-left: 0;
  }

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

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


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

  .xili-head .nav-item .dropdown-submenu .dropdown-menu {
    margin: 0 17px;
  }

  .xili-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;
    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;
  }

  .xili-head .mobile-menu a:hover {
    color: #fff;
    background: transparent;
  }

  .navbar-collapse {
    width: 60vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    background: #333;
    padding: 10px 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: all 0.5s ease-in-out;
  }

  .xili-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: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff !important;
    position: relative;
    background: transparent !important;
  }

  .xili-head .nav-item {
    position: relative;

  }

  .xili-head .navbar-nav li {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .xili-head .dropdown-menu {
    border: none;
    background: transparent;
  }

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

}

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

  .xili-head .navbar {
    padding: 0.5rem 1rem !important;
  }

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

  .xili-head .navbar-brand {
    margin-right: 0px;
  }
}