.hengsheng_head {
  --hengsheng-border-soft: rgba(38, 41, 43, 0.1);
  --hengsheng-border-strong: rgba(38, 41, 43, 0.16);
  --hengsheng-shadow-soft: 0 18px 42px rgba(15, 23, 42, 0.12);
  --hengsheng-overlay: rgba(15, 23, 42, 0.45);
  --hengsheng-head-height: 98px;
  position: relative;
  z-index: 120;
  min-height: var(--hengsheng-head-height);
  font-family: var(--font-family);
}

body.hengsheng-lock {
overflow: hidden;
}

.hengsheng-head-subnav,
.hengsheng-head-third-nav,
.hengsheng-mobile-nav-list,
.hengsheng-mobile-subnav,
.hengsheng-mobile-third-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hengsheng-head-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: var(--color-second);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hengsheng_head.is-scrolled .hengsheng-head-bar,
.hengsheng_head.search-open .hengsheng-head-bar,
.hengsheng_head.menu-open .hengsheng-head-bar {
  background: var(--bg-color, #ffffff);
  border-color: var(--hengsheng-border-soft);
  box-shadow: var(--hengsheng-shadow-soft);
}

.hengsheng-head-shell {
  width: 100%;
  min-height: 98px;
  display: grid;
  grid-template-columns: 89px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  transition: min-height 0.3s ease;
}

.hengsheng-head-logo,
.hengsheng-head-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 89px;
  height: 96px;
  flex: 0 0 auto;
}

.hengsheng-head-logo img,
.hengsheng-head-mobile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hengsheng_head.is-scrolled .hengsheng-head-shell {
  min-height: 88px;
}

.hengsheng-head-nav {
  min-width: 0;
}

.hengsheng-head-search-entry {
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.hengsheng-head-search-entry img{
  width: 100%;
  height: 100%;
  display: block;
}

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

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

.hengsheng-head-nav-item.has-children::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 18px;
}

.hengsheng-head-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  color: var(--color-primary);
  font-family: var(--font-family-semi-bold);
  font-size: var(--text-size-lg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: font-weight 0.25s ease;
}

.hengsheng-head-nav-item.active .hengsheng-head-nav-link,
.hengsheng-head-nav-item:hover .hengsheng-head-nav-link,
.hengsheng-head-nav-item:focus-within .hengsheng-head-nav-link {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-family-bold);
}

