/* ============================================
   在线聊天窗口 - 扁平化设计
   ============================================ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-widget-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: visible;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget-panel:hover {
  box-shadow: none;
}

.chat-widget.is-open .chat-widget-panel {
  width: 360px;
  height: 520px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.25s ease,
              border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: default;
  overflow: hidden;
}

/* 关闭动画期间隐藏溢出内容，防止尖角露出 */
.chat-widget-panel.is-closing {
  overflow: hidden;
}

.chat-widget-trigger-area {
  position: absolute;
  top: -13px;
  left: -13px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: visible;
}

.chat-widget.is-open .chat-widget-trigger-area {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.chat-online-hint {
  position: absolute;
  bottom: 70px;
  right: 32px;
  white-space: nowrap;
  padding: 9px 10px 9px 16px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  border-radius: 12px 12px 4px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.04);
  opacity: 0;
  transform: translateX(12px) scale(0.92);
  filter: blur(8px);
  transition: opacity 0.5s ease,
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-online-hint.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.chat-widget.is-open .chat-online-hint {
  opacity: 0 !important;
  transform: translateX(12px) scale(0.92) !important;
  filter: blur(8px) !important;
  pointer-events: none !important;
}

.chat-online-hint-close {
  width: 18px;
  height: 18px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
  color: #999;
}

.chat-online-hint-close:hover {
  background: #e0e0e0;
  color: #333;
}

.chat-widget-icon {
  color: #fff;
  transition: transform 0.3s ease;
}

.chat-widget-trigger-area:hover .chat-widget-icon {
  transform: scale(1.1);
}

/* Three.js 3D 客服球体容器 */
.chat-sphere-container {
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.35s ease;
  overflow: visible;
}

.chat-sphere-container::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40,120,255,0.55) 0%, rgba(60,160,255,0.2) 40%, rgba(60,140,255,0) 70%);
  filter: blur(12px);
  animation: sphere-glow 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.chat-sphere-container::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,160,255,0.18) 0%, rgba(60,140,255,0) 60%);
  filter: blur(20px);
  animation: sphere-glow-outer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sphere-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1.0; transform: scale(1.2); }
}

@keyframes sphere-glow-outer {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* 有未读消息时：心跳动画 + 红色光晕 */
@keyframes sphere-heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
  60% { transform: scale(1); }
}

.chat-sphere-container.has-unread {
  animation: sphere-heartbeat 1.5s ease-in-out infinite;
}

.chat-sphere-container.has-unread::before {
  background: radial-gradient(circle, rgba(239,83,80,0.6) 0%, rgba(255,80,80,0.25) 40%, rgba(255,60,60,0) 70%);
  animation: sphere-glow 2s ease-in-out infinite;
}

.chat-sphere-container.has-unread::after {
  background: radial-gradient(circle, rgba(255,100,100,0.22) 0%, rgba(255,60,60,0) 60%);
  animation: sphere-glow-outer 2.5s ease-in-out infinite;
}

.chat-widget-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ef5350;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.chat-widget-panel > *:not(.chat-widget-trigger-area) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transition-delay: 0s;
}

.chat-widget.is-open .chat-widget-panel > *:not(.chat-widget-trigger-area) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-widget.is-open .chat-widget-panel > *:nth-child(2) { transition-delay: 0.2s; }
.chat-widget.is-open .chat-widget-panel > *:nth-child(3) { transition-delay: 0.25s; }
.chat-widget.is-open .chat-widget-panel > *:nth-child(4) { transition-delay: 0.3s; }
.chat-widget.is-open .chat-widget-panel > *:nth-child(5) { transition-delay: 0.35s; }

.chat-widget-header {
  padding: 16px 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-widget-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-widget-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.chat-widget-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.chat-widget-title {
  font-weight: 600;
  font-size: 14px;
  color: #111;
}

.chat-widget-status {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.chat-status-dot.is-online {
  background: #4caf50;
  animation: statusPulse 2s ease infinite;
}

.chat-status-dot.is-offline {
  background: #ff9800;
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px transparent; }
}

.chat-widget-close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #999;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-widget-close:hover {
  background: #f5f5f5;
  color: #111;
}

.chat-widget-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3f3f3;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.12) transparent;
}

.chat-widget-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.12);
  border-radius: 4px;
}

.chat-widget-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.2);
}

.chat-widget-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-widget-messages::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.chat-widget-welcome {
  text-align: center;
  padding: 24px 16px 16px;
}

