/* BaiqueAI 聊天 Widget 样式 */
/* 现代渐变风格 · 响应式 · 移动端优先 */

:root {
  --bq-primary: #667eea;
  --bq-primary-end: #764ba2;
  --bq-bg: rgba(255,255,255,0.98);
  --bq-radius: 16px;
  --bq-shadow: 0 8px 40px rgba(0,0,0,0.15);
  --bq-user-bg: #f0f2f5;
  --bq-user-color: #1a1a1a;
  --bq-font: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --bq-chat-width: 494px;
  --bq-chat-height: 702px;
  --bq-fab-size: 56px;
  --bq-fab-bottom: 60px;
  --bq-fab-right: 24px;
}

/* FAB 悬浮按钮 */
#baiqueai-fab {
  position: fixed;
  bottom: var(--bq-fab-bottom);
  right: var(--bq-fab-right);
  width: var(--bq-fab-size);
  height: var(--bq-fab-size);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bq-primary) 0%, var(--bq-primary-end) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102,126,234,0.45);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
  font-size: 26px;
  outline: none;
  overflow: hidden;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* FAB 头像模式 */
#baiqueai-fab img {
  pointer-events: none;
}
#baiqueai-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(102,126,234,0.6); }
#baiqueai-fab:active { transform: scale(0.96); }

/* 消息角标 */
#baiqueai-fab .bq-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  display: none;
}

/* ─────────────── 悬浮提示气泡 ─────────────── */
#baiqueai-tooltip-wrap {
  position: fixed;
  bottom: calc(var(--bq-fab-bottom) + var(--bq-fab-size) + 18px);
  right: calc(var(--bq-fab-right) + var(--bq-fab-size) / 2);
  z-index: 99997;
  pointer-events: none;
  transform: translateX(50%);
}

#baiqueai-root[data-position="bottom-left"] #baiqueai-tooltip-wrap {
  right: auto;
  left: calc(var(--bq-fab-right) + var(--bq-fab-size) / 2);
  transform: translateX(-50%);
}

.bq-tooltip-bubble {
  position: relative;
  background: linear-gradient(135deg, var(--bq-primary) 0%, var(--bq-primary-end) 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-family: var(--bq-font);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(102,126,234,0.45);
  animation: bqTooltipBounce 2s ease-in-out infinite;
  max-width: 220px;
}

/* 文字溢出裁切交给内层 span，避免裁到 ::after 箭头 */
.bq-tooltip-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 锋利大三角 — 指向悬浮图标 */
.bq-tooltip-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--bq-primary-end);
  filter: drop-shadow(0 4px 6px rgba(102,126,234,0.35));
}

/* 脉冲光环 — 气泡外围光晕 */
.bq-tooltip-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  animation: bqTooltipPulseRing 2s ease-out infinite;
}

@keyframes bqTooltipBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-6px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-1px); }
}

@keyframes bqTooltipPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.35); opacity: 0.7; }
  100% { box-shadow: 0 0 0 16px rgba(102,126,234,0); opacity: 0; }
}

#baiqueai-tooltip-wrap.bq-tooltip-hidden {
  display: none;
}

/* ─────────────── 聊天窗口容器 ─────────────── */
#baiqueai-widget {
  position: fixed;
  bottom: calc(var(--bq-fab-bottom) + var(--bq-fab-size) + 12px);
  right: var(--bq-fab-right);
  width: var(--bq-chat-width);
  height: var(--bq-chat-height);
  border-radius: var(--bq-radius);
  background: var(--bq-bg);
  box-shadow: var(--bq-shadow);
  display: flex;
  flex-direction: column;
  z-index: 99999;
  font-family: var(--bq-font);
  font-size: 14px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  transform-origin: bottom right;
  will-change: transform, opacity;
}

#baiqueai-widget.bq-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(10px);
}

/* 左下角 */
#baiqueai-root[data-position="bottom-left"] #baiqueai-fab,
#baiqueai-root[data-position="bottom-left"] #baiqueai-widget {
  right: auto;
  left: var(--bq-fab-right);
}
#baiqueai-root[data-position="bottom-left"] #baiqueai-widget {
  transform-origin: bottom left;
}