.hengsheng-head-nav-arrow {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.hengsheng-head-nav-item:hover .hengsheng-head-nav-arrow,
.hengsheng-head-nav-item:focus-within .hengsheng-head-nav-arrow {
  transform: rotate(180deg);
}

.hengsheng-head-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 260px;
  padding: 18px 20px;
  background: var(--bg-color, #ffffff);
  border: 1px solid var(--hengsheng-border-soft);
  border-radius: 0;
  box-shadow: var(--hengsheng-shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.hengsheng-head-nav-item:hover .hengsheng-head-dropdown,
.hengsheng-head-nav-item:focus-within .hengsheng-head-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hengsheng-head-subnav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hengsheng-head-subnav-item {
  position: relative;
}

.hengsheng-head-subnav-item.has-children {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(38, 41, 43, 0.08);
}

.hengsheng-head-subnav-item.has-children:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hengsheng-head-subnav-link,
.hengsheng-head-third-nav-link {
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.5;
  transition: font-weight 0.2s ease;
}

.hengsheng-head-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-family: var(--font-family-semi-bold);
  font-size: var(--text-size);
  font-weight: 600;
}

.hengsheng-head-subnav-arrow {
  flex: 0 0 auto;
  transition: transform 0.22s ease;
}

.hengsheng-head-subnav-item.active > .hengsheng-head-subnav-link,
.hengsheng-head-third-nav-item.active > .hengsheng-head-third-nav-link,
.hengsheng-head-subnav-link:hover,
.hengsheng-head-third-nav-link:hover {
  color: var(--color-primary);
  font-family: var(--font-family-bold);
  font-weight: 700;
}

.hengsheng-head-third-nav {
  position: absolute;
  top: -18px;
  left: calc(100% + 18px);
  min-width: 220px;
  padding: 18px 20px;
  background: var(--bg-color, #ffffff);
  border: 1px solid var(--hengsheng-border-soft);
  border-radius: 0;
  box-shadow: var(--hengsheng-shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.hengsheng-head-subnav-item.has-children::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -18px;
  width: 24px;
  height: calc(100% + 16px);
}

.hengsheng-head-subnav-item:hover > .hengsheng-head-third-nav,
.hengsheng-head-subnav-item:focus-within > .hengsheng-head-third-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.hengsheng-head-subnav-item:hover > .hengsheng-head-subnav-link .hengsheng-head-subnav-arrow,
.hengsheng-head-subnav-item:focus-within > .hengsheng-head-subnav-link .hengsheng-head-subnav-arrow {
  transform: translateX(2px);
}

.hengsheng-head-third-nav-link {
  display: inline-flex;
  width: 100%;
  font-family: var(--font-family-semi-bold);
  font-size: calc(var(--text-size) - 2px);
  color: var(--color-primary);
  font-weight: 600;
}

.hengsheng-head-third-nav-item + .hengsheng-head-third-nav-item {
  margin-top: 8px;
}

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

.hengsheng-head-search-entry {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hengsheng-head-search-entry img {
  width: 28px;
  height: 28px;
  display: block;
}

.hengsheng-head-search-trigger {
  width: 278px;
  max-width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 26px;
  border: 0;
  border-radius: 40px;
  background: #f2f2f2;
  color: var(--text-color);
  font-family: var(--font-family);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.hengsheng-head-search-trigger:hover {
  background: #f2f2f2;
  color: var(--text-color);
  box-shadow: none;
}

.hengsheng-head-search-trigger:focus-within {
  background: #26292b;
  color: #ffffff;
  box-shadow: none;
  outline: none;
}

.hengsheng-head-search-quick-form {
  position: relative;
}

.hengsheng-head-search-quick-submit {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hengsheng-head-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hengsheng-head-search-quick-input {
  flex: 1 0 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-family-semi-bold);
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  outline: none;
}

.hengsheng-head-search-quick-input::placeholder {
  color: inherit;
  opacity: 1;
  text-transform: capitalize;
}

.hengsheng-head-search-icon .iconfont,
.hengsheng-head-mobile-search .iconfont,
.hengsheng-head-search-submit .iconfont,
.hengsheng-mobile-search-submit .iconfont {
  font-size: 27px;
  line-height: 1;
}

.hengsheng-head-lang {
  flex: 0 0 28px;
  width: 28px;
  display: flex;
  justify-content: center;
}

.hengsheng-head-lang .lang-selector,
.hengsheng-mobile-lang .lang-selector {
  position: relative;
}

.hengsheng-head-lang .current-lang,
.hengsheng-mobile-lang .current-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-primary);
}

.hengsheng-head-lang .current-lang em,
.hengsheng-head-lang .current-lang .iconfont-down2,
.hengsheng-head-lang .current-lang .iconfont-down4 {
  display: none;
}

.hengsheng-head-lang .current-lang .iconfont-diqiu {
  font-size: var(--title-size-h4)!important;
  color: var(--color-primary);
}

.hengsheng-head-lang .lang-box {
  right: -10px;
  left: auto;
  top: calc(100% + 14px);
}

.hengsheng-head-mobile-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.hengsheng-head-mobile-quote {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-second);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-family-semi-bold);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.hengsheng-head-mobile-search,
.hengsheng-head-mobile-toggle,
.hengsheng-head-search-close,
.hengsheng-head-mobile-close,
.hengsheng-mobile-nav-toggle,
.hengsheng-mobile-subnav-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-primary);
  cursor: pointer;
}

.hengsheng-head-mobile-search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hengsheng-head-mobile-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hengsheng-border-strong);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hengsheng-head-mobile-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hengsheng_head.menu-open .hengsheng-head-mobile-toggle {
  background: var(--color-second);
  border-color: transparent;
}

