*{
	padding: 0;
	margin: 0;
	list-style: none;
}
a{
	text-decoration: none;
}
html,body,#app{
	width: 100%;
	height: 100%;
}
.mk-chat-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::before, ::after {
    box-sizing: border-box;
}
::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

#app{
	margin: auto;
	background: #eaeaea;
}

.el-main{
	margin: auto;
	display: flex;
	width: 80vw;
	height: 90vh;
	min-height: 600px;
	min-width: 800px;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	padding: 10px;
	border-radius: 8px;
    box-shadow: 0 6px 32px -7px rgb(102 102 189 / 40%);
	background: #fff;
}
.chattitle > h1{
	font-size: 28px;
	font-weight: 1000;
}
.title-div{
	line-height: 35px;
	width: 100%;
	display: flex;
	padding-left: 10px;
	background-color: #fff;
}
.chatlist-div img{
	width: 33px;
	height: 33px;
}
.title-div h1{
	height: 33px;
	font-size: 19px;
	font-weight: 550;
	/* padding: 0 10px; */
}

.chatso{
	padding: 10px 5px;
}

.chatso > form{
	display: flex;
	border-radius: 8px;
	border: 1px solid #aaa;
}

.chatso input[type="text"]{
	height: 35px;
	width: 100%;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	padding-left: 5px;
	outline: 0;
}
.chatso input::placeholder{
	font-size: 14px;
}
.chatso input[type="image"]{
	width: 25px;
	height: 25px;
	margin: 5px;
}
.chatlist{
        overflow-y: auto;
    height: calc(100% - 150px);
}

.chatlist-div{
	width: 30vw;
	min-width: 220px;
	height: 100%;
	overflow-y: auto;
}

.chattitle-div{
	display: flex;
}
.chattitle{
    display: flex;
    padding-bottom: 8px;
}

.chatlist-info-div{
	display: flex;
	width: 100%;
	padding: 5px;
	border-top: 1px solid #eee;
	min-width: 180px;
	height: 58px;
	position: relative;
}

.chatlist-info-div > img{
	width: 50px;
	height: 50px;
	border-radius: 10px;
	
}

