
body,html{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
body{
  
  background-size: 100% 100%;
  position: relative;
}
input:focus {
  outline: none;
}
.snp1{
	display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;
}
.snp2{
	display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
}
.snp3{
	display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
}
.hidden {
  height: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
  transition: all 0.5s ease;
}
.visible {
  height: 100% !important;
  opacity: 1 !important;
  transition: all 0.5s ease;
}
@media screen and (min-width: 40rem){
  body{
    background-image: url('./img/back.gif');
  }
  .body_back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
  }
  .chat_page1{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s;
    overflow: hidden;
    height: 100%;
    width: 100%;
    opacity: 1;
    z-index: 9;
    /* height: 0;
    opacity: 0; */
  }
  .gohome{
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 100px;
    border: 1px solid #FFFFFF;
    padding: 0.3vw 1vw;
  }
  .gohome img{
    width: 1.2vw!important;
    height: 1.2vw!important;
    margin-left: 0.5vw;
  }

  .gohome p{
    font-weight: 600;
    font-size:0.93vw;
    color: #FFFFFF;
    margin: 0;
  }
  .chat_page1 .logo{
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.56vw;
  }
  .chat_page1 .logo img{
    width: 13.9vw;
    height: 2.55vw;
  }
  .chat_page1 .title {
    margin-top: 7.3vw;
    display: flex;
  }
  .chat_page1 .title h1{
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 800;
    font-size: 3.645vw;
    color: #EFEFEF;
  }
  .chat_page1 .title .color{
    background-image: linear-gradient(
      90deg,
      rgba(110, 148, 249, 1) 0,
      rgba(123, 122, 238, 1) 48.157546%,
      rgba(156, 99, 247, 1) 100%
    );
    overflow-wrap: break-word;
    font-size: 3.645vw;
    font-family: Microsoft YaHei-Heavy;
    font-weight: 900;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .search_box {
    width: 52vw;
    height: 4.8vw;
    background: #0D1B2E;
    box-shadow: 0px 0px 0.625vw 0.3125vw rgba(0,0,0,0.05);
    border-radius: 1.04vw;
    border: 1px solid #2A3447;
    display: flex;
    align-items: center;
    padding-left: 1.56vw;
    position: relative;
  }
  .search_box_active{
    box-shadow: 0px 0px 0.625vw 0.3125vw rgba(56,189,248,0.08);
    border: 1px solid #38BDF8;
  }
  .search_box img{
    width: 1.66vw;
    height: 1.66vw;
  }
  .search_box input{
    width: 44vw;
    background-color: rgba(0,0,0,0);
    border: 0;
    height: 100%;
    margin-left: 1.04vw;
    font-size: 1.25vw;
    color: #64748B;
    /* padding-left: 0.5vw; */
  }
  .search_r_icon{
    position: absolute;
    right: 1vw;
    width: 2.9vw;
    height: 3.2vw;
    background: #2563EB;
    border-radius: 0.52vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .chat_page1_bottom{
    display: flex;
    margin-top: 7.29vw;
  }
  .history{
    display: flex;
    flex-direction: column;
  }
  .history .history_item{
    display: flex;
    align-items: center;
    height: 2.656vw;
    cursor: pointer;
  }
  .history_list{
    display: flex;
    flex-direction: column;
  }
  .history img{
    width: 1.25vw;
    height: 1.25vw;
  }
  .history p{
    width: 20vw;
    font-weight: 600;
    font-size: 0.937vw;
    color: #94A3B8;
    margin-left: 0.52vw;
  }
  .hot{
    width: 43.2vw;
    
  }
  .hot_title{
    display: flex;
    align-items: center;
  }
  .hot_title img{
    width: 1.25vw;
    height: 1.25vw;
  }
  .hot_title p{
    font-weight: 400;
    font-size: 0.937vw;
    color: #FFFFFF;
    margin-left: 0.52vw;
  }
  .hot_list{
    width: 43.2vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hot_list_item{
    display: flex;
    align-items: center;
    position: relative;
    width: 20.8vw;
    height: 4.2vw;
    background: #1A2536;
    border-radius: 0.52vw;
    border: 1px solid #2A3447;
    margin-bottom: 1.4vw;
    cursor: pointer;
  }
  .hot_list_item div{
    background-color: #1D2D49;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.13vw;
    height: 2.13vw;
    border-radius: 0.52vw;
    margin-left: 1.04vw;
    margin-right: 1.04vw;
  }
  .hot_list_item img{
    width: 1.09vw;
    height: 1.09vw;
  }
  .r_icon{
    position: absolute;
    right: 2vw;
  }
  .hot_list_item p{
    width: 14vw;
    font-weight: 400;
    font-size: 0.83vw;
    color: #F3F3F5;
  }
  .chat_page2{
    width: 67.7vw;
    margin: 0 auto;
    position: relative;
    z-index: 9;
    height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .page_header{
    width: 67.7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.56vw;
  }
  .page_header .logo{
    width: 13.9vw;
    height: 2.55vw;
  }
  .goback{
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  .goback img{
    width: 1.56vw;
    height: 1.56vw;
    transform: rotate(180deg);
  }
  .goback div{
    display: flex;
    flex-direction: column;
    margin-left: 1vw;
  }
  .goback p{
    font-weight: 600;
    font-size:0.93vw;
    color: #FFFFFF;
    margin: 0;
  }
  .goback span{
    font-weight: 400;
    font-size: 0.729vw;
    color: #6B7280;
    margin-top: 0.2vw;
  }
  .search_box_1{
    width: 67.4vw;
    padding-left: 0;
    height: 4.79vw;
  }
  
  .msg_list{
    width: 67.7vw;
    height: 70vh;
    overflow-y: scroll;
    margin: 1.56vw 0;
  }
  .msg_list::-webkit-scrollbar {
    display: none;
  }
  .user_msg{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1vw;
  }
  .AI_msg{
    display: flex;
    margin-bottom: 1vw;
  }
  .user_img{
    width: 2.7vw;
    height: 2.7vw;
    border-radius: 0.78vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
  }
  .user_img img{
    width: 1.82vw;
    height: 1.82vw;
  }
  .user_msg p{
    max-width: 49vw;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 0.94vw;
    color: #FFFFFF;
    line-height: 1.8vw;
    background: #2563EB;
    padding: 0.52vw 1.04vw;
    border-radius: 0.52vw 0 0.52vw 0.52vw;
    margin: 0;
    margin-right: 1.04vw;
  }
  .AI_msg p{
    max-width: 49vw;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 0.94vw;
    color: #FFFFFF;
    line-height: 1.8vw;
    background: #192539;
    padding: 0.52vw 1.04vw;
    border-radius: 0 0.52vw 0.52vw 0.52vw;
    margin: 0;
    margin-left: 1.04vw;
    border: 1px solid #313B4D;
  }
}
@media screen and (max-width: 40rem){
  body{
    background-image: url('./img/back1.gif');
  }
  .body_back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
  }
  .gohome{
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 100px;
    border: 1px solid #FFFFFF;
    padding: 1vw 4vw;
  }
  .gohome img{
    width: 3.46vw!important;
    height: 3.46vw!important;
    margin-left: 0.5vw;
  }

  .gohome p{
    font-weight: 400;
    font-size:3.46vwvw;
    color: #FFFFFF;
    margin: 0;
  }
  .chat_page1{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s;
    overflow: hidden;
    height: 100%;
    width: 100%;
    opacity: 1;
    z-index: 9;
    /* height: 0;
    opacity: 0; */
  }
  .chat_page1 .logo{
    width: 94%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.56vw;
  }
  .chat_page1 .logo img{
    width: 36.4vw;
    height: 8vw;
  }
  .chat_page1 .title {
    margin-top: 13.3vw;
    display: flex;
  }
  .chat_page1 .title h1{
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 800;
    font-size: 8vw;
    color: #EFEFEF;
  }
  .chat_page1 .title .color{
    background-image: linear-gradient(
      90deg,
      rgba(110, 148, 249, 1) 0,
      rgba(123, 122, 238, 1) 48.157546%,
      rgba(156, 99, 247, 1) 100%
    );
    overflow-wrap: break-word;
    font-size: 8vw;
    font-family: Microsoft YaHei-Heavy;
    font-weight: 900;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .search_box {
    width: 94vw;
    height: 12.3vw;
    background: #0D1B2E;
    box-shadow: 0px 0px 0.625vw 0.3125vw rgba(0,0,0,0.05);
    border-radius: 1.04vw;
    border: 1px solid #2A3447;
    display: flex;
    align-items: center;
    padding-left: 1.56vw;
    position: relative;
  }
  .search_box_active{
    box-shadow: 0px 0px 0.625vw 0.3125vw rgba(56,189,248,0.08);
    border: 1px solid #38BDF8;
  }
  .search_box img{
    width: 5.3vw;
    height: 5.3vw;
  }
  .search_box input{
    width: 72vw;
    background-color: rgba(0,0,0,0);
    border: 0;
    height: 100%;
    font-size: 3.2vw;
    color: #64748B;
    /* padding-left: 0.5vw; */
  }
  .search_r_icon{
    position: absolute;
    right: 2vw;
    width: 7.46vw;
    height: 8.26vw;
    background: #2563EB;
    border-radius: 0.52vw;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .chat_page1_bottom{
    display: flex;
    margin-top: 8vw;
    padding-top: 78vw;
    position: relative;
  }
  .history{
    display: flex;
    flex-direction: column;
    width: 94vw;
  }
  .history .history_item{
    display: flex;
    align-items: center;
    height: 8.26vw;
    cursor: pointer;
  }
  .history img{
    width: 4.26vw;
    height: 4.26vw;
  }
  .history p{
    width: 70vw;
    font-weight: 600;
    font-size: 3.2vw;
    color: #94A3B8;
    margin-left: 1vw;
  }
  .hot{
    width: 94vw;
    position: absolute;
    top: 0;
    /* left: 3vw; */
  }
  .hot_title{
    display: flex;
    align-items: center;
  }
  .hot_title img{
    width: 4.26vw;
    height: 4.26vw;
  }
  .hot_title p{
    font-weight: 400;
    font-size: 3.2vw;
    color: #FFFFFF;
    margin-left: 1vw;
  }
  .hot_list{
    width: 94vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hot_list_item{
    display: flex;
    align-items: center;
    position: relative;
    width: 94vw;
    height: 12.2vw;
    background: #1A2536;
    border-radius: 1vw;
    border: 1px solid #2A3447;
    margin-bottom: 4vw;
    cursor: pointer;
  }
  .hot_list_item div{
    background-color: #1D2D49;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.93vw;
    height: 6.93vw;
    border-radius: 1vw;
    margin-left: 1.04vw;
    margin-right: 1.04vw;
  }
  .hot_list_item img{
    width: 4.26vw;
    height: 4.26vw;
  }
  .r_icon{
    position: absolute;
    right: 2.6vw;
  }
  .hot_list_item p{
    width: 70vw;
    font-weight: 400;
    font-size: 3.2vw;
    color: #F3F3F5;
  }
  .chat_page2{
    width: 94vw;
    margin: 0 auto;
    position: relative;
    z-index: 9;
    height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .page_header{
    width: 94vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4vw;
  }
  .page_header .logo{
    width: 36.4vw;
    height: auto;
  }
  .goback{
    display: flex;
    align-items: center;
  }
  .goback img{
    width: 5.3vw;
    height: 5.3vw;
    transform: rotate(180deg);
  }
  .goback div{
    display: flex;
    flex-direction: column;
    margin-left: 1vw;
  }
  .goback p{
    font-weight: 600;
    font-size:3.2vw;
    color: #FFFFFF;
    margin: 0;
  }
  .goback span{
    font-weight: 400;
    font-size: 2.4vw;
    color: #6B7280;
    margin-top: 0.5vw;
  }
  .search_box_1{
    width: 94vw;
    padding-left: 0;
    height: 12.26vw;
  }
  .msg_list{
    width: 94vw;
    height: 80vh;
    overflow-y: scroll;
    margin: 4vw 0;
  }
  .msg_list::-webkit-scrollbar {
    display: none;
  }
  .user_msg{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4vw;
  }
  .AI_msg{
    display: flex;
    margin-bottom: 4vw;
  }
  .user_img{
    width: 6.93vw;
    height: 6.93vw;
    border-radius: 0.78vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
  }
  .user_img img{
    width: 4.66vw;
    height: 4.66vw;
  }
  .user_msg p{
    max-width: 78.4vw;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 3.2vw;
    color: #FFFFFF;
    line-height: 5.3vw;
    background: #2563EB;
    padding: 2.66vw;
    border-radius: 2vw 0 2vw 2vw;
    margin: 0;
    margin-right: 2.66vw;
  }
  .AI_msg p{
    max-width: 78.4vw;
    font-family: Microsoft YaHei, Microsoft YaHei;
    font-weight: 400;
    font-size: 3.2vw;
    color: #FFFFFF;
    line-height: 5.3vw;
    background: #192539;
    padding: 2.66vw;
    border-radius: 0 2vw 2vw 2vw;
    margin: 0;
    margin-left: 2.66vw;
    border: 1px solid #313B4D;
  }
}