#quanyi-chatbot-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 99999;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe Segoe UI', Roboto, sans-serif;
} #quanyi-chatbot-toggle {
display: flex;
align-items: center;
gap: 10px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 12px 20px;
border-radius: 30px;
cursor: pointer;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
transition: all 0.3s ease;
}
#quanyi-chatbot-toggle:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
#quanyi-chatbot-toggle span {
font-weight: 500;
font-size: 14px;
} #quanyi-chatbot-window {
position: absolute;
bottom: 70px;
right: 0;
width: 380px;
height: 500px;
background: white;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
overflow: hidden;
display: flex;
flex-direction: column;
} #quanyi-chatbot-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
#quanyi-chatbot-header h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
}
#quanyi-chatbot-close {
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background 0.2s;
}
#quanyi-chatbot-close:hover {
background: rgba(255, 255, 255, 0.2);
} #quanyi-chatbot-messages {
flex: 1;
overflow-y: auto;
padding: 20px;
background: #f8f9fa;
}
.quanyi-chatbot-message {
display: flex;
gap: 12px;
margin-bottom: 16px;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.quanyi-chatbot-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.user-message .quanyi-chatbot-avatar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.bot-message .quanyi-chatbot-avatar {
background: #764ba2;
color: white;
}
.quanyi-chatbot-content {
background: white;
padding: 12px 16px;
border-radius: 16px;
max-width: 75%;
line-height: 1.5;
font-size: 14px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.user-message .quanyi-chatbot-content {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
order: -1;
}
.user-message {
justify-content: flex-end;
} #quanyi-chatbot-input-area {
display: flex;
gap: 10px;
padding: 16px 20px;
background: white;
border-top: 1px solid #e9ecef;
}
#quanyi-chatbot-input {
flex: 1;
padding: 10px 16px;
border: 1px solid #e9ecef;
border-radius: 20px;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
#quanyi-chatbot-input:focus {
border-color: #667eea;
}
#quanyi-chatbot-send {
width: 42px;
height: 42px;
border: none;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
#quanyi-chatbot-send:hover {
transform: scale(1.05);
}
#quanyi-chatbot-send:active {
transform: scale(0.95);
}
#quanyi-chatbot-send:disabled {
opacity: 0.5;
cursor: not-allowed;
} #quanyi-chatbot-typing {
padding: 12px 20px;
background: #f8f9fa;
color: #666;
font-size: 13px;
font-style: italic;
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
} @media (max-width: 480px) {
#quanyi-chatbot-window {
width: 100%;
height: 100vh;
bottom: 0;
right: 0;
border-radius: 0;
}
#quanyi-chatbot-container {
bottom: 10px;
right: 10px;
}
} #quanyi-chatbot-messages::-webkit-scrollbar {
width: 6px;
}
#quanyi-chatbot-messages::-webkit-scrollbar-track {
background: #f1f1f1;
}
#quanyi-chatbot-messages::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}
#quanyi-chatbot-messages::-webkit-scrollbar-thumb:hover {
background: #a1a1a1;
}