* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei",sans-serif;
}
body {
    background: #121418;
    color: #fff;
    min-height: 100vh;
}
/*登录弹窗样式*/
.auth-modal{
    position: fixed;
    width: 100%;
    height: 100vh;
    background:rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.auth-modal.active{
    display: flex;
}
.auth-container{
    width: 420px;
    background:#1e2127;
    padding:35px;
    border-radius:16px;
    box-shadow: 0 0 25px #2979ff40;
}
.auth-header{
    text-align:center;
    margin-bottom:30px;
}
.auth-header h2{
    margin-bottom:8px;
    color:#fff;
}
.auth-header p{
    color:#9499a3;
    font-size:14px;
}
.input-group{
    margin-bottom:20px;
}
.input-group label{
    display:block;
    margin-bottom:6px;
    color:#c5c8ce;
    font-size:14px;
}
.input-group input{
    width:100%;
    height:46px;
    background:#272a31;
    border:1px solid #383c44;
    border-radius:8px;
    padding:0 15px;
    color:#fff;
    outline:none;
}
.auth-btn{
    width:100%;
    height:48px;
    background:#2979ff;
    border:none;
    border-radius:8px;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}
.auth-btn:hover{
    background:#1967d2;
}
.auth-switch{
    text-align:center;
    margin-top:20px;
    color:#9499a3;
    font-size:14px;
}
.auth-switch a{
    color:#2979ff;
    text-decoration:none;
    margin-left:5px;
}

/*主体页面*/
.container{
    width:100%;
    height:100vh;
}
.app{
    width:100%;
    height:100vh;
    display:flex;
    flex-direction:column;
}
.chat-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 25px;
    background:#1e2127;
    border-bottom:1px solid #2c3038;
}
.logo-area{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:bold;
}
.logo-area i{
    color:#2979ff;
    font-size:22px;
}
.logout-btn{
    background:#2c3038;
    border:none;
    color:#e8e8e8;
    padding:8px 15px;
    border-radius:6px;
    cursor:pointer;
}
.chat-section{
    flex:1;
    overflow:auto;
    padding:20px;
}
.chat-messages{
    display:flex;
    flex-direction:column;
    gap:18px;
}
.message{
    display:flex;
    gap:12px;
}
.message.ai{
    justify-content:flex-start;
}
.message.user{
    flex-direction:row-reverse;
}
.avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#2979ff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.message.user .avatar{
    background:#444952;
}
.message-content{
    max-width:75%;
    padding:12px 16px;
    border-radius:12px;
    background:#1e2127;
    line-height:1.6;
    color:#eef1f5;
}
.message.user .message-content{
    background:#2979ff;
}

/*底部输入区域*/
.input-area{
    padding:18px 25px;
    background:#1e2127;
    border-top:1px solid #2c3038;
}
.input-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}
.toggle-label{
    color:#b0b4bc;
    font-size:14px;
    cursor:pointer;
}
.char-count{
    color:#777;
    font-size:13px;
}
.input-wrapper{
    display:flex;
    align-items:flex-end;
    gap:12px;
}
textarea{
    flex:1;
    min-height:48px;
    max-height:140px;
    background:#272a31;
    border:1px solid #383c44;
    border-radius:24px;
    padding:14px 20px;
    color:#fff;
    outline:none;
    resize:none;
    font-size:15px;
}
.send-btn{
    width:48px;
    height:48px;
    border-radius:50%;
    border:none;
    background:#2979ff;
    color:white;
    cursor:pointer;
}
.send-btn:disabled{
    background:#383c44;
    cursor:not-allowed;
}
.typing-dot{
    animation:blink 1s infinite;
}
@keyframes blink{
    0%,100%{opacity:0.2;}
    50%{opacity:1;}
}