/* ─────────────── 窗口头部 ─────────────── */
#baiqueai-header {
  background: linear-gradient(135deg, var(--bq-primary) 0%, var(--bq-primary-end) 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#baiqueai-header .bq-title {
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
#baiqueai-header .bq-title img {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
}
#baiqueai-header .bq-header-actions {
  display: flex; gap: 8px;
}
#baiqueai-header button {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#baiqueai-header button:hover { background: rgba(255,255,255,.35); }

/* ─────────────── 消息列表 ─────────────── */
#baiqueai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
#baiqueai-messages::-webkit-scrollbar { width: 4px; }
#baiqueai-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* 消息气泡 */
.bq-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: bqFadeIn .25s ease;
}
@keyframes bqFadeIn {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}

.bq-msg-ai  {
  align-items: flex-start;
}
.bq-msg-user{ justify-content: flex-end; }

.bq-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bq-primary), var(--bq-primary-end));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.bq-msg-avatar-img {
  background: none;
}

.bq-bubble {
  max-width: 78%;
  border-radius: 18px;
  padding: 10px 14px;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}
.bq-msg-ai  .bq-bubble {
  background: linear-gradient(135deg, var(--bq-primary) 0%, var(--bq-primary-end) 100%);
  color: #fff;
  border-bottom-left-radius: 4px;
}
/* AI 消息体包裹层：气泡 + 满意度按钮纵向排列 */
.bq-msg-body {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}
.bq-msg-user .bq-bubble {
  background: var(--bq-user-bg);
  color: var(--bq-user-color);
  border-bottom-right-radius: 4px;
}

/* 打字动画 */
.bq-typing-indicator {
  display: flex; gap: 4px; align-items: center;
  padding: 6px 4px;
}
.bq-typing-indicator span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  animation: bqTyping 1.2s infinite ease-in-out;
}
.bq-typing-indicator span:nth-child(2) { animation-delay: .2s; }
.bq-typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes bqTyping {
  0%,80%,100% { transform: scale(0.8); opacity:.5; }
  40%          { transform: scale(1);   opacity:1; }
}

/* ─────────────── 输入区域 ─────────────── */
#baiqueai-input-area {
  padding: 14px 18px;
  border-top: 1px solid #e8ecf1;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
/* 当快捷问题存在时，输入区顶部边框更淡 */
.bq-quick-questions + #baiqueai-input-area {
  border-top: 1px solid #f0f0f0;
}
/* 输入药丸：统一样式的输入框+发送按钮 */
.bq-input-pill {
  flex: 1;
  display: flex;
  align-items: flex-end;
  border: 2px solid #e2e5ec;
  border-radius: 24px;
  background: #f8f9fb;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  min-width: 0;
}
.bq-input-pill:focus-within {
  border-color: var(--bq-primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.08);
  background: #fff;
}
#baiqueai-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 4px 10px 16px;
  font-size: 14px;
  font-family: var(--bq-font);
  resize: none;
  max-height: 100px;
  min-height: 24px;
  outline: none;
  line-height: 1.5;
  color: #333;
}
#baiqueai-input::placeholder {
  color: #bbb;
}
#baiqueai-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bq-primary) 0%, var(--bq-primary-end) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin: 0 4px 4px 0;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#baiqueai-send-btn:hover { transform: scale(1.08); }
#baiqueai-send-btn:active { transform: scale(0.92); }
#baiqueai-send-btn:disabled { opacity: .4; cursor: default; transform: none; }

/* ─────────────── 底部说明 ─────────────── */
#baiqueai-footer {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 4px 0 8px;
  flex-shrink: 0;
}
#baiqueai-footer a { color: #9ca3af; text-decoration: none; }

