/* ====== 文章页左侧栏美化 ====== */

/* 左侧栏容器 */
.post-template .post-left-sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 250px;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    border-radius: 0 12px 12px 0;
    padding: 15px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

/* 左侧栏标题 */
.post-template .post-left-sidebar h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* 文章列表整体 */
.post-template .tag-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 每条文章卡片 */
.post-template .tag-posts-list li {
    margin: 10px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

/* 鼠标悬停效果 */
.post-template .tag-posts-list li:hover {
    background: #f0f6ff;
    border-color: #d0e2ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 文章链接样式 */
.post-template .tag-posts-list a {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 1.3rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

/* 链接悬停颜色 */
.post-template .tag-posts-list a:hover {
    color: #0070f3;
}

/* 当前文章高亮 */
.post-template .tag-posts-list li.active a {
    font-weight: bold;
    color: #0070f3;
    background: #e6f0ff;
    border-left: 3px solid #0070f3;
}

/* 分隔线增强层次感 */
.post-template .tag-posts-list li + li {
    margin-top: 10px;
}

/* 滚动条美化 */
.post-template .post-left-sidebar::-webkit-scrollbar {
    width: 6px;
}
.post-template .post-left-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}
.post-template .post-left-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* 响应式：移动端隐藏左栏 */
@media (max-width: 1200px) {
    .post-template .post-left-sidebar {
        display: none;
    }
    .post-template .gh-main {
        max-width: 90%;
        margin: 0 auto;
    }
}
