
.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    /* background-color: skyblue; */
    z-index: 999;
    transition: all .6s;
}

.logo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: 50px;
    float: left;
    margin-left: 5%;
}
#logoname{
    color: #f4f4f4;
    transition: color 1s;
}

.hamburger-menu {
    float: right;
    margin-right: 5%;

    width: 32px;
    height: 25px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f4f4f4;
    transition: all 0.3s ease; /* 核心过渡效果 */
  }
  
  /* 三条线的初始位置 */
  .line:nth-child(1) { 
      top: 0; 
  }
  .line:nth-child(2) { 
      top: 50%; 
      transform: translateY(-50%); 
  }
  .line:nth-child(3) { 
      bottom: 0; 
  }

    /* 激活状态（变成 X 的动画） */
    .hamburger-menu.active .line:nth-child(1) {
        transform: translateY(0px)rotate(46deg);
        top: 50%;
      }
      
      .hamburger-menu.active .line:nth-child(2) {
        opacity: 0;
      }
      
      .hamburger-menu.active .line:nth-child(3) {
        transform: translateY(0px) rotate(-46deg);
        bottom: 45%;
      }

    #meun{
        position: fixed;
        top: 60px;
        width: 100%;
        background-color: #000;
        box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
        transition: all .3s;
    }
    #meun>ul{
        /* border-top: 1px solid #ccc; */
        max-width: 90%;
        margin: 0 auto;
    }

.menu-link,.gw a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  height: 5vh;
  line-height: 5vh;
  color: #f4f4f4;
  font-size: 1.2em;
  /* transition: background 0.3s; */
  /* border-bottom: 1px solid #ccc; */
}
.gw a>svg{
  transform: rotate(-90deg);
  width: 18px;
}
.menu-item-a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em;
  height: 1em;
  line-height: 1em;
  color: #dfdfdf;
  font-size: 0.95em;
}

.submenu {
  padding-left: 20px;
  display: none;
}

.submenu.active {
  display: block;
  /* transform: translateX(0); */
  background: #161616;
  border-radius: 10px;
}
.submenu>img{
    width: 85%;
    border-radius: 10px;
}

/* 修复箭头旋转问题 */
.has-children > .menu-link>svg{
  /* float: right; */
  /* font-size: 1.5em; */
  /* line-height: 5vh; */
  transition: transform 0.3s;
  width: 18px;
}
/* 解决子菜单下的子菜单.fa的行高5vh问题 */
/* .menu-item-a>svg{
  line-height: 1em!important;
  font-size: 1em!important;
} */
/* 关键修改：改为通过父级菜单项的 active 类控制 */
.has-children.active>.menu-link>svg{
  transform: rotate(180deg);
}


#scrollToTopBtn{
        position: fixed;
        z-index: 9999;
        bottom: 110px;
        right: 15px;
        /* background-color: rgba(255,255,255, .6); */
        background-color: #fff;
        /* opacity: .8; */
        color: #353434;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        text-align: center;
        font-size: 20px;
        cursor: pointer;
        display: none;
        /* transition: opacity 0.2s; */
        /* transform: rotate(-90deg); */
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
       
}
#scrollToTopBtn>p{
        font-size: 10px;
        position: relative;
        top: -12px;
}

    /* chat-mobile */
    .customerServer_container_mobile{
        right: 10px!important;
    }