@charset "utf-8";
/*-----------------初始化---------------------*/

/*固定的悬浮窗*/
.yb_conct{position:fixed;z-index:9999999;top:300px;right:-147px;cursor:pointer;transition:all .3s ease;}
.yb_bar ul li{width:200px;height:53px;font:14px/53px 'Microsoft YaHei';color:#fff;text-indent:54px;margin-bottom:3px;border-radius:3px;transition:all .5s ease;overflow:hidden;}
.yb_bar .yb_top{background:#004588 url(../images/rightbar.png) no-repeat 0 0;}
.yb_bar .yb_phone{background:#004588 url(../images/rightbar.png) no-repeat 0 -57px;}
.yb_bar .yb_phone a { color:#fff; font-size:14px;}
.yb_bar .yb_QQ{text-indent:0;background:#35a631 url(../images/rightbar.png) no-repeat 0 -113px;}
.yb_bar .yb_ercode{background:#004588 url(../images/rightbar.png) no-repeat 0 -169px;}
.hd_qr{padding:0 29px 25px 29px;}
.yb_QQ a{display:block;text-indent:54px;width:100%;height:100%;color:#fff;}
.yb_bar a{text-decoration:none;}




/* ============================================================
 * 右侧悬浮客服栏样式（复刻自 cn.cnlift.com）
 * 目录结构：
 *   index.html
 *   css/online.css
 *   js/online.js
 *   images/kf/*.png
 * ============================================================ */

/* 悬浮栏外层：固定在视口右侧、垂直居中 */
#online {
  position: fixed;
  right: 5px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-family: Arial, Helvetica, sans-serif;
  z-index: 9999;
}

#online * {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-size: 14px;
  line-height: 1.2;
}

/* 白色竖条容器 */
.online-list {
  padding: 0;
  border: 1px solid #eee;
  background-color: #fff;
  max-width: 78px;
  border-radius: 4px;
  margin: 0;
  position: relative;
  list-style: none;
}

/* ---------- 图标 ---------- */
.whatsapp-icon {
  display: inline-block;
  background: url(../images/whatsapp2.png) no-repeat;
  width: 38px;
  height: 38px;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  background-position: left center;
  background-size: cover;
}

.email-icon {
  display: inline-block;
  background: url(../images/email2.png) no-repeat;
  width: 38px;
  height: 38px;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  background-position: left center;
  background-size: cover;
}

.wechat-icon {
  display: inline-block;
  background: url(../images/weixin2.png) no-repeat;
  width: 38px;
  height: 38px;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  background-position: left center;
  background-size: cover;
}

.message-icon {
  display: inline-block;
  background: url(../images/message2.png) no-repeat;
  width: 38px;
  height: 38px;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  background-position: left center;
  background-size: cover;
}

.chat-icon {
  display: inline-block;
  background: url(../images/chat.png) no-repeat center center;
  width: 38px;
  height: 38px;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  background-size: 75%;
  background-color: #2260ea;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
}

.chat-icon:hover {
  background-color: #0442cd;
}

/* ---------- 每个悬浮项 ---------- */
.online-list > li {
  width: 100%;
  border-top: 1px solid #eee;
  list-style: none;
  text-align: center;
  padding: 10px 0 4px;
  position: relative;
  -webkit-transition: all .2s ease-in-out;
          transition: all .2s ease-in-out;
}

.online-list > li:first-child {
  border-radius: 4px 4px 0 0;
  border: 0;
}

.online-list > li:last-child {
  border-radius: 0 0 4px 4px;
}

.online-list > li:hover,
.online-list > li:hover + li {
  border-color: transparent;
}

/* 图标 + 文字 区块 */
.online-list > li .online-itemico {
  color: #555;
  text-decoration: none;
  display: block;
  cursor: pointer;
  padding: 0 2px;
}

.online-list > li .online-itemico p {
  margin: 0;
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  text-transform: capitalize;
}

/* 悬停向左弹出的联系方式面板 */
.online-itemcont {
  position: absolute;
  top: 0;
  right: 100%;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px 0 0 4px;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: top .2s, opacity .2s;
  transition: top .2s, opacity .2s;
  overflow-y: auto;
}

.online-list > li:hover .online-itemcont {
  top: 0;
  opacity: 1;
  visibility: visible;
}

.online-itemcont a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid #eee;
  color: #555;
  text-decoration: none;
  padding: 2px 4px;
  text-align: left;
  width: 205px;
}

.online-itemcont a:last-child {
  border: 0;
}

.online-itemcont a i {
  -webkit-transform: scale(0.7);
          transform: scale(0.7);
  float: left;
  padding-right: 30px;
}


.online-itemcont p {
  text-overflow: ellipsis;
  width: 100%;
  float: left;
  margin: 0;
}

/* ---------- 在线客服聊天弹窗 ---------- */
.chat-box {
  width: 100%;
  max-width: 330px;
  right: 80px;
  bottom: 0;
  z-index: 9999;
  position: fixed;
  display: none;
  -webkit-box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
          box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.chat-box .title {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  padding: 10px 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 14px;
  color: white;
  background: #007aff;
  position: relative;
  border-radius: 6px 6px 0 0;
}

.chat-box .title img {
  height: 40px;
  width: 40px;
  display: block;
  border-radius: 50%;
}

.chat-box .title h3 {
  margin-left: 5px;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
}

.chat-box .title .close {
  position: absolute;
  right: 12px;
  top: 10px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 20px;
  color: #fff;
  font-family: Arial;
}

.chat-box .body {
  background: #fcfcfc;
  padding: 20px 15px;
  overflow-x: hidden;
  overflow-y: auto;
  height: 245px;
}

.chat-box .body li {
  margin-bottom: 15px;
  list-style: none;
}

.chat-box .body li h3 {
  color: #b2b2b2;
  font-size: 12px;
  margin-bottom: 4px;
}

.chat-box .body li h3 span {
  margin-left: 5px;
}

.chat-box .body li dd {
  padding: 10px 15px;
  border-radius: 3px;
  font-size: 13px;
  word-break: break-word;
  background-color: white;
  border: 1px solid #f0f0f0;
  max-width: 240px;
  margin: 0;
}

.chat-box .content {
  border-top: 1px solid #ededed;
  background: #fff;
  padding: 6px;
}

.chat-box .content textarea {
  min-height: 60px;
  background: none;
  border: none;
  padding: 4px;
  color: #8d8d8d;
  width: 100%;
  outline: none;
  resize: none;
  font-size: 13px;
}

.chat-box .content .btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.chat-box .content .btn .submit {
  width: 70px;
  height: 32px;
  line-height: 32px;
  display: inline-block;
  vertical-align: middle;
  font-size: 13px;
  border: 0;
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  color: white;
  background: #007aff;
}

/* 小屏隐藏桌面悬浮栏（原站在移动端改用底部工具条） */
@media (max-width: 768px) {
  #online {
    display: none;
  }
}
