
.pddun-ai-float-btn{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#D4AF37 0%,#B8860B 100%);box-shadow:0 4px 20px rgba(212,175,55,.4);cursor:pointer;z-index:99999;display:flex;align-items:center;justify-content:center;border:none;color:white}
.pddun-ai-float-btn:hover{transform:scale(1.1)}
.pddun-ai-float-btn svg{width:28px;height:28px}
.pddun-ai-notification-dot{position:absolute;top:2px;right:2px;width:12px;height:12px;background:#EF4444;border-radius:50%;border:2px solid white}
.pddun-ai-chat-window{position:fixed;bottom:90px;right:24px;width:380px;height:560px;background:white;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.2);z-index:99998;display:none;flex-direction:column;overflow:hidden}
.pddun-ai-chat-window.active{display:flex}
.pddun-ai-chat-header{background:linear-gradient(135deg,#D4AF37 0%,#B8860B 100%);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;color:white}
.pddun-ai-header-left{display:flex;align-items:center;gap:12px}
.pddun-ai-logo{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:14px}
.pddun-ai-header-text h3{margin:0;font-size:16px;font-weight:600}
.pddun-ai-header-text p{margin:2px 0 0 0;font-size:12px;opacity:.9}
.pddun-ai-header-btn{background:rgba(255,255,255,.15);border:none;color:white;width:28px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.pddun-ai-messages{flex:1;overflow-y:auto;padding:16px;background:#F8FAFC}
.pddun-ai-message{display:flex;margin-bottom:16px;gap:8px}
.pddun-ai-message.ai{justify-content:flex-start}
.pddun-ai-message.user{justify-content:flex-end}
.pddun-ai-avatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#D4AF37 0%,#B8860B 100%);display:flex;align-items:center;justify-content:center;color:white;font-size:12px;font-weight:bold;flex-shrink:0}
.pddun-ai-message-bubble{max-width:75%;padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.6;word-wrap:break-word}
.pddun-ai-message.ai .pddun-ai-message-bubble{background:#F1F5F9;color:#1E293B;border-bottom-left-radius:4px}
.pddun-ai-message.user .pddun-ai-message-bubble{background:linear-gradient(135deg,#D4AF37 0%,#B8860B 100%);color:white;border-bottom-right-radius:4px}
.pddun-ai-message-time{font-size:11px;color:#94A3B8;margin-top:4px;text-align:right}
.pddun-ai-quick-questions{padding:8px 16px;background:white;border-top:1px solid #E2E8F0;display:flex;gap:8px;overflow-x:auto;white-space:nowrap}
.pddun-ai-quick-btn{background:#FFFDF5;color:#B8860B;border:1px solid rgba(212,175,55,.3);padding:6px 12px;border-radius:16px;font-size:12px;cursor:pointer;flex-shrink:0}
.pddun-ai-quick-btn:hover{background:#D4AF37;color:white}
.pddun-ai-input-area{padding:12px 16px;background:white;border-top:1px solid #E2E8F0;display:flex;gap:8px;align-items:flex-end}
.pddun-ai-input{flex:1;padding:10px 14px;border:1px solid #E2E8F0;border-radius:8px;font-size:14px;resize:none;outline:none;max-height:80px;font-family:inherit}
.pddun-ai-input:focus{border-color:#B8860B}
.pddun-ai-send-btn{background:linear-gradient(135deg,#D4AF37 0%,#B8860B 100%);color:white;border:none;width:40px;height:40px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pddun-ai-send-btn:disabled{opacity:.5;cursor:not-allowed}
.pddun-ai-transfer-human{margin-top:8px;padding:8px 16px;background:#FEF3C7;color:#92400E;border:1px solid #FCD34D;border-radius:8px;font-size:13px;cursor:pointer;width:100%;text-align:center}
.pddun-ai-typing span{display:inline-block;width:8px;height:8px;background:#94A3B8;border-radius:50%;margin-right:4px;animation:pddunTyping 1.4s infinite}
.pddun-ai-typing span:nth-child(2){animation-delay:.2s}
.pddun-ai-typing span:nth-child(3){animation-delay:.4s}
@keyframes pddunTyping{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-8px)}}
@media(max-width:480px){.pddun-ai-chat-window{width:100%;height:calc(100vh - 48px);bottom:0;right:0;border-radius:0}.pddun-ai-float-btn{bottom:16px;right:16px;width:52px;height:52px}}
