﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f7fa;
    height: 100vh;
    display: flex;
}

/* 左侧导航 */
.sidebar {
    width: 220px;
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
}

.nav-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.nav-item {
    padding: 14px 20px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s;
    text-align: center;
}

    .nav-item:hover {
        background-color: #f0f4f8;
    }

    .nav-item.active {
        background-color: #e6f0ff;
        color: #1890ff;
        font-weight: 500;
    }

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

/* 工具栏操作区域 */
.toolbar-area {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 10px 5px 10px 5px;
    margin-bottom: 24px;
    height:60px;
    line-height:60px;
}


/* 聊天区域 */
.chat-area {
    flex: 1;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 220px);
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 80%;
    line-height: 1.5;
}

.user-message {
    background-color: #e6f7ff;
    margin-left: auto;
    color: #0066cc;
    border-bottom-right-radius: 2px;
}

.ai-message {
    background-color: #f5f5f5;
    margin-right: auto;
    color: #333;
    border-bottom-left-radius: 2px;
}

/* 输入区域 */
.input-area {
    display: flex;
    gap: 10px;
}

    .input-area input {
        flex: 1;
        padding: 14px 16px;
        border: 1px solid #d9d9d9;
        border-radius: 6px;
        font-size: 16px;
        outline: none;
        transition: border-color 0.2s;
    }

        .input-area input:focus {
            border-color: #1890ff;
        }

    .input-area button {
        padding: 14px 22px;
        background-color: #1890ff;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.2s;
    }

        .input-area button:hover {
            background-color: #40a9ff;
        }
