/* 在线客服浮窗 - 科技水晶蓝 */
#cw-root * { box-sizing: border-box; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#cw-bubble {
  position: fixed;
  z-index: 99990;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #2b8cff; color: #fff;
  border-radius: 26px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(43,140,255,.35);
  font-size: 14px; font-weight: 600;
  transition: transform .15s ease;
}
#cw-bubble:hover { transform: scale(1.04); }
#cw-bubble .cw-ico { font-size: 18px; line-height: 1; }

#cw-panel {
  position: fixed; z-index: 99991;
  width: 340px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
  max-height: 520px;
  /* 默认隐藏，点击浮标后再展开（与 chat-widget.js 的切换逻辑一致） */
  display: none;
}
.cw-head {
  background: #2b8cff; color: #fff;
  padding: 12px 14px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.cw-head button { background: transparent; border: 0; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.cw-body { padding: 12px 14px; overflow-y: auto; }
.cw-welcome { font-size: 13px; color: #555; background: #f3f8ff; padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; }
.cw-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.cw-tabs span {
  flex: 1; text-align: center; padding: 6px 0; font-size: 13px;
  border-radius: 8px; cursor: pointer; background: #eef3f8; color: #456;
}
.cw-tabs span.cw-active { background: #2b8cff; color: #fff; }
.cw-pane { display: none; }
.cw-pane.cw-show { display: block; }

.cw-chan { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid #eef; border-radius: 8px; margin-bottom: 6px; }
.cw-chan .cw-chan-l { font-size: 13px; color: #333; }
.cw-chan .cw-chan-l b { color: #2b8cff; }
.cw-chan a { color: #2b8cff; font-size: 13px; text-decoration: none; font-weight: 600; }

.cw-field { margin-bottom: 8px; }
.cw-field input, .cw-field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #dfe6ee; border-radius: 8px; font-size: 13px; outline: none;
}
.cw-field input:focus, .cw-field textarea:focus { border-color: #2b8cff; }
.cw-field textarea { resize: vertical; min-height: 70px; }
.cw-btn {
  width: 100%; padding: 9px; border: 0; border-radius: 8px; background: #2b8cff; color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.cw-btn.cw-call { background: #1aa260; margin-top: 6px; }
.cw-tip { font-size: 12px; color: #1aa260; margin-top: 6px; min-height: 16px; }
.cw-faq-q { padding: 8px 10px; background: #f3f8ff; border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-size: 13px; color: #234; }
.cw-faq-q:hover { background: #e6f0ff; }
.cw-faq-a { font-size: 13px; color: #555; background: #fafcff; border-radius: 8px; padding: 8px 10px; margin: -2px 0 8px; white-space: pre-wrap; }
