.chat-widget{position:fixed;bottom:20px;right:20px;z-index:10000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;display:flex;flex-direction:column-reverse;align-items:flex-end;gap:10px}.chat-toggle{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);color:#000;border:none;font-size:24px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(22,163,74,.4);transition:all .3s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;z-index:10001}.chat-toggle:hover{transform:scale(1.05);box-shadow:0 6px 20px rgba(22,163,74,.6);background:linear-gradient(135deg,#16a34a,#14532d)}.unread-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 2px 6px rgba(239,68,68,.4);animation:badgePulse 2s infinite;padding:0 6px}@keyframes badgePulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.chat-window{width:380px;height:600px;max-height:85vh;background:#fff;border:none;border-radius:20px;box-shadow:0 10px 40px rgba(0,0,0,.15);display:flex;flex-direction:column;overflow:hidden;animation:slideUp .3s ease-out;will-change:transform,opacity;transform:translateZ(0);transform-origin:bottom right}@keyframes slideUp{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translate(0) scale(1)}}.chat-header{padding:16px 20px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#000;justify-content:space-between;border-top-left-radius:20px;border-top-right-radius:20px}.chat-header,.header-left{display:flex;align-items:center}.header-left{gap:12px}.qwen-logo{width:40px;height:40px;border-radius:10px;-o-object-fit:contain;object-fit:contain;background:#fff;padding:4px;box-shadow:0 2px 8px rgba(0,0,0,.1)}.header-title{display:flex;flex-direction:column;gap:2px}.company-name{font-weight:700;font-size:15px;color:#000}.status-dot{width:8px;height:8px;border-radius:50%;background:#000;display:inline-block}.status-dot.online{background:#000;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.status-text{font-size:11px;color:#000;font-weight:500}.header-actions{display:flex;gap:8px}.close-btn,.header-btn{width:32px;height:32px;border-radius:8px;border:none;background:hsla(0,0%,100%,.9);color:#000;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;transition:all .2s;box-shadow:0 2px 6px rgba(0,0,0,.1)}.close-btn:hover,.header-btn:hover{background:#fff;transform:scale(1.05);box-shadow:0 4px 12px rgba(0,0,0,.15)}.chat-messages{flex:1;padding:20px;overflow-y:auto;background:#f8fafc;display:flex;flex-direction:column;gap:12px}.message{max-width:85%;padding:12px 16px;border-radius:18px;font-size:14px;line-height:1.5;position:relative;animation:fadeIn .2s ease;color:#000;border:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message.user{align-self:flex-end;background:linear-gradient(135deg,#22c55e,#16a34a);color:#000;border-bottom-right-radius:4px;font-weight:500;box-shadow:0 2px 8px rgba(22,163,74,.3)}.message.ai{align-self:flex-start;background:#fff;border-bottom-left-radius:4px;color:#000;box-shadow:0 2px 8px rgba(0,0,0,.08)}.message-content{word-wrap:break-word;white-space:pre-wrap}.message-time{display:block;font-size:10px;color:#000;opacity:.7;margin-top:4px;text-align:right;font-weight:500}.typing-indicator{display:flex;gap:4px;padding:8px 0}.typing-indicator span{width:8px;height:8px;border-radius:50%;background:#000;animation:bounce 1.4s ease-in-out infinite both}.typing-indicator span:first-child{animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chat-input-area{padding:16px 20px;background:#fff;display:flex;gap:12px;align-items:center}.chat-input{flex:1;padding:12px 16px;border:none;border-radius:25px;font-size:14px;outline:none;transition:all .2s;color:#000;background:#f1f5f9}.chat-input::-moz-placeholder{color:#64748b}.chat-input::placeholder{color:#64748b}.chat-input:focus{background:#fff;box-shadow:0 0 0 3px rgba(34,197,94,.3)}.chat-input:disabled{background:#e2e8f0;cursor:not-allowed;color:#64748b}.chat-send{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);color:#000;border:none;cursor:pointer;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0;box-shadow:0 2px 8px rgba(22,163,74,.3)}.chat-send:hover:not(:disabled){transform:scale(1.05);background:linear-gradient(135deg,#16a34a,#14532d);box-shadow:0 4px 14px rgba(22,163,74,.5)}.chat-send:disabled{opacity:.5;cursor:not-allowed;background:#cbd5e1;box-shadow:none}.chat-footer{padding:8px 20px 16px;background:#f8fafc;text-align:center;color:#000;font-size:11px;font-weight:500}@media (max-width:480px){.chat-widget{right:10px;left:auto;bottom:10px}.chat-window{width:calc(100vw - 20px);height:calc(100vh - 120px);max-height:none;margin:0}.chat-toggle{width:56px;height:56px}.unread-badge{min-width:18px;height:18px;font-size:10px;top:-2px;right:-2px}}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:transparent}.chat-messages::-webkit-scrollbar-thumb{background:#22c55e;border-radius:3px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#16a34a}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}