/* --------------------------------------------
消息对话框样式
-----------------------------------------------*/
.chat-box {
    box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    width: 40%;
    border-radius: 5px;

    background-color: aliceblue;

}

.chat-box:hover {
    box-shadow: 0 8px 16px 0 rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------
消息输入 
-----------------------------------------------*/
.input-bar {
    flex: 0 1 2rem;
    line-height: 2rem;
    padding: 1rem;

    display: none;
}

.input-label {
    flex: 0 1 auto;
    padding-right: 0.5rem;

    /* 固定长度，超出显示... */
    max-width: 4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-speak {
    flex: 1;
}

.input-btn {
    flex: 0 1 auto;
}

.input-bar input {
    padding: .5rem;
}

.input-uinfo {
    display: none;
}

/* --------------------------------------------
消息显示 
-----------------------------------------------*/
.chat-tip {
    color: gray;
    text-align: center;
    margin: 2rem auto;
}

.speak {
    margin: .5rem 0 0 0;
    line-height: 1.6rem;
    display: flex;
}

.speak-name {
    color: lightsteelblue;
    width: 3rem;
    /* 固定长度，超出显示... */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.speak-content {
    position: relative;
    max-width: 65%;
    height: auto;
    padding: 0.3rem;
    background-color: green;
    color: #f8f8f8;
    margin-left: 1rem;
    /* 自动换行 */
    word-wrap: break-all;
    word-break: break-word;

}

.speak-content::before {
    position: absolute;
    top: 5px;
    left: -5px;

    content: '◆';
    color: green;
    font-size: 20px;
}


/* 本人发言 */
.self-speak {
    margin: .5rem 0 0 0;
    line-height: 1.6rem;
    display: flex;
    justify-content: end;
}

.self-speak-name {
    color: lightsteelblue;
    width: 3rem;
    /* 固定长度，超出显示... */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.self-speak-content {
    position: relative;
    max-width: 65%;
    height: auto;
    padding: 0.3rem;
    background-color: lightsteelblue;
    margin-right: 1rem;

    text-align: left;

    /* 自动换行 */
    word-wrap: break-word;
    word-break: normal;
}

.self-speak-content::after {
    position: absolute;
    top: 5px;
    right: -5px;
    content: '◆';
    color: lightsteelblue;
    font-size: 20px;
}

.classfix {
    clear: both;
}