.zm_chat-wiki-avatar-wrapper {
    position: fixed;
    cursor: pointer;
    z-index: 9999
}

.zm_chat-wiki-avatar-content,
#zm_chat-wiki-avatar {
    position: relative
}

#zm_chat-wiki-iframe {
    position: fixed;
    right: 50px;
    bottom: 50px;
    width: 400px;
    height: 600px;
    border: 0;
    z-index: 9999;
    box-shadow: #b4b4b480 0 2px 14px;
    max-width: 90%; /* 在小屏幕上最大宽度为 90% */
    left: auto; /* 确保左边距是自动调整 */
}

/* 响应式设计: 针对小屏幕（手机）调整 */
@media (max-width: 768px) {
    #zm_chat-wiki-iframe {
        width: 90%; /* 在手机上使用 90% 宽度 */
        right: 5%;  /* 移动到更合适的位置，避免超出 */
    }
}
#zm_chat-wiki-avatar .chat-wiki-avatar_type2 {
    white-space: nowrap;
    min-width: 170px;
    height: 62px;
    padding: 0 20px 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2475fc;
    border-radius: 80px;
    box-shadow: 4px 4px 8px #3c49a729;
    box-sizing: border-box
}

#zm_chat-wiki-avatar .chat-wiki-avatar_type2_icon {
    width: 32px;
    height: 32px;
    margin-right: 15px
}

#zm_chat-wiki-avatar .chat-wiki-avatar_type2_text {
    font-weight: 400;
    line-height: 24px;
    font-size: 16px;
    color: #fff
}

.zm_chat-wiki-avatar-wrapper .ai-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    background-color: red
}

.zm_chat-wiki-avatar-wrapper .ai-dot.ai-dot-plus {
    width: auto;
    padding: 0 5px;
    border-radius: 10px
}

.zm_chat-wiki-avatar-wrapper .new-message-list-wrapper {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px)
}

.zm_chat-wiki-avatar-wrapper .new-message-list {
    position: relative
}

.zm_chat-wiki-avatar-wrapper .new-message-list:before {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
    z-index: 100
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item {
    width: 300px;
    margin-bottom: 8px
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item:last-child {
    margin-bottom: 0
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .ai-assistant {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 4px 32px #00000014
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #999;
    transition: all .2s
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .close-btn:hover {
    background: #e4e6eb
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .message-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .ai-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .ai-name {
    flex: 1;
    line-height: 24px;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000
}

.zm_chat-wiki-avatar-wrapper .new-message-list .message-item .message-content {
    line-height: 22px;
    max-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    color: #595959
}