* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0a0a1a;
    color: #e0e0f0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 800px;
    height: 90vh;
    background: #12122a;
    border-radius: 16px;
    border: 1px solid #2a2a5a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(100, 100, 255, 0.1);
}

.header {
    padding: 20px 24px;
    background: #1a1a3a;
    border-bottom: 1px solid #2a2a5a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #a0a0ff;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #60ff80;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #60ff80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.message.user {
    flex-direction: row-reverse;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: #1a1a3a;
    border: 1px solid #2a2a5a;
}

.bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    background: #1a1a3a;
    border: 1px solid #2a2a5a;
}

.message.user .bubble {
    background: #2a2a5a;
    border-color: #4a4aaa;
}

.input-area {
    padding: 16px 24px 24px;
    border-top: 1px solid #2a2a5a;
    background: #1a1a3a;
}

textarea {
    width: 100%;
    background: #0a0a1a;
    border: 1px solid #2a2a5a;
    border-radius: 8px;
    color: #e0e0f0;
    padding: 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
}

textarea:focus {
    border-color: #6060ff;
}

.button-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-send {
    background: #4040cc;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-send:hover {
    background: #5050dd;
}

.btn-clear {
    background: transparent;
    color: #8080aa;
    border: 1px solid #2a2a5a;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-clear:hover {
    border-color: #6060ff;
    color: #a0a0ff;
}