.hengsheng_head.menu-open .hengsheng-head-mobile-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hengsheng_head.menu-open .hengsheng-head-mobile-toggle span:nth-child(2) {
  opacity: 0;
}

.hengsheng_head.menu-open .hengsheng-head-mobile-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.hengsheng-head-search-layer,
.hengsheng-head-mobile-panel {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hengsheng-head-search-layer {
  z-index: 80;
}

.hengsheng-head-mobile-panel {
  z-index: 90;
}

.hengsheng_head.search-open .hengsheng-head-search-layer,
.hengsheng_head.menu-open .hengsheng-head-mobile-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hengsheng-head-search-overlay,
.hengsheng-head-mobile-overlay {
  position: absolute;
  inset: 0;
  background: var(--hengsheng-overlay);
}

.hengsheng-head-search-panel {
  position: relative;
  width: min(880px, calc(100% - 40px));
  margin: 120px auto 0;
  padding: 24px;
  border-radius: 28px;
  background: var(--bg-color, #ffffff);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  transform: translateY(18px);
  transition: transform 0.25s ease;
}

.hengsheng_head.search-open .hengsheng-head-search-panel {
  transform: translateY(0);
}

.hengsheng-head-search-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%,-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-second);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hengsheng-head-search-form,
.hengsheng-mobile-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.hengsheng-head-search-input,
.hengsheng-mobile-search-input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--hengsheng-border-soft);
  background: var(--bg-color, #ffffff);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hengsheng-head-search-input {
  height: 64px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: var(--text-size-lg);
}

.hengsheng-mobile-search-input {
  height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: var(--text-size);
}

