/* ============ 头部 Header ============ */
.header {
  width: 100%;
  height: 90px;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.header > * {
  flex: 0 0 auto;
}

/* 头部主体容器，最大宽度 1440px */
.header::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.navbox,
.header > .r {
  display: flex;
  align-items: center;
  height: 45px;
}

.header {
  padding: 0 max(calc((100vw - 1440px) / 2), 20px);
}

/* Logo 区域 */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  height: 48px;
  flex: 0 0 auto;
}

.logo .lgImg {
  /* width: 48px; */
  /* height: 48px; */
  width: 420px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.logo span {
  margin-left: 22px;
  font-family:
    Noto Sans SC,
    Noto Sans SC;
  font-weight: 400;
  font-size: 32px;
  color: #000000;
  text-align: center;
  font-style: normal;
  text-transform: none;
}

/* 导航栏 */
.navbox {
  flex: 1 1 auto;
  justify-content: flex-end;
  margin: 0 56px;
}

.nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 45px;
}

.nav > li {
  position: relative;
  height: 45px;
  line-height: 45px;
  padding: 0 18px;
  list-style: none;
}

.nav > li > a {
  font-family: Inter, Inter;
  display: block;
  height: 45px;
  line-height: 45px;
  color: #1a1a1a;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav > li > a:hover {
  color: #0f4799;
}

/* 选中样式 */
.nav > li.act > a {
  color: #0f4799;
}

.nav > li.act::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: #0f4799;
}

/* 右侧区域 */
.header > .r {
  flex: 0 0 auto;
  position: relative;
}

/* 链接区（分享/电话）按设计图隐藏 */
.h-link {
  display: none;
}

/* 搜索按钮 */
.h-search {
  height: 45px;
  display: flex;
  align-items: center;
}

.h-search .searchBtn,
.h-search .hdBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: url('../images/search.png') no-repeat center center / contain;
  text-indent: -9999em;
  overflow: hidden;
}

.h-search .searchBtn:hover {
  opacity: 0.7;
}

/* ============ 移动端菜单按钮（桌面端隐藏） ============ */
.menuBtn {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menuBtn .burger {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  position: relative;
}

.menuBtn .burger::before,
.menuBtn .burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #333;
}

.menuBtn .burger::before {
  top: -7px;
}

.menuBtn .burger::after {
  top: 7px;
}

.menuBox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  max-width: 320px;
  background: #ffffff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 70px 24px 24px;
  box-sizing: border-box;
}

.menuBlack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
  .nav > li {
    padding: 0 12px;
  }
  .nav > li > a {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .header {
    height: 70px;
    padding: 0 16px;
  }
  .logo span {
    font-size: 24px;
    margin-left: 12px;
  }
  .navbox {
    display: none;
  }
  /* 移动端：让搜索框贴到右侧，避免 .r 和 .menuBtn 被 space-between 撑开 */
  .header > .r {
    margin-left: auto;
  }
  .menuBtn {
    display: flex;
    margin-left: 12px;
  }

  .logo .lgImg {
    /* width: 48px; */
    /* height: 48px; */
    width: 300px;
  }
}
