/* 右侧悬浮客服，独立于原站样式 */
.right-service {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  width: 58px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
.right-service-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  padding: 0;
  border: 1px solid #f3d0d0;
  border-radius: 8px;
  background: #fff;
  color: #e60012;
  box-shadow: 0 6px 18px rgba(160, 0, 0, 0.08);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.right-service-item:hover,
.right-service-item.is-open {
  background: #e60012;
  border-color: #e60012;
  color: #fff;
}
.right-service-label {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 1px;
}
.right-service-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.right-service-item > .bi {
  width: auto;
  height: auto;
  font-size: 28px;
  line-height: 1;
}
.right-service-item > .bi-tencent-qq {
  position: relative;
  left: 2px;
}
.right-service-icon.is-telegram {
  color: #2AABEE;
}
.right-service-icon.is-wechat {
  color: #07C160;
}
.right-service-icon.is-qq {
  color: #12B7F5;
}
.right-service-item:hover .right-service-icon.is-telegram,
.right-service-item:hover .right-service-icon.is-wechat,
.right-service-item:hover .right-service-icon.is-qq,
.right-service-item.is-open .right-service-icon.is-telegram,
.right-service-item.is-open .right-service-icon.is-wechat,
.right-service-item.is-open .right-service-icon.is-qq {
  color: #fff;
}
.right-service-panel {
  display: none;
  position: absolute;
  right: 70px;
  top: 50%;
  width: 176px;
  margin-top: -90px;
  padding: 12px 12px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  color: #333;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.right-service-item:hover .right-service-panel,
.right-service-item.is-open .right-service-panel {
  display: block;
}
.right-service-panel img {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 8px;
}
.right-service-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}
.right-service-panel strong {
  color: #e60012;
  font-size: 16px;
  word-break: break-all;
}
.right-service-empty {
  display: none;
  margin: 0 0 8px;
  padding: 18px 8px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.right-service-panel.is-empty .right-service-empty {
  display: block;
}
.right-service-panel.is-empty > img,
.right-service-panel.is-empty > p {
  display: none !important;
}
.right-service-top {
  font: inherit;
}
@media (max-width: 1280px) {
  .right-service {
    right: 8px;
    width: 48px;
  }
  .right-service-item {
    width: 48px;
    height: 48px;
  }
  .right-service-label {
    font-size: 12px;
  }
  .right-service-panel {
    right: 58px;
  }
}
@media (max-width: 992px) {
  .right-service {
    display: block;
    position: fixed;
    right: 8px;
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 48px;
    z-index: 10050;
  }
  .right-service-item {
    display: flex;
    margin: 0 0 6px;
  }
  .right-service-panel {
    right: 56px;
    left: auto;
    top: 50%;
    bottom: auto;
    margin-top: -90px;
  }
  /* 手机端禁用 hover 展开（触摸会粘住 hover），只靠 .is-open 控制 */
  .right-service-item:hover {
    background: #fff;
    border-color: #f3d0d0;
    color: #e60012;
  }
  .right-service-item:hover .right-service-icon.is-telegram {
    color: #2AABEE;
  }
  .right-service-item:hover .right-service-icon.is-wechat {
    color: #07C160;
  }
  .right-service-item:hover .right-service-icon.is-qq {
    color: #12B7F5;
  }
  .right-service-item:hover .right-service-panel {
    display: none;
  }
  .right-service-item.is-open,
  .right-service-item.is-open:hover {
    background: #e60012;
    border-color: #e60012;
    color: #fff;
  }
  .right-service-item.is-open .right-service-icon.is-telegram,
  .right-service-item.is-open .right-service-icon.is-wechat,
  .right-service-item.is-open .right-service-icon.is-qq,
  .right-service-item.is-open:hover .right-service-icon.is-telegram,
  .right-service-item.is-open:hover .right-service-icon.is-wechat,
  .right-service-item.is-open:hover .right-service-icon.is-qq {
    color: #fff;
  }
  .right-service-item.is-open .right-service-panel {
    display: block;
  }
}
