#chat-auto-toggle-button {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#chat-auto-frame-wrapper {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-width: 95vw;
    height: auto;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#chat-auto-frame-wrapper.chat-visible {
    opacity: 1;
    visibility: visible;
}
#chat-auto-frame-wrapper.chat-hidden {
    opacity: 0;
    visibility: hidden;
}
#chat-auto-close-button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #000;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    z-index: 2;
}
/* 移动端适配 */
@media (max-width: 400px) {
    #chat-auto-frame-wrapper {
        width: 98vw !important;
        right: 1vw !important;
        left: 1vw !important;
        bottom: 90px;
        border-radius: 10px;
    }
}
