header,
.headerWrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}

header {
  width: 100%;
  height: .88rem;
  background: rgba(49, 49, 49, 0.1);
  display: flex;
  align-items: center;
  padding: 0 1.06rem 0 1.12rem;
  backdrop-filter: blur(.1rem);
}

header .logo {
  width: 1.504rem;
  height: .39rem;
}

header .headNav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 3.3rem 0 4.2rem;
}

header .headNav .navItem {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

header .headNav .navItem.act::after,
header .headNav .navItem:hover::after {
  content: '';
  width: 100%;
  height: .04rem;
  opacity: 0.5;
  border-radius: .02rem;
  position: absolute;
  bottom: 0;
  background: rgba(91, 196, 196, 1);
}

header .headNav a {
  font-family: AlibabaPuHuiTi-3-65-Medium;
  font-weight: 500;
  font-size: .24rem;
  color: #fff;
}

header .headNav .navItem.act a,
header .headNav .navItem:hover a{
  color: rgba(91, 196, 196, 1);
}

header .lang {
  display: flex;
  align-items: center;
  gap: .08rem;
  font-family: AlibabaPuHuiTi-3-65-Medium;
  font-weight: 500;
  font-size: .2rem;
  color: #fff;
}

header .lang img {
  width: .3rem;
  height: .3rem;
}

/* 深色主题 */
header.dark .logo,
header.dark .lang img {
  filter: brightness(0) invert(1);
}

/* 浅色主题 */
header.tint .headNav a{
  color: rgba(51, 51, 51, 1);
}

header.tint .lang{
  color: rgba(51, 51, 51, 1);
}

/* header.tint .lang img 样式已移除，图标正常显示 */

/* 响应式样式 - 确保在不同屏幕尺寸下 header 样式一致 */
/* 使用 vw 单位确保在不同屏幕尺寸下按比例缩放 */
@media screen and (min-width: 1920px) {
  /* 大屏幕（>=1920px）- 使用固定像素值，确保样式稳定 */
  header {
    height: 88px;
    padding: 0 106px 0 112px;
  }
  
  header .logo {
    width: 150.4px;
    height: 39px;
  }
  
  header .headNav {
    gap: 120px;
    margin: 0 330px 0 420px;
  }
  
  header .headNav a {
    font-size: 24px;
  }
  
  header .lang {
    gap: 8px;
    font-size: 20px;
  }
  
  header .lang img {
    width: 30px;
    height: 30px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1919px) {
  /* 中等屏幕（1024px-1919px）- 使用 vw 单位按比例缩放 */
  header {
    height: 4.58vw;
    padding: 0 5.52vw 0 5.83vw;
  }
  
  header .logo {
    width: 7.83vw;
    height: 2.03vw;
    max-width: 150.4px;
    max-height: 39px;
  }
  
  header .headNav {
    gap: 6.25vw;
    margin: 0 17.19vw 0 21.88vw;
  }
  
  header .headNav a {
    font-size: clamp(18px, 1.25vw, 24px);
  }
  
  header .lang {
    gap: 0.42vw;
    font-size: 1.04vw;
  }
  
  header .lang img {
    width: 1.56vw;
    height: 1.56vw;
    max-width: 30px;
    max-height: 30px;
  }
}

@media screen and (max-width: 1023px) {
  /* 小屏幕（<=1023px）- 使用固定像素值 */
  header {
    height: 60px;
    padding: 0 20px;
  }
  
  header .logo {
    width: 120px;
    height: auto;
    max-height: 30px;
  }
  
  header .headNav {
    gap: 15px;
    margin: 0 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  header .headNav a {
    font-size: 16px;
  }
  
  header .lang {
    gap: 6px;
    font-size: 14px;
  }
  
  header .lang img {
    width: 20px;
    height: 20px;
  }
}

/* 确保 header 在所有环境下都有最小高度和合理的布局 */
header {
  min-height: 60px;
  box-sizing: border-box;
}

header .headNav {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

header .headNav .navItem {
  white-space: nowrap;
  flex-shrink: 0;
}

.common-phone-header,
.side-wrap {
  display: none;
}

@media only screen and (max-width: 1024px) {
  header {
    display: none;
  }

  .common-phone-header {
    display: block !important;
  }

  .side-wrap {
    display: block !important;
  }

  .common-phone-header {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
  }

  .common-phone-header-inner {
    display: flex;
    height: 50px;
    border-bottom: 1px solid #eee;
    padding: 0 15px;
    justify-content: space-between;
    align-items: center;
  }

  .header-menu-phone {
    height: 30px;
    width: auto;
    display: block;
  }

  .header-logo-phone {
    height: 30px;
    width: auto;
    display: block;
  }

  .header-search-phone {
    height: 30px;
    width: auto;
    display: block;
  }

  .header-search-box-phone {
    display: none;
  }

  .header-search-input-phone {
    border-radius: 20px;
    height: 35px;
    border-width: 1px;
    border: 1px solid #333;
    padding: 0 10px;
    font-size: 14px;
  }

  .side-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, .5);
  }

  .side-container {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    height: 100vh;
    width: 6.4rem;
    background-color: #fff;
    color: #000;
    /* border-left: 1px solid #eee; */
    animation: ani_side 1s;
  }

  .side-container.shown {
    display: block;
  }

  @keyframes ani_side {
    from {
      display: none;
      width: 3rem;
    }

    to {
      display: block;
      width: 6.4rem;
    }
  }

  .side-wrap {
    width: 100%;
  }

  .side-top {
    display: flex;
    height: 60px;
    padding: 0 20px 0 30px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
  }

  .side-logo {
    height: 30px;
    width: auto;
  }

  .side-close {
    width: .48rem;
  }

  .side-bottom {
    padding: 0 .48rem 0 .72rem;
  }

  .nav-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .27rem 0 .27rem 0;
    border-bottom: 1px solid #eee;
  }

  .nav-item-inner span {
    display: flex;
    align-items: center;
    font-size: 14px;
  }

  .nav-item-inner img {
    width: .4rem;
  }

  .side-nav-list .nav-item a {
    color: #000;
    font-size: .26rem;
    width: 100%;
    display: inline-block !important;
  }

  .side-nav-list .side-local-img {
    width: .3rem;
    margin-right: .2rem;
    vertical-align: text-bottom;
  }

  .side-nav-list-sub {
    display: none;
  }

  .side-nav-list-sub .side-back-img {
    width: .3rem;
    margin-right: .2rem;
    vertical-align: text-bottom;
  }
}