.qhee-header {
  background-color: #FFF;
}
/* 避免导航下拉等元素造成横向溢出，影响首页轮播居中计算
   只对头部区域做裁剪，避免影响页面其它横向布局 */
#qhee-header {
  overflow-x: clip;
}
.qhee-header-top {
  height: 60px;
  line-height: 60px;
  padding: 15px 0;
}
.qhee-header-top .jyjt-logo {
  width: 128px;
}
.qhee-header-top .qhee-logo {
  width: 275px;
}
.qhee-header-top img {
  width: 100%;
  height: auto;
}
.qhee-header-userreg, .qhee-header-userlogin {
  padding: 0 5px;
  color: #003;
  font-size: .16rem;
}
.qhee-header-userreg:hover, .qhee-header-userlogin:hover {
  color: #BA0001;
}
.qhee-header-user {
  position: relative;
  margin-right: 5px;
}
.qhee-header-user .company-logo {
  width: 26px;
  height: auto;
  cursor: pointer;
}
.qhee-header-user .iconfont {
  color: #003;
}
.qhee-header-user .sub-header-nav {
  top: 50px;
  background: #BA0001;
  border: none;
  box-shadow: none;
  transform: scale(1, 1);
}
.qhee-header-user .sub-header-nav li {
  width: auto;
}
.qhee-header-user .sub-header-nav li a {
  color: #FFF;
}
.qhee-header-fontsize button {
  width: auto;
  margin-left: 3px;
  border: none;
  background-color: #BA0001;
  color: #FFF;
  text-align: center;
}
.qhee-header-fontsize .fontsize-small {
  height: 24px;
  font-size: 14px;
}
.qhee-header-fontsize .fontsize-middle {
  height: 28px;
  font-size: 16px;
}
.qhee-header-fontsize .fontsize-big {
  height: 32px;
  font-size: 18px;
}
#header-nav {
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: .16rem;
  position: relative;
  overflow: visible;
}
#header-nav > li {
  margin-right: 35px;
  padding: 0;
  cursor: pointer;
  color: #3D3D3D;
  transition: color 0.2s ease;
  /* 让下拉面板定位参照 #header-nav（避免只跟着单个 li 的宽度） */
  position: static;
}
#header-nav > li a {
  color: #3D3D3D;
  transition: color 0.2s ease;
  display: block;
  padding: 0 14px;
  position: relative; /* 给 nav-new 定位用 */
  white-space: nowrap;
}
/* 与 layout.css 中 flex 导航配合：避免缩放/窄屏时子项被压窄导致标题逐字换行 */
.header-qhee #header-nav > li {
  flex-shrink: 0;
}
/* 仍允许对超长菜单项使用 .br 刻意断行（旧版样式） */
.header-qhee #header-nav a.br {
  white-space: normal;
}
#header-nav > li.active, #header-nav > li:hover, #header-nav > li.active > a, #header-nav > li:hover > a {
  border-bottom: none;
  color: #BA0001;
}
#header-nav .sub-nav::after {
  content: none;
  display: none;
}
#header-nav .nav-new {
  width: 28px;
  height: 26px;
  position: absolute;
  top: 4px;
  right: -18px;
}
/* 广东风格多列下拉：一级菜单下的二级分组 + 子级 + 滑动与悬停特效 */
#header-navs {
  position: relative;
}
#header-nav .nav-dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  top: 100%;
  /* 半透明遮罩（不使用背景图，保证能透出底部内容） */
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #eee;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  /* 下拉内容按左侧排布，不继承一级导航的居中 */
  text-align: left;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  /* 下滑进入：初始向上偏移，悬停时滑落到位 */
  transform: translateY(-12px);
  /* 关闭时延迟 0.12s 再收起，避免鼠标从一级滑到面板时闪关 */
  transition: opacity 0.2s ease-in 0.12s, visibility 0.2s ease-in 0.12s, max-height 0.3s ease-in 0.08s, transform 0.22s ease-in 0.1s;
  box-sizing: border-box;
}
/* 悬停桥：面板上方透明区域，鼠标从一级菜单滑到面板时不会触发 leave */
#header-nav .nav-dropdown-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}
#header-nav > li.sub-nav:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  max-height: 480px;
  overflow: visible;
  transform: translateY(0);
  /* 展开时无延迟，立即滑入 */
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out, max-height 0.32s ease-out, transform 0.25s ease-out;
  transition-delay: 0s;
}
#header-nav .nav-dropdown-inner {
  /* 分组整体：5 列网格对齐，避免参差与拥挤 */
  display: grid;
  /* 自适应列数：空间够就 5 列，不够自动换行，避免分组被挤爆后重叠 */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
  justify-items: start;
  padding: 24px 0 28px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
  background: transparent;
}
#header-nav .nav-dropdown-group {
  box-sizing: border-box;
  padding-right: 0;
  margin-bottom: 0;
  background: transparent;
}
#header-nav .nav-dropdown-group-title {
  color: #BA0001;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
