.side_list{
    display: none !important;
}
#chat-container{
    border-top: 1px solid #F4F5F7;
    display: grid;
    grid-template-columns: 448px auto;
    grid-template-rows: auto;
    height: calc(100vh - 80px);
}
.network-status{
    background: #FFEBEC;
    font-size: 14px;
    color: #646566;
    height: 28px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/*左侧会话列表*/
.chat-sidebar{
    width: 448px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #F8F8F6;
}
.conversation-item{
    width: 100%;
    height: 84px;
    box-sizing: border-box;
    background: #FFF;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
    cursor: pointer;
}
.conversation-item:hover{
    background: #FFF9F9;
}
.conversation-item.active{
    background: #FFF9F9;
}
.conversation-avatar{
    width: 54px;
    height: 54px;
    position: relative;
}
.conversation-avatar img{
    width: 54px;
    height: 54px;
    border-radius: 50%;
}
.conversation-avatar span{
    color: #FFF;
    /*width: 14px;*/
    padding: 0 2px;
    min-width: 14px;
    height: 14px;
    box-sizing: border-box;
    font-size: 10px;
    text-align: center;
    line-height: 14px;
    border-radius: 50%;
    background: #EA0000;
    position: absolute;
    right: -1px;
    top: -1px;
}
.conversation-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    flex: 1;
    min-width: 0;
}
.conversation-user{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    max-width: 100%;
}
.conversation-username{
    font-weight: 500;
    font-size: 14px;
    color: #333;
    flex: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.conversation-user-status{
    width: 61px;
    height: 20px;
    border-radius: 6px;
    background: #295AFF;
    font-weight: 400;
    font-size: 14px;
    color: #FFF;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
}
.conversation-user-status i{
    width: 5px;
    height: 5px;
    display: block;
    background: #FFF;
    border-radius: 50%;
}
.conversation-last-message{
    font-size: 14px;
    line-height: 20px;
    color: #86909C;
    min-height: 0;
    max-width: 100%;
}
.conversation-last-message span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%;
}
.conversation-last-type-img{
    color: #ff9a3b;
}
.conversation-data{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    font-weight: 500;
    font-size: 14px;
    color: #9A9A9A;
}

