.xsc-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.xsc-chat * { box-sizing: border-box; }

.xsc-chat-button {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .26);
  cursor: pointer;
}

.xsc-chat-button svg {
  width: 31px;
  height: 31px;
}

.xsc-chat-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.xsc-chat-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.xsc-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: #fff;
  background: #0b1827;
}

.xsc-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.xsc-chat-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.xsc-chat-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.xsc-chat-title strong {
  display: block;
}

.xsc-chat-title small {
  display: block;
  margin-top: 2px;
  color: #d7e3ef;
  font-size: 12px;
}

.xsc-chat-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  color: #fff;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.xsc-chat-body {
  padding: 16px;
  background: #f8fafc;
}

.xsc-chat-body p {
  margin: 0;
  color: #223044;
  font-size: 14px;
  line-height: 1.65;
}

.xsc-chat-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.xsc-chat-actions a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #c47a2c;
  font-weight: 900;
  text-decoration: none;
}

.xsc-chat-actions a + a {
  color: #0b4f4a;
  background: #e8f3f1;
}

@media (max-width: 640px) {
  .xsc-chat {
    right: 14px;
    bottom: 84px;
  }

  .xsc-chat-button {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .xsc-chat-panel {
    bottom: 70px;
  }
}