.hengsheng-head-search-input:focus,
.hengsheng-mobile-search-input:focus {
  border-color: var(--color-primary, #145da0);
  box-shadow: 0 0 0 4px rgba(20, 93, 160, 0.08);
}

.hengsheng-head-search-submit,
.hengsheng-mobile-search-submit {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary, #145da0);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hengsheng-head-search-submit {
  width: 64px;
  height: 64px;
}

.hengsheng-mobile-search-submit {
  width: 52px;
  height: 52px;
}

.hengsheng-head-mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 88vw);
  height: 100%;
  padding: 22px 20px 28px;
  background: var(--bg-color, #ffffff);
  box-shadow: -22px 0 50px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.hengsheng_head.menu-open .hengsheng-head-mobile-drawer {
  transform: translateX(0);
}

.hengsheng-head-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hengsheng-head-mobile-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-second);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hengsheng-mobile-nav-list {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.hengsheng-mobile-nav-item,
.hengsheng-mobile-subnav-item {
  border-bottom: 1px solid rgba(38, 41, 43, 0.08);
}

.hengsheng-mobile-nav-row,
.hengsheng-mobile-subnav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.hengsheng-mobile-nav-row {
  min-height: 58px;
}

.hengsheng-mobile-subnav-row {
  min-height: 46px;
}

.hengsheng-mobile-nav-link,
.hengsheng-mobile-subnav-link,
.hengsheng-mobile-third-nav-link {
  text-decoration: none;
  color: var(--color-primary);
}

.hengsheng-mobile-nav-link {
  font-family: var(--font-family-semi-bold);
  font-size: var(--text-size-lg);
  font-weight: 600;
  line-height: 1.4;
}

.hengsheng-mobile-subnav-link {
  display: inline-block;
  font-family: var(--font-family-semi-bold);
  font-size: var(--text-size);
  font-weight: 600;
  line-height: 1.5;
}

.hengsheng-mobile-nav-item.active > .hengsheng-mobile-nav-row .hengsheng-mobile-nav-link,
.hengsheng-mobile-subnav-item.active > .hengsheng-mobile-subnav-row .hengsheng-mobile-subnav-link,
.hengsheng-mobile-third-nav-item.active > .hengsheng-mobile-third-nav-link {
  color: var(--color-primary);
  font-family: var(--font-family-bold);
  font-weight: 700;
}

.hengsheng-mobile-nav-toggle,
.hengsheng-mobile-subnav-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hengsheng-mobile-nav-toggle svg,
.hengsheng-mobile-subnav-toggle svg {
  transition: transform 0.25s ease;
}

.hengsheng-mobile-nav-item.is-open .hengsheng-mobile-nav-toggle svg,
.hengsheng-mobile-subnav-item.is-open .hengsheng-mobile-subnav-toggle svg {
  transform: rotate(180deg);
}

.hengsheng-mobile-subnav,
.hengsheng-mobile-third-nav {
  display: none;
}

.hengsheng-mobile-subnav {
  padding: 0 0 16px;
}

.hengsheng-mobile-third-nav {
  padding: 0 0 14px 16px;
}

.hengsheng-mobile-third-nav-item + .hengsheng-mobile-third-nav-item {
  margin-top: 8px;
}

.hengsheng-mobile-third-nav-link {
  font-family: var(--font-family-semi-bold);
  font-size: calc(var(--text-size) - 2px);
  line-height: 1.5;
  color: var(--color-primary);
  font-weight: 600;
}

.hengsheng-mobile-lang {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
  padding-right: 8px;
}

.hengsheng-mobile-lang .current-lang {
  justify-content: flex-start;
  gap: 8px;
}

.hengsheng-mobile-lang .current-lang em {
  display: inline;
  font-family: var(--font-family-semi-bold);
  font-style: normal;
  color: var(--color-primary);
  font-weight: 600;
}

.hengsheng-mobile-lang .lang-box {
  left: auto;
  right: 0;
  top: calc(100% + 12px);
  bottom: auto;
}

@media screen and (max-width: 1500px) {
  .hengsheng-head-shell {
    gap: 18px;
  }

  .hengsheng-head-nav-list {
    gap: 28px;
  }

  .hengsheng-head-search-trigger {
    width: 248px;
    padding: 10px 22px;
  }
}

@media screen and (max-width: 1280px) {
  .hengsheng-head-nav-list {
    gap: 22px;
  }


  .hengsheng-head-search-trigger {
    width: 220px;
    min-height: 44px;
    padding: 8px 18px;
  }

  .hengsheng-head-search-quick-input {
    font-size: 18px;
  }
}

@media screen and (max-width: 1200px) {
  .hengsheng_head {
    --hengsheng-head-height: 88px;
  }

  .hengsheng-head-shell {
    min-height: 88px;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .hengsheng-head-logo {
    width: 84px;
    height: 88px;
  }

  .hengsheng-head-nav,
  .hengsheng-head-tools {
    display: none;
  }

  .hengsheng-head-mobile-actions {
    display: flex;
    gap: 10px;
  }

  .hengsheng-head-search-panel {
    margin-top: 96px;
  }
}

@media screen and (max-width: 992px) {
  .hengsheng_head {
    --hengsheng-head-height: 88px;
  }

  .hengsheng-head-logo {
    height: 84px;
  }
}

@media screen and (max-width: 768px) {
  .hengsheng_head {
    --hengsheng-head-height: 78px;
  }

  .hengsheng-head-shell {
    min-height: 78px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  .hengsheng-head-logo,
  .hengsheng-head-mobile-logo {
    width: 72px;
    height: 72px;
  }

  .hengsheng-head-search-panel {
    width: calc(100% - 24px);
    margin-top: 88px;
    padding: 18px;
    border-radius: 22px;
  }

  .hengsheng-head-mobile-quote {
    padding: 0 14px;
    font-size: 13px;
  }

  .hengsheng-head-search-input {
    height: 56px;
  }

  .hengsheng-head-search-submit {
    width: 56px;
    height: 56px;
  }

  .hengsheng-head-mobile-drawer {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .hengsheng-head-shell {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .hengsheng-head-logo,
  .hengsheng-head-mobile-logo {
    width: 64px;
    height: 64px;
  }

  .hengsheng-head-mobile-search,
  .hengsheng-head-mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .hengsheng-head-search-form,
  .hengsheng-mobile-search-form {
    gap: 10px;
  }

  .hengsheng-head-mobile-drawer {
    padding: 18px 16px 24px;
  }
}
