/* 全站在线客服浮窗 */
#bs-cs-root { position: fixed; z-index: 10050; right: 16px; bottom: 72px; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
@media (min-width: 1024px) { #bs-cs-root { bottom: 24px; } }
#bs-cs-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); position: relative;
}
#bs-cs-toggle:hover { transform: scale(1.04); }
#bs-cs-badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; line-height: 18px; text-align: center;
  display: none;
}
#bs-cs-panel {
  display: none; position: absolute; right: 0; bottom: 68px; width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 120px); background: #0f172a; border: 1px solid rgba(34,211,238,.35);
  border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); flex-direction: column; overflow: hidden;
}
#bs-cs-panel.open { display: flex; }
#bs-cs-head {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #e2e8f0;
  display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600;
}
#bs-cs-head button { background: transparent; border: none; color: #94a3b8; cursor: pointer; font-size: 18px; }
#bs-cs-sub { font-size: 11px; color: #64748b; font-weight: normal; margin-top: 2px; }
#bs-cs-msgs { flex: 1; overflow-y: auto; padding: 12px; background: #0b1220; }
#bs-cs-typing {
  display: none; padding: 4px 12px; font-size: 11px; color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,.06); background: #0b1220;
}
.bs-cs-msg { margin-bottom: 10px; display: flex; flex-direction: column; max-width: 88%; }
.bs-cs-msg.me { margin-left: auto; align-items: flex-end; }
.bs-cs-msg.them { align-items: flex-start; }
.bs-cs-bubble {
  padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; word-break: break-word; color: #e2e8f0;
}
.bs-cs-msg.me .bs-cs-bubble { background: #166534; border: 1px solid #15803d; }
.bs-cs-msg.them .bs-cs-bubble { background: #1e293b; border: 1px solid #334155; }
.bs-cs-msg.system { align-items: center; max-width: 100%; }
.bs-cs-msg.system .bs-cs-bubble { background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.35); color: #c7d2fe; font-size: 12px; }
.bs-cs-bubble img { max-width: 200px; border-radius: 8px; display: block; }
.bs-cs-copy-addr {
  display: inline; padding: 0; margin: 0; border: none; background: transparent;
  color: #67e8f9; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.45; word-break: break-all; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; user-select: none;
}
.bs-cs-copy-addr:hover { color: #a5f3fc; }
.bs-cs-copy-addr:active { opacity: .85; }
#bs-cs-foot-tools { margin-bottom: 6px; }
#bs-cs-image-wrap { cursor: pointer; display: inline-block; }
#bs-cs-image-wrap span { font-size: 18px; opacity: .85; }
#bs-cs-image-wrap:hover span { opacity: 1; }
.bs-cs-time { font-size: 10px; color: #64748b; margin-top: 3px; }
.bs-cs-msg.recalled .bs-cs-bubble { opacity: .75; font-style: italic; color: #94a3b8; }
.bs-cs-recalled { font-style: italic; color: #94a3b8; }
.bs-cs-edited { font-style: italic; color: #a16207; font-size: 10px; }
#bs-cs-gate { padding: 24px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
#bs-cs-gate button {
  margin-top: 12px; padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(34,211,238,.5);
  background: rgba(34,211,238,.12); color: #67e8f9; cursor: pointer;
}
#bs-cs-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.08); display: none; }
#bs-cs-input {
  width: 100%; resize: none; border-radius: 8px; border: 1px solid #334155; background: #111827;
  color: #e2e8f0; padding: 8px 10px; font-size: 13px; min-height: 44px; max-height: 100px;
}
#bs-cs-send {
  margin-top: 8px; width: 100%; padding: 8px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; font-weight: 600; font-size: 13px;
}
#bs-cs-send:disabled { opacity: .5; cursor: not-allowed; }
