.layui-side {
    position: absolute;
    width: 305px;
}
.layui-layout-admin{
  position: absolute;
  height: 100%;
}
.layui-layout-admin .layui-side{
    top: 0;
    width: 305px;
    overflow: hidden;
    padding-top: 18px;
    z-index: 1001;
}
.layui-layout-admin .layui-logo {
    width: 305px;
    height: 100%;
    line-height: 60px;
    text-align: center;
    color: #16baaa;
    font-size: 16px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 15%);
}

.layui-layout-admin .layui-body {
    position: relative;
    top: 0px;
}
.layui-body {
    left: 305px;
}
.aside_top{
    position: relative;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.user_info{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    width: 278px;
    height: 52px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 9px;
    border-radius: 6px;
    background: #383940;
    padding-left: 20px;
}
.layui-bg-black {
    background-color: #2c2d33 !important;
    color: #fff !important;
}
.layui-side-scroll {
    width: 305px;
}
.user_info>img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    -webkit-transition: -webkit-transform 1s ease;
    transition: -webkit-transform 1s ease;
    -o-transition: transform 1s ease;
    transition: transform 1s ease;
    transition: transform 1s ease,-webkit-transform 1s ease;
}
.user_info>p {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.aside_center {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: calc(100% - 200px);
    -webkit-transition: height .3s ease-in;
    -o-transition: height .3s ease-in;
    transition: height .3s ease-in;
}
.convo_search, .pc-chatbar {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.convo_search {
    padding: 0 14px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
}


.convo_search>.search {
    position: relative;
    width: 136px;
    height: 38px;
    opacity: 1;
    border-radius: 6px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
}
.input_box {
    position: relative;
    width: 100%;
    height: 100%;
}
.layui-form-item > input {
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20.27px;
    color: #e5e5e5;
    border-radius: 6px;
    border: 1px solid #999;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
    padding-right: 20px;
    background-color: transparent;
}
.layui-form-item>input:hover {
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20.27px;
    color: #e5e5e5;
    border-radius: 6px;
    border: 1px solid transparent;
}

.layui-form-item>button {
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 35px;
    color: #e5e5e5;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: left;
    padding-left: 10px;
    padding-right: 24px;
    background-color: transparent;
    border-radius: 6px;
    border: 1px solid #999;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}
.layui-form-item>input:hover{
    border-color: #2a82e4;
    color: #2a82e4;
}

.add_convo {
    width: 100%;
    height: 38px;
    opacity: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #858585;
    float: right;
}
.add_convo>p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 20.27px;
    color: #fff;
}
.add_convo:hover,.add_convo:hover.add_convo>p {
    border-color: #2a82e4;
    color: #2a82e4;
}
.layui-form-item {
    position: relative;
    height: 100%;
}
.layui-form-item:after {
    content: '\20';
    clear: both;
    *zoom: 1;
    display: block;
    height: 0;
}
.laysearch_icon {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 38px;
    line-height: 36px;
    text-align: center;
    color: #d2d2d2;
}
.borderline{
    width: 285px;
    height: 1px;
    background-color: #171b29;
}

.convoList {
    width: 100%;
    height: calc(100% - 62px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px 0;
    overflow: auto;
}
.convoList>li {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    width: 278px;
    height: 38px;
    margin: 0 auto;
    border-radius: 6px;
}
.li_select {
    background: #41424a;
}
.liicon{
    color: #fff;
    font-size: 14px;
    margin-left: 10px;
    margin-right: 8px;
}
.li_text {
    position: relative;
    width: 100%;
    height: 26px;
    color: #ccc;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
}
.li_text>p {
    width: 100%;
    font-weight: 400;
    font-size: 14px;
    line-height: 26px;
    overflow: hidden;
    word-break: keep-all;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}
.li_delete {
    visibility: hidden;
    width: 45px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.mright_5{
    margin-right: 5px;
}
.convoList>li:hover .li_delete{
    visibility: visible;
}
.convoList>li:hover .li_text{
    color: #2a82e4;
}
.aside_bottom {
    position: relative;
    width: 100%;
    height: 150px;
    background: #2c2d33;
    -webkit-transition: height .3s ease-in;
    -o-transition: height .3s ease-in;
    transition: height .3s ease-in;
}
.aside_bottom>ul {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 16px;
    padding-bottom: 20px;
}
.aside_bottom>ul>li {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 34px;
    cursor: pointer;
}

.aside_bottom>ul>li a{
    color: #fff;
}

.aside_bottom>ul>li>a>span {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin-left: 16px;
}

.layui-layout-admin .layui-footer {
    position: fixed;
    left: 305px;
    right: 0;
    bottom: 0;
    z-index: 990;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    box-shadow: -1px 0 4px rgb(0 0 0 / 12%);
    background-color: #fafafa;
}

.content_top{
    position: fixed;
    top: 0;
    z-index: 9;
    height: 70px;
    width: 100%;
    background-color: #f7f7f8;
    border-bottom: 1px solid #ececed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}
.model{
    width: 80%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-right: 16%;
}
.model>span {
    color: #aeaeba;
    cursor: default;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}
.model>span:first-child {
    font-size: 20px;
    font-weight: bolder;
    margin-right: 10px;
}

.content_main{
    width: 100%;
    height: calc(100% - 270px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    overflow: auto;
    position: fixed;
    top: 71px;
}






.layfooter{
    height: 200px !important;
    background: #000;
}
.textareabox{
    width: 80%;
    margin: 10px 0;
    justify-content: center;
    display: flex;
}
.hl_input {
    font-size: 18px;
    font-family: "Microsoft YaHei UI";
    color: #666666;
    margin-bottom: 10px;
    width: 980px;
    height: 36px;
    line-height: 1.2;
    min-height: 36px;
    max-height: 6em; /* 最多显示5行，每行高度为1.2em */
    padding:0 15px;
    padding-top: 14px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    -webkit-box-shadow: 0 2px 20px 1px rgb(144 177 204 / 10%);
    box-shadow: 0 2px 20px 1px rgb(144 177 204 / 10%);
}


.declare {
    position: absolute;
    bottom: 0;
    z-index: 9;
    width: 100%;
    height: 40px;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-align: center;
}
.declare>i {
    cursor: pointer;
    font-style:  normal;
}
.declare a{
    color: #999;
}
.declare a:hover{
    color: #2a82e4;
}

element.style {
    margin-left: 10px;
}

.layui-btn {
    height: 50px;
    line-height: 50px;
    border: 1px solid transparent;
    padding: 0 18px;
    background-color: #16baaa;
    font-size: 18px;
    border-radius: 5px;
}


.chat_area{
    position: relative;
}

.chat_area>ul {
    width: 100%;
}

.role_user {
    position: relative;
    width: 100%;
    min-height: 64px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    /* justify-content: flex-end; */
    justify-content: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px 0;
    padding-left: 14vw;
    font-size: 16px;
    font-family: "Microsoft YaHei UI";
    color: #666666;
}
.chat_box{
  margin-right: 30%;
  max-width: 54vw;
}
.chat_box>p {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 24px;
    /* white-space: pre-line; */
    word-wrap: break-word; /* 如果单词太长，则在单词内断开 */
    overflow-wrap: break-word; /* 保证长单词或URL不会溢出容器 */
}
.role_user>img {
    position: absolute;
    top: 10px;
    left: 11vw;
    width: 39px;
    height: 40px;
    border-radius: 50%;
}
.role_system{
    position: relative;
    min-height: 64px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: left;
    -ms-flex-pack: left;
    justify-content: left;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px 0;
    padding-left: 14vw;
    background-color: #ececec;
    font-size: 16px;
    font-family: "Microsoft YaHei UI";
    color: #24292e;
}
.role_system>img{
    position: absolute;
    top: 10px;
    left: 11vw;
    width: 39px;
    height: 40px;
    border-radius: 50%;
}
.chat_box>pre {
    width: 53vw;
    overflow: auto;
    color: #ccc;
    line-height: 1.5;
    background: #000;
    border-radius: 8px;
    padding: 10px;
    margin:0 0 10px 0;
}

.layui-layout-left {
    left: 20px;
    top: 25px;
    z-index: 9991;
}

.copybtnbox{
  width: 53vw;
  height: 30px;
  padding: 10px 10px;
  position: relative;
  line-height: 30px;
  text-align: right;
  margin-right: 10px;
  justify-content: flex-end;
  display: inline-table;
  background: #2c2d33 ;
  margin-top: 20px;
  border-radius: 8px;
}
.copy_text{
  float: left;
  color: #fff;
}
.copybtn{
  font-size: 14px !important;
  line-height: 20px !important;
  height: 30px !important;
  padding:5px 10px !important;
  background: none !important;
  border: 1px solid #ccc  !important;
  color: #ccc !important;
  float: right;
}


/*search*/
.center_box{
  justify-content: center;
  display: flex;
  width: 89%;
}

.role_tabbox {
    width: 1050px;
    top: 56px;
    position: absolute;
}

/* tab */
.layui-tab {
    margin: 10px 0;
    text-align: center !important;
}
.layui-tab .layui-tab-title {
    text-align: center;
    background: #edebf0;
    width: 282px;
    border-radius: 7px;
    margin: 0 auto;
    padding: 3px;
}
.layui-tab-brief>.layui-tab-title .layui-this {
    color: #222;
    background: #fff;
    border-radius: 7px;
    font-weight: 700 !important;
  }
  .layui-tab-brief>.layui-tab-title .layui-this {
    color: #222 !important;
  }
  .layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after {
      border-bottom: 0px solid #16b777 !important;
  }

  .layui-tab .layui-tab-title li {
      line-height: 40px;
      min-width: 110px !important;
  }
  .layui-tab-content {
      text-align: center;
  }

/* tab end*/

.prompt_entry{
  width: 1050px;
  margin-top: 260px;
}
.head_h5{
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #383838;
  margin-bottom: 25px;
}
.prompt_panel {
    line-height: 30px;
    height: 30px;
    border: 1px solid #E5E5E5;
    border-radius: 5px !important;
    background-color: #fff;
    color: #666;
    padding: 10px 20px;
    box-shadow: 1px 1px 4px rgb(0 0 0 / 8%);
}
.prompt_panel:hover{
  background-color: #ededed;
  border-color: #2A82E4;
  cursor: pointer;
}
.prompt_panel i{
  font-size: 22px;
  margin-right: 4px;
  color: #2A82E4;
  vertical-align: top;
}
.p_text{
  width: 80%;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #383838;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.prompt_panel>span{
  position: absolute;
  top: 19px;
  right: 20px;
  width: 26px;
  height: 26px;
  opacity: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0px;
  color: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 8px 2px 8px 2px;
}
.popular{
    background: linear-gradient(138deg, #D43030 0%, #FF8A8A 100%);
}
.recommend{
    background: -o-linear-gradient(312deg, #FF8D1A 0%, #FFC300 100%);
    background: linear-gradient(138deg, #FF8D1A 0%, #FFC300 100%);
}




@media (max-width:1780px) {
    .role_user>img {
        left: 11vw;
    }
    .role_system {
        padding-left: 15vw;
    }
    .role_user{
        padding-left: 15vw
    }
    .chat_box>p {
        width: 54vw;
    }
    .role_system>img {
        left: 11vw;
    }
    .model{
      width: 70%;
      margin-right: 26%;
    }
}
@media (max-width:1200px) {
    .role_system {
        padding-left: 19vw;
    }
    .role_user{
        padding-left: 19vw
    }

}

@media screen and (max-width: 992px){
  .layui-side {
      /* transform: translate3d(-305px, 0, 0);
      -webkit-transform: translate3d(-305px, 0, 0); */
      width: 305px;
      display: none;
  }
  .layui-body {
      left: 0px;
  }
  .layui-layout-admin .layui-footer {
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    box-shadow: -1px 0 4px rgb(0 0 0 / 12%);
    width: 92%;
  }

  .content_main {
    width: 100%;
    height: calc(100% - 250px) !important;
    top: 51px !important;
  }

  .layadmin-body-shade {
      position: fixed;
      display: none;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background-color: rgba(0,0,0,.3);
      z-index: 1000;
  }
  .hl_input{
    line-height: 30px;
  }
  .role_tabbox {
    width: 100%;
    top: 56px;
    position: absolute;
  }
  .prompt_entry{
    width: 96%;
    margin-top: 130px;
  }
  .role_tabbox {
    top: 10px;
  }
  .hl_input {
    font-size: 16px;
    color: #2a82e4;
    width: 100%;
    height: 40px;
    line-height: 25px;
    padding: 13px 5px 0 10px;
  }

.layui-layout-admin .layui-footer {
    left: 0;
  }
  .content_top {
    height: 50px;
  }
  .textareabox {
      width: 100%;
  }
  .layui-layout-left {
      left: 10px;
      top: 15px !important;
      z-index: 9991;
  }
  .layadmin-body-shade {
      position: fixed;
      display: none;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background-color: rgba(0,0,0,.3);
      z-index: 1000;
  }
  .model{
      margin-right: 10%;
  }
  .role_user>img {
    left: 5vw;
  }
  .role_system>img {
    left: 5vw;
  }
  .chat_box>p {
    width: 75vw;
  }

  .chat_box>pre {
    width: 70vw;
    margin:0 0 10px 0;
  }
  .center_box{
    width: 100%;
  }
  .copybtnbox {
    width: 70vw;
    border-radius: 5px;
  }

  .chat_box{
    font-size: 14px;
  }
  pre code.hljs {
    padding: 0em;
    font-size: 14px;
  }
  .chat_box>p{
    font-size: 14px;
  }

}



/* 滚动条样式 */
/*滚动条整体部分,必须要设置*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

/*滚动条的轨道*/
::-webkit-scrollbar-track {
    background-color: transparent;
}

/*滚动条的滑块按钮*/
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #555;
    box-shadow: inset 0 0 5px #333;
}

/*滚动条的上下两端的按钮*/
::-webkit-scrollbar-button {
    height: 0;
    background-color: #555;
}

/* // 两个滚动条的交汇处 */
::-webkit-scrollbar-corner {
    background-color: transparent;
}

.login_box {
    width: 100%; }

.login_head {
    box-sizing: content-box;
    margin: 30px 30px 30px 30px;
    display: block; }

.login_head h1 {
    font-size: 50px;
    font-weight: 500;
    color: #1c153a;
    text-align: left; }

.ycm_item {
    border: 0 !important; }

.margin_b22 {
    margin-bottom: 22px !important; }
