/* 右侧悬浮在线客服 */
.online-kefu {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 9999;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.online-kefu-tab {
  display: none;
  padding: 14px 8px;
  background: #f5c400;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  border-radius: 6px 0 0 6px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  box-shadow: -2px 2px 8px rgba(0,0,0,.12);
}
.online-kefu-panel {
  width: 148px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 12px rgba(0,0,0,.12);
  overflow: hidden;
}
.online-kefu-hd {
  position: relative;
  height: 36px;
  line-height: 36px;
  background: #f5c400;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}
.online-kefu-close {
  position: absolute;
  right: 8px;
  top: 0;
  width: 24px;
  height: 36px;
  line-height: 34px;
  color: #666;
  font-size: 20px;
  text-decoration: none;
  font-weight: normal;
}
.online-kefu-close:hover { color: #000; }
.online-kefu-bd {
  padding: 10px 0 12px;
  text-align: center;
}
.online-kefu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.online-kefu-list li {
  margin: 0 0 8px;
}
.online-kefu-list a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}
.online-kefu-list a img {
  display: block;
  margin: 0 auto 2px;
  vertical-align: middle;
  border-radius: 4px;
}
.online-kefu-list a em {
  font-style: normal;
}
.online-kefu-list a:hover em {
  color: #c90;
}
.online-kefu-phone {
  padding: 8px 10px 6px;
  border-top: 1px dashed #e5e5e5;
}
.online-kefu-phone .lab {
  margin: 0;
  color: #888;
  font-size: 12px;
}
.online-kefu-phone .num {
  margin: 4px 0 0;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.online-kefu-qr {
  padding: 8px 10px 0;
  border-top: 1px dashed #e5e5e5;
}
.online-kefu-qr img {
  display: block;
  margin: 0 auto;
  border: 1px solid #eee;
}
.online-kefu-qr p {
  margin: 6px 0 0;
  color: #666;
  font-size: 12px;
}

/* 展开 / 收起 */
.online-kefu.is-open .online-kefu-tab { display: none; }
.online-kefu.is-open .online-kefu-panel { display: block; }
.online-kefu.is-close .online-kefu-tab { display: block; }
.online-kefu.is-close .online-kefu-panel { display: none; }

/* 手机端适配 */
@media (max-width: 767px) {
  .online-kefu {
    top: auto;
    bottom: 14rem;
    -webkit-transform: none;
    transform: none;
    left:0px;
    right:auto;
  }
  .online-kefu-panel {
    width: 132px;
  }
  .online-kefu-hd {
    height: 32px;
    line-height: 32px;
    font-size: 14px;
  }
  .online-kefu-close {
    height: 32px;
    line-height: 30px;
  }
  .online-kefu-list a img {
    width: 26px;
    height: 26px;
  }
  .online-kefu-qr img {
    width: 96px;
    height: 96px;
  }
  .online-kefu-phone .num {
    font-size: 13px;
  }
  .online-kefu-tab {
    width: 32px;
    padding: 12px 6px;
    font-size: 13px;
  }
}
