/* ============================================================
   新增/修改部分已用注释标记（可根据需要调整数值）
   ============================================================ */

/* 新加 - 模块 */
.header1 {
  width: 100%;
  height: 40px;
  background: #F0F0F0;
  padding: 0 var(--container);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header1 .lt {
  display: flex;
  grid-gap: 75px;
}

.header1 .lt p {
  display: flex;
  align-items: center;
  grid-gap: 20px;
  color: #696969;
}

.header1 .lt p:last-child {
  display: none;
}

.header1 .rt {
  display: flex;
  grid-gap: 60px;
}

.header1 .rt a {
  font-size: 14px;
  text-decoration-line: underline;
  color: #696969;
  transition: 0.5s;
}

.header1 .rt a:hover {
  color: var(--color);
  text-decoration-line: underline !important;
}

@media (max-width: 1200px) {
  .header1 {
    display: none;
  }
}

/* ===== 导航更新代码 ===== */
.header {
  margin: 0 auto;
  height: 90px;
  background: #fff;
  top: 40px;
}

.header.on {
  top: 0px;
}

/* logo —— 改为弹性固定宽度，防止被挤压 */
.header .logo {
  flex: 0 0 200px;   /* 原 width:200px; 改为 flex 属性 */
  height: 90px;
}

.header.on .logo .logo1 {
  display: none;
}

.header.on .logo .logo2 {
  display: flex;
}

@media (max-width: 1200px) {
  .header .logo {
    padding: 5px 0;
  }
}

/* ===== 导航 ===== */
.header .navBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;          /* 【新增】Logo、导航、右侧三者间距，可按需调整 */
}

/* 导航菜单容器 —— 自适应剩余空间，不再使用 calc */
.header .nav {
  flex: 1;            /* 原 width: calc(100% - 400px); 改为弹性填充 */
  max-width: 600px;
}

/* 导航菜单列表 —— 使用固定间隙，取消两端对齐 */
.header .nav .navbar_nav {
  display: flex;
  gap: 20px;          /* 【修改】菜单项之间的间距，原来为 space-between */
  justify-content: flex-start;  /* 从左排列，如需居中可改为 center */
  width: 100%;
}

.header .navbar_nav li.dropdown {
  width: auto;
  height: 90px;
  position: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.header .navbar_nav li > a {
  transition: 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 16px;
  color: #000;
  line-height: 1;
  padding: 0;
  opacity: 1;
  width: auto;
  height: 100%;
  font-weight: bold;
}

.header.on .navbar_nav li > a {
  color: #4D4D4D;
}

.header .navbar_nav li > a.active::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, #1D1F85 -84.46%, #355ADC 50.28%, #7DCDF4 127.7%);
  position: absolute;
  bottom: 10px;
}

/* 二级分类 */
.header .navbar_nav li.dropdown .dropdown_menu {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  height: 400px;
  padding: 60px var(--container);
  left: 0;
  background: url(/assets/images/nav.png) no-repeat center #FDFDFD;
}

.header .navbar_nav li.dropdown:hover .dropdown_menu {
  display: flex;
}

.menu_2 {
  width: 420px;
  border-right: 2px solid #EBEBEB;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  grid-gap: 30px 0;
}

.menu_2 p {
  width: 100%;
  font-size: 28px;
  color: var(--color);
  margin-bottom: 30px;
  font-weight: bold;
}

.menu_2 a {
  width: 50%;
  font-size: 14px;
  color: #3E3E3E;
  display: flex;
  align-items: center;
  transition: 0.5s;
  font-weight: bold;
  padding-left: 10px;
  position: relative;
}

.menu_2 a:hover {
  font-size: 16px;
  color: var(--color);
}

.menu_2 a::before {
  content: "";
  display: block;
  width: 0px;
  height: 2px;
  margin: 0;
  background: var(--color);
  transition: 0.5s;
  left: -10px;
  position: relative;
}

.menu_2 a:hover::before {
  width: 30px;
  margin-right: 10px;
}

.menu_2 a::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 0;
  background: var(--color);
  transition: 0.5s;
  left: 0px;
  position: absolute;
}

.menu_2 a:hover::after {
  height: 2px;
}

.navimgtext {
  width: calc(100% - 420px);
  display: flex;
  align-items: center;
}

.navimgtext p {
  width: 53%;
  padding: 0 75px;
  font-size: 14px;
  line-height: 1.75;
  text-align: justify;
  color: #868686;
}

.navimgtext img {
  width: 47%;
}

/* ===== 导航图标代码（右侧工具栏） ===== */
.NavRight {
  flex: 0 0 auto;      /* 【修改】原 width:200px; 改为自动宽度，避免内容拥挤 */
  width: auto;
  display: flex;
  align-items: center;
  gap: 12px;           /* 【新增】内部元素间距（如有需要） */
}

.NavRight a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.NavRight p {
  display: block;
  width: 1px;
  height: 18px;
  background: #9D9D9D;
}

.NavRight p:last-child {
  display: none;
}

/* ===== 响应式 ===== */
@media (max-width: 1500px) {
  .navimgtext p {
    padding: 0 45px;
  }
}

@media (max-width: 1200px) {
  .header {
    background: #fff;
    width: 100%;
    border-bottom: 0px;
    top: 0;
  }

  .header .navBox {
    width: 260px;
    padding: 0;
    gap: 0;            /* 移动端重置间距 */
  }

  .header .w1600 {
    display: flex;
    justify-content: space-between;
  }

  .header #navToggle {
    height: 100%;
    margin: 0;
  }

  .header #navToggle span,
  .header #navToggle span:before,
  .header #navToggle span:after {
    background: #333 !important;
  }

  .header.on #navToggle span,
  .header.on #navToggle span:before,
  .header.on #navToggle span:after {
    background: #333 !important;
  }

  .NavRight {
    display: none;     /* 移动端隐藏右侧工具栏 */
  }
}