.header {
  transition: all 0.5s cubic-bezier(0.6, 0, 0.4, 1);
  --header-column-gap: 30px;
  --color-text: var(--color-header-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
  background-color: rgb(var(--color-header-background));
  background-color: var(--color-header-background);
}
.head_trans {
  transform: translateY(-102%);
}
.header__container {
  display: grid;
  column-gap: var(--header-column-gap);
  align-items: center;
}

.header__logo {
  position: relative;
  z-index: 1;
  grid-area: logo;
}
.header__logo a {
  display: inline-block;
}

.header__logo img {
  width: var(--header-logo-pc-width);
  height: auto;
}

.header__menu {
  height: 100%;
  grid-area: menu;
}

.header__menu .list-start {
  justify-content: start;
}

.header__menu-list {
  display: flex;
  height: 100%;
  gap: 6px;
  justify-content: center;
}
.header__menu-list [data-hover-style="2"]{
  word-break: auto-phrase;
}
.header__menu-list-item > a:not(.button) {
  color: rgb(var(--color-text));
}
.head2 .header__menu-list-item > a:not(.button) {
  color: rgb(var(--color-text));
}
.header__menu-list-item {
  padding: 0 1rem;
}

.header__menu-list-item-has-submenu {
  position: static;
}

.header__menu-list-item-has-submenu:hover .header__inline-submenus {
  visibility: visible;
  pointer-events: inherit;
  opacity: 1;
  transition: all 0.25s cubic-bezier(0.104, 0.204, 0.492, 1);
}

.header__menu-list-item-has-submenu:hover::before {
  content: attr(data-item-title);
  position: absolute;
  height: 100%;
  top: 0;
  margin-left: -30px;
  padding-left: 30px;
  padding-right: 30px;
  opacity: 0;
}

.header__inline-submenus {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background-color: rgba(var(--color-header-background));
  width: 100%;
  z-index: 10;
  border-top: 1px solid rgb(var(--color-entry-line));
  box-shadow: 0 10px 15px #0000001a;
  max-height: 760px;
  min-height: 280px;
  overflow: auto;
}

.header__tools {
  position: relative;
  z-index: 1;
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
}

.header__tools-mobile {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.header_left-line {
  grid-template:
    "logo . tools" auto
    "menu menu menu" auto
    / auto 1fr auto;
}

.header_left-left {
  grid-template: "logo menu tools" auto / auto 1fr auto;
}
.header_left-center {
  grid-template: "logo menu tools" auto / auto 1fr auto;
}

.header_middle-left {
  grid-template: "menu logo tools" auto / 1fr auto 1fr;
}

.header_middle-line {
  grid-template:
    ". logo tools" auto
    "menu menu menu" auto
    / 1fr auto 1fr;
}

.header__inline-nav--has-divider::before {
  position: absolute;
  content: "";
  width: 100%;
  left: 0;
  border-top: 1px solid rgb(var(--color-entry-line));
}

.normal_href {
  cursor: inherit;
  text-decoration: none !important;
}

.header-inline-menus__link {
  --padding-inline: 0px;
  --padding-block: 0.75rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgb(var(--color-text));
  padding: var(--padding-block) var(--padding-inline);
}

.menus__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: rgb(var(--color-text));
  opacity: 1;
  transition: opacity 0.2s;
  cursor: pointer;
}

.menus__link:hover::after {
  transform: scale(1);
}

.menus__link::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  will-change: transform;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgb(var(--color-text));
  transition: all 0.25s cubic-bezier(0.104, 0.204, 0.492, 1);
}

.header-inline-menus__link:hover::after,
.header-inline-menus__link:focus::after {
  transform: scale(1);
}

.megamenu__list {
  padding: 40px;
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  flex: 1;
  grid-auto-columns: minmax(100px, 280px);
  grid-auto-flow: column;
}

.megamenu-list__submenu {
  padding: 0;
}
.megamenu-submenu__item + .megamenu-submenu__item {
  margin-top: 8px;
}

.megamenu-list__item-title {
  display: inline-block;
  margin-bottom: 10px;
}

@media (max-width: 959px) {
  .header__logo img {
    width: var(--header-logo-mobile-width);
    height: auto;
  }

  .header_left-line,
  .header_middle-left,
  .header_middle-line,
  .header_left-left {
    grid-template: "tools logo menu" auto / 1fr auto 1fr;
  }
}

/* static_menus */

.header__menu-list-item-has-submenu:hover .header__inline-static_menus {
  display: block;
  animation-name: modalFadeIn;
}
.header__menu-list-item-has-submenu:not(:hover) .header__inline-static_menus {
  animation-name: modalFadeInEnd;
}

.header__inline-static_menus {
  content: attr(data-item-title);
  position: absolute;
  height: 100%;
  top: 0;
  padding-left: 30px;
  padding-right: 30px;
  display: none;
  z-index: -1;
  animation-duration: 0.3s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

.header__inline-static_menus .static_menus-container {
  position: relative;
  height: 100%;
}
.header__inline-static_menus .megamenu__list {
  position: absolute;
  top: 100%;
  margin-left: -30px;

  /* box-shadow: 0 0 2px 3px rgb(34, 34, 34); */
}
.www_menu_item_block {
  background: white;
  z-index: 3;
  display: flex;
  gap: 10px;
  flex-direction: column;
  box-shadow: 0 8px 10px rgb(0 0 0 / 5%);
  border-left: none; /* 不显示左边的边框 */
  border-top: none; /* 不显示上边的边框 */
  border-right: 4px solid rgb(var(--color-theme-background)); /* 设置右边的边框，宽度为2px，颜色为黑色 */
  border-bottom: 4px solid rgb(var(--color-theme-background));
  border-radius: 12px;
}

.header__inline-static_menus .megamenu__list {
  gap: 10px;
}

.header__inline-static_menus .megamenu__list {
  padding: 10px 0;
  white-space: nowrap;
}

.header__inline-static_menus .megamenu-list__item {
  position: relative;
  padding-left: 15px;
  padding-right: 15px;
}

.header_conact-social .list-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_conact-social svg {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  transition: all 0.3s;
}

.header_conact-social svg:hover {
  transform: scale(1.1);
}
.header-www-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header-www-right-text {
  color: rgb(var(--color-text));
}
.header-www-right-text > div:last-child {
  font-weight: 600;
}
.header__inline-static_menus
  .megamenu-list__item:hover
  .header__inline_static_menus_child {
  display: block;
}
.header__inline_static_menus_child {
  display: none;
  position: absolute;
  right: 0;
  transform: translateX(100%);
  top: -10px;
}
.header__inline_static_menus_child li {
  padding: 0 15px;
}
.megamenu__list_child {
  padding: 10px 0;
  position: relative;
}

.www_text_hover {
  transition: all 0.5s linear;
}
.www_text_hover:hover {
  font-weight: 600;
  color: rgb(var(--color-theme-background)) !important;
}
.www_menu_item_icon_right::after {
  content: "";
  width: 5px;
  height: 5px;
  position: relative;
  right: 0;
  bottom: 2px;
  border-width: 0 1px 1px 0;
  border-style: solid;
  border-color: currentColor;
  display: inline-block;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.header_menu_item {
  display: flex;
  gap: 10px;
}
.head2 {
  --color-text: 51, 51, 51, 0.5;
  background-color: rgba(255, 255, 255, 1);
  padding-top: calc(var(--section-padding-top) + 10px);
  padding-bottom: calc(var(--section-padding-bottom) + 10px);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
}
.header__menu-list-item:hover .header-inline-menus__link {
  --color-text: var(--color-theme-background);
}
.head2 .header__menu-list-item:hover .header-inline-menus__link {
  --color-text: 51, 51, 51, 1;
}
.right-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 51px;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
}
.right-menu > * > div {
  cursor: pointer;
  top: 0;
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 51px;
  font-size: 30px;
  background-color: #f7f7f7;
  margin-top: 2px;
  cursor: pointer;
  -webkit-transition: 0.5s;
}
.right-menu > * {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  width: 51px;
  height: 51px;
}
.right-menu > *:hover div {
  background: rgb(var(--color-button-background));
}
.right-menu > *:hover div:last-child {
  opacity: 0;
}

.header_nav_menu_item_title {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--header-menu-nav-height, 100%);
  overflow: hidden;
}
.header_nav_menu_item_title > div {
  cursor: pointer;
}
.header_nav_menu_item_title .header_menu_button {
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
}
.header_nav_menu_item_content {
  position: absolute;
  top: calc(100% - var(--padding-bottom, 0));
  left: 0;
  width: var(--menu-nav-width, 100%);
  background-color: #fff;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.header__menu-list .active .header_nav_menu_item_content {
  opacity: 1;
}
.header_nav_menu_item_content
  click-card-list
  .active
  .header_product_list_item {
  display: flex;
}
.header_nav_menu_item.active .view_animation_right {
  animation-name: modalSlideInBottom;
}
.header .view_animation_products {
  position: relative;
  opacity: 0;
  animation-delay: 0.3s;
  pointer-events: all;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.header .view_animation,
.view_animation_image {
  opacity: 0;
  position: relative;
  pointer-events: all;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}
.header_nav_menu_item.active .view_animation_image {
  animation-name: drawerFadeInRight;
  animation-delay: 0.4s;
}
.header_nav_menu_item_content .active .product_item_title {
  color: #fff;
  background-image: linear-gradient(
      to right,
      rgb(var(--color-theme-background)) 0,
      #fff 100%
    ),
    linear-gradient(to right, rgb(var(--color-theme-background)) 0, #fff 100%);
}
.header_nav_menu_item_content .product_item_title {
  padding: 0 40px 0 0;
}

.header_nav_menu_item_content .active .header_svg_first {
  display: block;
}
.header_nav_menu_item_content .active .header_svg_end {
  display: none;
}
.header_menu_item_footer::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0%;
  height: 1px;
  background-color: #000;
  transition: width 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s;
}
.header__menu-list .header_menu_item_footer_after::after {
  width: 100%;
}
.header__menu-list .products_item_click.active {
  display: block;
}
.header__menu-list .active_card_list > div {
  border-bottom: 1px solid #000;
}
.header__menu-list .active_card_list > div:last-child {
  border-bottom: none;
}
.header_nav_menu_item.active [data-hover-style="2"]::before {
  width: 70%;
}
