.chat-page *{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

.chat-page {

    position: fixed;

    top:0;
    left:0;

    width:100%;
    height:100vh;

    overflow:hidden;

    background:#ffffff;

    font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;

    color:#202123;
}

.chat-page .app{

    width:100%;
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;

    overflow:hidden;
}

.chat-page .suggestions {

    display:grid;

    grid-template-columns:repeat(2, 260px);

    gap:12px;

    justify-content:center;

    margin-top:30px;

}


.chat-page .suggestions button {

    background:#f7f7f8;

    border:1px solid #e5e5e5;

    border-radius:12px;

    padding:12px;

    height:50px;

    font-size:14px;

    color:#333;

    cursor:pointer;

    white-space:normal;
    
}


.chat-page .suggestions button:hover {

    background: #eeeeee;

}



/* 聊天区域 */


.chat-page #chat-box{
    width:760px;

    flex:1;
    min-height:0;
    margin:0 auto;

    overflow-y:auto;

    padding-top:20px;

    padding-bottom:120px;
}



.chat-page .welcome{
    text-align:center;

    padding-top:70px;

    margin-bottom:40px;

    flex-shrink:0;
}



.chat-page .welcome h1{

    font-size:36px;

    font-weight:700;

    letter-spacing:-1px;

}



.chat-page .welcome p{

    margin-top:10px;

    color:#8e8ea0;

    font-size:16px;

}


/* 消息 */


.chat-page .msg{

    width:100%;

    margin-bottom:20px;

    padding-top:10px;

    line-height:1.8;

    font-size:16px;

    animation:chat-show .2s ease;

}



.chat-page .user{

    display:flex;

    justify-content:flex-end;

}



.chat-page .user{

    background:#f1f3f5;

    color:#202123;

    padding:12px 18px;

    border-radius:18px;

    width:max-content;

    max-width:70%;

    margin-left:auto;

}



.chat-page .ai{

    padding:5px 0;

    color:#202123;

}



/* 输入框 */


.chat-page .input-area{

    flex-shrink:0;

    height:120px;

    display:flex;

    justify-content:center;

    align-items:center;

    width:100%;

}



.chat-page .input-box{


    width:760px;

    background:white;

    border-radius:22px;

    padding:14px 18px;


    display:flex;

    align-items:flex-end;


    box-shadow:

    0 0 0 1px #ddd,

    0 8px 30px rgba(0,0,0,.08);

}



.chat-page textarea{

    flex:1;

    border:none;

    outline:none;

    resize:none;

    font-size:16px;

    line-height:1.6;

    height:72px;

    max-height:160px;

    padding:8px 4px;

    display:flex;

    align-items:center;

}



.chat-page .input-box button{

    flex-shrink:0;

    align-self:center;

    width:38px;

    height:38px;

    border-radius:50%;

    border:none;

    background:#202123;

    color:white;

    cursor:pointer;

    font-size:20px;

}



.chat-page .input-box button:hover{

    background:#000;

}



@keyframes chat-show{


from{

opacity:0;

transform:translateY(10px);

}


to{

opacity:1;

transform:translateY(0);

}


}




@media(max-width:800px){


.chat-page #chat-box,

.chat-page .input-box{

    width:calc(100% - 30px);

}




}