.chatlist-info{
	width: 100%;
	position: relative;
	padding: 5px 5px ;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.chatlist-info dd{
	font-size: 14px;
	color: #888;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

.chatlist-info tt{
	position: absolute;
	top: 5px;
	right: 5px;
}
.load-more-tip{
    text-align: center;
    padding: 10px 0;
    color: #888;
    cursor: pointer;
}

/* 未读消息计数样式 */
.unread-count, .total-unread-count {
	position: absolute;
	background-color: #ff4444;
	color: white;
	border-radius: 10px;
	min-width: 13px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	font-size: 12px;
	padding: 0 6px;
	font-weight: 500;
	z-index: 10;
}
.unread-count{
	bottom: 15px;
	right: 15px;
}
.total-unread-count {
	top: 0;
	left: 110px;
}



.chatinfo-div{
	width: 100%;
	height: auto;
	padding: 5px 18px;
	margin-left: 18px;
	border-left: 1px solid #ddd;
}

.chatmsg-div{
	border-top: 1px solid #ddd;
	width: 100%;
	position: relative;
	overflow-y: scroll;
	overflow-x: hidden;
	height: calc(100% - 150px);
}

.chatmsg{
	padding: 10px 0;
}

.chatmsg-me,.chatmsg-to{
	display: flex;
}

.chatmsg-time{
	width: 100%;
	text-align: center;
    color: #888;
    font-size: 14px;
}

.chatpic img,.chatpic img{
	width: 45px;
	height: 45px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.chatmsg-me{
	display: flex;
	justify-content: flex-end;
	
}

.chatmsg-me .chatpic{
	order: 1;
}
.chatmsg-me .chatmsg-info{
	order: 0;
	text-align: right;
	margin-right: 5px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.chatmsg-me .chatmsg-info span{
	right: 0;
}

.chatmsg-info{
	margin-left: 5px;
}

.chatmsg-info dd{
	font-size: 15px;
	color: #888;
	font-family: serif;
}

.chatmsg-info span{
	display: flex;
	flex-direction: column;
	text-align: left;
	padding: 5px 8px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: rgba(100,250,25,.5);
	word-wrap: break-word;     
	word-break: break-all;
	/* overflow-wrap: break-word; */
}

/* 引用消息样式 */
.quoted-message {
	font-size: 1em;
	background-color: rgba(0, 0, 0, 0.05);
	padding: 3px 8px;
	border-radius: 2px;
	margin-bottom: 5px;
	display: flex;
	max-width: 100%;
	word-wrap: break-word;
}

.quoted-username {
	font-weight: bold;
	color: #666;
    white-space: nowrap;
}

.quoted-content {
	color: #888;
    white-space: pre-wrap;
    /* 英语可换行 */
    word-break: break-word;
    /* 长度不超过2行 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.el-input{
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
}

.el-input textarea{
	font-size: 16px;
	color: #000;
	white-space: pre-wrap;
}

.el-input button{
	margin-left: 5px;
}

.el-input i{
	font-size: 22px;
	color: rgb(66, 113, 255);
}
.el-input b{
	font-size: 18px;
}
.el-input b, .el-input i{
	padding: 3px 5px ;
}
.top-border{
	border-top: 1px solid #ddd;
}

.quote-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5px;
	background: #f0f0f0;
	border-radius: 2px;
	margin-bottom: 2px;
    margin-left: 10px;
}

.quote-content {
	flex: 1;
	color: #666;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    max-width: 250px;
}

.quote-close {
	cursor: pointer;
	color: #999;
	font-size: 20px;
	margin-left: 10px;
	font-weight: bold;
}

.quote-close:hover {
	color: #666;
}

.chatlist-div{
	position: relative;
}
.outer-div{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
}
.outer-div dd{
	display: flex;
	font-size: 10px;
	white-space: normal;
    flex-direction: column;
	padding-left: 10px;
	text-align: center;
	justify-content: center;
	color: #aaa;
}
.outer-div img{
	width: 30px;
	height: 30px;
	margin: auto;
}


/* 弹窗样式 */
.dialog {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.dialog-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.dialog-content h2 {
    margin:10px 0;
	margin-top: 0;
	padding-left: 10px;
	border-left: 5px solid #1890ff;
	font-size: 22px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: black;
}

.btn-secondary:hover {
    background-color: #ddd;
}
/* emoji选择器样式 */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    width: 420px;
    height: 350px;
    background: white;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

/* emoji标签切换样式 */
.emoji-tabs {
    display: flex;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.emoji-tab {
    padding: 5px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    transition: background-color 0.2s;
}

.emoji-tab:hover {
    background-color: #f5f7fa;
}

.emoji-tab.active {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: bold;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
}
.image-emoji-grid{
    grid-template-columns: repeat(5, 1fr);
}

.emoji-grid b {
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.emoji-grid b:hover {
    background-color: #f5f7fa;
}

/* 图片表情样式 */
.image-emoji-item {
    cursor: pointer;
    text-align: center;
}

/* 修改备注名弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: center;
}

/* 用户资料弹窗样式 */
.user-profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.user-avatar-section {
    margin-bottom: 20px;
}

.user-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info-section {
    width: 100%;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-info-item label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.user-info-item span {
    color: #666;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.user-profile-actions {
    margin-bottom: 20px;
}

.loading-profile {
    text-align: center;
    padding: 20px 0;
    color: #666;
}

.remark-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cancel-btn, .confirm-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn {
    background-color: #f5f7fa;
    color: #606266;
}

.cancel-btn:hover {
    background-color: #e6e8eb;
}

.confirm-btn {
    background-color: #409eff;
    color: white;
}

.confirm-btn:hover {
    background-color: #66b1ff;
}

.image-emoji-item:hover {
    background-color: #f5f7fa;
}

.image-emoji-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
}

.el-input.top-border {
    position: relative;
	padding: 3px 0;
}

.el-input.top-border i{
    margin: 0 3px;
    cursor: pointer;
    font-size: 21px;
}
.el-input.top-border b {
    margin: 0px;
    cursor: pointer;
    font-size: 18px;
}

.chatmsg-div,#app{
    background-image: url('https://xn--kwrr8v.top/style/image/bag.png');
}

.chatmsg-file{
    overflow: hidden;
	max-width: 320px;
	min-width: 100px;
	display: flex; 
	flex-direction: column; 
	align-items: flex-start;
	 background-color: #ffffff;
	  padding: 10px; 
	  border-radius: 8px;
	box-shadow: 0 5px 30px -10px rgba(50,50,50,.9);
}
.chatmsg-file-info{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.chatmsg-file-info > img{
    margin-right: 5px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.1);
}

.chatmsg-file-name{
    text-overflow: ellipsis;
	font-weight: bold;
	max-width: 234px;
	overflow: hidden;
	/*英文换行*/
	word-break: break-word;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	float: left;
}
.chatmsg-file-size{
    font-size: 12px;
    color: #666;
    float: left;
}
.chatmsg-img > img{
    max-width: 350px;
    height: auto;
    border-radius: 2px;
}
.chatmsg-img{
	margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
	border: 5px solid #ffffff;
	box-shadow: 0 5px 30px -10px rgba(50,50,50,.6);
	transform: scale(1.03);
}
.chatmsg-file-name-size{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
	text-align: left;
	float: left;
}

.user-avatar{
	position: absolute;
	top:0;
	bottom: 0;
	right: 10px;
	width: 40px;
	height: 40px;
	border-radius:10px;
	cursor: pointer;
	background-color: white;
}
.chatmsg-emoji{
    display: inline-block;
}
.chatmsg-emoji-img{
    max-width: 120px;
    max-height: 120px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #ffffff;
}

/* 云文件弹窗样式 */
.modal-content {
    max-width: 800px;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 24px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    color: #303133;
    font-weight: 500;
}

.cloud-file-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    background-color: white;
}

.cloud-file-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.cloud-file-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cloud-file-container::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 4px;
}

.cloud-file-container::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

.cloud-file-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.cloud-file-table th,
.cloud-file-table td {
    padding: 12px 5px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.cloud-file-table th {
    background-color: #f5f7fa;
    color: #606266;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cloud-file-table tr:hover {
    background-color: #fafafa;
}

.cloud-file-table tr:last-child td {
    border-bottom: none;
}

.file-name {
    width: 30%;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #303133;
    font-weight: 400;
}

.file-name:hover {
    color: #409eff;
    text-decoration: underline;
}

.file-size {
    width: 100px;
    color: #909399;
    font-size: 13px;
}

.file-extension {
    width: 80px;
    color: #909399;
    font-size: 13px;
    text-transform: uppercase;
}

.file-upload-time {
    width: 120px;
    color: #909399;
    font-size: 13px;
}

.file-upload-type {
    width: 100px;
}

.file-type-file,
.file-type-image,
.file-type-emoji {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.file-type-file {
    color: #409eff;
    background-color: rgba(64, 158, 255, 0.1);
    border: 1px solid rgba(64, 158, 255, 0.2);
}

.file-type-image {
    color: #67c23a;
    background-color: rgba(103, 194, 58, 0.1);
    border: 1px solid rgba(103, 194, 58, 0.2);
}

.file-type-emoji {
    color: #e6a23c;
    background-color: rgba(230, 162, 60, 0.1);
    border: 1px solid rgba(230, 162, 60, 0.2);
}

.file-actions {
    width: 120px;
}

.view-btn,
.download-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.view-btn {
    background-color: #409eff;
    color: white;
}

.view-btn:hover {
    background-color: #66b1ff;
}

.download-btn {
    background-color: #67c23a;
    color: white;
}

.download-btn:hover {
    background-color: #85ce61;
}

.no-files {
    text-align: center;
    padding: 40px 20px;
    color: #909399;
    font-size: 14px;
}

/* 云文件统计区域样式 */
.cloud-file-summary {
    padding: 12px 15px;
    border-top: 1px solid #ebeef5;
    margin-top: 8px;
    font-size: 14px;
    background-color: #fafafa;
    border-radius: 0 0 4px 4px;
}

.total-size {
    color: #303133;
    margin-bottom: 8px;
    font-weight: 500;
}

.space-reminder {
    color: #e6a23c;
    font-size: 13px;
    padding: 8px;
    background-color: rgba(230, 162, 60, 0.05);
    border-radius: 4px;
    border-left: 3px solid #e6a23c;
}

.file-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    width: 100px;
}

.view-btn,
.download-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-btn {
    background-color: #409eff;
    color: white;
}

.view-btn:hover {
    background-color: #66b1ff;
    box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
}

.download-btn {
    background-color: #67c23a;
    color: white;
}

.download-btn:hover {
    background-color: #85ce61;
    box-shadow: 0 2px 4px rgba(103, 194, 58, 0.3);
}

.no-files {
    text-align: center;
    color: #909399;
    padding: 40px 20px;
    font-size: 14px;
}

.no-files::before {
    content: "📁";
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ebeef5;
}

.cancel-btn {
    padding: 8px 24px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #606266;
    background-color: white;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #f5f7fa;
    border-color: #c6e2ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        padding: 16px;
    }
    
    .cloud-file-table th,
    .cloud-file-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .file-upload-time {
        width: 120px;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .view-btn,
    .download-btn {
        padding: 3px 8px;
        font-size: 11px;
    }

    .el-button{
        font-size: 15px;
    }
}

/* 图片预览模态框样式 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.image-preview-controls {
    position: absolute;
    top: -30px;
    right: -20px;
    display: flex;
    gap: 10px;
}

.image-preview-close {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-preview-download {
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.image-preview-download:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.image-preview-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.image-preview-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.image-preview-video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.top-border > i{
    font-size: 22px;
}
.top-border > tt{
    font-size: 17px;
}
.el-input.top-border {  
    display: flex;
    align-items: center;
}



/* 移动设备响应式设计 */
@media (max-width: 768px) {
    /* 基础布局调整 */
    .el-main {
        width: 100vw;
        height: 100vh;
        min-height: 100%;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    
    /* 移动端会话选择按钮 */
    .mobile-session-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 5px 10px;
        margin-right: 10px;
        color: #333;
    }
    
    /* 移动端会话列表和聊天区域切换 */
    .chatlist-div {
        width: 100%;
        display: none;
        z-index: 100;
    }
    
    .chatinfo-div {
        width: 100%;
        padding: 5px;
        margin-left: 0;
        border-left: none;
        display: block;
    }
    
    /* 当显示会话列表时 */
    .chatlist-div.show {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        overflow-y: auto;
    }
    
    /* 当隐藏聊天区域时 */
    .chatinfo-div.hide {
        display: none;
    }
    
    /* 优化输入框大小 */
    .el-input textarea {
        font-size: 17px;
    }

    
    /* 优化表情包排列 */
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .image-emoji-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 优化表情包选择器大小 */
    .emoji-picker {
        width: 100%;
    }

/* 用户资料弹窗样式 */
.user-profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.user-avatar-section {
    margin-bottom: 20px;
}

.user-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info-section {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-info-item:last-child {
    border-bottom: none;
}

.user-info-item label {
    font-weight: 500;
    color: #606266;
    min-width: 80px;
}

.user-info-item span {
    color: #303133;
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-actions {
    margin-bottom: 20px;
}

.loading-profile {
    text-align: center;
    color: #909399;
    padding: 20px 0;
}

/* 编辑资料按钮样式 */
.btn-primary {
    background-color: #409eff;
    border-color: #409eff;
    color: white;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
}
    
    /* 优化聊天消息区域 */
    .chatmsg-div {
        height: calc(100vh - 200px);
    }
    
    /* 优化头像大小 */
    .chatpic img {
        width: 40px;
        height: 40px;
    }
    .emoji-grid{
        grid-template-columns: repeat(8, 1fr);
    }
    .image-emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .emoji-picker{
        padding: 5px;
    }
  
    .el-input.top-border i{
        font-size: 26px;
    }
     .el-input.top-border b{
        font-size: 23px;
     }
    .top-border > tt{
        font-size: 21px;
    }

    .title-div{
        height: 40px;
        line-height: 40px;
        display: flex;
        align-items: center;
    }
    .title-div h1{
        font-weight: 1000;
    }
    .chatlist-div img{
        margin-top: 4px;
        width: 38px;
        height: 38px;
    }
    .chatlist-info-div > img{
        width: 50px;
        height: 50px;
    }
    .chatlist-info-div{
        width: auto;
        padding:8px 0;
        padding-left: 5px;
    }
    .dialog-content{
        max-width: 90%;
        margin: 20px auto;
    }
    .file-name,.file-upload-time{
        min-width: 100px;
    }
    .cloud-file-table{
        width: auto;
        border-radius: 12px;
    }
}

@media (max-width: 599px) {
    /* 更小屏幕的额外优化 */
    .emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .image-emoji-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
}

/* 长按消息菜单样式 */
.message-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 4px 0;
    min-width: 80px;
}

.message-menu-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #303133;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    background: #fff;
}

.message-menu-item:hover {
    background-color: #f5f7fa;
    color: #409eff;
}

/* 移动端消息菜单优化 */
@media (max-width: 768px) {
  

    .message-menu-item {
        padding: 10px 14px;
    }
    
    /* 移动端消息操作按钮 */
    .message-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 4px;
        color: #66f;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
        position: absolute;
        right: -18px;
        bottom: -10px;
    }
    
 
    
    .message-action-btn svg {
        pointer-events: none;
    }
    
    /* 为消息信息容器添加相对定位 */
    .chatmsg-info {
        position: relative;
    }
}

/* 用户资料弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.user-profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.user-avatar-section {
    margin-bottom: 20px;
}

.user-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info-section {
    width: 100%;
    margin-bottom: 20px;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-info-item label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.user-info-item span {
    color: #666;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.user-profile-actions {
    margin-bottom: 20px;
}

.loading-profile {
    text-align: center;
    padding: 20px 0;
    color: #666;
}

.modal-actions {
    text-align: center;
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
    margin: 0 5px;
}

.btn-primary {
    background-color: #409eff;
    color: white;
}

.btn-primary:hover {
    background-color: #66b1ff;
}

.btn-secondary {
    background-color: #909399;
    color: white;
}

.btn-secondary:hover {
    background-color: #a6a9ad;
}