/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 页面切换 */
.page {
    display: none;
}

.active-page {
    display: block;
}

/* 功能卡片 */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0d6efd;
}

/* 聊天样式 */
.chat-container {
    height: 300px;
    overflow-y: auto;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.other-message {
    align-self: flex-start;
}

.my-message {
    align-self: flex-end;
}

.message-content {
    padding: 10px;
    border-radius: 10px;
}

.other-message .message-content {
    background-color: #f1f1f1;
}

.my-message .message-content {
    background-color: #d1e7ff;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.message-sender {
    font-weight: bold;
}

.message-time {
    color: #6c757d;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }
} 