.header{
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* 确保边框在上层 */
  pointer-events: none; /* 防止遮挡点击事件 */
}

.not-home{
 padding-top: 160px;
}

.scrolled-header, .scrolled-header::before {
    background: #FFFFFF; 
    box-shadow: 
        0 0 10px rgba(0, 0, 0, 0.12);
}

.logo-container{
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.logo-container,
.nav-container {
  max-width: 1480px;
  padding: 0 20px; /* 添加安全边距 */
  box-sizing: border-box;
}

.logo-container .image-group{
   display: flex;
   align-items: center;
   gap: 15px;
}

.logo-container .other-links{
   display: flex;
   align-items: center;
   gap: 25px;
   margin-right: 25px;
}

.logo-container .other-links a{
    font-size: 16px;
    color: #FFF;
    font-weight: bold;
    position: relative;
}

.logo-container .other-links a:after {
    content: '';
    position: absolute;
    right: -15%;
    top: 25%;
    height: 50%;
    width: 3px;
    border-radius: 3px;
    background: #FFF;
}

.nav-container{
  min-width: 1280px;
  margin: 0 auto;
}

.menu-toggle {
  filter: brightness(10);
  display: none;
}

.scrolled-header .menu-toggle{
   filter: brightness(0);
}

.gq, .logo{
   filter: drop-shadow(2px 4px 6px #FFF);
object-fit: contain; /* 保持比例 */
  transition: height 0.3s ease; /* 添加过渡动画 */
}
.gq{
    height: 85px;
    margin-right: 15px;
}
.logo{
    height: 50px;
}

.scrolled-header .gq, .scrolled-header .logo{
filter: drop-shadow(2px 4px 6px #888);
}

.scrolled-header .nav_menustyle_1_1 a,
.scrolled-header .logo-container .other-links a{
   color: #333 !important;
}

.scrolled-header .logo-container .other-links a:after{
   background: #2687eb;
}


/* 响应式断点处理 */
@media (max-width: 1280px) {
  .header {
    padding: 15px 20px;
  }
  
  .gq { height: 65px; margin-right: 15px; }
  .logo { height: 40px; }
  
  .logo {
    height: 40px;
  }
}

@media (max-width: 1024px) {
   .not-home{
     padding-top: 90px;
   }
  .header{
    display: flex;
}

  /* 导航菜单响应式 */
  .nav-container {
    min-width: auto;
    position: relative;
    min-height: 50px;
    order: -1;
  }

  /* 添加汉堡菜单按钮 */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;

  }

.nav-container.active .menu-toggle{
    color: transparent !important;
}

  /* 初始隐藏导航菜单 */
.nav-container > table {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    padding: 80px 20px 20px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
  }
/* 关闭按钮 */
  .menu-toggle::after {
        content: '×';
        position: fixed;
        top: -5px;
        left: 0px;
        font-size: 40px;
        color: #333;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1002;
  }

  .nav-container.active .menu-toggle::after {
    opacity: 1;
  }

.nav_menustyle_1_1 a {
    height: 56px !important;
    line-height: 56px !important;
    font-size: 16px !important;
    color: #333 !important;
    padding: 0 20px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

 /* 子菜单指示器 */
  .nav_menustyle_1_1 li.has-submenu > a::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 24px;
    color: #666;
    transition: all 0.3s ease;
  }

.nav_menustyle_1_1 li.active > a::after {
    transform: translateY(-50%) rotate(-90deg);
  }

  /* 子菜单样式 */
  .nav_menustyle_1_1 ul li ul {
    background: rgba(245,245,245,0.9) !important;
    margin-left: 15px;
    border-left: 2px solid #2687eb;
  }

  .nav_menustyle_1_1 ul li ul li a {
    font-size: 14px !important;
    height: 48px !important;
    line-height: 48px !important;
  }

  /* 点击反馈 */
  .nav_menustyle_1_1 a:active {
    background: rgba(38,135,235,0.1) !important;
    transform: scale(0.98);
  }

  /* 展开状态 */
  .nav-container.active > table{
    left: 0;
  }

  .other-links {
    width: 100%;
    justify-content: center;
  }

.nav_menustyle_1_1 > ul > li {
    padding: 15px;
    float: none;
    margin: 0;
  }

 .nav_menustyle_1_1 li {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px !important;
    float: none !important;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease backwards;
  }

/* 展开动画 */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .nav_menustyle_1_1 > ul > li::before,
  .nav_menustyle_1_1 > ul > li::after {
    display: none; /* 移除分隔线 */
  }
  
  .nav_menustyle_1_1 ul li ul {
    position: static !important;
    display: none !important;
    background: rgba(245,245,245,0.9);
    box-shadow: none;
  }
  
  .nav_menustyle_1_1 ul li.active > ul {
    display: block !important;
    animation: none;
  }
  
  .nav_menustyle_1_1 > ul > li > a::after {
    display: none; /* 移除下划线动画 */
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 15px;
    justify-content: space-between;
  }

  .logo-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

 .logo-container .other-links {
    display: none;
  }

  .gq {
    height: 55px;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .logo {
    height: 35px;
  }

  /* 移动端文字缩放 */
  .other-links a {
    font-size: 14px;
  }
  .nav-container{
      margin: 0;
   }
  .nav-container > table {
       transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
  .other-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }

  .gq {
    height: 45px;
  }

  .logo {
    height: 30px;
  }
}

/* 滚动状态适配 */
.scrolled-header .menu-toggle {
  color: #333 !important;
}

.scrolled-header .nav-container > table {
  background: rgba(255,255,255,0.98);
}

.scrolled-header .nav_menustyle_1_1 a {
  color: #333 !important;
}