.header {
  position: fixed;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 60px;
  background-color:#fff;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.05);
  color: #121212;
  transition: all 0.2s;
}

.header-logo-first {
  position: absolute;
  top: -500px;
  width: 121px;
  height:75px;
}

.header-logo-square {
  position: absolute;
  top: -500px;
}


.header-transparent {
  box-shadow: none;
  background-color: transparent;
  color: #fff;
  transition: all 0.2s;
}

.header-black {
  color: #121212;
}

.header-wrap {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 204px;
  height:60px;
}

.header-ul {
  display: flex;
  cursor: pointer;
}

.header-li {
  width: 120px;
  height: 60px;
  text-align: center;
}

.header-li > a {
  display:block;
  width: 100px;
  height: 60px;
  font-size: 18px;
  color: inherit;
  text-align: center;
  line-height: 60px;

  text-decoration: none;
}

.header:hover {
  color: #121212;
}

.header-li a:hover {
  color: #2382FF;
}

.header-btn-wrap {
  margin-left: auto;
}

.header-btn {
  width: 104px;
  height: 40px;
  background: #2382FF;
  border-radius: 20px;
  line-height: 40px;
  text-align: center;
  color: #FFFFFF;
}

/* .header-block {
  height: 60px;
} */

.header:hover {
  background-color:#fff;
}





/* pc端 */
@media screen and (min-width: 480px) {
  .header {
    display: block;
  }
  .header-mobile {
    display: none;
  }

  .header-rank {
    position: relative;
  }
  
  .header-rank:hover .header-rank-list {
    display: block;
  }
  
  .header-rank-list {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 58px;
    background: #FFFFFF;
    box-shadow: 0px 2px 4px 0px rgba(25, 25, 29, 0.5);
    border-radius: 0px 0px 8px 8px;
    border: 1px solid #EBEFF7;
  }
  .header-rank-item {
    width: 160px;
    height: 58px;
    text-align: center;
    line-height: 58px;;
  }
  .header-rank-item a {
    display:block;
    font-size: 18px;
    color: inherit;
    text-align: left;
    padding: 0 16px;
  
    text-decoration: none;
  }
}


/* 手机端 */
@media screen and (max-width: 480px) {
  .header-mobile {
    display: block;
    height: 0.44rem;
    width: 3.75rem;
    background-color:#fff;
    position: fixed;
    top: 0;
    z-index: 999;
  }
  .header {
    display: none;
  }

  .header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo-wrap {
    position: relative;
    width: 1.02rem;
    height: 0.44rem;
  }

  .header-logo {
    position: absolute;
    top: 0;left: 0;
    width: 1.02rem;
    height: 0.44rem;
  }
  
  .header-menu {
    width: .24rem;
    height: .24rem;
    padding-right: .15rem;
  }

  .header-menu-close {
    display: none;
  }

  .header-ul {
    position: absolute;
    width: 100%;
    top: .44rem;
    height: calc(100vh - .44rem);
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 0 .15rem;
  }

  .header-li {
    height: auto;
    width: 100%;
    border-bottom: 1px solid #F5F5F5;
    font-weight: 400;
    color: #121212;
  }

  .header-li a {
    width: 100%;
    text-align: left;
    font-size: .16rem;
  }

  .header-ul-mobile {
    display: none;
  }

  .header-block {
    height: .44rem;
  }


  .header-rank {
  }
  
  .header-rank:hover .header-rank-list {
    /* display: block; */
  }
  
  .header-rank-list {
    display: block;
    /* left: 50%;
    transform: translateX(-50%); */
    background: #FFFFFF;
    /* box-shadow: 0px 2px 4px 0px rgba(25, 25, 29, 0.5);
    border-radius: 0px 0px 8px 8px;
    border: 1px solid #EBEFF7; */
  }
  .header-rank-item {
    font-size: .14rem;
    font-weight: 400;
    color: #121212;
    height: .41rem;
    /* width: 160px;
    height: 58px;
    text-align: center;
    line-height: 58px;; */
  }
  .header-rank-item a {
    display:block;
    color: inherit;
    padding-left: .12rem;
  
    text-decoration: none;
  }
}

/* 右侧悬浮入口：APP + 小程序（桌面端展示，窄屏隐藏） */
.gk-float{
    position: fixed;
    right: 18px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 90;
    width: 92px;                /* 收窄最大宽度，视觉更紧凑 */
    padding: 12px 8px;          /* 缩小左右内外边距 */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
    text-align: center;
}
.gk-float__app{
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
}
.gk-float__app-icon{
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 6px;
}
.gk-float__app-label{
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}
.gk-float__line{
    display: block;
    height: 1px;
    margin: 12px 2px;
    background: #ececec;
}
.gk-float__item{
    position: relative;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 8px 4px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
}
.gk-float__item:last-child{
    margin-bottom: 0;
}
.gk-float__icon{
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 6px;
    border-radius: 12px;
    transition: transform .2s;
}
.gk-float__label{
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: #333;
}
.gk-float__item:hover .gk-float__icon{
    transform: scale(1.06);
}
/* hover 弹出二维码（在图标左侧） */
.gk-float__pop{
    position: absolute;
    top: 50%;
    right: 100%;
    margin-right: 14px;
    transform: translateY(-50%);
    display: none;
    width: 152px;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    text-align: center;
}
.gk-float__pop img{
    display: block;
    width: 128px;
    height: 128px;
    margin: 0 auto;
}
.gk-float__pop span{
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}
.gk-float__pop:after{
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #eef0f3;
    border-right: 1px solid #eef0f3;
    transform: rotate(45deg);
}
.gk-float__item:hover .gk-float__pop{
    display: block;
}
/* 平板及更窄：隐藏整条侧栏，避免遮挡正文 */
@media (max-width: 1199px){
    .gk-float{
        display: none;
    }
}
/* 移动端（参考 navbar-header 显示时机 ≤767px）：仅保留悬浮“下载 App”按钮，
   其余小程序项与分割线全部隐藏、不占空间；按钮置于右下角避开内容遮挡 */
@media (max-width: 767px){
    .gk-float{
        display: block;
        top: auto;
        bottom: 86px;
        right: 30px;
        transform: none;
        width: auto;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        text-align: left;
    }
    .gk-float__line,
    .gk-float__item{
        display: none !important;
    }
    .gk-float__app{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        background-color: #2382ff;
        border-radius: 18px;
        box-shadow: 0 4px 12px rgba(35,130,255,.35);
    }
    .gk-float__app-icon{
        width: 22px;
        height: 22px;
        margin: 0;
        border-radius: 5px;
    }
    .gk-float__app-label{
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        color: #fff;
    }
}

/* 去掉 Bootstrap 默认的 a:focus 黑框（点击后不再出现轮廓） */
.gk-float a:focus,
.gk-float a:active{
    outline: none;
}
.gk-float a{
    -webkit-tap-highlight-color: transparent;
}