/*右侧聊天*/
.chat-main{
    background: #F5F5F5;
    /*display: grid;*/
    /*grid-template-rows: 65px calc(100vh - 478px) 78px 255px;*/
    /*grid-template-columns: auto;*/
    /*box-shadow: -1px 0 1px 0 #e2e4e8;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 80px);
}
/*聊天界面头部*/
.chat-header{
    width: 100%;
    height: 65px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    /*box-shadow: -1px 0 1px 0 #00000040;*/
    box-sizing: border-box;
    background: #FFF9F9;
    flex: none;
}
.chat-header-title{
    font-weight: 600;
    font-size: 18px;
    color: #1D2129;
}
.chat-message-clean{
    font-weight: 500;
    font-size: 14px;
    color: #86909C;
    display: none;
    /*display: flex;*/
    flex-direction: row;
    align-items: center;
    gap: 3px;
}
.chat-message-clean-icon{
    width: 14px;
    height: 14px;
    display: block;
    background: url(/static/notification/icon-clean.png) no-repeat center;
    background-size: contain;
}
/*信息输入框*/
.chat-input-container{
    flex: none;
    color: #86909C;
    font-size: 14px;
    font-weight: 400;
    margin: 20px 74px 40px 71px;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #86909C;
    border-radius: 8px;
    background: #F1F1F3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.chat-input-container.more-text{
    flex-direction: column;
}
.chat-input-wrapper{
    width: 100%;
    height: 50px;
    padding: 16px 0;
    box-sizing: border-box;
}
.chat-input-container.more-text .chat-input-wrapper{
    max-height: 80px;
    padding: 0;
}
.chat-input-container textarea{
    width: 100%;
    height: 100%;
    font-size: 14px;
    line-height: 22px;
    color: #1D2129;
    resize: none;
    outline: none;
    border: none;
    background: transparent;
    overflow-y: hidden;
}
/*信息发送工具栏*/
.chat-toolbar{
    flex: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    background: transparent;
}
.chat-input-container.more-text .chat-toolbar{
    align-self: flex-end;
}
.chat-btn-lists{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.chat-btn-lists .chat-btn i{
    width: 26px;
    height: 26px;
    display: block;
    background-size: contain;
}
.chat-file-btn i{
    display: none !important;
    background: url(/static/notification/icon-file.png) no-repeat center;
}
.chat-emoji-btn{
    position: relative;
}
.chat-emoji-btn i{
    cursor: pointer;
    background: url(/static/notification/icon-emoji.png) no-repeat center;
}
.chat-send-btn{
    width: 112px;
    height: 50px;
    border-radius: 6px;
    background: #E21C34;
    box-shadow: 0 4px 12px 0 #00000040;
    text-align: center;
    line-height: 48px;
    font-weight: 400;
    font-size: 20px;
    color: #FFF;
    cursor: pointer;
}
.chat-send-btn.disabled{
    cursor: not-allowed;
    filter: alpha(opacity=65);
    opacity: .65;
}
.emoji-panel {
    position: absolute;
    bottom: 30px;
    right: 0;
    width: 400px;
    height: 236px;
    background: #fff;
    border-top: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(auto-fill, 32px);
    grid-template-rows: repeat(auto-fill, 32px);
    justify-content: center;
    place-items: center center;
    grid-auto-flow: row;
    overflow-y: auto;
}
.emoji-panel span{
    font-size: 18px;
    padding: 4px 3px;
    cursor: pointer;
}

/*消息内容*/
#message-container{
    overflow-x: hidden;
    overflow-y: auto;
    padding: 9px 16px;
    box-sizing: border-box;
    flex: auto;
}
.loading-msg{
    display: flex;
    justify-content: center;
    align-content: center;
    height: 32px;
}
.message-item{
    margin: 49px 0;
    display: grid;
    grid-template-rows: auto;
    grid-column-gap: 18px;
    grid-row-gap: 4px;
}
/*好友消息展示在左边*/
.message-item.from-friends{
    grid-template-columns: 54px auto;
    grid-template-areas: 'avatar message'
                             'empty quote';
}
.message-item .message-content img[alt="mobile-emoji"],
.message-item .message-quote img[alt="mobile-emoji"] {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}
.message-item.from-friends .message-content{
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
.message-item.from-friends .message-quote{
    grid-area: quote;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
/*自己发的消息展示在右边*/
.message-item.from-myself{
    grid-template-columns: auto 54px;
    grid-template-areas: 'message avatar'
                             'quote empty';
    justify-items: end;
}
.message-item.from-myself .message-avatar{
    grid-area: avatar;
}
.message-item.from-myself .message-content{
    display: flex;
    justify-content: flex-end;
    grid-area: message;
    width: 100%;
}
.message-item.from-myself .message-quote{
    grid-area: quote;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}
.message-avatar{
    width: 54px;
    height: 54px;
    background-image: url('/static/notification/default_local_avatar.svg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}
.message-avatar img{
    width: 54px;
    height: 54px;
    border-radius: 50%;
}
.message-bubble{
    position: relative;
    display: inline-block;
    background: #FFF;
    margin-top: 4px;
    padding: 12px 10px 8px 10px;
    line-height: 1.6rem;
    border-radius: 8px;
    max-width: 60%;
    font-size: 14px;
    color: #1D2129;
    word-break: break-word;
}
.message-bubble img{
    max-width: 10rem;
    border-radius: 2px;
    cursor: pointer;
}
/*文件类型消息展示*/
.message-bubble .message-type-file{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    gap: 25px;
}
.message-bubble .message-type-file-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.message-bubble .message-type-file-name{
    color: #000;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-bubble .message-type-file img{
    width: 40px;
    height: 40px;
}
.message-bubble .message-type-file-download{
    width: 21px;
    height: 21px;
}
.message-bubble .message-type-file-download img{
    width: 21px;
    height: 21px;
}
/*自己的消息用红色背景*/
.from-myself .message-bubble{
    background: #E21C34;
    color: #fff;
}
.message-bubble::before{
    content: '';
    position: absolute;
    top: 15px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}
.message-item.from-friends .message-bubble::before {
    left: -15px; /* 向左偏移，连接头像 */
    border-right-color: #fff; /* 箭头颜色 = 气泡颜色 */
}
.message-item.from-myself .message-bubble::before{
    right: -15px; /* 向左偏移，连接头像 */
    border-left-color: #E21C34; /* 箭头颜色 = 气泡颜色 */
}
.quote-content{
    background: #eaecf1;
    border-radius: 4px;
    padding: 4px 8px;
}
.quote-content img{
    max-width: 32px;
    border-radius: 5px;
}
/* Lightbox 样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    opacity: 1;
}
.lightbox-content {
    width: 90vw;
    height: 90vh;
    border-radius: 8px;
    position: relative;
}
.lightbox img,
.lightbox video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.close-btn {
    position: absolute;
    top: 45px;
    right: 45px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    background: center / contain no-repeat url('/static/notification/close.png');
}
.nav-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: center / contain no-repeat url('/static/notification/lrf.png');
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    font-size: 24px;
    color: black;
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
    transform: rotate(180deg);
}

#chat-container[v-cloak] {
    display: none;
}
body{
    overflow: hidden;
}
.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20vh;
    width: 100vw;
    height: 500px;
}
.no-data img {
    width: 200px;
}
.no-data span {
    font-weight: 400;
    font-size: 16px;
    color: #9A9A9A;
    line-height: 24px;
}