.tab-content {
    display: none;
}

.container {
    height: 760px;
    /* width: 900px; */
    border-radius: 4px;
    border: 0.5px solid #e0e0e0;
    background-color: #f5f5f5;
    display: flex;
    flex-flow: column;
    overflow: hidden;
}

.content {
    width: calc(100% - 40px);
    padding: 20px;
    overflow-y: scroll;
    flex: 1;
}

.content:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

.bubble {
    max-width: 80%;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    color: #000;
    word-wrap: break-word;
    word-break: normal;
}

.item-left .bubble {
    margin-left: 15px;
    background-color: #fff;
}

.item-left .bubble:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-top: 10px solid transparent;
    border-right: 10px solid #fff;
    border-bottom: 10px solid transparent;
    left: -20px;
}

.item-right .bubble {
    margin-right: 15px;
    background-color: #9eea6a;
}

.item-right .bubble:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid #9eea6a;
    border-top: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    right: -20px;
}

.item {
    margin-top: 15px;
    display: flex;
    width: 100%;
}

.item.item-right {
    justify-content: flex-end;
}

.item.item-center {
    justify-content: center;
}

.item.item-center span {
    font-size: 12px;
    padding: 2px 4px;
    color: #fff;
    background-color: #dadada;
    border-radius: 3px;
    -moz-user-select: none;
    /*火狐*/
    -webkit-user-select: none;
    /*webkit浏览器*/
    -ms-user-select: none;
    /*IE10*/
    -khtml-user-select: none;
    /*早期浏览器*/
    user-select: none;
}

.avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.input-area {
    /* border-top: 0.5px solid #e0e0e0; */
    height: 150px;
    display: flex;
    flex-flow: column;
    /* background-color: #fff; */
}

.message {
    flex: 1;
    padding: 5px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    overflow-y: auto;
    overflow-x: hidden;
    outline: none;
    resize: none;
    border-top: 0.5px solid #e0e0e0;
}

.button-area {
    display: flex;
    height: 40px;
    margin-right: 10px;
    line-height: 40px;
    padding: 5px;
    justify-content: flex-end;
    background-color: #fff;
}

.button-area button {
    width: 80px;
    border: none;
    outline: none;
    border-radius: 4px;
    float: right;
    cursor: pointer;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width: 10px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0);
    -webkit-box-shadow: inset006pxrgba(0, 0, 0, 0.5);
}

.bubble-left p {
    margin: 10px;
}

pre {
    border: 1px solid #ddd;
    background: #f6f6f6;
    padding: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px
}

pre .pre-code-header {
    position: absolute;
    right: 10px;
    /* top: 0px; */
    color: rgb(118, 217, 230);
    z-index: 20;
    /* display: none; */
}

/* // 添加行号样式 */
pre.hljs {
    padding: 8px 2px;
    border-radius: 5px;
    position: relative;

    ol {
        list-style: decimal;
        margin: 0;
        margin-left: 40px;
        padding: 0;

        li {
            list-style: decimal-leading-zero;
            position: relative;
            padding-left: 10px;

            .line-num {
                position: absolute;
                left: -40px;
                top: 0;
                width: 40px;
                height: 100%;
                border-right: 1px solid rgba(0, 0, 0, .66);
            }
        }
    }

    b.name {
        position: absolute;
        top: 2px;
        right: 12px;
        z-index: 10;
        color: #999;
        /* pointer-events: none; */


    }

    .code-block-header_copy {
        cursor: pointer;
        padding-left: 10px;
        font-size: 14px
    }

    .code-block-header_copy span {
        display: none;
    }
}

#Identification-result textarea {
    width: 100%;
    height: 200px;
    border: 1px dashed #e2e2e2;
    font-size: 16px;
}

.layui-nav.layui-nav-tree {
    width: 100%;
}

.layui-layout-admin .layui-side,
.layui-layout-admin .layui-body {
    top: 0
}

.layui-header {
    height: 38px;
}

.layui-nav .layui-nav-item {
    line-height: 38px;
}

/* 移动端 */
@media screen and (max-width: 768px) {
    .content {
        width: auto;
        padding: 0px;
    }

    .bubble {
        padding: 10px 5px;
    }

    .layui-layout-admin .layui-layout-left,
    .layui-layout-admin .layui-body,
    .layui-layout-admin .layui-footer {
        left: 0;
    }

    .layui-layout-admin .layui-side,
    .layui-layout-admin .layui-body {
        top: 38px !important;
    }

    .layui-layout-admin .layui-side {
        left: -300px;
        /* display: none !important; */
    }
}