/* ─────────────── 文章卡片 ─────────────── */
.bq-bubble-ai-rich {
  white-space: normal !important;
}
/* AI 回复中的可点击链接 */
.bq-link {
  color: #a5b4fc;
  text-decoration: underline;
  word-break: break-all;
}
.bq-link:hover {
  color: #c7d2fe;
}
.bq-card {
  display: block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  margin: 8px 0 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: background .2s, transform .15s;
  cursor: pointer;
}
.bq-card:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.bq-card + .bq-card {
  margin-top: 6px;
}
.bq-card-body {
  padding: 10px 12px;
}
.bq-card-type {
  display: inline-block;
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}
.bq-card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
}
.bq-card-excerpt {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────── 响应式 ─────────────── */
@media (max-width: 479px) {
  #baiqueai-widget {
    position: fixed !important;
    /* 四边各留 10px 间距，顶部多留 safe-area */
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    border-radius: 14px !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #baiqueai-fab {
    width: 60px; height: 60px;
    bottom: 20px; right: 20px;
    font-size: 28px;
  }
  #baiqueai-input {
    font-size: 16px; /* 防 iOS 缩放 */
  }
  #baiqueai-input-area {
    padding: 10px 14px;
  }
  #baiqueai-send-btn {
    width: 32px; height: 32px;
    margin: 0 3px 3px 0;
  }
  .bq-bubble {
    max-width: 85%; /* 移动端气泡略宽 */
  }
  /* 移动端退出意图弹窗 */
  .bq-exit-modal {
    margin: 16px;
    max-width: calc(100% - 32px) !important;
  }
  .bq-exit-modal h3 { font-size: 20px !important; }
  .bq-exit-modal p  { font-size: 14px !important; }
  .bq-exit-btn {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}
@media (min-width: 480px) and (max-width: 767px) {
  :root { --bq-chat-width: 340px; --bq-chat-height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  .bq-msg, #baiqueai-widget, #baiqueai-fab { animation: none !important; transition: none !important; }
}
/* ── safe-area 通用适配 ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #baiqueai-fab {
    bottom: calc(var(--bq-fab-bottom) + env(safe-area-inset-bottom));
  }
  #baiqueai-widget {
    bottom: calc(var(--bq-fab-bottom) + var(--bq-fab-size) + 12px + env(safe-area-inset-bottom));
  }
}

/* ─────────────── 退出意图弹窗 ─────────────── */
@keyframes bqExitModalIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bqExitModalOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
}

@keyframes bqExitOverlayIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes bqExitOverlayOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.bq-exit-modal {
  animation: bqExitModalIn 0.3s ease-out forwards;
}

.bq-exit-modal.bq-exit-modal-out {
  animation: bqExitModalOut 0.2s ease-in forwards;
}

#bq-exit-intent-overlay {
  animation: bqExitOverlayIn 0.2s ease-out forwards;
}

#bq-exit-intent-overlay.bq-exit-overlay-out {
  animation: bqExitOverlayOut 0.2s ease-in forwards;
}

/* 退出意图弹窗按钮样式 */
.bq-exit-btn {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: var(--bq-font);
}

.bq-exit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bq-exit-btn:active {
  transform: translateY(0);
}

.bq-exit-btn-primary {
  background: var(--bq-primary);
  color: white;
}

.bq-exit-btn-primary:hover {
  background: var(--bq-primary-end);
}

.bq-exit-btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.bq-exit-btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* 邮箱输入框样式 */
.bq-exit-modal input[type="email"] {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bq-exit-modal input[type="email"]:focus {
  border-color: var(--bq-primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
  outline: none;
}

/* ─────────────── 人工客服转接 ─────────────── */
#bq-human-btn {
  background: #fff;
  border: 1.5px solid var(--bq-primary);
  color: var(--bq-primary);
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--bq-font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
  line-height: 1;
}
#bq-human-btn:hover {
  background: var(--bq-primary);
  color: #fff;
}
#bq-human-btn:active {
  transform: scale(0.96);
}

/* ─────────────── 人工转接 - 内联表单 ─────────────── */
.bq-transfer-inline {
  padding: 4px 0;
}

.bq-transfer-inline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.bq-transfer-inline-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
  line-height: 1.5;
}

.bq-transfer-inline-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bq-transfer-card-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.bq-transfer-card-inline:hover {
  border-color: var(--bq-primary);
  background: #f8f9ff;
}
.bq-transfer-card-inline.bq-transfer-card-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.bq-transfer-card-emoji {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.bq-transfer-card-inline strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.bq-transfer-card-inline small {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}

/* ── 转接表单头部 ── */
.bq-transfer-inline-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.bq-transfer-back-btn {
  background: #f3f4f6;
  border: none;
  color: #374151;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--bq-font);
  transition: background .15s;
}
.bq-transfer-back-btn:hover {
  background: #e5e7eb;
}

/* ── 表单字段 ── */
.bq-transfer-inline-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.bq-transfer-inline-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--bq-font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  background: #fff;
}
.bq-transfer-inline-input:focus {
  border-color: var(--bq-primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,.1);
}
.bq-transfer-inline-input::placeholder {
  color: #9ca3af;
}

