        :root {
            /* webchat 工具栏的颜色 */
            --webchat-toolbar-background-color: none;
            /* webchat 工具栏文字和按钮的颜色 */
            --webchat-toolbar-text-color: #181818;
            /* webchat 工具栏文字和按钮的颜色 */
            --border-color: transparent;
        }


.webchat-container-toolbar::before {
    border-image: linear-gradient(270deg, rgb(235, 134, 152) 0%, rgb(19, 102, 236) 100%) 1 / 1 / 0 stretch;
}

        /* webchat 对话框如果被遮挡，可以尝试通过 z-index、bottom、right 等设置 来调整*/
.webchat-container {
    z-index: 999999999;
    bottom: 10px !important;
    right: 10px !important;
}

        /* 工具栏按钮提示框样式 */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: auto;
    min-width: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    margin-left: -40px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100000000001;
}

    .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    }

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

      /* 浮动状态的对话框 */
.webchat-container.floating {
    z-index: 100000000000 !important;
}

        /* webchat 的唤起按钮如果被遮挡，可以尝试通过 z-index、bottom、right 等设置 来调整。也可以通过 CSS 进一步定制唤起按钮的形状、大小等。 */
.webchat-bubble-tip {
    z-index: 999999999;
    bottom: 120px;
    right: 20px;
}

.kf {
    width: 126px;
    right: 142px;
}

        /* 最大化窗口样式 */
.webchat-container.maximized {
    width: 100vw !important;
    height: 100vh !important;
    bottom: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    .webchat-container.maximized .nlux-AiChat-root {
        box-sizing: border-box;
        width: 100% !important;
        padding: 0 10rem;
        height: calc(100vh - 50px) !important;
            /* 减去工具栏高度 */
    }

    .webchat-container.maximized .nlux-conversationStarters-container > .nlux-comp-conversationStarters button.nlux-comp-conversationStarter {
        width: auto !important;
        min-width: 400px !important;
        max-width: 600px !important;
    }

.nlux-AiChat-root > .nlux-chatRoom-container > .nlux-composer-container {
    padding-bottom: 0px;
}

.floating .webchat-container-toolbar {
    cursor: move;
}

.nlux-bottom-txt {
    text-align: center;
    margin-bottom: 12px;
    font-size: 10px;
    color: #999;
}

        /* 隐藏对话启动器区域 */
.nlux-conversationStarters-container {
    display: none !important;
}

        /* 免责声明样式 */
.disclaimer-modal {
    padding: 15px;
    background: #f7f7f7;
    margin: 20px;
    border-radius: 4px;
}

.disclaimer-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.disclaimer-content p {
    margin: 8px 0;
    line-height: 1.5;
    color: #666;
    font-size: 14px;
}
.nlux-comp-message > .nlux-markdownStream-root {
    flex-direction: column !important;
}


  /* 响应式设计 - 手机设备 */
        @media screen and (max-width: 767px) {
            /* 确保页面不会水平滚动 */
            body { overflow-x: hidden; }
            
            /* 调整聊天容器样式以适应键盘弹出 */
            .webchat-container {
                position: fixed !important;
                z-index: 999999999;
                max-height: calc(100vh - 20px);
                /* display: flex; */
                flex-direction: column;
            }
            
            .webchat-container.maximized {
                left:0px!important;
                max-height: none;
                height: 100vh !important;
            }
            
            /* 确保输入框区域在键盘弹出时有足够空间 */
            .nlux-AiChat-root>.nlux-chatRoom-container>.nlux-composer-container {
                position: relative;
                z-index: 10;
                min-height: 104px;
                box-sizing: border-box;
            }
            
            /* 优化聊天内容区域的滚动行为 */
            .nlux-chatRoom-container {
                flex: 1;
                display: flex;
                flex-direction: column;
            }
            
            .nlux-conversation-container {
                flex: 1;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .kf {font-size: 14px;  width: 118px; right: 132px;}

        .webchat-container.maximized .nlux-AiChat-root {
            box-sizing: border-box;
            width: 100% !important;
            padding: 0 10px!important;
            height: calc(100vh - 50px) !important;/* 减去工具栏高度 */
        }

            .webchat-container {
                width: 95vw !important;
                max-height:calc(100% - 20px); 
                right: 2.5vw !important;
                left: 2.5vw !important;
                bottom: 10px !important;
            }

.nlux-AiChat-root>.nlux-chatRoom-container:not(.nlux-chatRoom-starting)>.nlux-conversation-container { max-height: 400px;}

            .nlux-comp-welcomeMessage>.nlux-comp-welcomeMessage-text {text-align: center;}
            .webchat-container .nlux-AiChat-root {
                width: 100% !important;
                height: 100% !important;
            }
            
            .disclaimer-modal {
                margin: 10px !important;
                padding: 10px !important;
            }
            .disclaimer-content   {max-height: 120px; overflow-y: auto;}
            .disclaimer-content h3 {
                font-size: 14px !important;
            }
            
            .disclaimer-content p {
                font-size: 12px !important;
                line-height: 1.4 !important;
            }
            
            .webchat-bubble-tip {
                right: 10px !important;
                bottom: 10px !important;
            }
        }
