#joezchat-container {
    position: fixed; bottom: 20px; right: 20px;
    width: 330px; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff; overflow: hidden; z-index: 99999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#joezchat-container.joezchat-collapsed { height: 48px; width: 190px; }
#joezchat-header {
    background: #0073aa; color: #fff; padding: 14px 18px;
    display: flex; justify-content: space-between; cursor: pointer;
    font-weight: 600; font-size: 15px;
}
#joezchat-msgs { height: 380px; overflow-y: auto; padding: 15px; background: #fcfcfc; }
.user-msg, .ai-msg { 
    margin-bottom: 12px; padding: 10px 14px; border-radius: 16px; font-size: 13px;
    max-width: 85%; word-wrap: break-word; line-height: 1.5;
}
.user-msg { background: #0073aa; color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.ai-msg { background: #f0f0f0; color: #333; margin-right: auto; border-bottom-left-radius: 2px; }
#joezchat-input-row { display: flex; padding: 12px; border-top: 1px solid #eee; background: #fff; }
#joezchat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 16px; outline: none; font-size: 13px; }
#joezchat-send { background: #0073aa; color: #fff; border: none; padding: 0 16px; margin-left: 10px; border-radius: 20px; cursor: pointer; transition: 0.2s; }
#joezchat-send:hover { background: #005177; }

#joezchat-container {
    position: fixed; bottom: 20px; right: 20px;
    width: 330px; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff; overflow: hidden; z-index: 99999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#joezchat-container.joezchat-collapsed { height: 48px; width: 190px; }
#joezchat-header {
    background: #0073aa; color: #fff; padding: 14px 18px;
    display: flex; justify-content: space-between; cursor: pointer;
    font-weight: 600; font-size: 15px; align-items: center;
}
/* 小机器人样式与动画 */
.joez-robot {
    width: 20px; height: 16px; background: #fff; border-radius: 4px;
    position: relative; animation: joez-bob 2s infinite ease-in-out;
}
.joez-robot-head {
    width: 100%; height: 100%; display: flex; justify-content: center; gap: 3px; align-items: center;
}
.joez-robot-eye {
    width: 4px; height: 4px; background: #0073aa; border-radius: 50%;
    animation: joez-blink 4s infinite;
}
@keyframes joez-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes joez-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

#joezchat-msgs { height: 380px; overflow-y: auto; padding: 15px; background: #fcfcfc; }
.user-msg, .ai-msg { 
    margin-bottom: 12px; padding: 10px 14px; border-radius: 16px; font-size: 13px;
    max-width: 85%; word-wrap: break-word; line-height: 1.5;
}
.user-msg { background: #0073aa; color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.ai-msg { background: #f0f0f0; color: #333; margin-right: auto; border-bottom-left-radius: 2px; }
#joezchat-input-row { display: flex; padding: 12px; border-top: 1px solid #eee; background: #fff; }
#joezchat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 16px; outline: none; font-size: 13px; }
#joezchat-send { background: #0073aa; color: #fff; border: none; padding: 0 16px; margin-left: 10px; border-radius: 20px; cursor: pointer; transition: 0.2s; }
#joezchat-send:hover { background: #005177; }


#joezchat-container {
    position: fixed; bottom: 20px; right: 20px;
    width: 330px; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff; overflow: hidden; z-index: 99999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#joezchat-container.joezchat-collapsed { height: 48px; width: 170px; }
#joezchat-header {
    background: #0073aa; color: #fff; padding: 10px 18px;
    display: flex; justify-content: space-between; cursor: pointer;
    font-weight: 600; font-size: 15px; align-items: center;
}

/* 机器人图标动画 */
.joez-robot-icon {
    width: 45px; height: 38px; border-radius: 50%;
    object-fit: contain;
    animation: joez-float 3s infinite ease-in-out;
}

@keyframes joez-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

#joezchat-msgs { height: 380px; overflow-y: auto; padding: 15px; background: #fcfcfc; }
.user-msg, .ai-msg { 
    margin-bottom: 12px; padding: 10px 14px; border-radius: 16px; font-size: 13px;
    max-width: 85%; word-wrap: break-word; line-height: 1.5;
}
.user-msg { background: #0073aa; color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.ai-msg { background: #f0f0f0; color: #333; margin-right: auto; border-bottom-left-radius: 2px; }
#joezchat-input-row { display: flex; padding: 12px; border-top: 1px solid #eee; background: #fff; }
#joezchat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 16px; outline: none; font-size: 13px; }
#joezchat-send { background: #0073aa; color: #fff; border: none; padding: 0 16px; margin-left: 10px; border-radius: 20px; cursor: pointer; }