.quanyi-chatbot-widget {
position: fixed;
z-index: 99998;
}
.quanyi-position-bottom-right { bottom: 24px; right: 20px; }
.quanyi-position-bottom-left  { bottom: 24px; left: 20px; }
.quanyi-chatbot-toggle {
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
cursor: pointer;
box-shadow: 0 4px 16px rgba(102,126,234,0.5);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.25s, box-shadow 0.25s;
-webkit-tap-highlight-color: transparent;
}
.quanyi-chatbot-toggle:hover,
.quanyi-chatbot-toggle:active {
transform: scale(1.08);
box-shadow: 0 6px 22px rgba(102,126,234,0.6);
} #quanyi-chatbot-window {
position: fixed;
bottom: 90px;
right: 20px;
width: 380px;
height: 560px;
max-height: calc(100vh - 110px);
background: white;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0,0,0,0.18);
display: flex;
flex-direction: column;
z-index: 99999;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
} @media (max-width: 768px) {
#quanyi-chatbot-window {
position: fixed !important;
top: 0 !important; left: 0 !important;
right: 0 !important; bottom: 0 !important;
width: 100vw !important;
height: 100vh !important;
height: 100dvh !important;
max-height: none !important;
border-radius: 0 !important;
}
}
#quanyi-chatbot-window.qy-fullscreen {
position: fixed !important;
top: 0 !important; left: 0 !important;
right: 0 !important; bottom: 0 !important;
width: 100vw !important;
height: 100vh !important;
height: 100dvh !important;
max-height: none !important;
border-radius: 0 !important;
} .quanyi-chatbot-header {
padding: 14px 16px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.quanyi-chatbot-close {
background: none;
border: none;
color: white;
font-size: 26px;
line-height: 1;
cursor: pointer;
padding: 2px 6px;
border-radius: 50%;
transition: background 0.2s;
-webkit-tap-highlight-color: transparent;
}
.quanyi-chatbot-close:hover { background: rgba(255,255,255,0.2); } .quanyi-chatbot-messages {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 16px 14px;
background: #f5f6fa;
-webkit-overflow-scrolling: touch;
} .quanyi-message {
display: flex !important;
margin-bottom: 14px;
font-size: 14px;
line-height: 1.6;
word-break: break-word;
animation: qy-fadein 0.25s ease;
}
@keyframes qy-fadein {
from { opacity: 0; transform: translateY(6px); }
to   { opacity: 1; transform: translateY(0); }
} .quanyi-message-user {
justify-content: flex-end !important;
margin-left: 0 !important;
background: none !important;
padding: 0 !important;
border-radius: 0 !important;
max-width: 100% !important;
}
.quanyi-message-user .qy-bubble {
max-width: 75%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
color: white !important;
padding: 10px 15px;
border-radius: 18px 18px 4px 18px;
box-shadow: 0 2px 8px rgba(102,126,234,0.3);
} .quanyi-message-bot {
justify-content: flex-start !important;
background: none !important;
padding: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
max-width: 100% !important;
}
.quanyi-message-bot .qy-bubble {
max-width: 80%;
background: white !important;
color: #333 !important;
padding: 10px 15px;
border-radius: 18px 18px 18px 4px;
box-shadow: 0 1px 5px rgba(0,0,0,0.08);
} .quanyi-typing {
display: flex;
gap: 5px;
padding: 4px 2px;
align-items: center;
}
.quanyi-typing span {
width: 8px; height: 8px;
background: #bbb;
border-radius: 50%;
animation: quanyi-bounce 1.3s infinite ease-in-out;
}
.quanyi-typing span:nth-child(1) { animation-delay: -0.32s; }
.quanyi-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes quanyi-bounce {
0%, 80%, 100% { transform: scale(0.4); opacity: 0.5; }
40% { transform: scale(1); opacity: 1; }
} .quanyi-chatbot-input-area {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 12px;
background: white;
border-top: 1px solid #eaecf0;
flex-shrink: 0;
}
#quanyi-chatbot-input {
flex: 1;
padding: 10px 14px;
border: 1.5px solid #e0e3ea;
border-radius: 22px;
font-size: max(16px, 1em);
outline: none;
background: #f7f8fc;
transition: border-color 0.2s, background 0.2s;
}
#quanyi-chatbot-input:focus {
border-color: #667eea;
background: white;
}
.quanyi-chatbot-send {
width: 42px; height: 42px; min-width: 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, opacity 0.2s;
-webkit-tap-highlight-color: transparent;
}
.quanyi-chatbot-send:hover { transform: scale(1.06); }
.quanyi-chatbot-send:active { transform: scale(0.93); }
.quanyi-chatbot-send:disabled { opacity: 0.45; cursor: not-allowed; transform: none; } @media (min-width: 769px) {
.quanyi-chatbot-messages::-webkit-scrollbar { width: 5px; }
.quanyi-chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.quanyi-chatbot-messages::-webkit-scrollbar-thumb { background: #d0d3dc; border-radius: 3px; }
}