/**
 * 全站统一客服组件样式
 * 当前：二维码弹层；SITE_CONFIG.siteSupport.mode = 'agent' 时可切 AI 对话框
 */

.site-support-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.site-support-overlay.is-open {
  display: flex;
}

.site-support-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, #1a2236, #111827);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
}

.site-support-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-support-close:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.12);
}

.site-support-modal h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.site-support-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
}

.site-support-qr-wrap {
  display: inline-block;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background: #fff;
}

.site-support-qr-wrap img {
  display: block;
  width: 220px;
  height: 220px;
  max-width: min(220px, 70vw);
  max-height: min(220px, 70vw);
  object-fit: contain;
}

/* —— 按钮变体 —— */
.btn-site-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, filter 0.12s ease;
}

.btn-site-support:hover {
  border-color: #3b82f6;
  color: #fff;
  background: rgba(59, 130, 246, 0.2);
}

.btn-site-support-icon {
  font-size: 15px;
  line-height: 1;
}

.btn-site-support--header {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  border-color: #334155;
  background: rgba(15, 23, 42, 0.55);
}

.btn-site-support--footer {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
  white-space: nowrap;
}

.btn-site-support--inline {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.btn-site-support--inline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

@media (max-width: 640px) {
  .btn-site-support--header .btn-site-support-text {
    display: none;
  }
}
