/* 在线客服：复用参考项目的尺寸、位置与视觉样式。 */
.online-service {
  position: fixed;
  right: 60px;
  bottom: 28px;
  width: 122px;
  z-index: 110;
  color: #101326;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.online-service .service-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 122px;
  height: 42px;
  margin: 0;
  padding: 5px 10px 5px 15px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #20232b;
  box-shadow: 0 1px 6px rgba(0, 21, 41, .1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

.online-service .service-trigger img {
  display: block;
  width: 24px;
  height: 24px;
}

.online-service .service-trigger:focus-visible {
  outline: 2px solid #4d6fff;
  outline-offset: 4px;
}

.online-service .service-code {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 122px;
  padding-bottom: 10px;
}

.online-service .service-code[hidden] {
  display: none;
}

.online-service .service-code-inner {
  padding: 11px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 21, 41, .1);
}

.online-service .service-code img {
  display: block;
  width: 100px;
  height: 100px;
}

.online-service .service-code p {
  margin: 8px 0 0;
  color: #697080;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px) {
  .online-service {
    right: 20px;
    bottom: 32px;
  }
}

@media (max-width: 640px) {
  .online-service {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
