#nav-widget {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    bottom: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: move;
    user-select: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

#nav-widget img {
    width: 90px;
}

#nav-widget p {
    margin: 0;
    font-size: 16px;
    color: #1890ff;
    text-align: center;
}
/* CSS样式 */
.ai_button {
    height: 35px;
    width: 45px;
    border: 1.6px solid #ffffff;
    background-color: transparent;
    background: url('../images/ai.png') transparent;
    background-size: 34px 34px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 4px;
}

.ai_button_dg {
    height: 35px;
    width: 45px;
    border: 1.6px solid #ffffff;
    border-radius: 4px;
    background-color: transparent;
    background: url('../images/dg_icon.png') transparent;
    background-size: 34px 34px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 2px;
}
.ai_button:hover .ai-search-tooltip {
    display: inline-block;
}
.ai-search-tooltip {
    display: none;
    position: absolute;
    /* top: 41px; */
    /* right: -77px; */
    margin-top: 40px;
    margin-left: -78px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    text-align: left;
    background: #FFF;
    -webkit-box-shadow: 0 2px 4px 0 rgba(139, 139, 139, .25);
    box-shadow: 3px 3px 9px 4px rgba(139, 139, 139, .25);
    font-size: 14px;
    color: #666;
    z-index: 1;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}


.chat-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.ai-modal {
    position: absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width: 600px;
    /* max-width: 600px; */
    /* margin: 8% auto;  */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
    z-index: 99;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.ai-modal-header {
    padding: 2px 6px 10px 6px;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}
/* 关闭按钮 */
.ai-modal-header .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.close-btn:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}
.ai-modal-footer .tip-info {
    text-align: center;
    /* position: absolute; */
    /* bottom: 6px; */
    width: 100%;
    font-size: 12px;
    padding-top: 10px;
    color: rgba(0, 0, 0, 0.65);
}

.tip-info {
    text-align: center;
    /* position: absolute; */
    /* bottom: 6px; */
    width: 100%;
    font-size: 12px;
    padding-top: 10px;
    color: rgba(0, 0, 0, 0.65);
}

.chat-box {
    padding-top: 4px;
    height: 300px;
    /* overflow-y: scroll; */
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    background-color: #fff;
}

#user-input {
    width: calc(100% - 100px);
    padding: 8px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

#send-button {
    margin-top: 1px;
    padding: 7px 15px;
    margin-left: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.ai-message {
    margin-bottom: 10px;
    display: flex;
    flex: 1;
    align-items: flex-start;
    font-size: 0;
}

.ai-message .sender {
    /* font-weight: bold; */
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-right: 16px;
    flex-shrink: 0;
    text-align: center;
}

.ai-message .query-text {
    font-size: 14px;
    font-weight: 400;
    display: block;
    padding-top: 8px;
    color: #383A63;
    line-height: 22px;
}
.ai-message .message-text {
    font-size: 14px;
    line-height: 22px;
    color: #383A63;
}
.ai-message.agent img {
    width: 32px;
    height: 32px;
}
.ai-message .clickable-item {
    cursor: pointer;
    color: blue;
}
.ai-message .message-container {
    flex: 1 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 14px 0 rgba(59, 55, 85, 0.1);
    font-size: 16px;
}
.ai-message .message-actions {
    text-align: right;
}
.ai-message .message-actions .message-btn {
    padding: 5px 5px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}