/* 基础布局 */
body {
    display: flex;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none; /* 移除下划线 */
  transition: color 0.3s, background-color 0.3s; /* 添加平滑过渡效果 */
}

a:hover {
  color: #252880;         /* 鼠标悬停时的文字颜色 */
}

/* 左侧目录 */
.toc-container {
    position: fixed;
    width: 250px;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e1e4e8;
    background: #f6f8fa;
}

.toc-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.25em;
}

.toc-subtitle {
    margin: 0 0 15px 0;  /* 上 右 下 左 */
    font-size: 0.85em;
    color: #586069;
    font-weight: normal;
    line-height: 1.4;
}

.toc-list {
    padding-left: 15px;
}

.toc-list ul {
    padding-left: 15px;
    list-style: none;
}

.toc-list a {
    display: block;
    padding: 4px 0;
    color: #0366d6;
    text-decoration: none;
}

.toc-list a:hover {
    text-decoration: underline;
}

/* 右侧内容 */
.content-container {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
}

.markdown-body {
    max-width: 800px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .toc-container {
        position: static;
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .content-container {
        margin-left: 0;
        padding: 20px;
    }
}