/* 左侧可伸缩边栏样式 */

/* 侧边栏容器 */
.collapsible-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 280px;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    transform: translateX(-280px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.collapsible-sidebar.open {
    transform: translateX(0);
}

/* 侧边栏内容 */
.sidebar-content {
    padding: 20px;
}

/* 切换按钮 */
.sidebar-toggle {
    position: fixed;
    left: 0;
    top: 120px;
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0 20px 20px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1001;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    width: 45px;
    box-shadow: 3px 3px 15px rgba(102, 126, 234, 0.4);
}

.sidebar-toggle.open {
    left: 280px;
}

/* 侧边栏标题 */
.sidebar-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
}

.sidebar-section-title .icon {
    margin-right: 8px;
    font-size: 18px;
}

/* 系列文章列表 */
.series-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.series-item {
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.series-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.series-title {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.series-count {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.series-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
}

.series-progress {
    margin-top: 8px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.series-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* 快速链接 */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-link-item {
    margin-bottom: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.quick-link .icon {
    margin-right: 10px;
    font-size: 16px;
}

/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .collapsible-sidebar {
        width: 240px;
        transform: translateX(-240px);
    }
    
    .sidebar-toggle.open {
        left: 240px;
    }
}

/* 滚动条样式 */
.collapsible-sidebar::-webkit-scrollbar {
    width: 6px;
}

.collapsible-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.collapsible-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.collapsible-sidebar::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}