/* ========== Markdown 渲染 ========== */
.markdown-body {
    line-height: 1.8;
    font-size: 16px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.markdown-body p {
    margin-bottom: 0.8em;
}

.markdown-body code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 90%;
}

.markdown-body pre {
    background-color: #f4f4f4;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.markdown-body table th,
.markdown-body table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.markdown-body table th {
    background-color: #f4f4f4;
}

.markdown-body blockquote {
    border-left: 4px solid #ddd;
    padding-left: 16px;
    color: #666;
    margin: 1em 0;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.markdown-body video {
    max-width: 100%;
    border-radius: 4px;
}

/* ========== 通知角标 ========== */
.notification-badge {
    position: absolute;
    top: 2px;
    right: -6px;
    font-size: 0.65em;
}

/* ========== 时间线 ========== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #e9ecef;
}

/* ========== 文件树 ========== */
.file-tree .list-group-item {
    font-size: 0.85em;
    border-left: none;
    border-right: none;
}

.file-tree .list-group-item:first-child {
    border-top: none;
}

/* ========== 视频播放器 ========== */
.video-player {
    max-width: 100%;
    margin: 1em 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== 卡片优化 ========== */
.card {
    border: none;
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

/* ========== 进度条 ========== */
.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}
