.cb-wechat {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 24px));
  z-index: 90;
  color: #eaf3ff;
  font: 14px/1.5 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  text-align: left;
}
.cb-wechat, .cb-wechat * { box-sizing: border-box; }
.cb-wechat [hidden] { display: none !important; }
.cb-wechat__panel {
  width: 252px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #356274;
  border-radius: 15px;
  background: linear-gradient(145deg, #12263b, #0d172b 75%, #21182f);
  box-shadow: 0 16px 48px #0008, 0 0 24px #36dfec0b;
}
.cb-wechat__header { display: flex; align-items: center; gap: 8px; }
.cb-wechat__header strong { font-size: 16px; font-weight: 700; }
.cb-wechat__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #50dfec; }
.cb-wechat button { font: inherit; cursor: pointer; margin: 0; text-transform: none; }
.cb-wechat__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: auto !important;
  border: 1px solid #365064;
  border-radius: 8px;
  color: #bcd3e6;
  background: #ffffff05;
  font-size: 21px !important;
  line-height: 1;
}
.cb-wechat__close:hover { border-color: #50dfec; color: #50dfec; background: #50dfec0a; }
.cb-wechat p { padding: 0; border: 0; letter-spacing: normal; }
.cb-wechat__intro { margin: 5px 0 14px; color: #9eb6cc; font-size: 11px; }
.cb-wechat__image { padding: 0; border-radius: 9px; overflow: hidden; background: #fff; }
.cb-wechat__qr { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
.cb-wechat__hint { margin: 12px 0 0; color: #d8eff5; text-align: center; font-size: 12px; }
.cb-wechat__mobile-hint { display: none; }
.cb-wechat__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid #46bdcf;
  border-radius: 28px;
  background: #11283d;
  color: #78e7f0;
  box-shadow: 0 6px 25px #0006;
}
.cb-wechat__trigger:hover { background: #19374d; border-color: #81eef8; }
.cb-wechat button:focus-visible { outline: 2px solid #88edf4; outline-offset: 4px; }
@media (max-width: 767px) {
  .cb-wechat { right: max(16px, env(safe-area-inset-right)); bottom: max(76px, calc(env(safe-area-inset-bottom) + 16px)); }
  .cb-wechat__panel { max-height: calc(100dvh - 108px); }
  .cb-wechat__mobile-hint { display: block; margin: 5px 0 0; color: #9eb6cc; text-align: center; font-size: 10px; }
  .cb-wechat__close { min-width: 40px; height: 40px; }
}
