/* 客服聊天（演示） */
.chat-fab {
  position: fixed; right: 26px; bottom: 90px; z-index: 880;
  height: 42px; padding: 0 16px; border-radius: 999px;
  background: #111; color: #fff; font: 500 12px/1 var(--sans);
  box-shadow: 0 10px 26px rgba(17,17,17,.2);
}
.chat-fab:hover { background: #ff5a1f; }
.chat-box {
  position: fixed; right: 26px; bottom: 142px; z-index: 890;
  width: 330px; max-height: 480px; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-box.on { display: flex; }
.chat-hd { padding: 14px 16px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
.chat-hd b { font: 600 14px/20px var(--sans); }
.chat-hd span { color: #2f8a57; font: 400 9px/14px var(--sans); }
.chat-hd button { color: #999; font-size: 20px; }
.chat-body { flex: 1; min-height: 180px; max-height: 310px; overflow: auto; padding: 12px 14px; background: #fafafa; }
.chat-msg { max-width: 84%; margin: 8px 0; padding: 9px 12px; border-radius: 14px; font: 400 11px/18px var(--sans); }
.chat-msg.bot { background: #fff; border: 1px solid #eee; color: #444; border-top-left-radius: 4px; }
.chat-msg.user { margin-left: auto; background: #111; color: #fff; border-top-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-top: 1px solid #f0f0f0; }
.chat-quick button { height: 24px; padding: 0 8px; border-radius: 999px; background: #f6f6f7; color: #777; font: 400 9px/1 var(--sans); }
.chat-ft { display: flex; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid #f0f0f0; }
.chat-ft input { flex: 1; height: 34px; border: 1px solid #e4e4e4; border-radius: 999px; padding: 0 12px; font: 400 11px/1 var(--sans); outline: none; }
.chat-ft button { height: 34px; padding: 0 13px; border-radius: 999px; background: #111; color: #fff; font: 500 10px/1 var(--sans); }
@media (max-width: 600px) {
  .chat-fab { right: 14px; bottom: 100px; height: 36px; font-size: 11px; }
  .chat-box { right: 10px; left: 10px; width: auto; bottom: 148px; }
}
