body,
html {
    font-family: 'Microsoft YaHei';
    height: 100%;
    width: 100%;
}


#app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.header {
    height: 55px;
    width: 100%;
    background: #0F98FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.main {
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    padding: 15px;
    overflow-y: auto;
    background: #fff;
}

.tip-line {
    font-size: 12px;
    text-align: center;
    color: #A1A1A1;
}

.chat-list {
    margin-top: 10px;
}

.chat-item {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    /* align-items: center; */
    margin: 20px 0;
}

.chat-item.right {
    flex-flow: row-reverse;
}

/* 头像 */
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-item.right {
    padding-left: 50px;
}

.chat-item.left {
    padding-right: 50px;
}

.chat-info {
    max-width: 100%;
}

.audio-box {
    display: flex;
    justify-content: flex-end;
}

.volume-img {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

.audio-box>.audio-time {
    display: flex;
    align-items: center;
    background: #14AEF9;
    padding: 10px 15px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 12px;
}

.direction {
    font-size: 12px;
    margin-top: 10px;
    color: #A1A1A1;
}

.chat-item.right>.chat-avatar {
    margin-left: 10px;
}

.chat-item.left>.chat-avatar {
    margin-right: 10px;
}


.chat-message {
    box-sizing: border-box;
    word-break: break-all;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
}

.message-ai-bg {
    background-color: #e3e2e2;
    color: #333;
    animation: typing .3s 1 forwards;
}

.message-me-bg {
    background: #14AEF9;
    color: #fff;
}



.footer {
    width: 100%;
    height: 55px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 8px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
    background: #ECEFF7;
}

.footer-info {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
}

.footer-btn-img {
    height: 30px;
    width: 30px;
}

.input-type {
    flex: 1;
    height: 100%;
    margin: 0 10px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.font-input {
    height: 100%;
    width: 100%;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
}

.voice-btn {
    flex: 1;
    text-align: center;
    font-size: 14px;
}


.send-input {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 8px;
    background: #07c160;
    color: #fff;
}


.voice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .2);
}

.modal-main {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-main-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recorded-icon {
    width: 140px;
}

.modal-btns {
    width: 100%;
    height: 55px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 8px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
    background: #ECEFF7;
    display: flex;
}

.modal-btns>div {
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.cancel-record {
    background: #FB4A3E;
    flex: 1;
}

.send-record {
    background: #07c160;
    flex: 1;
}


@keyframes typing {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}