/* ------------------- 悬浮导航栏 ----------------- */

#floatingbar {
  position: fixed;
  right: 15px;
  top: 300px;
  width: 98px;
  background-color: #EEF9FF;
  border: 1px solid #eee;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  z-index: 600;
  padding-top: 10px;
}

#floatingbar .floatingbar-app {
  position: relative;
  height: 74px;
  margin-bottom: 10px;
}

#floatingbar .floatingbar-app .a-content {
  /* display: inline-block; */
  width: 74px;
  height: 74px;
  color: #ffffff;
  background-color: #0081CC;
  border-radius: 5px;
  font-size: 14px;
  line-height: 19px;
  display: block;
  /* display: flex; */
  /* flex-direction: column;
  justify-content: center;
  align-items: center; */
  margin: auto;
  padding-top: 6px;
}

#floatingbar .a-shortcut {
  padding: 5px 10px 5px 15px;
  border-top: 1px dashed #0081CC;
  border-bottom: 1px dashed #0081CC;
}

#floatingbar .a-shortcut a {
  color: #666666;
  display: block;
  text-align: left;
  font-size: 12px;
  line-height: 30px;
  width: 80px;
  overflow: hidden;
  white-space: nowrap;
}

#floatingbar .a-shortcut a i {
  margin-right: 5px;
  position: relative;
  top: 2px;
  color: #888888;
}

#floatingbar .a-service {
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  padding: 15px 15px 20px 10px;
}

#floatingbar .a-service i {
  font-size: 38px;
  color: #0081CC;
  position: relative;
  top: 6px;
}

#floatingbar .a-service div {
  width: 30px;
  font-size: 12px;
  line-height: 18px;
  color: #666666;
}

.show {
  display: block !important;
}

.hidden {
  display: none !important;
}

/* floatingbar二维码 */

#floatingbar .floatingbar-app:hover .a-ercode-box {
  display: block;
}

#floatingbar .floatingbar-app .a-ercode-box {
  height: 216px;
  position: absolute;
  top: 0px;
  right: 96px;
  z-index: 20;
  padding-right: 10px;
  display: none;
}

#floatingbar .floatingbar-app .a-ercode {
  background: url(../image/floatingbar-background.png) no-repeat;
  background-size: 100% 100%;
  padding: 11px 15px 30px 15px;
  height: 216px;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane {
  background-color: #fff;
  height: 100%;
  width: 154px;
  position: relative;
  float: left;
  background: url(../image/qrcodeBack-center.png) no-repeat;
  background-size: 100% 100%;
  text-align: center;
  line-height: 23px;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane:first-child {
  background: url(../image/qrcodeBack-left.png) no-repeat;
  background-size: 100% 100%;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane:last-child {
  background: url(../image/qrcodeBack-right.png) no-repeat;
  background-size: 100% 100%;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane .app-qrcode {
  width: 110px;
  height: 110px;
  margin-top: 10px;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane .app-title {
  font-weight: 400;
  font-size: 16px;
  color: #0081cc;
  margin: 0 auto;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane .app-subtitle {
  font-size: 12px;
  color: #666666;
  margin: 0 auto;
}

#floatingbar .floatingbar-app .a-ercode .qrcode-backplane .app-tips {
  font-size: 12px;
  color: #666666;
  margin: 0 auto;
}

#floatingbar .a-ercode-box .a-bgl {
  position: absolute;
  top: 0px;
  left: -8px;
}

#floatingbar .a-ercode-box .a-bgr {
  position: absolute;
  top: 0px;
  right: 1px;
}

#floatingbar .a-ercode-box .a-tip {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 12px;
  color: #fff;
}

#floatingbar a[href]:hover {
  text-decoration: underline;
}

#floatingbar .floatingbar-app .a-content img {
  max-width: 42px;
  max-height: 40px;
}

#floatingbar .a-ercode-content {
  -webkit-overflow-scrolling: touch;
}

#floatingbar .a-ercode-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#floatingbar .a-ercode-content::-webkit-scrollbar-track {
  width: 6px;
  background-color: #eeeeee;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

#floatingbar .a-ercode-content::-webkit-scrollbar-thumb {
  background-color: #777777;
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

#floatingbar .a-ercode-content::-webkit-scrollbar-thumb:hover {
  background-color: #bbbbbb;
}

#floatingbar .a-ercode-content {
  overflow-x: auto;
  overflow-y: hidden;
}

#floatingbar .a-switch {
  height: 20px;
  width: 100%;
  /* background: url('../images/up.png') no-repeat center top; */
}

#floatingbar .a-switch img {
  position: relative;
  top: -10px;
}

#floatingbar.a-switch-viewBall {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  border: none !important;
  opacity: .7;
  margin: 0px 19px;
  background-color: #0081cc !important;
  padding: 0px !important;
}

#floatingbar .a-switch-ball {
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 60px;
}

#floatingbar .a-switch-ball .a-switch-kf {
  font-size: 38px;
  color: #fff;
}

#floatingbar .a-switch-ball .a-switch-open {
  color: #fff;
  font-size: 38px;
  width: 60px;
  height: 60px;
  position: relative;
}

#floatingbar .a-switch-ball .a-switch-open div {
  transform: rotate(180deg);
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
}

#floatingbar .a-switch-ball .a-switch-open span {
  font-size: 38px;
  color: hsla(0, 0%, 100%, .65);
  background-image: -webkit-linear-gradient(top, #cccccc, #ffffff 25%, #cccccc 50%, #ffffff 75%, #cccccc);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-size: 200% 100%;
  animation: masked-animation 2s infinite linear;
}

#floatingbar .a-switch-ball:hover .a-switch-kf {
  display: none;
}

#floatingbar .a-switch-ball:hover .a-switch-open {
  display: block;
}

#floatingbar .a-switch-ball:hover .first_font {
  animation: moveUp_first .2s 1 linear;
  animation-fill-mode: forwards;
}

#floatingbar .a-switch-ball:hover .last_font {
  animation: moveUp_last .2s 1 linear;
  animation-fill-mode: forwards;
}

@keyframes moveUp_first {
  from {}

  to {
    top: -10px;
  }
}

@keyframes moveUp_last {
  from {}

  to {
    top: 10px;
  }
}

@keyframes masked-animation {
  0% {
    background-position: 0 0
  }

  to {
    background-position: 0 -60px
  }
}