* { margin: 0; padding: 0; box-sizing: border-box; }
        body { 
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6; 
            color: #333; 
            background: #f8f9fa;
        }
        
        .container { 
            max-width: 1400px; 
            margin: 0 auto; 
            padding: 20px; 
            /* 确保容器本身不阻止sticky定位 */
            position: relative;
        }
        
        .content-wrapper {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            /* 移除 position: relative 以避免影响sticky定位 */
            min-height: 100vh;
            /* 确保不会有隐藏的overflow属性 */
            overflow: visible;
        }
        
        /* 目录导航样式 */
        .left-sidebar {
            width: 260px;
            flex-shrink: 0;
            order: 1;
            /* 确保左侧边栏高度正确 */
            height: auto;
            /* 避免隐藏的overflow属性影响sticky */
            overflow: visible;
        }
        
        .left-sidebar .toc-section {
            position: sticky;
            top: 20px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            z-index: 10;
            /* 添加webkit前缀以提高兼容性 */
            position: -webkit-sticky;
            /* 确保有明确的宽度和背景，避免渲染问题 */
            width: 100%;
            background: white;
        }

        .left-sidebar .sidebar-section {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            border: 1px solid #f1f3f4;
            transition: box-shadow 0.3s ease;
        }

        .left-sidebar .sidebar-section:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.08);
        }

        .left-sidebar .sidebar-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #1a202c;
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4299e1;
            position: relative;
        }

        .left-sidebar .sidebar-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, #4299e1, #63b3ed);
            border-radius: 1px;
        }

        .table-of-contents {
            max-height: 60vh;
            overflow-y: auto;
        }

        .toc-item {
            margin-bottom: 6px;
        }

        .toc-level-2 {
            padding-left: 0;
        }

        .toc-level-3 {
            padding-left: 16px;
        }

        .toc-link {
            display: block;
            color: #4a5568;
            text-decoration: none;
            font-size: 13px;
            padding: 6px 10px;
            border-radius: 6px;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            line-height: 1.4;
        }

        .toc-link:hover {
            background-color: #f7fafc;
            color: #4299e1;
            border-left-color: #4299e1;
            transform: translateX(3px);
        }

        .toc-link.active {
            background-color: #ebf8ff;
            color: #2b6cb0;
            border-left-color: #4299e1;
            font-weight: 500;
        }

        /* 滚动条样式 */
        .table-of-contents::-webkit-scrollbar {
            width: 4px;
        }

        .table-of-contents::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 2px;
        }

        .table-of-contents::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 2px;
        }

        .table-of-contents::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }