#zg_header {
  /* border-bottom: 1px solid #e5e5e5; */
}

.header {
  background-color: #fff;
  /* border-bottom: 1px solid #e5e5e5; */
  position: relative;
  top: 0;
  width: 100%;
  z-index: 100;
}

@media screen and (min-width: 992px) {
  .header {
    /* border-bottom: 1px solid #e5e5e5; */
    overflow: visible;
  }
}

@media screen and (max-width: 991px) {
  .sticky-header {
    /* margin-top: 21px; */
    /* position: sticky!important; */
    position: relative!important;
    top: 0!important;
    z-index: 111;
    min-height: 80px;
    /* height: 116px;
    margin-bottom: 35px; */
  }
  .header {
    padding-top: 5px;
  }
}

/* nav */
.navUserContainer {
  background-color: white;
  align-items: center;
  /* padding-top: 24px; */
}

.navUserContainer .actionContainer {
  color: #000;
  padding: 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
}

.navUserContainer .actionContainer img {
  height: 22px;
  display: inline-block;
}

.navUserContainer .actionContainer:hover {
  color: #757575; /* $color-hover 模拟为 #757575 */
}

.navUserContainer .left {
  color: red; /* $color-red 模拟为 red */
  font-size: 12px;
  font-family: 'Jost';
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  font-style: normal;
  text-decoration-line: underline;
}

.navUserContainer #navUserList-wrappper {
  /* min-width: 31.25rem; */
}

.navUserContainer .list .listItem {
  display: block;
  position: relative;
}

.navUserContainer .list .listItem .navUserAction {
  display: inline-block;
  color: #000;
  padding: 6px 15px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
}

.navUserContainer .list .listItem .navUserAction img {
  height: 22px;
}

.navUserContainer .list .listItem .navUserAction:hover {
  color: #757575;
}

.navUserContainer .list .navUserItem {
  font-family: 'Jost' !important;
  font-size: 12px;
  color: #010101;
}

@media (min-width: 551px) {
  .navUserContainer .list .navUserItem {
    float: left;
  }
}

/* .navUserContainer .headerLogo {
  padding-left: 45%;
} */

.navUserContainer .headerLogo a {
  color: #333;
  display: inline-block;
  padding: 0.78571rem 0;
  position: relative;
  text-decoration: none;
  width: 60%;
  z-index: 20;
  min-width: var(--logo-link-min-width);
}

.navUserContainer .logo {
  margin: auto;
  max-height: 2.35714rem;
  height: 30px;
}

.navUserContainer img {
  display: inline-block;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
.zg-header__icon-count-wrapper {
  position: relative;
}

.zg-header__icon-count-wrapper .zg-header__count {
  background: #747474;
  border: 1px solid #747474;
  border-radius: 50%;
  min-width: 19px;
  display: inline-block;
  position: absolute;
  right: 0px;
  top: 0px;
  color: #fff;
  text-align: center;
  height: 19px;
  line-height: 18px;
}

.zg-header_icon_favorites, .zg-header_icon_cart {
  position: absolute;
  background-color: rgba(44, 44, 44, .75);
  border-radius: 10px;
  color: #fff;
  height: 20px;
  line-height: 20px;
  min-width: 20px;
  padding: 0 4px;
  position: absolute;
  right: 10px;
  text-align: center;
  top: -7px;
}

/* ===================== Media Queries ===================== */

/* 移动端 max-width: 767px */
@media (max-width: 767px) {
  .navUserContainer {
    flex-direction: column;
    padding: 0 10px;
  }

  .navUserContainer .navUserSection {
    display: none;
  }

  .navUserContainer .navUserSectionM {
    display: flex;
    width: 100%;
  }

  .navUserContainer .navUserSectionM .navUserItemCart {
    display: block;
    position: relative;
  }

  .navUserContainer .navUserSectionM .navUserItem {
    font-family: 'Jost' !important;
    font-size: 12px;
    color: #010101;
  }

  .navUserContainer .navUserSectionM .action {
    color: #000;
    padding: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
  }

  .navUserContainer .navUserSectionM .action img {
    height: 20px;
    margin: 3px 0 0;
  }
}

/* 平板端 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .navUserContainer {
    height: 32px;
  }

  .navUserContainer .navUserSection {
    display: none;
  }

  .navUserContainer .navUserSectionM {
    display: flex;
    width: 100%;
  }

  .navUserContainer .navUserSectionM .navUserItemCart {
    display: block;
    position: relative;
  }

  .navUserContainer .navUserSectionM .navUserItem {
    font-family: 'Jost' !important;
    font-size: 12px;
    color: #010101;
  }

  .navUserContainer .navUserSectionM .action {
    color: #000;
    padding: 6px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
  }

  .navUserContainer .navUserSectionM .action img {
    height: 22px;
    margin: 3px 0 0;
  }
}

/* PC端 ≥ 992px */
@media (min-width: 992px) {
  .navUserContainer {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 50;
    background: #fff;
  }

  .navUserContainer .navUserSection {
    max-width: 1800px;
    padding-inline: var(--page-padding);
    /* height: 48px; */
    flex: 1;
    margin: 15px auto 10px auto;
    max-height: 40px;
  }

  .navUserContainer .listItem img {
    width: auto;
    margin: -3px 6px 0 0;
  }

  .navUserContainer .listItem img span {
    display: inline-block;
  }

  .navUserContainer .navUserSectionM {
    display: none;
  }
}

/* ===================== End Media Queries ===================== */


:root {
  --header-height: 66px;
  --header-padding: 60px;
  --logo-max-width: 160px;
  --logo-min-width: 200px;
  --logo-link-min-width: 157.5px;
  --logo-img-height: 30px;
  --logo-img-max-height: 2.35714rem;
  --color-white: #fff;
  --color-black: #000;
  --color-gray: #333;
}

img {
  display: inline-block;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.navStoreContainerWarp .navStoreContainer {
  position: relative;
  margin: 0 auto;
}


.headerLogo,
.headerLogoCenter {
  position: relative;
  display: flex;
  align-items: center;
  /* left: 60px; */
  text-align: center;
  /* right: auto; */
  margin: 0 auto;
  /* max-width: var(--logo-max-width);
  min-width: var(--logo-min-width); */
}

.headerLogo a {
  color: var(--color-gray);
  display: inline-block;
  padding: 0.78571rem 0;
  position: relative;
  text-decoration: none;
  width: 60%;
  z-index: 20;
  min-width: var(--logo-link-min-width);
}

.headerLogoImageContainer {
  position: relative;
  max-height: 80px;
  height: 100%;
  height: 30px;
}

.headerLogoImage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  height: 30px !important;
}

.navStoreSearchContainer {
  display: flex;
  align-items: center;
  /* justify-content: flex-end;
  margin-left: auto; */
  height: 100%;
}

 /* 搜索框 開始 */
.searchBarContainer {
  border: 1px solid #000;
  border-radius: 6px;
  display: flex;
  position: relative;
  z-index: 1000;
}

.searchBarContainer .searchButton {
  height: 40px;
  color: white;
  cursor: pointer;
  overflow: hidden;
}

.searchBarContainer .searchButton input {
  width: 100%;
  height: 100%;
  border-radius: 0px 4px 4px 0px;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .searchBarContainer .searchButton {
    width: 300px;
  }
}

@media (min-width: 1025px) {
  .searchBarContainer .searchButton {
    width: 360px;
  }
}

.searchBarContainer .iconButton {
  background-color: #fff;
  border-radius: 4px 0px 0px 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  /* padding-left: 11px; */
}

.searchBarContainer.isM {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.searchBarContainer.isM .searchButton {
  flex: 1;
  width: auto;
}

/* 搜索框 結束 */

/* Fixed mode styles for PC */
.searchBarContainer.isPC.isFixed .searchButton {
  width: calc(260px - 40px);
  height: 34px;
}

.searchInput {
  font-size: 16px;
  padding: 0 10px;
}
.searchInput::placeholder {
  font-size: 14px; 
  color: #121212!important;
}
.searchInput::-webkit-input-placeholder {
  font-size: 14px;
}
.searchInput:-ms-input-placeholder {
  font-size: 14px;
}
.searchInput::-ms-input-placeholder {
  font-size: 14px;
}

.searchBarContainer.isPC.isFixed .iconButton {
  width: 34px;
  height: 34px;
}

/* Desktop styles */
@media screen and (min-width: 992px) {
  .navStoreContainerWarp {
    background-color: var(--color-black);
  }

  .navStoreContainerWarp > .navStoreContainer {
    max-width: 1800px;
    padding-inline: var(--page-padding);
  }

  .navStoreContainer {
    display: flex;
    align-items: center;
    margin: auto;
    height: var(--header-height);
    justify-content: space-between;
    flex: 1;
  }

  .navStoreContainer .headerLogo {
    left: 0;
    right: 0;
    height: 100%;
  }

  .navStoreContainer .headerLogo > a {
    background: none;
    border-bottom: none;
    display: inline;
    padding: 0;
    height: 100%;
  }

  .navStoreContainer > .navStoreContainer {
    display: flex;
    align-items: center;
    margin: auto;
    height: var(--header-height);
    padding-top: 0;
  }
}

/* Tablet-specific logo adjustment */
@media screen and (min-width: 992px) and (max-width: 1261px) {
  .headerLogoImage {
    max-height: none;
    height: 22px;
  }
}

/* Hide navStoreContainerWarp on tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .navStoreContainerWarp {
    display: none;
  }
}



/* ---------------------- 全局目录样式 ---------------------- */
.fristNav {
  display: flex;              /* 启用 flex 布局 */
  justify-content: center;    /* 水平居中 */
  align-items: center;        /* 垂直居中 */
  margin: auto;
  max-height: 34px;
  border-bottom: 1px solid #e5e5e5;

}
.fristNav .custom-navigation-ul {
  display: flex;              /* 横向排列菜单项 */
  gap: 0;                  /* 菜单间距，可根据需要调整 */
  padding: 0;
  margin: 0;
  list-style: none;
}

.custom-navigation-ul {
  list-style: none; /* 去掉默认列表符号 */
  margin: 0;        /* 去掉默认外边距 */
}

/* ---------------------- 手机端样式 (宽度 <= 800px) ---------------------- */
@media screen and (max-width: 800px) {
  .custom-navigation-ul {
    background: #f0f0f0; /* 导航背景色 */
    margin: 0;
    width: 80%;           /* 导航宽度 */
    list-style: none;
    font-size: 12px;      /* 文字大小 */
  }

  /* 一级导航文字样式 */
  .custom-navigation-ul .navigation-main-li a span {
    display: block;
    padding: 11px 10px 12px; /* 内边距 */
    border-bottom: 1px solid #fff; /* 分隔线 */
    font-size: 14px;
    font-weight: 600;
    color: #000;
    letter-spacing: 1px;
  }

  /* 一级导航右侧箭头 */
  .custom-navigation-ul .navigation-main-li a span:after {
    content: '';
    width: 10px;
    height: 10px;
    margin-top: 6px;
    display: inline-block;
    float: right;
  }

  /* 打开状态的一级导航 */
  .custom-navigation-ul .navigation-main-li.is-open {
    border-bottom: 2px solid;
  }
  .custom-navigation-ul .navigation-main-li.is-open span {
    background: #000;
    color: #fff;
  }

  /* 打开状态的下拉菜单 */
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown {
    display: block;
    background: #fff;
  }

  /* 下拉菜单项样式 */
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown li a {
    border-bottom: 1px solid #ccc;
    padding: 11px 17px 12px 30px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
  }

  /* 有二级菜单的下拉项 */
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown .has-submenu {
    display: block;
  }
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown .has-submenu a:after {
    content: '';
    width: 10px;
    height: 10px;
    display: inline-block;
    float: right;
    margin-top: 6px;
  }

  /* 打开二级菜单样式 */
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown .submenu-open .has-submenu a {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
  }
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown .submenu-open li {
    display: block;
  }
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown .submenu-open li a {
    border-bottom: 1px solid #ccc;
    text-transform: capitalize;
    background: #fff;
  }
  .custom-navigation-ul .navigation-main-li.is-open .custom-navigation-dropdown .submenu-open li a:after {
    content: unset;
  }

  /* 默认隐藏下拉菜单 */
  .custom-navigation-ul .custom-navigation-dropdown {
    display: none;
  }
  .custom-navigation-ul .custom-navigation-dropdown ul {
    list-style: none;
    margin: 0;
  }
  .custom-navigation-ul .custom-navigation-dropdown li {
    display: none;
  }
  .custom-navigation-ul .custom-navigation-dropdown a {
    text-decoration: none;
    display: block;
    padding: 10px;
  }
}

/* ---------------------- 桌面端样式 (宽度 >= 801px) ---------------------- */
@media screen and (min-width: 801px) {
  .navUserContainer #navUserList-wrappper {
    margin-left: 9.9375rem;
  }
  .navPages-container {
    max-width: 1800px;
    margin: auto;
    padding-inline: var(--page-padding);
  }
  .custom-navigation-ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    text-align: center;
    gap: 0;
    padding: 0;
    -ms-flex-direction: row;
    flex-direction: row;
    padding: 3px 0 1px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-line-pack: space-evenly;
    align-content: space-evenly;
  }

  /* 一级导航列表项 */
  .custom-navigation-ul li.navigation-main-li {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(5px, 2vw, 8px) clamp(8px, 4vw, 10px);
    color: #000;
    font-weight: 300;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Jost';
    position: relative;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
  }

  /* 一级导航链接 */
  .custom-navigation-ul li.navigation-main-li a {
    text-decoration: none;
    letter-spacing: normal;
    width: 100%;
    display: block;
  }

  .custom-navigation-ul li.navigation-main-li .cursor-pointer {
    display: inline-flex;
  }

  /* 一级导航文字 */
  .custom-navigation-ul li.navigation-main-li a span {
    letter-spacing: 1px;
    font-weight: 400;
  }

    /* 只选中一级导航的文字 */
  .navPages-container .custom-navigation-ul > .navigation-main-li > a > span {
    font-family: Jost, sans-serif;
    font-weight: 600!important;     /* 加粗 */
    white-space: nowrap;
  }

  .fristNav > .custom-navigation-ul li.navigation-main-li a span {
    font-weight: 400!important;
    font-size: 13px!important;
    white-space: nowrap;
    font-family: Jost, sans-serif;
  }

  #meganav > .custom-navigation-ul li.navigation-main-li a span {
    /* white-space: nowrap; */
    word-wrap: break-word;
    font-weight: 600;
    font-family: Jost, sans-serif;
  }

  /* 一级导航下拉菜单 */
  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown {
    display: none;
    border-bottom: none;
    z-index: 1;
    position: absolute;
    background-color: #fff;
    padding: 0.78571rem;
    top: 100%;
    left: 0;
    text-align: left;
  }

  /* 下拉菜单行和列 */
  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-row {
    display: flex;
    gap: 20px;
  }

  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column {
    width: 240px;
    padding-right: 48px;
  }

  .navigation-column1 {
    width: 240px;
    padding-right: 48px;
  }

  /* 下拉菜单列表项 */
  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column ul {
    list-style: none;
    list-style-image: url(data:0);
    margin: 15px 0 0;
  }

  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column ul li {
    margin-bottom: 6px;
    font-weight: 500;
    padding: 0;
    line-height: 20px;
    text-transform: capitalize;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    font-family: 'Jost';
    font-size: 12px;
  }

  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column ul li a {
    color: #797979;
    width: 100%;
    display: block;
  }

  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column ul li:first-child a {
    color: #000;
    font-weight: 600;
  }

  /* 下拉菜单列的边距 */
  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column ul:first-child,
  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column ul.no-margin {
    margin: 0;
  }

  .custom-navigation-ul li.navigation-main-li .custom-navigation-dropdown .navigation-column:first-child {
    border: none;
    padding-left: 10px;
  }

  /* hover效果显示下拉菜单 */
  .custom-navigation-ul li.navigation-main-li:hover {
    border-bottom-color: #000;
  }

  .custom-navigation-ul li.navigation-main-li:hover .custom-navigation-dropdown {
    display: flex;
  }

  /* 倒数前6个导航项的下拉菜单靠右显示 */
  .custom-navigation-ul li.navigation-main-li:nth-last-child(-n+6) .custom-navigation-dropdown {
    left: auto;
    right: 0;
  }

  /* =================================== */
  /*        字号设置（你需要的）         */
  /* =================================== */

  /* 一级导航：14px */
  .navPages-container .custom-navigation-ul > .navigation-main-li > a > span {
    font-size: 14px;
  }

  /* 二级导航（下拉标题）：13px */
  .custom-navigation-ul li.navigation-main-li 
    .custom-navigation-dropdown .navigation-column ul li:first-child a {
    font-size: 13px !important;
  }

  /* 三级导航（下拉子项）：12px */
  .custom-navigation-ul li.navigation-main-li 
    .custom-navigation-dropdown .navigation-column ul li:not(:first-child) a {
    font-size: 12px !important;
  }

}

/* ---------------------- 桌面小屏调整 (801px ~ 914px) ---------------------- */
@media screen and (min-width: 801px) and (max-width: 914px) {
  .custom-navigation-ul li.navigation-main-li {
    padding: 6.5px 1px;
  }
}

/* ---------------------- 手机端广告横幅 ---------------------- */
.mobile-navigation-banner {
  display: none;
  background: #000;
}

@media screen and (max-width: 800px) {
  .mobile-navigation-banner {
    display: block;
  }

  .mobile-navigation-banner a img {
    width: 50%;
    display: block;
    margin: auto;
  }
}

/* ---------------------- 平板尺寸隐藏导航 ---------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* .custom-navigation-ul {
    display: none;
  } */
  .navUserContainer #navUserList-wrappper {
    margin-left: 4.9375rem;
  }
  .custom-navigation-ul li {
    padding: 10px clamp(4px,.5vw,30px) !important;
  }
}

/* ---------------------- 超小屏隐藏部分导航元素 ---------------------- */
@media (max-width: 767px) {
  .navUserContainer,
  .navStoreContainerWarp,
  .menuitem-container {
    display: none;
  }
  .custom-navigation-ul {
    display: none;
  }
}

/* 重写心愿单导航样式 */
.zg-fixed-icon {
  position: relative;
}
.zg-fixed-icon .zg-fixed-icon__count {
    font-family: "Jost";
    background: #747474;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 60%;
    bottom: 50%;
    color: #fff;
    text-align: center;
    line-height: 12px;
    font-size: 9px;
    width: 16px;
    height: 16px;
}
.zg-fixed-icon .zg-fixed-icon__count:empty {
  display: none;
}

/* 标题前配图 */
.meganav-textlink-wrapper {
  display: inline-flex;
  align-items: center;
}

.meganav-textlink-wrapper .meganav-textlink-text span {
  font-weight: 400;
}

.image-left img {
  display: inline-block;
  margin-right: .3125rem;
}

.image-right img {
  display: inline-block;
  margin-left: .3125rem;
}
