@charset "UTF-8";
.site-header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}
@media (max-width: 992px) {
  .site-header {
    height: auto;
    padding: 15px 0;
  }
}

body {
  /* 补偿固定导航栏的高度 */
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  height: 100%;
}
@media (max-width: 992px) {
  .header-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: auto;
    padding: 0;
  }
}

.header-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
}
.header-logo .logo-img {
  height: 30px;
  width: auto;
}
@media (max-width: 992px) {
  .header-logo {
    height: auto;
    padding: 15px 0;
  }
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  padding: 15px;
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #5ed3fe;
  margin: 5px 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.main-nav {
  height: 100%;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
    width: 100%;
    height: auto;
    padding: 15px 0;
    background: #fff;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
}
.main-nav .nav-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
@media (max-width: 992px) {
  .main-nav .nav-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    height: auto;
  }
}
.main-nav .nav-list .has-megamenu {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.main-nav .nav-list .has-megamenu .nav-link {
  width: 100%;
}
.main-nav .nav-item {
  position: relative;
  margin: 0 15px;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.main-nav .nav-item:hover > .nav-link {
  color: #0066cc;
}
.main-nav .nav-item.has-megamenu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (max-width: 992px) {
  .main-nav .nav-item {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }
}

.nav-link {
  color: #404040;
  text-decoration: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.nav-link i {
  margin-left: 5px;
  font-size: 12px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: #fff;
  min-width: 200px;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1001;
  border-radius: 0 0 4px 4px;
  margin-top: 0;
}
.nav-dropdown li {
  padding: 5px 15px;
  position: relative;
  text-align: left;
}
.nav-dropdown li a {
  color: #404040;
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  position: relative;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  text-align: left;
  font-size: 17px;
}
.nav-dropdown li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0066cc;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.nav-dropdown li a:hover {
  color: #0066cc;
}
.nav-dropdown li a:hover::before {
  width: 100%;
}

.has-dropdown {
  position: relative;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.has-dropdown:hover .nav-dropdown {
  display: block;
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0);
          transform: translateX(-50%) translateY(0);
}

li {
  padding: 5px 15px;
}
li a {
  color: #404040;
  text-decoration: none;
  padding: 5px 0;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  text-align: center;
}
li a:hover {
  color: #0066cc;
}

.megamenu {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  background: #fff;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  z-index: 1001;
  top: 100%;
}
.megamenu .promo-text {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 0;
  margin-bottom: 10px;
}
.megamenu {
  min-height: auto;
  /* 移除固定高度 */
  height: auto;
  /* 高度自适应 */
}
.megamenu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.megamenu .category-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: auto;
  /* 高度自适应 */
}
.megamenu .main-categories {
  width: 340px;
  border-right: 1px solid #eee;
  padding-right: 15px;
}
.megamenu .main-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.megamenu .main-categories li {
  padding: 10px 15px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}
.megamenu .sub-categories {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding-left: 20px;
  position: relative;
  min-height: auto;
}
.megamenu .sub-categories .sub-category {
  display: none;
  position: relative;
  left: auto;
  top: auto;
  width: 30%;
  height: auto;
}
.megamenu .sub-categories .sub-category.active {
  display: block;
}
.megamenu .sub-categories .sub-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.megamenu .sub-categories .sub-category li {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.megamenu .sub-categories .sub-category li:hover a {
  color: #0066cc;
}
.megamenu .sub-categories .sub-category li:hover .arrow-icon {
  fill: #0066cc;
}
.megamenu .sub-categories .sub-category li a {
  color: #404040;
  text-decoration: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 8px 0;
  position: relative;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
}
.megamenu .sub-categories .sub-category li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.megamenu .sub-categories .sub-category li a:hover {
  color: #0066cc;
}
.megamenu .sub-categories .sub-category li a:hover::before {
  width: 100%;
}
.megamenu .sub-categories .sub-category li .arrow-icon {
  width: 16px;
  height: 16px;
  fill: #9f9f9f;
  -webkit-transition: fill 0.3s;
  transition: fill 0.3s;
  margin-left: 10px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.megamenu .main-categories li {
  position: relative;
  overflow: hidden;
  padding-right: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.megamenu .main-categories li .arrow-icon {
  width: 16px;
  height: 16px;
  fill: #9f9f9f;
  -webkit-transition: fill 0.3s;
  transition: fill 0.3s;
}
.megamenu .main-categories li::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066cc;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}
.megamenu .main-categories li:hover {
  color: #0066cc;
}
.megamenu .main-categories li:hover::after {
  color: #0066cc;
}
.megamenu .main-categories li:hover::before {
  width: 100%;
}
.megamenu .main-categories li:hover .arrow-icon {
  fill: #0066cc;
}

.megamenu .main-categories li[data-category=iot]:hover ~ .sub-categories #iot,
.megamenu .main-categories li[data-category=hmi]:hover ~ .sub-categories #hmi,
.megamenu .main-categories li[data-category=io]:hover ~ .sub-categories #io,
.megamenu .main-categories li[data-category=software]:hover ~ .sub-categories #software,
.megamenu .sub-categories #iot.active {
  display: block;
}

.search-item {
  position: relative;
}
.search-item .search-box {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  padding: 15px;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  border-radius: 4px;
}
.search-item .search-box form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.search-item .search-box form input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 4px;
  -webkit-transition: border-color 0.3s;
  transition: border-color 0.3s;
}
.search-item .search-box form input:focus {
  border-color: #5ed3fe;
  outline: none;
}
.search-item .search-box form button {
  background: #5ed3fe;
  color: #fff;
  border: none;
  padding: 8px 15px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.search-item .search-box form button:hover {
  background: rgb(43.3148148148, 197.1481481481, 253.6851851852);
}

.has-dropdown {
  position: relative;
  height: 100%;
  /* 占满导航栏高度 */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.has-dropdown:hover .nav-dropdown {
  display: block;
  margin-top: 0;
}

.nav-dropdown {
  top: 100%;
  /* 从导航栏底部开始 */
  margin-top: 0;
}

.has-megamenu:hover .megamenu {
  display: block;
}

.mobile-menu-active .mobile-menu-toggle span:nth-child(1) {
  -webkit-transform: rotate(45deg) translate(5px, 5px);
          transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-active .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-active .mobile-menu-toggle span:nth-child(3) {
  -webkit-transform: rotate(-45deg) translate(7px, -6px);
          transform: rotate(-45deg) translate(7px, -6px);
}
.mobile-menu-active .main-nav {
  display: block;
}

@media (max-width: 992px) {
  .has-dropdown, .has-megamenu {
    position: relative;
    width: 100%;
  }
  .has-dropdown > .nav-link, .has-megamenu > .nav-link {
    position: relative;
    padding-right: 30px;
  }
  .has-dropdown.active > .nav-link::after, .has-megamenu.active > .nav-link::after {
    content: "-";
  }
  .has-dropdown .nav-dropdown, .has-dropdown .megamenu, .has-megamenu .nav-dropdown, .has-megamenu .megamenu {
    display: none;
    padding-left: 15px;
    -webkit-animation: fadeIn 0.3s ease-out;
            animation: fadeIn 0.3s ease-out;
  }
  .has-dropdown .nav-dropdown li a, .has-dropdown .megamenu li a, .has-megamenu .nav-dropdown li a, .has-megamenu .megamenu li a {
    padding: 8px 0;
    display: block;
  }
  .has-dropdown.active .nav-dropdown, .has-dropdown.active .megamenu, .has-megamenu.active .nav-dropdown, .has-megamenu.active .megamenu {
    display: block;
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
.pay-icon {
  width: 20px;
  vertical-align: middle;
  margin: 5px;
}