.right-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 1001;
}

.right-modal-enter,
.right-modal-leave-to {
    transform: translateX(100%);
}

.right-modal-enter-active,
.right-modal-leave-active {
    transition: transform 0.3s ease-out;
}

.modal-content {
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.modal-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #2f3848;
    font-weight: bold;
}

.right-modal .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'simsun';
    font-size: 18px;
}

.zngw-modal {
    width: 40% !important;
    max-width: 500px;
}


.toggle-leftbtn {
    position: absolute;
    left: 260px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    height: 56px;
    width: 17px;
    border: none;
    background-image: url("../images/kejiguwen/left-btn.png");
    background-position: left center;
}

.toggle-leftbtn.active {
    left: 0;
    background-position: right center;
}

.zngw-modal-cont {
    display: flex;
    position: relative;
}

.zngw-modal .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    color: #000;
    z-index: 999;
}

.left-panel {
    position: absolute;
    left: 0;
    top: 40px;
    background: #fafbff;
    box-sizing: border-box;
    height: calc(100vh - 40px);
    padding: 20px;
    width: 260px;    
    background-image: linear-gradient(to bottom, #dee7ff 0, #eceeff 100%);
    z-index: 2;
    box-shadow: 0 0 24px rgba(30, 30, 135, 0.12);
}

.bot-icon-container {
    height: 40px;
}

.bot-name {
    color: #353749;
    font-size: 21px;
    font-weight: 600;
}

.text-blue-btn {
    color: #4a7de0;
    border: 1px solid #4a7de0;
    font-size: 16px;
    width: 100%;
}

.desc-menu .title {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 48px;
    border-radius: 5px;
    background: #eef1ff;
    cursor: pointer;
    margin-bottom: 8px;
}

.desc-menu .title:hover {
    color: #4a7de0;
    background: #f5f7ff;
}

.desc-menu .title.active {
    color: #fff;
    background: #4a7de0;
}

.desc-menu .icon {
    width: 18px;
    height: 22px;
    background-position: bottom;
}

.desc-menu .active .icon {
    background-position: top !important;
}

.desc-menu .icon01 {
    background-image: url("../images/kejiguwen/menu-icon01.png");
    background-size: cover;
}

.desc-menu .icon02 {
    background-image: url("../images/kejiguwen/menu-icon02.png");
    background-size: cover;
}

.desc-menu .icon03 {
    background-image: url("../images/kejiguwen/menu-icon03.png");
    background-size: cover;
}

.desc-menu .icon04 {
    background-image: url("../images/kejiguwen/menu-icon04.png");
    background-size: cover;
}

.desc-text .text-cont {
    position: relative;
    background: #f5f7ff;
    margin: 18px 0;
    padding: 15px 20px;
}

.desc-text .text-cont h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
    margin-bottom: 10px;
}

.desc-text .text-cont::after {
    content: "";
    position: absolute;
    display: inline-block;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 15px solid #f5f7ff;
    transition: transform 0.3s;
}

.desc-text .text-cont li {
    color: #4a7de0;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 0 10px;
}

.desc-text .text-cont li span {
    color: #4b5265;
}

.contentPannel {
    flex: 1;
}

.right-container {
    position: absolute;
    right: 0;
    top: 40px;
    width: 300px;
    background: #fff;
    box-shadow: 0 0 36px rgba(30, 30, 135, 0.2);
}

.toggle-rightbtn {
    position: fixed;
    right: 300px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    height: 56px;
    width: 17px;
    border: none;
    background-image: url("../images/kejiguwen/right-btn.png");
    background-position: left center;
}

.toggle-rightbtn.active {
    right: 0;
    background-position: right center;
}

/* 新增聊天消息样式 */
.message-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.message {
    max-width: 75%;
    padding: 8px 16px;
    border-radius: 5px;
    line-height: 1.5;
}

.message.user {
    align-self: flex-end;
    background-color: #dde4ff;
    color: #31333f;
}

.message.assistant {
    align-self: flex-start;
    /* background-color: white; */
    color: #333;
    /* border: 1px solid #eee; */
}

.message-content {
    word-break: break-word;
}

