/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

/* 侧边栏样式 */
.sidebar {
    min-height: 100vh;
    padding: 0;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
}

/* 主内容区样式 */
.main-content {
    padding: 20px;
    min-height: 100vh;
}

/* 卡片样式 */
.card {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* 数据可视化容器 */
.chart-container {
    height: 300px;
    margin-bottom: 20px;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
}

/* 表单样式 */
.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-ai {
    background-color: #6f42c1;
    color: white;
}

.btn-ai:hover {
    background-color: #5a32a3;
    color: white;
}

/* 知识图谱样式 */
.knowledge-graph {
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
}

/* AI助手对话框样式 */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-container {
    max-height: 400px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
}

.user-message {
    background-color: #e9ecef;
    margin-left: 20%;
}

.ai-message {
    background-color: #d1e7ff;
    margin-right: 20%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        min-height: auto;
    }
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    margin-top: 20px;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 进度条样式 */
.progress-container {
    margin: 20px 0;
}

/* 标签样式 */
.badge-ai {
    background-color: #6f42c1;
    color: white;
}

/* 通知样式 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

/* 课程卡片样式 */
.course-card {
    height: 100%;
}

.course-card img {
    height: 150px;
    object-fit: cover;
}

/* 学习路径样式 */
.learning-path {
    position: relative;
    padding-left: 30px;
}

.learning-path::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #0d6efd;
}

.learning-path-item {
    position: relative;
    margin-bottom: 20px;
}

.learning-path-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0d6efd;
}

/* 评分样式 */
.rating {
    color: #ffc107;
}

/* 文件上传区域样式 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-area:hover {
    background-color: #f8f9fa;
}

/* 视频播放器样式 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 交互式练习样式 */
.interactive-exercise {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 反馈标签样式 */
.feedback-tag {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #e9ecef;
    cursor: pointer;
}

.feedback-tag.selected {
    background-color: #0d6efd;
    color: white;
}