.workspace-container{
    height: calc(100vh - 78px);
}

.el-main{
    --el-main-padding: 20px;
    box-sizing: border-box;
    display: block;
    flex: 1;
    flex-basis: auto;
}

.workspace-main{
    padding: 0;
}

.chat-main{
    background-color: #F5F5F5;
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 100%;
    overflow: auto;
}

.chat-user-list{
    background: #fff;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
}

.chat-user-header{
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.chat-user-header-number{
    color: #1769CE;
    font-weight: bold;
}

.chat-user-list-box{

}

.chat-user-list-item{
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
	cursor: pointer;
}

.chat-user-list-item-active{
	background-color: #E6F7FF !important;
}

.chat-user-list-item-top{
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
	background-color: #EAEAEA;
    font-size: 14px;
	cursor: pointer;
}

.chat-user-list-info_box{
	width: calc(100% - 80px);
}

.chat-user-list-info{
    display: flex;
    align-items: center;
}

.chat-user-list-reading{
	width: 8px;
	height: 8px;
	border-radius: 8px;
	background-color: #FF0000;
	margin-left: 5px;
}

.chat-user-list-nickname{
    font-weight: bold;
}

.chat-user-list-time{
    color: #888888;
    margin-left: 5px;
}

.chat-user-list-auth{
    padding: 2px 5px;
    background-color: #9DCBFF;
    color: #1769CE;
    font-size: 12px;
    border-radius: 3px;
    margin-left: 5px;
}

.chat-user-list-lastchat{
    font-size: 12px;
    color: #666666;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chat-user-list-remark{
    font-size: 12px;
    color: #666666;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


/* 聊天样式 */
.chat-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-window{
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 顶部用户信息栏 */
.chat-header {
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 10px;
}

.avatar img{
	width: 100%;
	height: 100%;
	object-fit: cover;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name {
    font-weight: bold;
    font-size: 14px;
	margin-bottom: 5px;
	display: flex;
	align-items: center;
}

.user-name .pin {
    font-weight: normal;
	padding: 3px 12px;
    background-color: #e6f7ff;
    border: 1px solid #1890ff;
    color: #1890ff;
	border-radius: 3px;
    font-size: 12px;
	cursor: pointer;
	margin-left: 10px;
	display: flex;
	align-items: center;
}

.user-name .remark {
    font-weight: normal;
	padding: 3px 12px;
    border: 1px solid #999999;
    color: #666666;
	border-radius: 3px;
    font-size: 12px;
	cursor: pointer;
	margin-left: 10px;
	display: flex;
	align-items: center;
}

.user-name .refresh {
    font-weight: normal;
	padding: 3px 12px;
    border: 1px solid #B3E19D;
    color: #95D379;
	background-color: #F0F9EB;
	border-radius: 3px;
    font-size: 12px;
	cursor: pointer;
	margin-left: 10px;
	display: flex;
	align-items: center;
}

.user-name .more {
    font-weight: normal;
	padding: 3px 10px;
    border: 1px solid #999999;
    color: #666666;
	border-radius: 3px;
    font-size: 12px;
	cursor: pointer;
	margin-left: 10px;
}

.option-icon{
	width: 13px;
	height: 13px;
}

.user-status {
    font-size: 12px;
    color: #999;
}

.user-status .online {
    font-size: 12px;
    color: #03DD6C;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.header-actions button {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.header-actions .pin {
    background-color: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
}

.header-actions .refresh {
    background-color: #f6ffed;
    border-color: #52c41a;
    color: #52c41a;
}

/* 聊天内容区 */
.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
}

.message.other {
    display: flex;
    align-self: flex-start;
}

.message.me {
    align-self: flex-end;
}

.message .avatar {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.message.me .avatar {
    display: none;
}

.message-bubble {
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 1px 2px #0000001a;
    line-height: 1.5;
    font-size: 14px;
    position: relative;
}

.message.other .message-bubble {
    background-color: #fff;
    border: 1px solid #e8e8e8;
}

.message.me .message-bubble {
    background-color: #1890ff;
    color: #fff;
    margin-left: auto;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.message.other .message-time {
    text-align: left;
}

/* 底部输入区 */
.chat-input {
    height: 130px;
    background-color: #FFFFFF;
    border-top: 1px solid #e8e8e8;
    padding: 15px;
    gap: 10px;
}

.input-actions {
    display: flex;
    gap: 8px;
}

.input-actions button {
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #999;
}

.chat-input-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-input textarea {
    width: calc(100% - 140px);
    min-height: 70px;
    padding: 5px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
}

.chat-input textarea:focus {
    border: 1px solid #409eff;
    outline: none;
}

.send-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.send-area .add-reply {
    padding: 6px 15px;
    border: 1px solid #A0CFFF;
    border-radius: 3px;
    background-color: #ECF5FF;
    color: #409eff;
    font-size: 12px;
    cursor: pointer;
}

.send-area .send-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 3px;
    background-color: #1890ff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}