#header-nav .nav-dropdown-group-title:empty {
  display: none;
}
#header-nav .nav-dropdown-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* 每个分组：最多 5 行，超出自动换到下一列 */
  display: grid;
  grid-auto-flow: column;
  /* 行高给足，避免字体被裁切 */
  grid-template-rows: repeat(5, 36px);
  /* 列宽在分组内自适应，避免第二列溢出到下一个分组造成重叠 */
  grid-auto-columns: minmax(140px, 1fr);
  column-gap: 24px;
  justify-items: start;
}
#header-nav .nav-dropdown-group-list li {
  margin: 0;
  padding: 0;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#header-nav .nav-dropdown-group-list li a {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 36px;
}
#header-nav .nav-dropdown-group-list li a {
  color: #333;
  display: inline-block;
  padding: 0;
  transition: color 0.15s ease;
}
#header-nav .nav-dropdown-group-list li a:hover {
  color: #BA0001;
  background-color: transparent;
}
#header-nav .nav-dropdown-group-list .nav-item-hot {
  margin-left: 4px;
  font-size: 12px;
  color: #BA0001;
  font-weight: normal;
}
/* 兼容：无二级分组时旧版单列下拉（若仍使用 sub-header-nav） */
#header-nav .sub-header-nav {
  width: auto;
  top: auto;
  left: 0;
  padding: 5px 0;
}
#header-nav .sub-header-nav li {
  width: auto;
  height: 24px;
  line-height: 24px;
  font-size: .14rem;
  white-space: nowrap;
}
#header-nav .sub-header-nav li a:hover {
  background-color: transparent;
  color: #BA0001;
}
@media (max-width: 768px) {
  .qhee-header-top .jyjt-logo {
    max-width: 20%;
    height: auto;
  }
  .qhee-header-top .qhee-logo {
    max-width: 40%;
    height: auto;
  }
  #header-nav {
    display: none;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    z-index: 2;
    position: absolute;
    top: 65px;
    left: -3%;
    margin-left: 0;
    padding-left: 3%;
    background: rgba(22, 33, 44, .9);
  }
  #header-nav > li {
    display: block;
    margin-right: 0;
    padding-left: 30px;
    color: #FFF;
    text-align: left;
  }
  #header-nav > li a {
    color: #FFF;
  }
  /* 移动端：多列下拉改为垂直堆叠 */
  #header-nav .nav-dropdown-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    margin-left: 0;
    transform: none;
    max-height: none;
  }
  #header-nav > li.sub-nav:hover .nav-dropdown-panel,
  #header-nav > li.sub-nav.active .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    max-height: 2000px;
  }
  #header-nav .nav-dropdown-inner {
    flex-direction: column;
    padding: 8px 0 12px 30px;
  }
  #header-nav .nav-dropdown-group {
    min-width: 0;
    margin-right: 0;
    margin-bottom: 12px;
  }
  #header-nav .nav-dropdown-group-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }
  #header-nav .nav-dropdown-group-list li a {
    color: rgba(255, 255, 255, 0.85);
  }
}
