/* 全站客服弹框，复用现有遮罩；桌面双栏、手机纵向，可滚动。 */
#kefuModal .customer-dialog {
  width: calc(100% - 32px);
  max-width: 600px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  box-sizing: border-box;
  color: var(--color-text-primary);
}
.customer-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.customer-dialog-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.customer-dialog-header i { margin-right: 6px; }
.customer-dialog-close {
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.customer-dialog-body { padding: 16px; }
.customer-contact-grid { display: flex; gap: 12px; justify-content: center; }
.customer-contact-card {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  padding: 10px 8px;
  text-align: center;
  box-sizing: border-box;
}
.customer-contact-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.customer-contact-scope { margin: 0 0 10px; color: var(--color-text-secondary); font-size: 12px; line-height: 1.6; }
.customer-contact-qr {
  display: block;
  width: 180px;
  height: 180px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  box-sizing: border-box;
  object-fit: contain;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: var(--color-bg-card);
}
.customer-contact-role { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.customer-contact-tip { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--color-text-secondary); }
.customer-footer-trigger { border: 0; padding: 0; background: transparent; cursor: pointer; }
#brand-contact-qr-thumbs img { object-fit: contain; }
@media (max-width: 480px) {
  #kefuModal .customer-dialog { max-width: 360px; }
  .customer-dialog-body { padding: 12px; }
  .customer-contact-grid { flex-direction: column; align-items: stretch; gap: 12px; }
  .customer-contact-card { max-width: none; padding: 8px; }
  .customer-contact-qr { width: 164px; height: 164px; }
  .customer-contact-card h3 { font-size: 16px; margin-bottom: 6px; }
  .customer-contact-scope { margin-bottom: 10px; }
}
