
.staff-workspace[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #f7f7f7;
    transition: all 0.3s ease;
}

/* 统一卡片布局样式 */
.unified-chat-card[data-v-572826b9] {
    height: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* .unified-chat-card .el-card__body {
    height: 100%;
    padding: 0;
    overflow: hidden;
} */

/* 布局相关样式 */
.chat-layout[data-v-572826b9] {
    display: flex;
    flex: 1;
    height: 100%;
    min-height: 0; /* 防止flex子项溢出 */
    overflow: hidden;
}

/* 左侧会话列表相关样式 */
.chat-lists-container[data-v-572826b9] {
    height: 100%;
    padding-right: 0;
    border-right: 1px solid #ebeef5;
    background-color: #fff;
}
.section-divider[data-v-572826b9] {
    height: 1px;
    background-color: #E4E7ED;
    margin: 15px 0 10px 0;
    position: relative;
    border-radius: 1px;
}
.section-divider[data-v-572826b9]:after {
    content: attr(data-title);
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 13px;
    color: #606266;
    background-color: #fff;
    padding: 2px 12px;
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid #E4E7ED;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

/* 为第一个分割线添加特殊样式 - 等待队列 */
.section-divider[data-title="等待队列"][data-v-572826b9]:after {
    color: #409EFF;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

/* 处理中会话分割线样式 */
.section-divider[data-title="处理中会话"][data-v-572826b9]:after {
    color: #67C23A;
    border-color: #c2e7b0;
    background-color: #f0f9eb;
}

/* 挂起会话分割线样式 */
.section-divider[data-title="挂起会话"][data-v-572826b9]:after {
    color: #E6A23C;
    border-color: #f5dab1;
    background-color: #fdf6ec;
}

/* 为第一个分割线添加特殊样式 */
.section-divider[data-v-572826b9]:first-child {
    margin-top: 5px;
}
.sessions-panel[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
}
.session-section[data-v-572826b9] {
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-bottom: none;
}
.session-section>div[data-v-572826b9] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}
.section-header[data-v-572826b9] {
    padding: 8px 0;
    font-weight: 500;
    font-size: 14px;
    color: #303133;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.section-title[data-v-572826b9] {
    position: relative;
    padding-left: 10px;
    font-size: 14px;
    font-weight: 500;
}
.section-title[data-v-572826b9]:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background-color: #409EFF;
    border-radius: 2px;
}
.session-list-wrapper[data-v-572826b9] {
    overflow-y: auto;
    /* 只在需要时显示滚动条 */
    flex: 1;
    max-height: 100%;
}

/* 紧凑表格样式 */
.modern-table[data-v-572826b9] {
    background-color: transparent;
    border-radius: 4px;
    box-shadow: none;
    border-bottom: none;
}
.compact-table[data-v-572826b9] {
    font-size: 13px;
}
.compact-table .el-table__row[data-v-572826b9] {
    height: auto !important;
    border-bottom: 1px solid #EBEEF5;
}
.compact-table .el-table__cell[data-v-572826b9] {
    padding: 4px 0;
}

/* 紧凑会话信息 */
.compact-session[data-v-572826b9] {
    padding: 4px 8px;
    height: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
}
.compact-session .user-name[data-v-572826b9] {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}
.compact-assistant[data-v-572826b9] {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.compact-message[data-v-572826b9] {
    font-size: 12px;
    line-height: 1.3;
    max-height: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.compact-time[data-v-572826b9] {
    font-size: 11px;
}
.empty-queue[data-v-572826b9],
.compact-empty[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #909399;
    flex: 1;
    height: 100%;
    min-height: 100%;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
    text-align: center;
}
.empty-queue i[data-v-572826b9],
.compact-empty i[data-v-572826b9] {
    margin-bottom: 8px;
    opacity: 0.6;
}
.empty-queue p[data-v-572826b9],
.compact-empty p[data-v-572826b9] {
    margin: 0;
    font-size: 13px;
    color: #909399;
}

/* 主聊天区域样式优化 */
.main-chat-container[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
}
.chat-container[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

/* 现代化卡片样式 */
.modern-card[data-v-572826b9] {
    border-radius: 8px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}
.modern-card-header[data-v-572826b9] {
    font-weight: 500;
    color: #343a40;
    padding-left: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* 消息区域 */
.chat-messages-container[data-v-572826b9] {
    flex: 1;
    overflow: auto;
    padding: 15px;
    background-color: #f0f2f5;
    border-radius: 8px;
    margin-bottom: 15px;
}
.empty-messages[data-v-572826b9] {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #909399;
    min-height: 200px;
}
.empty-messages i[data-v-572826b9] {
    margin-bottom: 10px;
}
.no-session-placeholder[data-v-572826b9] {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #909399;
    min-height: 60vh;
}
.no-session-placeholder i[data-v-572826b9] {
    margin-bottom: 20px;
}
.no-session-placeholder p[data-v-572826b9] {
    font-size: 16px;
    color: #606266;
}

/* 侧边栏容器 */
.sidebar-container[data-v-572826b9] {
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

/* 侧边栏切换按钮容器 */
.sidebar-toggle-wrapper[data-v-572826b9] {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}
.sidebar-toggle-wrapper.floating[data-v-572826b9] {
    position: fixed;
    left: 15px;
    top: 70px;
    z-index: 2000;
}

/* 侧边栏切换按钮 */
.sidebar-toggle-btn[data-v-572826b9] {
    width: 28px;
    height: 28px;
    background-color: rgba(64, 158, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}
.sidebar-toggle-btn[data-v-572826b9]:hover {
    background-color: #409EFF;
    transform: scale(1.05);
}
.empty-queue[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #909399;
    flex: 1;
    height: 100%;
    min-height: 100%;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
}
.session-info-container[data-v-572826b9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    width: 100%;
}
.session-info-left[data-v-572826b9] {
    flex: 1;
    overflow: hidden;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}
.user-name[data-v-572826b9] {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 3px;
    color: #303133;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.assistant-name[data-v-572826b9] {
    font-size: 12px;
    color: #909399;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.left-aligned[data-v-572826b9] {
    text-align: left;
}
.last-message[data-v-572826b9] {
    font-size: 12px;
    color: #606266;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.message-preview[data-v-572826b9] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}
.session-info-right[data-v-572826b9] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-width: 50px;
    gap: 6px;
    height: 18px;
}
.last-time[data-v-572826b9] {
    font-size: 12px;
    color: #909399;
    margin-bottom: 0;
}
.unread-badge[data-v-572826b9] {
    background-color: #f56c6c;
    color: white;
    border-radius: 10px;
    padding: 0 5px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.modern-btn[data-v-572826b9] {
    font-weight: 500;
    border-radius: 4px;
    padding: 6px 12px;
    transition: all 0.3s;
}
.modern-btn[data-v-572826b9]:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.message[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    max-width: 90%;
    margin-bottom: 18px;
    position: relative;
}
.user-message[data-v-572826b9] {
    align-items: flex-start;
}
.ai-message[data-v-572826b9] {
    align-items: flex-start;
}
.staff-message[data-v-572826b9] {
    align-items: flex-end;
    margin-left: auto;
    margin-right: 0;
    width: auto;
}
.system-message[data-v-572826b9] {
    align-items: center;
    max-width: 100%;
}
.message-content[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
.message-sender[data-v-572826b9] {
    font-size: 12px;
    color: #606266;
    margin-bottom: 6px;
    font-weight: 500;
}
.message-text[data-v-572826b9] {
    padding: 12px 15px;
    border-radius: 8px;
    position: relative;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}
.user-message .message-text[data-v-572826b9] {
    background-color: #ffffff;
    color: #303133;
    border-top-left-radius: 2px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.ai-message .message-text[data-v-572826b9] {
    background-color: #e1f0fb;
    color: #2c3e50;
    border-top-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #66b1ff;
}
.staff-message .message-text[data-v-572826b9] {
    background-color: #e1f3ff;
    color: #2c3e50;
    border-top-right-radius: 2px;
    margin-right: 0;
    text-align: left;
    float: right;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.system-message .message-text[data-v-572826b9] {
    background-color: rgba(144, 147, 153, 0.15);
    color: #606266;
    font-style: italic;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.message-image[data-v-572826b9] {
    max-width: 240px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.message-image[data-v-572826b9]:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 消息底部样式增强 */
.message-footer[data-v-572826b9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding: 0 4px;
    position: relative;
    z-index: 2;
}
.message-time[data-v-572826b9] {
    font-size: 11px;
    color: #c0c4cc;
}
.chat-input-area[data-v-572826b9] {
    flex-shrink: 0;
    border-top: 1px solid #ebeef5;
    padding: 10px 20px 15px;
    display: flex;
    flex-direction: column;
    max-height: 40vh;
    /* 限制最大高度 */
    overflow-y: auto;
    /* 如果内容过多，允许滚动 */
}
.input-wrapper[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: visible;
}
.modern-input[data-v-572826b9] {
    flex: 1;
    min-height: 0;
}
.modern-input textarea[data-v-572826b9] {
    max-height: 20vh;
    overflow-y: auto;
    resize: none;
    border-color: #DCDFE6;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 12px;
}
.modern-input textarea[data-v-572826b9]:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}
.toolbar[data-v-572826b9] {
    display: flex;
    padding: 4px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.image-btn[data-v-572826b9] {
    padding: 6px 8px;
    color: #606266;
    background-color: #e8f4ff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-right: 5px;
    transition: all 0.3s;
}
.image-btn[data-v-572826b9]:hover {
    color: #409EFF;
    background-color: #d0e8ff;
    transform: translateY(-1px);
}
.quote-display[data-v-572826b9] {
    display: flex;
    padding: 6px 10px;
    background-color: #f1f5f9;
    border-radius: 4px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    max-height: 60px;
    overflow-y: auto;
}
.quote-display .quote-content[data-v-572826b9] {
    flex: 1;
    font-size: 13px;
    color: #606266;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 30px);
    /* 为关闭按钮预留空间 */
}
.quote-close[data-v-572826b9] {
    cursor: pointer;
    padding: 4px;
    color: #909399;
    transition: all 0.2s;
}
.quote-close[data-v-572826b9]:hover {
    color: #f56c6c;
    transform: scale(1.1);
}
.message-quote[data-v-572826b9] {
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
    display: flex;
}
.quote-line[data-v-572826b9] {
    width: 3px;
    background-color: #409EFF;
    margin-right: 8px;
    border-radius: 3px;
}
.quote-content[data-v-572826b9] {
    font-size: 13px;
    color: #606266;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.message-actions[data-v-572826b9] {
    display: flex;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(2px);
    position: relative;
}
.message:hover .message-actions[data-v-572826b9] {
    opacity: 1;
    transform: translateY(0);
}

/* 确保引用按钮在移入时保持显示 */
.message-actions[data-v-572826b9]:hover {
    opacity: 1 !important;
}

/* 引用按钮样式优化 */
.quote-btn[data-v-572826b9] {
    cursor: pointer;
    width: 26px;
    height: 18px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.8;
    margin-right: 5px;
}
.quote-btn[data-v-572826b9]:hover {
    background-color: #333333;
    transform: scale(1.1);
    opacity: 1;
}
.recall-btn[data-v-572826b9] {
    background-color: rgba(0, 0, 0, 0.6);
}
.recall-btn[data-v-572826b9]:hover {
    background-color: #333333;
}
.quote-icon[data-v-572826b9] {
    color: white;
    width: 14px;
    height: 14px;
}

/* 响应式样式调整 */
@media screen and (max-width: 992px) {
.staff-workspace[data-v-572826b9] {
        padding: 10px;
}
.input-actions[data-v-572826b9] {
        margin-top: 8px;
}
.chat-input-area[data-v-572826b9] {
        height: 110px;
        padding: 10px;
}
.modern-input textarea[data-v-572826b9] {
        font-size: 14px;
}
}
@media screen and (max-width: 768px) {
.staff-workspace[data-v-572826b9] {
        padding: 5px;
}
.input-actions[data-v-572826b9] {
        margin-top: 5px;
}
.message-content[data-v-572826b9] {
        max-width: 85%;
}
.user-message .message-text[data-v-572826b9],
    .ai-message .message-text[data-v-572826b9] {
        margin-right: 10px;
}
.staff-message .message-text[data-v-572826b9] {
        margin-left: 25px;
}
.system-message .message-text[data-v-572826b9] {
        margin: 0 40px;
}
}

/* 图片查看器样式 */
.image-viewer-dialog[data-v-572826b9] {
    width: auto !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.image-viewer-container[data-v-572826b9] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.full-image[data-v-572826b9] {
    max-width: 100%;
    max-height: 80vh;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* 隐藏关闭按钮样式 */
.image-viewer-dialog .el-dialog__headerbtn[data-v-572826b9],
.el-message-box__headerbtn[data-v-572826b9] {
    display: none !important;
}

/* 会话表格样式 */
.session-table[data-v-572826b9] {
    cursor: pointer;
    border: none !important;
}
.session-table .el-table__row[data-v-572826b9] {
    transition: background-color 0.3s;
}
.session-table .el-table__row[data-v-572826b9]:hover {
    background-color: #f0f9ff !important;
}

/* 当前处理中会话的行样式 */
.session-table .el-table__row--current-session[data-v-572826b9] {
    background-color: #e6f7ff !important;
    border-left: 3px solid #409EFF;
}

/* 确保悬停时保持颜色 */
.session-table .el-table__row--current-session[data-v-572826b9]:hover {
    background-color: #d4edff !important;
}

/* 增加特定的处理中会话样式 */
[data-v-572826b9] .el-table__row--current-session {
    background-color: #e6f7ff !important;
}
[data-v-572826b9] .el-table__row--current-session:hover>td {
    background-color: #d4edff !important;
}

/* 侧边栏折叠后的样式调整 */
@media screen and (max-width: 768px) {
.main-chat-container[data-v-572826b9] {
        flex: 1;
        width: 100%;
}
}

/* 聊天窗口中的侧边栏切换按钮 */
.chat-toggle-btn[data-v-572826b9] {
    width: 28px;
    height: 28px;
    background-color: rgba(64, 158, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
}
.chat-toggle-btn[data-v-572826b9]:hover {
    background-color: #409EFF;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.chat-toggle-btn i[data-v-572826b9] {
    font-size: 14px;
    font-weight: bold;
}
.current-session-info[data-v-572826b9] {
    margin-left: 5px;
}
.chat-header[data-v-572826b9] {
    padding: 10px 0;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 10px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pending-note[data-v-572826b9] {
    color: #e6a23c;
    font-style: italic;
}
.pending-actions[data-v-572826b9] {
    display: flex;
    gap: 5px;
}
.image-viewer[data-v-572826b9] {
    display: flex;
    justify-content: center;
    align-items: center;
}
.fullsize-image[data-v-572826b9] {
    max-width: 100%;
    max-height: 80vh;
    -o-object-fit: contain;
       object-fit: contain;
}
.modern-warning-btn[data-v-572826b9] {
    background-color: #e6a23c;
    border-color: #e6a23c;
    color: white;
}
.modern-danger-btn[data-v-572826b9] {
    background-color: #f56c6c;
    border-color: #f56c6c;
    color: white;
}
.input-actions[data-v-572826b9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 5px 0;
    z-index: 10;
}
.input-tip[data-v-572826b9] {
    font-size: 12px;
    color: #909399;
}
.assistant-tag[data-v-572826b9] {
    display: inline-block;
    font-size: 12px;
    padding: 2px 6px;
    background-color: #ecf5ff;
    color: #409EFF;
    border-radius: 3px;
    margin-left: 5px;
}
.debug-info[data-v-572826b9] {
    margin-left: 8px;
    font-size: 11px;
    color: #909399;
    font-weight: normal;
}

/* 美化滚动条 */
.session-list-wrapper[data-v-572826b9]::-webkit-scrollbar,
.chat-messages-container[data-v-572826b9]::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.session-list-wrapper[data-v-572826b9]::-webkit-scrollbar-thumb,
.chat-messages-container[data-v-572826b9]::-webkit-scrollbar-thumb {
    background: rgba(144, 147, 153, 0.3);
    border-radius: 10px;
}
.session-list-wrapper[data-v-572826b9]::-webkit-scrollbar-thumb:hover,
.chat-messages-container[data-v-572826b9]::-webkit-scrollbar-thumb:hover {
    background: rgba(144, 147, 153, 0.5);
}
.session-list-wrapper[data-v-572826b9]::-webkit-scrollbar-track,
.chat-messages-container[data-v-572826b9]::-webkit-scrollbar-track {
    background: transparent;
}

/* 设置三个区域的高度比例为2:6:2 */
.sessions-panel .section-divider:nth-child(1)+.session-section[data-v-572826b9] {
    flex: 2;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 20%;
    overflow-y: auto;
    /* 只在需要时显示滚动条 */
    max-height: 20vh;
}
.sessions-panel .section-divider:nth-child(3)+.session-section[data-v-572826b9] {
    flex: 6;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 60%;
    overflow-y: auto;
    /* 只在需要时显示滚动条 */
    max-height: 60vh;
}
.sessions-panel .section-divider:nth-child(5)+.session-section[data-v-572826b9] {
    flex: 2;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 20%;
    overflow-y: auto;
    /* 只在需要时显示滚动条 */
    max-height: 20vh;
}

/* 列表包装器滚动行为 */
.session-list-wrapper[data-v-572826b9] {
    overflow-y: auto;
    /* 只在需要时显示滚动条 */
    flex: 1;
    max-height: 100%;
}

/* 空队列状态下的样式 */
.empty-queue[data-v-572826b9] {
    overflow: hidden !important;
    /* 强制隐藏滚动条 */
    height: 100%;
    min-height: 100px;
}

/* 覆盖主会话面板的滚动行为 */
.sessions-panel[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
}

/* 更精确的空状态滚动条控制 */
.session-section[data-v-572826b9]:has(> .empty-queue) {
    overflow: hidden !important;
}
.session-section:has(> .empty-queue) .session-list-wrapper[data-v-572826b9] {
    overflow: hidden !important;
}

/* 调整空列表行高 */
.empty-queue.compact-empty[data-v-572826b9] {
    min-height: 80px;
    padding: 10px 0;
    justify-content: center;
}

/* 当有数据时确保正确的滚动行为 */
.session-section[data-v-572826b9]:has(> .session-list-wrapper:not(:empty)) {
    overflow-y: auto;
}

/* 确保空状态时滚动条不显示 */
.session-section[data-v-572826b9]:empty,
.session-section>div[data-v-572826b9]:empty {
    overflow: hidden !important;
}

/* 确保表格不单独滚动，只有整个区域滚动 */
.session-section .el-table[data-v-572826b9] {
    overflow: visible;
    max-height: 100%;
}
.session-section .el-table__body-wrapper[data-v-572826b9] {
    overflow: visible;
}

/* 修复空数据时可能出现的滚动条 */
.empty-queue+.session-list-wrapper[data-v-572826b9],
.session-section[data-v-572826b9]:has(.empty-queue) {
    overflow: hidden !important;
}

/* 适用于Firefox和其他支持:has选择器的浏览器 */
.session-section[data-v-572826b9]:has(.empty-queue) {
    overflow: hidden !important;
}

/* 确保有数据的情况下，表格的overflow行为正确 */
.session-section>div[data-v-572826b9]:not(.empty-queue) {
    overflow-y: auto;
    max-height: 100%;
}

/* 修改聊天区域的计算高度方法，确保它能在不同屏幕尺寸下都保持良好的比例 */
@media screen and (min-height: 700px) {
.chat-messages-container[data-v-572826b9] {
        min-height: 400px;
}
}
@media screen and (min-height: 900px) {
.chat-messages-container[data-v-572826b9] {
        min-height: 600px;
}
}
.section-section[data-v-572826b9] {
    background-color: #fff;
}

/* 添加深度选择器来彻底移除表格边框线 */
.modern-table[data-v-572826b9] .el-table__inner-wrapper::after,
.session-table[data-v-572826b9] .el-table__inner-wrapper::after {
    display: none !important;
}

/* 确保表格单元格没有边框 - 修改为不影响底部边框 */
.modern-table[data-v-572826b9] .el-table td,
.session-table[data-v-572826b9] .el-table td {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* 移除表头底部边框 */
.modern-table[data-v-572826b9] .el-table th.is-leaf,
.session-table[data-v-572826b9] .el-table th.is-leaf {
    border-bottom: none !important;
}

/* 移除表格的外层边框 */
.modern-table[data-v-572826b9] .el-table__border-left-patch,
.modern-table[data-v-572826b9] .el-table__border-top-patch,
.session-table[data-v-572826b9] .el-table__border-left-patch,
.session-table[data-v-572826b9] .el-table__border-top-patch {
    display: none !important;
}

/* 移除表格的底部边框 */
.modern-table[data-v-572826b9] .el-table__footer-wrapper,
.session-table[data-v-572826b9] .el-table__footer-wrapper {
    border-top: none !important;
}

/* 移除所有表格相关的边框 */
.modern-table[data-v-572826b9] .el-table::before,
.session-table[data-v-572826b9] .el-table::before,
.modern-table[data-v-572826b9] .el-table::after,
.session-table[data-v-572826b9] .el-table::after {
    display: none !important;
}

/* 确保每个表格容器本身没有边框 */
.session-section .el-table[data-v-572826b9],
.session-section .el-table__header-wrapper[data-v-572826b9],
.session-section .el-table__body-wrapper[data-v-572826b9] {
    border: none !important;
}

/* 加强重要性，确保列表底部没有线 */
.session-list-wrapper .el-table[data-v-572826b9],
.session-list-wrapper .el-table__body[data-v-572826b9] {
    border-bottom: none !important;
}

/* 移除表格内容的边框线 */
.el-table__body tr.el-table__row td[data-v-572826b9] {
    border-bottom: none !important;
}

/* 确保行之间没有边框线 */
.compact-table .el-table__body tr[data-v-572826b9] {
    border-bottom: none !important;
}

/* 专门针对左侧三个列表区域的表格底部边框 */
.session-section .el-table[data-v-572826b9] .el-table__body-wrapper {
    border-bottom: none !important;
}

/* 移除表格最后一行的底部边框 */
.session-section .el-table[data-v-572826b9] .el-table__row:last-child td {
    border-bottom: none !important;
}

/* 彻底移除Element UI表格底部横线 */
.session-section .el-table[data-v-572826b9]::after,
.session-section .el-table[data-v-572826b9]::before {
    height: 0 !important;
    display: none !important;
}

/* 特别处理三个区域的表格 */
.sessions-panel .session-section .el-table[data-v-572826b9],
.sessions-panel .session-section .el-table__body[data-v-572826b9],
.sessions-panel .session-section .el-table__header[data-v-572826b9],
.sessions-panel .session-section .el-table__body-wrapper[data-v-572826b9],
.sessions-panel .session-section .el-table__header-wrapper[data-v-572826b9] {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 确保三个列表区域的表格底部没有阴影或边框 */
.waiting-queue-section .el-table[data-v-572826b9],
.processing-sessions-section .el-table[data-v-572826b9],
.pending-sessions-section .el-table[data-v-572826b9] {
    border-bottom: none !important;
    box-shadow: none !important;
}
.staff-message .message-content[data-v-572826b9] {
    align-items: flex-end;
}
.staff-message .message-sender[data-v-572826b9] {
    text-align: right;
    padding-right: 4px;
    width: 100%;
}
.staff-message .message-footer[data-v-572826b9] {
    justify-content: flex-end;
}

/* 优化表格行高度 */
.compact-table .el-table__row td[data-v-572826b9] {
    padding: 5px 0 !important;
}
.compact-table .session-info-container[data-v-572826b9] {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* 确保未读信息栏的元素垂直居中 */
.session-info-right>*[data-v-572826b9] {
    display: flex;
    align-items: center;
}

/* 美化有未读消息的行样式 */
.el-table__row--has-unread .unread-badge[data-v-572826b9] {
    box-shadow: 0 0 0 2px rgba(245, 108, 108, 0.2);
}

/* 优化表格行布局 */
.compact-table[data-v-572826b9] .el-table__body tr {
    height: auto !important;
}
.compact-table[data-v-572826b9] .el-table__body td {
    height: auto !important;
    padding: 0 !important;
    border-bottom: 1px solid #EBEEF5 !important;
}

/* 确保会话信息容器高度合理 */
.session-info-container[data-v-572826b9] {
    min-height: 60px;
    height: auto;
}

/* 确保行之间有边框线 */
.compact-table[data-v-572826b9] .el-table__body tr {
    height: auto !important;
    border-bottom: 1px solid #EBEEF5 !important;
}
.compact-table[data-v-572826b9] .el-table__body tr:last-child {
    border-bottom: none !important;
}

/* 最后一行单元格没有底部边框 */
.compact-table[data-v-572826b9] .el-table__body tr:last-child td {
    border-bottom: none !important;
}

/* 计算聊天容器的高度方法优化 */
@media screen and (max-height: 768px) {
.chat-input-area[data-v-572826b9] {
        max-height: 30vh;
}
.modern-input textarea[data-v-572826b9] {
        max-height: 15vh;
}
}

/* 小屏幕时减小聊天容器高度 */
@media screen and (max-height: 768px) {
.chat-messages-container[data-v-572826b9] {
        max-height: calc(60vh - 180px);
}
}

/* 确保在不支持:has选择器的浏览器上也能正确处理滚动条 */
.session-section[data-v-572826b9] {
    overflow-y: auto;
    /* 默认使用auto，让浏览器决定是否显示滚动条 */
}

/* 空状态容器直接控制 */
.session-section>.empty-queue[data-v-572826b9] {
    overflow: hidden !important;
}

/* 直接控制有数据的列表包装器 */
.session-section>.session-list-wrapper[data-v-572826b9] {
    overflow-y: auto;
}

/* Vue逻辑控制样式类 */
.no-scroll[data-v-572826b9] {
    overflow: hidden !important;
}
.auto-scroll[data-v-572826b9] {
    overflow-y: auto !important;
}

/* 为表格添加行间分隔线 */
.compact-table[data-v-572826b9] .el-table__row {
    height: auto !important;
    border-bottom: 1px solid #EBEEF5 !important;
}

/* 最后一行不需要底部边框 */
.compact-table[data-v-572826b9] .el-table__row:last-child {
    border-bottom: none !important;
}

/* 单元格边框控制 */
.compact-table[data-v-572826b9] .el-table__body td {
    height: auto !important;
    padding: 0 !important;
    border-bottom: 1px solid #EBEEF5 !important;
}

/* 最后一行单元格没有底部边框 */
.compact-table[data-v-572826b9] .el-table__body tr:last-child td {
    border-bottom: none !important;
}

/* 美化聊天消息容器滚动条行为 */
.chat-messages-container[data-v-572826b9] {
    overflow-y: auto;
    /* 只在内容超出时显示滚动条 */
}
.chat-messages-container[data-v-572826b9]:empty {
    overflow: hidden !important;
    /* 当没有内容时强制隐藏滚动条 */
}

/* 确保消息容器适应内容高度 */
.empty-messages[data-v-572826b9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: auto;
}

/* 接入按钮样式 */
.accept-btn[data-v-572826b9] {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 4px;
}

/* 修改备注按钮样式 */
.edit-note-btn[data-v-572826b9] {
    padding: 3px;
    margin-left: 5px;
    color: #909399;
    transition: all 0.3s;
}
.edit-note-btn[data-v-572826b9]:hover {
    color: #409EFF;
    transform: scale(1.1);
}
.emoji-picker-container[data-v-572826b9] {
    position: relative;
    display: inline-block;
    z-index: 2900; /* 增加容器的z-index */
}
.emoji-icon[data-v-572826b9] {
    font-style: normal;
    font-size: 16px;
}
.emoji-grid[data-v-572826b9] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 280px;
    overflow-y: auto;
}
.emoji-item[data-v-572826b9] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 4px;
}
.emoji-item[data-v-572826b9]:hover {
    background-color: #f5f7fa;
    transform: scale(1.2);
}
.emoji-btn[data-v-572826b9] {
    padding: 6px 8px;
    color: #606266;
    background-color: #e8f4ff;
    border-radius: 4px;
    margin-right: 5px;
    transition: all 0.3s;
}
.emoji-btn[data-v-572826b9]:hover {
    color: #409EFF;
    background-color: #d0e8ff;
    transform: translateY(-1px);
}

/* 全局表情选择器样式 */
.emoji-picker-global[data-v-572826b9] {
    position: fixed;
    background-color: #fff;
    border: 1px solid #ebeef5;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 9999; /* 非常高的z-index确保总是在最上层 */
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
}
.emoji-grid[data-v-572826b9] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 280px;
    overflow-y: auto;
}
.emoji-item[data-v-572826b9] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 4px;
}
.emoji-item[data-v-572826b9]:hover {
    background-color: #f5f7fa;
    transform: scale(1.2);
}

/* 表情选择器弹窗样式 */
.emoji-picker-dialog[data-v-572826b9] {
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1) !important;
}
.emoji-picker-dialog .el-dialog__header[data-v-572826b9],
.emoji-picker-dialog .el-dialog__body[data-v-572826b9] {
    padding: 0 !important;
}
.emoji-picker-dialog .el-dialog__headerbtn[data-v-572826b9] {
    display: none !important;
}
.emoji-picker-dialog .el-dialog__body[data-v-572826b9] {
    padding: 10px !important;
}
.emoji-picker-content[data-v-572826b9] {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}
.emoji-grid[data-v-572826b9] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.emoji-item[data-v-572826b9] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 4px;
}
.emoji-item[data-v-572826b9]:hover {
    background-color: #f5f7fa;
    transform: scale(1.2);
}

/* 表情选择器弹出层样式 */
.emoji-popover[data-v-572826b9] {
    padding: 10px !important;
    border-radius: 8px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

/* 统一工具栏按钮样式 */
.toolbar-btn[data-v-572826b9] {
    padding: 10px;  /* 增加内边距使按钮更大 */
    color: #606266;
    background-color: #e8f4ff;
    border-radius: 4px;
    margin-right: 5px;
    transition: all 0.3s;
    width: 40px;   /* 固定宽度 */
    height: 40px;  /* 固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.toolbar-btn[data-v-572826b9]:hover {
    color: #409EFF;
    background-color: #d0e8ff;
    transform: translateY(-1px);
}

/* 保留特定按钮的特殊样式，但确保尺寸一致 */
.emoji-btn[data-v-572826b9], .image-btn[data-v-572826b9] {
    /* 确保图标居中显示 */
    padding: 10px;
    font-size: 18px;
}
.modern-translate-btn[data-v-572826b9] {
    background-color: #409EFF;
    border-color: #409EFF;
    color: white;
}
.modern-translate-btn[data-v-572826b9]:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
    color: white;
}

