body {
    background-color: rgba(248, 248, 248, 1);
}
.chat-container {
    position: relative;
    max-width: 100%;
}
.dialogue-box {
    width: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: white;
    z-index: 10;
    width: 95%;
    display: none;
}
.dialogue-box.active {
    display: block;
}
.dialogue-box #back-chat-list-btn {
    height: 52px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #5f5e5e;
    padding-left: 1rem;
    cursor: pointer;
}
.dialogue-box .dialogue-header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px #333 solid;
    align-items: center;
    box-sizing: border-box;
}
.dialogue-box .dialogue-header .avatar {
    display: flex;
    align-items: center;
}
.dialogue-box .dialogue-header .avatar .pic {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
}
.dialogue-box .dialogue-header .avatar .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.dialogue-box .dialogue {
    flex: 1;
    overflow: auto;
    box-sizing: border-box;
}
.dialogue-box .dialogue .msg-box {
    margin-bottom: 20px;
}
.dialogue-box .dialogue .user {
    display: flex;
}
.dialogue-box .dialogue .user .txt {
    background-color: #aaa;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    position: relative;
    word-break: break-all;
}
.dialogue-box .dialogue .user .avatar {
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}
.dialogue-box .dialogue .user .avatar .pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}
.dialogue-box .dialogue .user .avatar .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dialogue-box .dialogue .time-box {
    text-align: right;
    color: #777;
    padding-right: 20px;
    margin-top: 20px;
}
.dialogue-box .dialogue .remote .txt:before, .dialogue-box .dialogue .local .txt:before {
    content: '';
    position: absolute;
    top: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.dialogue-box .dialogue .local {
    justify-content: flex-end;
}
.dialogue-box .dialogue .local .txt {
    margin: 0 20px;
    order: -1;
    background-color: #3e92cc;
    color: #fff;
}
.dialogue-box .dialogue .local .txt::before {
    border-left: 10px solid #3e92cc;
    right: -5px;
}
.dialogue-box .dialogue .remote .txt {
    margin: 0 20px;
    color: rgba(0, 0, 0, 1);
    background-color: rgba(239, 239, 248, 1);
}
.dialogue-box .dialogue .remote .txt::before {
    border-right: 10px solid rgba(239, 239, 248, 1);
    left: -5px;
}
.dialogue-box .dialogue-footer {
    display: flex;
    align-items: center;
    background-color: rgba(223, 223, 244, 1);
    padding: 3px 12px;
}
.dialogue-box .dialogue-footer .drop-container {
    height: 30px;
    padding: 0;
    border: none;
}
.dialogue-box .dialogue-footer .drop-container img {
    width: 35px;
    height: auto;
}
.dialogue-box .dialogue-footer .drop-container:hover {
    background: transparent;
}
.dialogue-box .dialogue-footer input[type="text"] {
    flex: 1;
    margin: 0 0.5rem;
    border: none !important;
    width: 100%;
}
.chatroom-msg-list {
    overflow-y: auto;
}
.chatroom-msg-list .chatroom-item {
    display: flex;
    align-items: center;
    position: relative;
}
.chatroom-msg-list .chatroom-item:after {
    content: '';
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    background: rgba(252, 134, 136, 1);
}
.chatroom-msg-list .chatroom-item.not-read:after {
    display: block;
}
.chatroom-msg-list .chatroom-item.is-teacher {
    background-color: rgba(223, 223, 244, 1);
}
.chatroom-msg-list .chatroom-item:hover {
    cursor: pointer;
}
.chatroom-msg-list .chatroom-item .img-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    overflow: hidden;
    border-radius: 100%;
    margin-right: 1rem;
}
.chatroom-msg-list .chatroom-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chatroom-msg-list .chatroom-item .info-box .name-box {
    color: rgba(27, 33, 91, 1);
    font-size: 18px;
}
.chatroom-msg-list .chatroom-item .info-box .msg-box {
    font-size: 13px;
    color: rgba(152, 148, 148, 1);
    word-break: break-all;
}
.teacher-info-box .teacher-info-header {
    display: flex;
    align-items: center;
    font-size: 2rem;
}
.teacher-info-box .teacher-info-header .img-box {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    overflow: hidden;
    margin-right: 0.5rem;
}
.teacher-info-box .teacher-info-header img {
    width: 100%;
}
@media (min-width: 992px) {
    .chat-container {
        position: static;
        min-height: auto;
        min-width: 980px;
   }
    .dialogue-box {
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0, 0);
        width: auto;
        height: auto;
        top: 0px;
        display: block;
   }
    .dialogue-box #back-chat-list-btn {
        display: none;
   }
    .dialogue-box #dialogue .avatar {
        width: 60px;
        text-align: center;
        flex-shrink: 0;
   }
    .dialogue-box #dialogue .avatar .pic {
        width: 60px;
        height: 60px;
   }
}
@media (min-width: 1200) {
    .chat-container {
        min-width: 1100px;
   }
}
