* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* 侧边栏样式 */
.sidebar {
    width: 260px;
    height: 100%;
    background-color: #fff;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

/* Logo 部分 */
.logo-container {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    margin-right: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #1a73e8;
}

/* 新建对话按钮 */
.new-chat-btn {
    margin: 8px 15px;
    padding: 10px 18px;
    background-color: #f0f7ff;
    color: #1a73e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.new-chat-btn:hover {
    background-color: #e4f0fe;
}

.icon-plus {
    margin-right: 6px;
    font-size: 18px;
    font-weight: bold;
}

/* 历史对话部分 */
.history-container {
    flex: 1;
    padding: 12px;
}

.history-title {
    font-size: 15px;
    font-weight: normal;
    color: #666;
    margin-bottom: 12px;
    padding-left: 5px;
}

.chat-history-list {
    display: flex;
    flex-direction: column;
}

.chat-history-item {
    padding: 9px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.chat-history-item:hover {
    background-color: #f5f5f5;
}

.chat-history-item.active {
    background-color: #e4f0fe;
    color: #1a73e8;
}

.chat-history-item.active .chat-icon {
    color: #1a73e8;
}

.chat-icon {
    margin-right: 8px;
    color: #666;
    font-size: 16px;
}

.see-all-btn {
    padding: 9px 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    font-size: 13px;
}

.dots-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 模式切换按钮 */
.mode-switcher {
    padding: 12px;
    margin: 8px 15px 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: auto;
}

.mode-icon {
    width: 34px;
    height: 34px;
    background-color: #1a73e8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    font-size: 14px;
}

.mode-text {
    font-size: 13px;
}

.current-mode {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    background-color: #f9f9f9;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.content-placeholder {
    text-align: center;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
} 