.chat-widget-welcome p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.chat-widget-welcome-hint {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.chat-welcome-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.chat-welcome-sphere {
  width: 64px;
  height: 64px;
  position: relative;
}


.chat-widget-msg {
  max-width: 80%;
  animation: msgFade 0.2s ease;
}

@keyframes msgFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-widget-msg.is-visitor { align-self: flex-end; }
.chat-widget-msg.is-admin { align-self: flex-start; }

.chat-widget-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-widget-msg.is-visitor .chat-widget-msg-bubble {
  background: #111;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-widget-msg.is-visitor .chat-widget-msg-bubble.is-sticker {
  background: transparent !important;
}

.chat-widget-msg.is-admin .chat-widget-msg-bubble.is-sticker {
  background: transparent !important;
}

.chat-widget-msg.is-ai .chat-widget-msg-bubble.is-sticker {
  background: transparent !important;
}

.chat-widget-msg.is-admin .chat-widget-msg-bubble {
  background: #fff;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-widget-msg-meta {
  font-size: 10px;
  color: #bbb;
  margin-top: 3px;
  padding: 0 2px;
}

.chat-widget-msg.is-visitor .chat-widget-msg-meta { text-align: right; }

.chat-widget-msg .chat-read-status {
  margin-left: 4px;
  font-size: 10px;
}
.chat-widget-msg .chat-read-status.is-read { color: #4caf50; }
.chat-widget-msg .chat-read-status.is-read.is-ai-read { color: #5b8def; }
.chat-widget-msg .chat-read-status.is-unread { color: #ff9800; }

.chat-widget-msg.is-sending .chat-widget-msg-bubble {
  opacity: 0.7;
}
.chat-widget-msg.is-sending .chat-widget-msg-meta::after {
  content: ' · 发送中...';
  color: #999;
}
.chat-widget-msg.is-failed .chat-widget-msg-bubble {
  border: 1px solid #f44336;
}
.chat-widget-msg.is-failed .chat-widget-msg-meta::after {
  content: ' · 发送失败';
  color: #f44336;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #888;
}
.typing-dots {
  display: flex;
  gap: 3px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: #bbb;
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.chat-widget-form {
  padding: 8px 12px 12px;
  background: #f3f3f3;
}

.chat-widget-form-inner {
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.chat-widget-name-row {
  padding: 0 20px 14px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-widget-name-row .chat-widget-name {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #f3f3f3;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.chat-name-confirm {
  flex-shrink: 0;
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #e8e8e8;
  color: #999;
  cursor: default;
  transition: all 0.25s ease;
  pointer-events: none;
}

.chat-name-confirm.is-active {
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.chat-name-confirm.is-active:hover {
  background: #2563eb;
}

.chat-name-confirm.is-confirmed {
  background: #e8f5e9;
  color: #4caf50;
  pointer-events: none;
  cursor: default;
}

.chat-widget-name-row .chat-widget-name:focus,
.chat-widget-name-row input[type="text"]:focus {
  background: #ebebeb;
  border: none;
  box-shadow: none;
  outline: none !important;
}

.chat-widget-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 2px;
  position: relative;
}

.chat-widget-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 4px;
}

.chat-widget-input {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

.chat-widget-input:focus {
  background: transparent;
  outline: none;
  max-height: 80px;
  line-height: 1.4;
}

.chat-emoji-btn,
.chat-img-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.chat-emoji-btn:hover,
.chat-img-btn:hover {
  background: #f0f0f0;
  color: #111;
}

.chat-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-image:hover {
  transform: scale(1.02);
}

.chat-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.chat-file-link:hover {
  background: #eee;
}

.chat-send-btn {
  padding: 0 16px;
  height: 34px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: #333;
}

.chat-emoji-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.chat-emoji-panel.is-open {
  max-height: 220px;
  border-bottom: 1px solid #f0f0f0;
}

.chat-widget.is-open .chat-widget-panel:has(.chat-emoji-panel.is-open) {
  height: 680px;
}

.chat-emoji-pages {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.chat-emoji-page {
  min-width: 100%;
  flex-shrink: 0;
}

.chat-emoji-panel-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px 6px;
}

.chat-emoji-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px 0 6px;
}

.chat-emoji-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-emoji-dot.is-active {
  background: #888;
}

.sticker-item {
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 10px;
  padding: 5px;
  transition: all 0.15s ease;
  display: block;
}

.sticker-item:hover {
  background: #f0f0f0;
  transform: scale(1.18);
  z-index: 1;
}

.sticker-item:active {
  transform: scale(0.92);
}

.chat-sticker {
  width: 80px;
  height: 80px;
  display: block;
}

.chat-widget-msg .chat-widget-msg-bubble.is-sticker {
  background: transparent !important;
  padding: 4px;
  border-radius: 0;
}

@media (max-width: 768px) {
  .chat-widget {
    bottom: 64px;
    right: 16px;
    transition: bottom 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .chat-widget.desc-card-up {
    bottom: calc(64px + var(--desc-card-h, 160px) + 8px);
  }
  .chat-online-hint {
    bottom: 58px;
    right: 32px;
  }
  .chat-widget-panel {
    -webkit-tap-highlight-color: transparent;
  }
  .chat-widget-trigger-area {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 64px;
    right: 16px;
  }
  
  .chat-widget-panel {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
  
  .chat-widget-trigger-area {
    width: 76px;
    height: 76px;
    top: -13px;
    left: -13px;
  }

  .chat-online-hint {
    bottom: 46px;
    right: 32px;
  }
  
  .chat-widget.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
  }

  .chat-widget.is-open .chat-widget-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    right: 0;
    bottom: 0;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
  }

  /* 防止iOS Safari聚焦input时自动缩放（font-size>=16px不触发） */
  .chat-widget-input,
  .chat-widget-name-row .chat-widget-name,
  .chat-name-confirm {
    font-size: 16px;
  }

  /* 移动端表情面板：绝对定位覆盖，不撑开输入框 */
  .chat-widget-form-inner {
    position: relative;
  }

  .chat-emoji-panel.is-open {
    max-height: 200px;
  }

  .chat-widget.is-open .chat-widget-panel:has(.chat-emoji-panel.is-open) {
    height: 100% !important;
  }
}

/* Header头像球体（AI模式下替代公司logo） */
.chat-avatar-sphere {
  width: 56px;
  height: 56px;
  margin: -10px;
  pointer-events: none;
}

/* ============================================
   AI 客服经理样式
   ============================================ */

/* AI消息气泡 - 与管理员消息类似但有区分 */
.chat-widget-msg.is-ai {
  align-items: flex-start;
}

.chat-widget-msg.is-ai .chat-widget-msg-bubble {
  background: linear-gradient(135deg, #eef2f9 0%, #e4ecf7 100%);
  color: #1a1a2e;
  border-radius: 4px 16px 16px 16px;
  border: 1px solid rgba(26, 89, 166, 0.12);
}

/* AI名称标签 */
.chat-ai-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  background: linear-gradient(135deg, #0d1a73, #1a59a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  margin-bottom: 3px;
  gap: 4px;
  letter-spacing: 0.02em;
}

.chat-ai-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1a73, #1a59a6);
  flex-shrink: 0;
}

/* AI动作按钮组 */
.chat-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 0 2px;
}

.chat-ai-action-btn {
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #444;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}

.chat-ai-action-btn:hover {
  border-color: #1a59a6;
  color: #1a59a6;
  background: #eef2f9;
}

.chat-ai-action-btn.is-primary {
  background: linear-gradient(135deg, #0d1a73, #1a59a6);
  color: #fff;
  border-color: transparent;
}

.chat-ai-action-btn.is-primary:hover {
  background: linear-gradient(135deg, #0a1560, #155090);
  border-color: transparent;
  color: #fff;
}

.chat-ai-action-btn.is-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.chat-ai-action-btn.is-selected {
  opacity: 1;
  border-color: #1a59a6;
  background: #eef2f9;
  color: #1a59a6;
}

.chat-ai-action-btn.is-selected.is-primary {
  background: linear-gradient(135deg, #0d1a73, #1a59a6);
  color: #fff;
}

/* AI正在输入指示器 */
.ai-typing-indicator .chat-widget-msg-bubble {
  background: linear-gradient(135deg, #eef2f9 0%, #e4ecf7 100%) !important;
  border: 1px solid rgba(26, 89, 166, 0.12) !important;
  padding: 10px 16px !important;
}

.ai-typing-indicator .typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ai-typing-indicator .typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1a73, #1a59a6);
  animation: aiDotPulse 1.4s infinite ease-in-out;
}

.ai-typing-indicator .typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing-indicator .typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes aiDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* 微信二维码卡片 */
.chat-wechat-card {
  text-align: center;
}
.chat-wechat-qr {
  max-width: 160px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.chat-wechat-qr:hover {
  opacity: 0.85;
}
.chat-wechat-info {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

/* 二维码放大遮罩 */
.chat-qr-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  border-radius: 0 0 16px 16px;
}
.chat-qr-overlay img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
