/* 头部 */
header{
    width: 100%;
    max-width: 1920px;
    height: 80px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

/* 移动端导航展开时：禁止页面滚动（避免出现滚动条） */
html.is-mainnav-open,
body.is-mainnav-open{
  overflow: hidden;
  height: 100%;
}

#mainNav{
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}
#mainNav::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}
.navbar{
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 9;
}
.navbar .left_box{
  padding: 20px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.navbar .left_box img{
  width: 112px;
}
.navbar .left_box span{
  font-size: 14px;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  margin-left: 16px;
  padding-left: 16px;
}
.navbar .right_box{
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0 70px;
}
.navbar .right_box .nav_list{
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0 40px;
}
.navbar .right_box .nav_list .nav_item{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  cursor: pointer;
}
.navbar .right_box .nav_list .nav_item a{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}
.navbar .right_box .nav_list .nav_item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: all 0.3s ease;
}
.navbar .right_box .nav_list .nav_item:hover{
  color: #ffffff;
  position: relative;
}
.navbar .right_box .nav_list .nav_item:hover::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}
.navbar .right_box .nav_list .nav_item_active{
  color: #ffffff;
  position: relative;
}
.navbar .right_box .nav_list .nav_item_active::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}
.navbar .right_box .tell_box{
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 8px 12px;
  gap: 0 4px;
  cursor: pointer;
}
.navbar .right_box .tell_box img{
  width: 24px;
  height: 24px;
}
.navbar .right_box .tell_box:hover img{
  animation: rh-shake 0.45s ease-in-out;
}
.navbar .right_box .tell_box:hover img{
  will-change: transform;
}

@keyframes rh-shake {
  0% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-2px) rotate(-6deg); }
  30% { transform: translateX(2px) rotate(6deg); }
  45% { transform: translateX(-2px) rotate(-6deg); }
  60% { transform: translateX(2px) rotate(6deg); }
  75% { transform: translateX(-1px) rotate(-3deg); }
  100% { transform: translateX(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .navbar .right_box .tell_box:hover img{
    animation: none !important;
  }
}
.navbar .right_box .tell_box div{
  font-size: 16px;
  color: #ffffff;
}
/* 白色背景样式 */
.header_white {
    background: #ffffff;
}
.header_white .navbar{
  border-bottom: 1px solid #d9d9d9;
}
.header_white .navbar .left_box span {
    color: #000000;
}
.header_white .navbar .right_box .nav_list .nav_item{
   color: #333333; 
}
.header_white .navbar .right_box .nav_list .nav_item:hover {
    color: #3772FB;
    position: relative;
}
.header_white .navbar .right_box .nav_list .nav_item:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #3772FB;
}
.header_white .navbar .right_box .nav_list .nav_item_active {
    color: #3772FB;
    font-weight: bold;
    ;
    position: relative;
}
.header_white .navbar .right_box .nav_list .nav_item_active::after {
    background: #3772FB;
}
.header_white .navbar .right_box .tell_box {
    background: rgba(55, 114, 251, .1);
}
.header_white .navbar .right_box .tell_box img {
    width: 24px;
    height: 24px;
}
.header_white .navbar .right_box .tell_box div {
    font-size: 16px;
    color: #333333;
}
/* 汉堡按钮（默认隐藏，小屏/中屏显示） */
.nav_toggle{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  /* border: 1px solid rgba(255, 255, 255, 0.4); */
  border: none;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav_toggle span{
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  display: block;
}
.header_white .nav_toggle span{
  background: #3772FB;
}
@media (max-width: 1500px) {
  .navbar .right_box{
    gap: 0 50px;
  }
}

@media (max-width: 1200px) {
  .nav_toggle{
    display: flex;
  }
  #mainNav{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }
  #mainNav.is-open{
    visibility: visible;
    pointer-events: auto;
  }
  #mainNav.is-closing{
    visibility: visible;
    pointer-events: auto;
  }
  #mainNav .rh-drawer__backdrop{
    height: 100vh;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  #mainNav.is-open .rh-drawer__backdrop{
    opacity: 1;
  }
  #mainNav.is-closing .rh-drawer__backdrop{
    opacity: 0;
  }
  #mainNav .rh-drawer__panel{
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 70vw);
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    background: #222;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    will-change: transform;
  }
  #mainNav.is-open .rh-drawer__panel{
    transform: translateX(0);
  }
  #mainNav.is-closing .rh-drawer__panel{
    transform: translateX(100%);
  }
  #mainNav .rh-drawer__header{
    height: 56px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  #mainNav .rh-drawer__title{
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
  }
  #mainNav .rh-drawer__header{
    justify-content: flex-start;
  }
  #mainNav .mobile_nav{
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
  }
  #mainNav .mobile_nav .nav_list{
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  #mainNav .mobile_nav .nav_list .nav_item{
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: auto;
    padding: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  #mainNav .mobile_nav .nav_list .nav_item a{
    width: 100%;
    height: 100%;
  }
  #mainNav .mobile_nav .nav_list .nav_item:last-child{
    border-bottom: none;
  }
  #mainNav .mobile_nav .nav_list .nav_item:hover{
    background: rgba(0, 0, 0, 0.12);
    color: #ffffff;
  }
  #mainNav .mobile_nav .nav_list .nav_item.nav_item_active{
    color: #ffffff;
    font-weight: 600;
  }
  #mainNav .mobile_nav .nav_list .nav_item.nav_item_active::after{
    display: none;
  }
  #mainNav .mobile_nav .tell_box{
    margin-top: 8px;
    display: flex;
    align-items: center;
  }
  #mainNav .mobile_nav .tell_box img{
    width: 24px;
    height: 24px;
  }
  #mainNav .mobile_nav .tell_box div{
    color: #ffffff;
  }
  .small_box{
    display: flex;
    align-items: center;
  }
  .tell_box_small{
    display: flex;
    align-items: center;
    margin-right: 20px;
  }
  .tell_box_small img{
    width: 24px;
    height: 24px;
  }
  .tell_box_small div{
    color: #333333;
  }
  .tell_box_small_white div{
    color: #ffffff;
  }
}

@media (max-width: 767.98px) {
  header{
    height: 60px;
  }
  .navbar{
    height: auto;
    padding: 8px 12px;
  }
  .navbar .left_box{
    padding: 0;
  }
  .navbar .left_box img{
    width: 96px;
  }
  .navbar .left_box span{
    display: none;
  }
  .nav_toggle{
    display: flex;
  }
  .mobile_nav{
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile_nav_header{
    padding: 4px 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
  }
  .mobile_nav_header span{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
  }
  .mobile_nav .nav_list{
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile_nav .nav_list .nav_item{
    height: auto;
    justify-content: flex-start;
    padding: 8px 0;
    font-size: 14px;
  }
  .mobile_nav .nav_list .nav_item.nav_item_active{
    color: #ffffff;
  }
  .mobile_nav .nav_list .nav_item.nav_item_active::after{
    display: none;
  }
  .mobile_nav .tell_box{
    align-self: flex-start;
    margin-top: 4px;
  }
}