.bq-transfer-inline-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

/* ── 图片上传 ── */
.bq-transfer-upload-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bq-transfer-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all .15s;
}
.bq-transfer-upload-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.bq-transfer-upload-hint {
  font-size: 12px;
  color: #9ca3af;
}

.bq-transfer-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 6px;
}

.bq-transfer-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.bq-transfer-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bq-transfer-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ── 错误提示 ── */
.bq-transfer-inline-error {
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 8px;
  line-height: 1.4;
}

/* ── 提交按钮 ── */
.bq-transfer-inline-submit {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bq-primary), var(--bq-primary-end));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--bq-font);
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.bq-transfer-inline-submit:hover {
  opacity: .9;
}
.bq-transfer-inline-submit:active {
  transform: scale(0.98);
}
.bq-transfer-inline-submit:disabled {
  opacity: .5;
  cursor: default;
}

/* ── 成功状态 ── */
.bq-transfer-inline-success {
  text-align: center;
  padding: 20px 10px;
}

.bq-human-modal {
  animation: bqExitModalIn 0.3s ease-out forwards;
}

#bq-human-overlay {
  animation: bqExitOverlayIn 0.2s ease-out forwards;
}

.bq-transfer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.bq-transfer-card:hover {
  border-color: var(--bq-primary);
  background: #f0f2ff;
}

.bq-transfer-card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bq-transfer-card-disabled:hover {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.bq-transfer-input:focus {
  border-color: var(--bq-primary);
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
  outline: none;
}

.bq-transfer-submit:hover {
  opacity: 0.9;
}

.bq-transfer-submit:active {
  transform: translateY(1px);
}

/* ─────────────── v1.1.0: 快捷问题按钮（功能3）── 位于输入框上方 ─────────────── */
.bq-quick-questions {
  padding: 10px 16px 4px;
  border-top: 1px solid #e8ecf1;
  background: #fafbfc;
  animation: bqFadeIn .3s ease;
  flex-shrink: 0;
}
.bq-quick-label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 8px;
  padding-left: 4px;
  letter-spacing: 0.5px;
}
.bq-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bq-quick-btn {
  padding: 8px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--bq-primary);
  color: var(--bq-primary);
  background: rgba(102,126,234,0.04);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--bq-font);
  font-weight: 500;
  transition: all .22s ease;
  white-space: nowrap;
  line-height: 1.4;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bq-quick-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--bq-primary) 0%, var(--bq-primary-end) 100%);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(102,126,234,0.3);
}
.bq-quick-btn:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px rgba(102,126,234,0.2);
}

/* ─────────────── v1.1.0: 满意度评价按钮（功能1） ─────────────── */
.bq-satisfaction-wrap {
  display: flex;
  gap: 6px;
  padding: 2px 0 0;
  opacity: 0;
  animation: bqSatFadeIn .4s ease .3s forwards;
}
@keyframes bqSatFadeIn {
  to { opacity: 1; }
}
.bq-sat-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all .15s;
  opacity: 0.5;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bq-sat-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.04);
  transform: scale(1.15);
}
.bq-sat-btn:active {
  transform: scale(0.95);
}
.bq-sat-btn:disabled {
  cursor: default;
}
.bq-sat-btn:disabled:hover {
  transform: none;
  background: none;
}

/* 满意度按钮选中态 (v1.1.0) */
.bq-sat-btn.bq-sat-active {
  opacity: 1;
}
.bq-sat-btn.bq-sat-active[data-rating="1"] {
  background: rgba(22, 163, 74, 0.12);
}
.bq-sat-btn.bq-sat-active[data-rating="0"] {
  background: rgba(239, 68, 68, 0.12);
}

/* v1.1.0: 移动端快捷问题适配 */
@media (max-width: 480px) {
  .bq-quick-questions {
    padding: 8px 12px 4px;
  }
  .bq-quick-list {
    gap: 6px;
  }
  .bq-quick-btn {
    font-size: 11px;
    padding: 6px 11px;
  }
  .bq-quick-label {
    font-size: 10px;
  }
  .bq-sat-btn {
    font-size: 14px;
  }
}
