/* 头部 —— 还原源站：130px；左侧 logo 压 navback 深灰底，右侧 615px 白块（上标语/电话、下导航） */
.g-header {
  position: relative;
  z-index: 100;
  height: 130px;
  background: #fff url(../../images/gongbao/navback.jpg) no-repeat;
  background-size: 100% 100%;
}

.g-header-inner {
  display: flex;
  align-items: center;
  height: 130px;
}

.g-logo {
  display: block;
  flex: 0 0 auto;
}

.g-logo img {
  height: 62px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
}

.g-header-side {
  width: 615px;
  height: 130px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.g-header-tel {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e9e9;
}

.g-slogan {
  font-size: 20px;
  font-weight: 800;
  color: #bca289;
  white-space: nowrap;
}

.g-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 210px;
  height: 36px;
  padding: 0 0 0 14px;
  background: #bca289;
  border-radius: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

.g-tel img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* 导航 */
.g-nav-bar {
  height: 55px;
}

.g-nav {
  display: flex;
  align-items: center;
  height: 55px;
}

.g-nav-item {
  position: relative;
  margin-right: 28px;
}

.g-nav-item:last-child {
  margin-right: 0;
}

.g-nav-item > a {
  display: block;
  padding: 0;
  line-height: 53px;
  font-size: 14px;
  color: #282828;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

.g-nav-item:hover > a,
.g-nav-item.active > a {
  color: #bca289;
  border-bottom-color: #bca289;
}

.g-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 6px 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 120;
}

.g-nav-item:hover .g-sub {
  display: block;
}

.g-sub a {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.g-sub a:hover {
  background: var(--color);
  color: #fff;
}

/* 移动端按钮 */
.g-mnav-btn {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 30px;
  padding: 5px 0;
}

.g-mnav-btn span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color);
  transition: 0.3s;
}

/* 移动端抽屉 */
.g-mnav-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

.g-mnav-mask.open {
  display: block;
}

.g-mnav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: right 0.35s;
  overflow-y: auto;
}

.g-mnav.open {
  right: 0;
}

.g-mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.g-mnav-head img {
  height: 42px;
  width: auto;
}

.g-mnav-close {
  font-size: 20px;
  color: #666;
}

.g-mnav-list > li {
  border-bottom: 1px solid #f0f0f0;
}

.g-mnav-tit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 15px;
  color: #333;
}

.g-mnav-tit i {
  font-size: 12px;
  color: #999;
  transition: 0.3s;
}

.g-mnav-list > li.open .g-mnav-tit i {
  transform: rotate(180deg);
}

.g-mnav-sub {
  display: none;
  padding: 2px 0 8px;
  background: #fafafa;
}

.g-mnav-sub a {
  display: block;
  padding: 8px 32px;
  font-size: 14px;
  color: #666;
}

/* 响应式 */
@media screen and (max-width: 1300px) and (min-width: 1025px) {
  .g-header-side {
    width: 560px;
  }

  .g-slogan {
    font-size: 17px;
  }

  .g-nav-item {
    margin-right: 18px;
  }

  .g-nav-item > a {
    font-size: 13px;
  }

  .g-tel {
    width: 190px;
    font-size: 14px;
  }
}

@media screen and (max-width: 1024px) {
  .g-header {
    height: 72px;
    background: #fff;
  }

  .g-header-inner {
    height: 72px;
  }

  .g-header-side {
    display: none;
  }

  .g-mnav-btn {
    display: block;
  }

  .g-logo {
    max-width: calc(100% - 90px);
  }

  .g-logo img {
    height: 48px;
    max-width: 200px;
  }
}

/* ===== 导航吸顶（2026-10-20 用户要求） ===== */
.g-header { position: sticky; top: 0; z-index: 999; }

/* body overflow-x:hidden 会把 body 变成滚动容器、杀死 sticky 吸顶；clip 不产生滚动容器 */
body { overflow-x: clip; }


/* ── 476-电话链接hover修复 20261021：tel: 链接 hover 不变品牌色（原色=底色会隐身） ── */
.g-tel a, .g-tel a:hover, .g-tel a:focus,
.g-ftel a, .g-ftel a:hover, .g-ftel a:focus,
.g-side-tel a, .g-side-tel a:hover, .g-side-tel a:focus { color: inherit; text-decoration: none; }

/* 2026-10-21 美洽客服按钮固定右下，避免遮挡正文 */
#meiqia_custorm,
#_meiqia_drag_handler_button {
  transform: none !important;
  left: auto !important;
  right: 14px !important;
  top: auto !important;
  bottom: 70px !important;
}
@media screen and (max-width: 1024px) {
  #meiqia_custorm,
  #_meiqia_drag_handler_button {
    right: 10px !important;
    bottom: 80px !important;
    width: 56px !important;
    height: 56px !important;
  }
}
