
.wrap {
    position: fixed;
    bottom: 20px;
    width: 100%;
    height: 100%;
    /*margin: 0 10%;*/
    /*left: 50%;*/
    top: 180px;
    /*bottom: 20px;*/
    /*!*border: 1px solid #ebebeb;*!*/
    background-color: #fff;
    /*border-radius: 10px;*/
    /*box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
}
.header {
    height: 55px;
    background: linear-gradient(90deg, rgba(246, 60, 47, 0.6), rgba(128, 58, 242, 0.6));
    overflow: hidden;
}
.header h3 {
    color: #faf3fc;
    line-height: 55px;
    font-weight: normal;
    float: left;
    letter-spacing: 2px;
    margin-left: 25px;
    font-size: 18px;
    text-shadow: 0px 0px 5px #944846;
}
.header img {
    float: right;
    margin: 7px 25px 0 0;
    border-radius: 20px;
    box-shadow: 0 0 5px #f7f2fe;
}
.main {
    /*position: absolute;*/
    width: 80%;
    margin: 0 auto;
    /*bottom: 55px;*/
    /*background-color: #fff;*/
    /*box-sizing: border-box;*/
    /*padding: 0 0;*/
    /*overflow:hidden;*/
}
.talk_list{
    /*position: absolute;*/
    width:100%;
    left:0px;
    top:0px;
    max-height: 650px; /* 设置最大高度 */
    overflow-y: auto; /* 当内容超出最大高度时显示滚动条 */
}
.talk_list li {
    overflow: hidden;
    margin: 8px 0px 8px;
}
.talk_list .left_word img {
    float: left;
    margin-left: 20px;
}
.talk_list .left_word span {
    float: left;
    white-space: pre-wrap; /* 保持空格和换行 */
    background-color: #77b3ef;
    padding: 10px 15px;
    max-width: 90%;
    border-radius: 12px;
    font-size: 16px;
    color: #fff;
    margin-left: 13px;
    position: relative;
    line-height: 24px;
}
.talk_list .left_word span:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 3px;
    width: 13px;
    height: 12px;
    /*background: url('../img/corner01.png') no-repeat;*/
}
.talk_list .right_word img {
    float: right;
    margin-right: 20px;
}
.talk_list .right_word span {
    float: right;
    background-color: #fff;
    padding: 10px 15px;
    max-width: 90%;
    border-radius: 12px;
    font-size: 16px;
    color: #000;
    margin-right: 13px;
    position: relative;
    line-height: 24px;
}
.talk_list .right_word span:before {
    content: '';
    position: absolute;
    right: -8px;
    top: 3px;
    width: 13px;
    height: 12px;
    /*background: url('../img/corner02.png') no-repeat;*/
}
.drag_bar{
    position:absolute;
    right:0px;
    top:0px;
    background-color: #fff;
    height:100%;
    width:6px;
    box-sizing:border-box;
    border-bottom:1px solid #f4f3f3;
}
.drager{
    position:absolute;
    left:0px;
    top:0px;
    background-color: #cdcdcd;
    height:100px;
    width:6px;
    border-radius:3px;
    cursor: pointer;
}

.footer{
    width: 80%;
    margin: 0 auto;
    left: 50%; /* 将其左边缘移动到容器的中点 */
    transform: translateX(-50%); /* 将元素自身移动到其自身的中心 */
    bottom:200px;
    background-color:#fff;
    position: absolute;
}

.footer img{

    float: left;
    width:5%;
    /*margin:8px 0 0 0;*/
}

.input_txt{
    float: left;
    width:84%;
    height:47px;
    border:0px;
    background-color: #f4f3f3;
    /*margin:9px 0 0 0;*/
    border-radius:8px;
    padding:0px;
    outline:none;
    text-indent:15px;
}
.input_sub{
    float: right;
    width:10%;
    height:47px;
    border:0px;
    background-color: #fc1f22;
    /*margin:9px 0 0 0;*/
    border-radius:8px;
    padding:0px;
    outline:none;
    color:#fff;
    cursor: pointer;
}

#loadingMessage {
    display: none;
    position: fixed; /* 固定位置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* 半透明背景 */
    z-index: 9999; /* 确保在最上层 */
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #555;
}

.loadingSpinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

/* 简单的旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}