@font-face {
  font-family: "PingFang-SC-Bold";
  src: url("/template/fonts/PingFang-SC-Bold.ttf");
}

.header {
  box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid #eeeeee;
  transition: all 0.3s ease;
  /* 添加过渡效果 */
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  z-index: 999;
  height: 90px;
}

.logo img {
  width: 208px;
  height: 72px;
}

.header .inner {
  width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
}

.header .nav-ul {
  display: flex;
  margin-left: 20%;
  transition: all 0.3s ease;
}

.header .nav-ul.compact {
  margin-left: 90px;
  /* 搜索框展开时的左边距 */
}

.header .nav-ul li {
  height: 100%;
  min-width: 121px;
  width: 100%;
}

.header .nav-ul li a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 18px;
  color: #fff;
  line-height: 90px;
  text-align: center;
  background-size: auto 100%;
  position: relative;
}

.header .nav-ul .nav-li:hover .nav-inner {
  opacity: 1;
  display: block !important;
}

.header .nav-ul .nav-li:hover .hxyw {
  opacity: 1;
  display: flex !important;
}

.nav-li-a {
  position: relative;
}

.nav-li-a::after {
  content: "";
  position: absolute;
  bottom: 24px;
  left: 50%;
  /* 初始居中 */
  width: 0;
  /* 初始宽度0 */
  height: 2px;
  /* 下划线高度 */
  background-color: #fff;
  /* 下划线颜色 */
  transition: all 0.8s ease;
  /* 动画过渡（时长/缓动可调整） */
  transform: translateX(-50%);
  /* 配合left:50%实现真正居中 */
  border-radius: 2px;
}

.nav-no-child-black .nav-li-a::after {
  background-color: #000 !important;
}

.nav-li-a:hover {
  font-weight: bold;
}

.nav-li-a:hover::after {
  width: 100%;
  /* 宽度铺满a标签 */
  left: 0;
  /* 重置left，避免transform偏移问题 */
  transform: translateX(0);
  /* 取消偏移 */
}

.search {
  margin-left: 30px;
  position: relative;
  display: flex;
  align-items: center;
  width: 30px;
  /* 初始宽度为搜索图标宽度 */
  transition: all 0.3s ease;
  /* 添加过渡效果 */
}

.search.active {
  width: 200px;
  /* 展开后的宽度 */
}

.search-input {
  width: 0;
  height: 30px;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  transition: all 0.3s ease;
  opacity: 0;
  position: absolute;
  right: 30px;
}

.search.search.active img {
  margin-left: 180px;
}

.search-input.active {
  width: 160px;
  padding: 0 10px;
  opacity: 1;
  border-bottom: 1px solid #ccc;
  color: #fff;
  background: transparent;
}

.search-input::placeholder {
  color: #fff;
}

.search-black .search-input {
  border-bottom: 1px solid #000 !important;
  color: #000 !important;
}

.search-black .search-input::placeholder {
  color: #333 !important;
}

.nav-inner {
  position: absolute;
  background: url("/template/images/header-inner-bg.png") 50% 0% no-repeat;
  width: 100%;
  left: 0;
  min-height: 295px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  /* 添加过渡效果 */
  display: none !important;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.header .nav-inner-box {
  display: flex;
  width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 295px;
}

.nav-arrow {
  transition: all 0.3s ease-in-out;
}

.header .nav-have-child:hover::after {
  background-color: #00b46e;
  /* 下划线颜色 */
}

.header .nav-have-child-li.activeChild .nav-have-child {
  color: #00b46e !important;
  font-weight: bold;
}

.header .nav-have-child-li.activeChild .nav-li-a::after {
  width: 100%;
  /* 宽度铺满a标签 */
  left: 0;
  /* 重置left，避免transform偏移问题 */
  transform: translateX(0);
  /* 取消偏移 */
  background: #00b46e;
}


.header .nav-have-child:hover {
  color: #00b46e !important;
}

.nav-have-child:hover .nav-arrow {
  content: url(/template/images/arrow-down-green.png);
}

.header .nav-inner .nav-inner-title {
  display: flex;
  width: 36.5%;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-right: 127px;
  box-sizing: border-box;
  gap: 30px;
  position: relative;
  min-height: 102px;
}

.header .nav-inner .nav-inner-title .title-cn {
  font-size: 39px;
  color: #00b46e;
  font-weight: bold;
  margin-top: 25px;
}

.header .nav-inner .nav-inner-title .title-en {
  font-size: 39px;
  color: #f4f4f4;
  font-weight: bold;
  position: absolute;
  bottom: 0px;
  width: 100%;
  right: 127px;
  text-align: right;
}

.header .nav-inner .nav-inner-item {
  display: flex;
  gap: 12px 45px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  padding: 25px 0px;
  padding-left: 58px;
}

.header .nav-inner .nav-inner-item a {
  display: block;
  width: 246px;
  height: 52px;
  background-color: #ffffff;
  box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.18);
  color: #333 !important;
  line-height: 52px;
  font-size: 16px;
}