.message.assistant .message-content {
    padding: 20px;
    margin-left: 65px;
    border-radius: 6px;
    background: #fff;
}

.input-area {
    position: absolute;
    bottom: 10px;
    width: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    /* width: 100%; */
    /* max-width: 800px; */
    border: 1px solid #ddd;
    border-radius: 10px;
    height: 120px;
    background: white;
    margin-bottom: 10px;
}

.chat-container {
    position: relative;
    /* width: 800px; */
    margin: 0 auto;
    background: #f7f8ff;
    height: 100vh;
    /* 减去输入区域高度 */
    padding: 0px 20px;
    padding: 40px 0 200px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.chat-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 40px 0 10px;
    height: 40px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.chat-topbar i {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
}
.chat-topbar i.on{
    color: #1890ff;
}

.icon-right-menu {
    background: url("../images/kejiguwen/icon-menu.png") no-repeat center;
}

.icon-right-menu.on {
    background:#1890ff url("../images/kejiguwen/icon-menu-on.png") no-repeat center;
    background-size: 62%;
}

.icon-new-chat {    
    background: url("../images/kejiguwen/icon-add-chat.png") no-repeat center;   
}


.input-container {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.send-button {
    /* padding: 0 20px; */
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 10px;
}

.headimg {
    /* 顶部对齐 */
    align-self: flex-start;
}

.right-tools {
    background: #f7f8ff;
    height: 60px;
    font-size: 14px;
    padding-right: 10px;
    cursor: pointer;
}

.right-tools img {
    width: 15px;
    height: 15px;
    margin-right: 5px;
}

.history-container {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: calc(100vh - 100px);
    /* 减去输入区域高度 */
}

.history-item {
    margin: 3px 5px 0px 5px;
    padding: 0 15px;
    min-height: 40px;
    background: #fdfdff;
    color: #181818;
    cursor: pointer;
    font-size: 12px;
}

.history-item:hover {
    background-color: #fbfbff;
    border-radius: 8px;
}

.task-container {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: calc(100vh - 100px);
    /* 减去输入区域高度 */
}

.task-item {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0 0 5px 0;
    padding: 12px 5px;
    width: 100%;
    color: #3f4460;
    cursor: pointer;
    font-size: 14px;
    background: #fbfbff;
}

.task-item:nth-child(2n) {
    background: #fdfdff;
}

.task-item a {
    color: #3f4460 !important;
}

.task-item a:hover {
    color: #3399ff !important;
}

.icon-word {
    display: inline-block;
    flex-shrink: 0;
    margin-right: 6px;
    width: 20px;
    height: 20px;
    background: url("../images/kejiguwen/icon-word.png") no-repeat center;
    background-size: 80%;
}

.help-list {
    list-style: none;
}

.help-list li {
    padding: 10px;
}

.help {
    background: #f7f8ff;
    height: 60px;
    padding-left: 10px;

}

.message-input .el-textarea__inner {
    flex: 1;
    padding: 12px 16px;
    /* border: 1px solid #ddd; */
    /* border-radius: 20px; */
    outline: none;
    border: 0px;
    /* 透明色 */
    background-color: transparent;
    border: 0px !important;
    overflow: auto;
    font-family: "Microsoft YaHei";
    font-size: 14px;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f0f0f0;
    white-space: pre-wrap;
    /* 确保换行符能正确显示 */
}

.task-tabs .el-tabs__nav {
    display: flex;
    flex-wrap: wrap;
}

.task-tabs .el-tabs__item {
    padding: 0 10px !important;
    margin: 0 10px 10px 0;
    height: 30px;
    line-height: 28px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
}

.task-tabs .el-tabs__item.is-active {
    color: #fff;
    border: 1px solid transparent !important;
    background-image: linear-gradient(to right, #2894ff 0, #695cf2 100%);
}

.task-tabs .el-tabs__active-bar {
    display: none;
}

.task-tabs .el-tabs__nav-wrap::after {
    display: none;
}

.task-tabs .el-checkbox__inner {
    border-radius: 0 !important;
}

.icon-file {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    background: url(../images/kejiguwen/icon-word.png) no-repeat;
}