        /* 左侧目录导航（飞书文档风格 - 全高侧栏） */
        .post-toc {
            position: fixed;
            left: 0;
            top: 0;
            width: 240px;
            height: 100vh;
            height: 100dvh;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .post-toc.visible {
            opacity: 1;
            visibility: visible;
        }

        .toc-inner {
            display: flex;
            flex-direction: column;
            height: 100%;
            background: rgba(255, 255, 255, 0.82);
            -webkit-backdrop-filter: blur(14px) brightness(1.6) saturate(0.8);
            backdrop-filter: blur(14px) brightness(2.0) saturate(0.8);
            border-right: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
        }

        .toc-actions {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 16px 12px 12px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .toc-action-link {
            display: block;
            padding: 8px 12px;
            font-size: 13px;
            color: #2c3040;
            text-decoration: none;
            border-radius: 6px;
            transition: color 0.15s ease, background 0.15s ease;
        }

        .toc-action-link:hover {
            color: #3370ff;
            background: rgba(51, 112, 255, 0.1);
        }

        .toc-title {
            flex-shrink: 0;
            font-size: 12px;
            font-weight: 600;
            color: #8f959e;
            padding: 14px 20px 12px;
            letter-spacing: 1px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .toc-scroll {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 8px 0 24px;
            scrollbar-width: thin;
            scrollbar-color: rgba(51, 112, 255, 0.25) transparent;
        }

        .toc-scroll::-webkit-scrollbar {
            width: 4px;
        }

        .toc-scroll::-webkit-scrollbar-thumb {
            background: rgba(51, 112, 255, 0.25);
            border-radius: 2px;
        }

        .toc-nav {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .toc-item {
            position: relative;
        }

        .toc-link {
            display: block;
            padding: 7px 16px 7px 20px;
            font-size: 13px;
            line-height: 1.45;
            color: #2c3040;
            text-decoration: none;
            border-left: 3px solid transparent;
            transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .toc-link:hover {
            color: #3370ff;
            background: rgba(51, 112, 255, 0.1);
        }

        .toc-link.active {
            color: #3370ff;
            font-weight: 500;
            border-left-color: #3370ff;
            background: rgba(51, 112, 255, 0.14);
        }

        .toc-item.level-3 .toc-link { padding-left: 32px; }
        .toc-item.level-4 .toc-link { padding-left: 44px; }
        .toc-item.level-5 .toc-link { padding-left: 56px; }
        .toc-item.level-6 .toc-link { padding-left: 68px; }

        .post-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
            min-height: 100vh;
        }
        
        .post-header {
            text-align: center;
            padding: 50px 30px;
            margin-bottom: 40px;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.06);
            animation: fadeInDown 0.8s ease-out;
        }
        
        .post-title {
            font-size: 2.2em;
            font-weight: 600;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 18px;
            line-height: 1.3;
            font-family: "Old English Text MT", "Engravers' Old English BT", "Lato", "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        .post-meta {
            color: #888;
            font-size: 0.9em;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        
        .post-meta::before {
            content: '📖';
            font-size: 1.2em;
        }
        
        .post-meta a {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
            padding: 4px 12px;
            border-radius: 15px;
            background: rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
        }
        
        .post-meta a:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-1px);
        }
        
        .post-content {
            background: #fff;
            padding: 35px;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.06);
            line-height: 1.7;
            color: #333;
            font-size: 1em;
            animation: slideInUp 0.8s ease-out;
            /* 独立合成层，减少快速滚动时重绘导致的白块闪烁 */
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        
        .post-content h1,
        .post-content h2,
        .post-content h3,
        .post-content h4,
        .post-content h5,
        .post-content h6 {
            margin-top: 40px;
            margin-bottom: 20px;
            font-weight: 600;
            color: #333;
            scroll-margin-top: 24px;
        }
        
        .post-content h1 {
            font-size: 2em;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            border-bottom: 3px solid;
            border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
            padding-bottom: 15px;
        }
        
        .post-content h2 {
            font-size: 1.6em;
            color: #667eea;
            border-bottom: 2px solid rgba(102, 126, 234, 0.2);
            padding-bottom: 10px;
        }
        
        .post-content h3 {
            font-size: 1.4em;
            color: #555;
            position: relative;
            padding-left: 20px;
        }
        
        .post-content h3::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 2px;
        }
        
        .post-content p {
            margin-bottom: 20px;
            text-align: justify;
        }
        
        .post-content ul,
        .post-content ol {
            margin-bottom: 20px;
            padding-left: 30px;
        }
        
        .post-content li {
            margin-bottom: 8px;
            line-height: 1.6;
        }
        
        .post-content blockquote {
            border-left: 5px solid #667eea;
            background: rgba(102, 126, 234, 0.05);
            padding: 20px 25px;
            margin: 30px 0;
            border-radius: 0 10px 10px 0;
            font-style: italic;
            color: #555;
            position: relative;
        }
        
        .post-content blockquote::before {
            content: '"';
            font-size: 4em;
            color: rgba(102, 126, 234, 0.2);
            position: absolute;
            top: -10px;
            left: 10px;
            font-family: serif;
        }
        
        .post-content pre {
            background: linear-gradient(135deg, #2d3748, #4a5568);
            color: #e2e8f0;
            padding: 0; /* 移除内边距，让工具栏和代码分别处理 */
            border-radius: 15px;
            margin: 25px 0;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden; /* 防止内容溢出 */
        }
        
        /* 代码块工具栏 - 统一样式（不用 backdrop-filter，避免滚动闪烁） */
        .code-toolbar {
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: #2d3748;
            border-radius: 15px 15px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 20;
            flex-shrink: 0; /* 防止工具栏被压缩 */
        }
        
        /* 代码内容区域 */
        .post-content pre code {
            display: block;
            padding: 20px 25px;
            overflow-x: auto;
            background: transparent;
        }
        
        .code-language {
            color: #a0aec0;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .code-actions {
            display: flex;
            gap: 10px;
        }
        
        .code-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #e2e8f0;
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .code-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }
        
        .code-btn.copied {
            background: #48bb78;
            color: white;
        }
        
        /* 折叠状态 */
        .post-content pre.collapsed {
            max-height: 100px;
            overflow: hidden;
        }
        
        .post-content pre.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(transparent, #2d3748);
            pointer-events: none;
        }
        
        .post-content code {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            padding: 3px 8px;
            border-radius: 6px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-size: 0.9em;
            font-weight: 500;
        }
        
        .post-content pre code {
            background: none;
            color: inherit;
            padding: 0 10px 10px 10px; /* 上0，左右下10 */
            font-size: 0.95em;
        }
        
        .post-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .post-content th,
        .post-content td {
            border: none;
            padding: 15px;
            text-align: left;
        }
        
        .post-content th {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            font-weight: 600;
        }
        
        .post-content tbody tr:nth-child(even) {
            background: rgba(102, 126, 234, 0.05);
        }
        
        /* 图片响应式样式 */
        .post-content img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            margin: 20px auto;  /* 使用auto实现水平居中 */
            display: block;     /* 块级元素才能使用margin auto居中 */
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .post-content img:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
        }
        
        /* 视频样式 */
        .post-content video {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin: 30px auto;
            display: block;
            background: #000;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .post-content video:hover {
            transform: scale(1.01);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        }
        
        .post-content video:focus {
            outline: 3px solid rgba(102, 126, 234, 0.5);
            outline-offset: 2px;
        }
        
        /* 图片放大模态框 */
        .image-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
        }
        
        .image-modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: zoomIn 0.3s ease;
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 10001;
            transition: all 0.3s ease;
        }
        
        .modal-close:hover {
            color: #667eea;
            transform: scale(1.1);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes zoomIn {
            from { 
                opacity: 0;
                transform: scale(0.5);
            }
            to { 
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .post-tags {
            margin-top: 40px;
            padding: 30px;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.06);
            /* 独立合成层，避免快速滚到底时白块闪烁 */
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        
        .post-tags strong {
            color: #667eea;
            font-size: 1.1em;
            margin-bottom: 15px;
            display: block;
        }
        
        .tag {
            display: inline-block;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            color: #495057;
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 0.9em;
            font-weight: 500;
            text-decoration: none;
            margin: 5px 8px 5px 0;
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .tag:hover {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }
        
        .post-nav {
            margin-top: 40px;
            text-align: center;
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        
        .nav-link {
            display: inline-block;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 15px 30px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            font-size: 1em;
            margin: 0 10px;
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        }
        
        /* 宽屏：目录侧栏显示时，隐藏左上角浮动按钮 */
        @media (min-width: 1281px) {
            body.post-toc-active .nav-buttons {
                display: none;
            }

            /* 目录栏是 fixed 不占位，让出它的宽度，正文在剩余区域内居中 */
            body.post-toc-active {
                box-sizing: border-box;
                padding-left: 240px;
            }
        }

        /* 响应式设计 */
        @media (max-width: 1280px) {
            .post-toc {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .post-container {
                padding: 15px;
            }
            
            .post-header {
                padding: 40px 25px;
            }
            
            .post-title {
                font-size: 2.2em;
            }
            
            .post-content {
                padding: 30px 25px;
            }
            
            .post-tags {
                padding: 25px 20px;
            }
            
            .nav-buttons {
                top: 15px;
                left: 15px;
                gap: 8px;
            }
            
            .nav-button {
                padding: 8px 14px;
                font-size: 0.8em;
            }
            
            .post-meta {
                font-size: 0.9em;
                gap: 15px;
            }
            
            .nav-link {
                padding: 12px 24px;
                font-size: 0.9em;
            }
            
            /* 移动端代码内容内边距调整 */
            .post-content pre code {
                padding: 20px 15px;
            }
        }
        
        /* 动画 */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