.header .nav-inner .nav-inner-item a:hover {
  color: #00b46e !important;
}

.bar {
  background: url("/template/images/icon_2.png") center center no-repeat;
  width: 20px;
  height: 23px;
  background-size: contain;
}

.menu {
  position: absolute;
  right: 20px;
  top: 15px;
  display: none;
}

.menu-nav {
  transition: all 0.7s;
  display: block;
  position: fixed;
  left: 100%;
  top: 0;
  z-index: 10;
  width: 100%;
  background: #fff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.menu-nav.active {
  left: 0;
}

.menu-nav-item-box {
  margin-top: 60px;
  border-top: 1px solid #ccc;
}

.menu-nav-item-ul {
  box-sizing: border-box;
  width: 100%;
}

.menu-nav-item-ul-li-a {
  transition: all 0.5s;
  position: relative;
  font-size: 16px;
  line-height: 53px;
  color: #333;
  border-bottom: #e7e5e5 1px solid;
  display: block;
  width: 100%;
  padding: 0px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-nav-item-ul-li-a:last-child {
  border-bottom: none;
}

.menu-arrow {
  transition: all 0.3s ease-in-out;
  width: 30px;
  height: 30px;
  object-fit: none;
}

.menu-inner {
  max-height: 0px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-inner.active {
  max-height: 500px;
}

.menu-inner-box {
  display: flex;
  padding: 20px;
  flex-wrap: wrap;
  gap: 13px;
}

.menu-inner-box a {
  display: block;
  width: 48%;
  height: 32px;
  line-height: 32px;
  color: #333;
  border-bottom: #e7e5e5 1px solid;
  padding: 0px 10px;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.nav-no-child-black .nav-li-a::after {
  background-color: transparent !important;
}

@media (max-width: 1480px) and (min-width: 768px) {

  /* 头部 */
  .header .inner {
    width: 1300px;
    padding-bottom: 0px;
  }

  .header .nav-ul {
    margin-left: 14%;
  }

  .nav-inner {
    min-height: 245px;
  }

  .header .nav-inner-box {
    min-height: 245px;
  }

  .header .nav-inner .nav-inner-item {
    padding-left: 30px;
    gap: 12px 20px;
  }

  .header .nav-inner .nav-inner-item a {
    width: 198px;
  }

  .header .nav-inner .nav-inner-title {
    padding-left: 80px;
  }

  .header .nav-inner .nav-inner-title .title-en {
    right: 80px;
  }

  .header .nav-ul.compact {
    margin-left: 0px;
  }

  /* 头部 */
}

@media (max-width: 1200px) {
  .header {
    padding: 0px 5px;
    height: auto;
    background: transparent;
    position: fixed;
  }

  .header .inner {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    padding: 0px;
  }

  .header .logo {
    position: relative;
    z-index: 999;
    width: 36%;
  }

  .header .logo img {
    width: 100%;
    height: auto;
  }

  .header .nav-ul {
    margin-left: 0px;
    width: 100%;
  }

  .header .nav-ul li {
    width: 15%;
    position: relative;
  }

  .header .nav-ul li a {
    font-size: 12px;
    line-height: 30px;
  }

  .header .nav-ul li.current a {
    background-size: 100% auto;
  }

  .header .nav-ul li {
    width: 100% !important;
    min-width: auto !important;
  }

  .nav-inner {
    width: 140%;
    left: -20%;
  }

  .search {
    position: absolute;
    right: 40px;
    top: 18px;
    z-index: 999;
  }

  .search.search.active img {
    margin-left: 170px;
  }

  #search-btn {
    width: 16px;
    height: 16px;
  }

  .header .nav-ul.compact {
    margin-left: 0px;
  }

  .search-input {
    border-radius: 0px !important;
  }

  .search-input.active::placeholder {
    font-size: 12px;
  }

  .menu {
    z-index: 999;
  }

  .header-active {
    border-bottom: 1px solid #ccc;
  }

  .menu-inner-box a {
    color: #333 !important;
  }
}