﻿.header {
  height: 70px;
}

.header .header-space {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #fff;
  box-shadow: 0px 2px 4px 0px rgba(227, 227, 227, 0.5);
}

.header .logo {
  padding: 11px 0;
}

.header .logo img {
  height: 48px;
  width: auto;
}

.header .navbar {
  margin-left: 126px;
}

.header .navbar .item {
  position: relative;
}

.header .navbar .item > a {
  color: var(--text-color-import);
  font-size: 15px;
  text-decoration: none;
  padding: 24px 22px;
  display: block;
}

.header .navbar .item > a i {
  transition: all 0.25s ease-in-out;
}

.header .navbar .item:hover > a i {
  transform: rotate(180deg);
}

.header .navbar .item:hover > a,
.header .navbar .item.active > a {
  color: var(--text-color-blue);
}

.header .navbar .item .submenu {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  left: 0;
  width: 100%;
  top: 70px;
  background: #fff;
  z-index: 99;
  transition: all 0.25s ease-in-out;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.1);
}

.header .navbar .item:hover .submenu {
  opacity: 1;
  visibility: visible;
}

.header .navbar .item .submenu a {
  font-size: 18px;
  color: #909399;
  line-height: 25px;
  letter-spacing: 1px;
  padding: 20px 0;
  text-decoration: none;
  position: relative;
}

.header .navbar .item .submenu a::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--text-color-blue);
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -20px;
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

.header .navbar .item .submenu a:hover,
.header .navbar .item .submenu a.active {
  color: var(--text-color-blue);
}

.header .navbar .item .submenu a:hover::after,
.header .navbar .item .submenu a.active::after {
  opacity: 1;
}

.header .contact {
  margin-left: 20px;
}

.header .contact .tel {
  color: var(--text-color-secondary);
  font-size: 16px;
  text-decoration: none;
}

.header .contact .btn {
  width: 100px;
  height: 35px;
  color: #fff;
  font-size: 16px;
  line-height: 35px;
  text-align: center;
  background-color: var(--text-color-blue);
  border-radius: 25px;
  text-decoration: none;
}

.header .contact .line {
  width: 1px;
  height: 15px;
  margin: 0 16px;
  background-color: #e4e7ed;
}

.header .sidebar,
.header .sm-btn,
.header .sidebar-wrapper,
.header .sidebar-bg {
  display: none;
}

@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }

  .visible-xs {
    display: block !important;
  }

  .header .sm-btn {
    display: flex;
  }

  .header {
    height: 52px;
  }

  .header .header-space {
    padding: 0 15px;
  }

  .header .logo img {
    height: 30px;
  }

  .header .menubtn {
    color: #303133;
    font-size: 24px;
  }

  .header .sidebar-bg {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 52px;
    right: 0;
    z-index: 999;
    display: none;
    background-color: rgba(0, 0, 0, 0.3);
  }

  .header .sidebar-wrapper {
    position: fixed;
    top: 52px;
    right: -150px;
    height: 100vh;
    width: 150px;
    z-index: 1000;
    padding: 30px 17px 0;
    background-color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .header .sidebar-wrapper.active {
    opacity: 1;
    visibility: visible;
    right: 0;
  }

  .header .sidebar-wrapper .item + .item {
    margin-top: 25px;
  }

  .header .sidebar-wrapper .item > a {
    color: var(--text-color-import);
    font-size: 15px;
    display: block;
  }

  .header .sidebar-wrapper .sidebar-menu {
    padding-left: 20px;
    margin-top: 3px;
  }

  .header .sidebar-wrapper .sidebar-menu a {
    color: var(--text-color-secondary);
    font-size: 13px;
    margin-top: 12px;
    margin-right: 55px;
  }

  .header .sidebar-wrapper .sidebar-menu a:nth-child(2n) {
    margin-right: 0;
  }

  .header .samllbtn {
    width: 70px;
    height: 24px;
    background: #5191ff;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
    margin-right: 18px;
  }
}
