/* JDX 智能接待 · 只引用主站 token，不自定字族/字阶/中性色 */
.jdx-chat-btn{position:fixed;right:24px;bottom:24px;z-index:960;display:flex;align-items:center;gap:10px;
  padding:12px 20px 12px 13px;border-radius:999px;background:var(--cobalt,#335cff);color:#fff;
  font-family:var(--font-sans);font-size:var(--fs-sm,13px);font-weight:650;
  box-shadow:0 14px 34px -14px rgba(51,92,255,.75);transition:transform .35s var(--ease-out)}
.jdx-chat-btn:hover{transform:translateY(-3px)}
.jdx-chat-btn i{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.2);
  display:grid;place-items:center;font-style:normal;font-size:14px}
.jdx-chat{position:fixed;right:24px;bottom:86px;z-index:961;width:min(360px,calc(100vw - 32px));
  max-height:min(560px,calc(100svh - 200px));background:var(--surface,#fff);
  border:1px solid var(--line,#e4e7ee);border-radius:var(--radius-md,22px);
  box-shadow:0 32px 70px -36px rgba(20,32,70,.4);font-family:var(--font-sans);
  display:none;flex-direction:column;overflow:hidden;color:var(--ink,#0d1424)}
.jdx-chat.open{display:flex}
.jdx-chat-head{padding:16px 18px;background:var(--cobalt,#335cff);color:#fff;display:flex;
  align-items:center;justify-content:space-between;flex:0 0 auto}
.jdx-chat-head b{font-size:var(--fs-base,15px)}
.jdx-chat-head small{display:block;font-size: 12px;opacity:.8;font-weight:400;margin-top:3px; line-height: 1.5;}
.jdx-chat-head button{color:#fff;font-size:20px;line-height:1;opacity:.85}
.jdx-chat-log{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px;
  background:var(--bg-soft,#f1f3f8);scrollbar-width:thin}
.jdx-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:var(--fs-sm,13px);line-height:1.7;
  white-space:pre-wrap;word-break:break-word}
.jdx-msg.bot{background:var(--surface,#fff);border-bottom-left-radius:5px;
  box-shadow:0 1px 2px rgba(13,20,36,.04)}
.jdx-msg.me{align-self:flex-end;background:var(--cobalt,#335cff);color:#fff;border-bottom-right-radius:5px}
.jdx-msg a{color:var(--cobalt,#335cff);text-decoration:underline}
.jdx-msg.me a{color:#fff}
.jdx-chips{padding:12px 14px 0;display:flex;flex-wrap:wrap;gap:7px;background:var(--bg-soft,#f1f3f8)}
.jdx-chip{padding:7px 12px;border-radius:999px;background:var(--surface,#fff);
  border:1px solid var(--line,#e4e7ee);font-size: 12px;color:var(--ink-soft,#263149)}
.jdx-chip:hover{border-color:var(--cobalt,#335cff);color:var(--cobalt,#335cff)}
.jdx-chat-form{display:flex;gap:8px;padding:12px 14px;background:var(--surface,#fff);
  border-top:1px solid var(--line,#e4e7ee);flex:0 0 auto}
.jdx-chat-form input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--line,#e4e7ee);
  border-radius:999px;font-size: 13px;outline:none;font-family:inherit}
.jdx-chat-form input:focus{border-color:var(--cobalt,#335cff)}
.jdx-chat-form button{width:38px;height:38px;flex:0 0 38px;border-radius:50%;
  background:var(--cobalt,#335cff);color:#fff;font-size:15px}
.jdx-chat-privacy{text-align:center;padding:8px 14px 0;background:var(--surface,#fff);
  font-size: 11px;color:var(--muted-2,#5f6b7c);line-height:1.6}
.jdx-chat-privacy a{color:var(--cobalt,#335cff);text-decoration:none;
  border-bottom:1px solid rgba(51,92,255,.32)}
.jdx-chat-privacy a:hover{border-bottom-color:var(--cobalt,#335cff)}
.jdx-chat-foot{text-align:center;padding:7px;background:var(--surface,#fff);
  font-size: 12px;color:var(--muted-2,#5f6b7c);font-family:var(--font-mono); line-height: 1.5;}
@media(max-width:560px){.jdx-chat-btn{right:12px;bottom:12px}.jdx-chat{right:12px;left:12px;
  width:auto;bottom:72px;max-height:calc(100svh - 190px)}}
.jdx-chat-log{overscroll-behavior:contain}
.jdx-chips{flex:0 1 auto;overflow-x:auto;max-height:96px}
