/* 官网AI助手：按本地皮 ai-assistant.html 抽出入口+对话，不含演示站壳 */
.assistant-fab{position:fixed;bottom:28px;right:28px;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#ff7d00,#ff9a3c);box-shadow:0 4px 16px rgba(255,125,0,.4);display:flex;align-items:center;justify-content:center;font-size:28px;cursor:pointer;z-index:998;animation:jxyAiPulse 2s infinite;transition:transform .2s}
.assistant-fab:hover{transform:scale(1.1)}
.assistant-fab:active{transform:scale(.95)}
@keyframes jxyAiPulse{
    0%,100%{box-shadow:0 4px 16px rgba(255,125,0,.4)}
    50%{box-shadow:0 4px 28px rgba(255,125,0,.6)}
}
.assistant-fab .badge{position:absolute;top:-2px;right:-2px;width:20px;height:20px;background:#ff4d4f;color:#fff;border-radius:50%;font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:600}
.fab-tip{position:fixed;bottom:96px;right:28px;background:#333;color:#fff;padding:8px 14px;border-radius:8px;font-size:12px;z-index:997;opacity:0;transition:opacity .3s;pointer-events:none}
.fab-tip.show{opacity:1}
.fab-tip::after{content:'';position:absolute;bottom:-6px;right:22px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #333}
.chat-window{position:fixed;bottom:28px;right:28px;width:380px;height:520px;background:#fff;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden;z-index:1000;transform:scale(0);transform-origin:bottom right;transition:transform .25s ease;pointer-events:none;visibility:hidden}
.chat-window.show{transform:scale(1);pointer-events:auto;visibility:visible}
.chat-window.minimized{height:52px;overflow:hidden}
.chat-header{background:linear-gradient(135deg,#ff7d00,#ff9a3c);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.chat-header .chat-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600}
.chat-header .chat-title .avatar{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-size:18px}
.chat-header .chat-title .status{font-size:10px;font-weight:400;opacity:.9;display:flex;align-items:center;gap:4px}
.chat-header .chat-title .status .dot{width:6px;height:6px;border-radius:50%;background:#52c41a}
.chat-header .chat-actions{display:flex;gap:4px}
.chat-header .chat-actions button{width:28px;height:28px;border-radius:6px;border:none;background:rgba(255,255,255,.15);color:#fff;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.2s}
.chat-header .chat-actions button:hover{background:rgba(255,255,255,.3)}
.chat-body{flex:1;padding:16px;overflow-y:auto;background:#fafafa;scroll-behavior:smooth}
.chat-msg{margin-bottom:16px;display:flex;gap:8px;animation:jxyAiMsgIn .3s ease}
@keyframes jxyAiMsgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.chat-msg.bot{justify-content:flex-start}
.chat-msg.user{justify-content:flex-end}
.chat-msg .msg-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
.chat-msg.bot .msg-avatar{background:#fff3e0}
.chat-msg.user .msg-avatar{background:#ff7d00;color:#fff;font-size:12px}
.chat-msg .msg-content{max-width:260px}
.chat-msg .msg-bubble{padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.7;word-break:break-word}
.chat-msg.bot .msg-bubble{background:#fff;border:1px solid #eee;border-top-left-radius:4px}
.chat-msg.user .msg-bubble{background:#ff7d00;color:#fff;border-top-right-radius:4px}
.chat-msg .msg-bubble a{color:#ff7d00;text-decoration:underline;cursor:pointer;font-weight:500}
.chat-msg.user .msg-bubble a{color:#fff}
.chat-msg .msg-bubble.warning{background:#fff7e6;border-color:#ffd591;color:#92400e;font-size:12px}
.chat-msg .msg-bubble.error{background:#fff1f0;border-color:#ffccc7;color:#cf1322;font-size:12px}
.chat-msg .msg-time{font-size:10px;color:#bbb;margin-top:4px}
.chat-msg.user .msg-time{text-align:right}
.quick-questions{padding:10px 16px;background:#fff;border-top:1px solid #eee;display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}
.quick-q{padding:5px 12px;background:#fff3e0;color:#ff7d00;border-radius:14px;font-size:11px;cursor:pointer;border:1px solid #ffe0b2;transition:.2s}
.quick-q:hover{background:#ff7d00;color:#fff}
.chat-input{padding:10px 12px;background:#fff;border-top:1px solid #eee;display:flex;gap:8px;align-items:center;flex-shrink:0;position:relative}
.chat-input input{flex:1;border:1px solid #e8e8e8;border-radius:20px;padding:9px 14px;font-size:13px;outline:none;transition:.2s;font-family:inherit}
.chat-input input:focus{border-color:#ff7d00}
.chat-input .send-btn{width:36px;height:36px;border-radius:50%;background:#ff7d00;color:#fff;border:none;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.2s;flex-shrink:0}
.chat-input .send-btn:hover{background:#ff6a00}
.chat-input .send-btn:disabled{background:#ccc;cursor:not-allowed}
.free-tag{position:absolute;bottom:52px;right:16px;font-size:10px;color:#52c41a;background:#f6ffed;padding:3px 8px;border-radius:10px;border:1px solid #b7eb8f;font-weight:500}
.typing-indicator{display:flex;gap:4px;padding:8px 12px}
.typing-indicator span{width:6px;height:6px;border-radius:50%;background:#ccc;animation:jxyAiTyping 1.4s infinite}
.typing-indicator span:nth-child(2){animation-delay:.2s}
.typing-indicator span:nth-child(3){animation-delay:.4s}
@keyframes jxyAiTyping{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-6px);opacity:1}}
@media (max-width:768px){
    .chat-window{width:calc(100% - 16px);left:8px;right:8px;bottom:58px;height:calc(100vh - 70px)}
    /* JZ-20261025-JXYFABME：手机上按钮缩小贴边；底下压着链接、按钮时收到屏幕边只露 12px（fab-peek 由 ai-assistant.js 加），
       页面内容左右各留 12px，收着时不压住靠右的「全部 ›」 */
    .assistant-fab{bottom:72px;right:8px;width:44px;height:44px;font-size:20px;transition:transform .25s,opacity .25s}
    .assistant-fab.fab-peek{transform:translateX(40px);opacity:.85}
    .fab-tip{bottom:124px;right:8px}
}
