* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary-color: #2563eb;
            --secondary-color: #7c3aed;
            --accent-color: #10b981;
            --light-color: #f8fafc;
            --dark-color: #1e293b;
            --gray-color: #64748b;
            --light-gray: #e2e8f0;
            --border-radius: 8px;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
            --content-width: 800px;
            --header-height: 70px;
        }
        
        body {
            font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
            color: var(--dark-color);
            line-height: 1.8;
            background-color: #f9fafb;
        }
        
        
        /* 顶部导航栏 */
        .top-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            z-index: 1000;
            display: flex;
            align-items: center;
        }
        
        .top-header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
        
        
        
        .back-btn {
            background-color: var(--light-color);
            border: 1px solid var(--light-gray);
            border-radius: var(--border-radius);
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--dark-color);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .back-btn:hover {
            background-color: var(--light-gray);
        }
        
        /* 阅读进度条 */
        .reading-progress {
            position: fixed;
            top: var(--header-height);
            left: 0;
            width: 100%;
            height: 4px;
            background-color: transparent;
            z-index: 999;
        }
        
        .reading-progress-bar {
            height: 100%;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            width: 0%;
            transition: width 0.3s ease;
        }
        
        /* 文章主体 */
        main {
            margin-top: calc(var(--header-height) + 40px);
            display: flex;
            gap: 40px;
        }
        
        /* 侧边目录导航 */
        .toc-sidebar {
            position: sticky;
            top: calc(var(--header-height) + 40px);
            width: 240px;
            height: fit-content;
            flex-shrink: 0;
            /*max-height: calc(100vh - 120px);*/
            overflow-y: auto;
            padding: 20px 0;
        }
        
        .toc-sidebar h3 {
            font-size: 16px;
            margin-bottom: 16px;
            color: var(--dark-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .toc-sidebar h3 i {
            color: var(--primary-color);
        }
        
        .toc-list {
            list-style: none;
            padding-left: 0;
        }
        
        .toc-list li {
            margin-bottom: 12px;
            position: relative;
            padding-left: 16px;
        }
        
        .toc-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: var(--light-gray);
            transition: var(--transition);
        }
        
        .toc-list li.active::before {
            background-color: var(--primary-color);
        }
        
        .toc-list a {
            color: var(--gray-color);
            text-decoration: none;
            font-size: 15px;
            transition: var(--transition);
            display: block;
            line-height: 1.5;
        }
        
        .toc-list li.active a,
        .toc-list a:hover {
            color: var(--primary-color);
        }
        
        .toc-list .h2 {
            font-weight: 600;
        }
        
        .toc-list .h3 {
            padding-left: 16px;
            font-size: 14px;
        }
        
        /* 文章内容区域 */
        .article-container {
            flex: 1;
            max-width: var(--content-width);
            margin: 100px auto;
        }
        
        .article-header {
            margin-bottom: 40px;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .article-category {
            display: inline-block;
            background-color: var(--light-color);
            color: var(--primary-color);
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 16px;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .article-category:hover {
            background-color: var(--primary-color);
            color: white;
        }
        
        .article-title {
            font-size: 38px;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 20px;
            color: var(--dark-color);
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            color: var(--gray-color);
            font-size: 15px;
        }
        
        .article-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .article-meta i {
            font-size: 16px;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: var(--primary-color);
            margin-right: 10px;
        }
        
        /* 文章正文 */
        .article-content {
            font-size: 18px;
            line-height: 1.9;
            color: #2d3748;
        }
        
        .article-content > * {
            margin-bottom: 28px;
        }
        
        .article-content h2 {
            font-size: 28px;
            font-weight: 700;
            margin-top: 48px;
            margin-bottom: 20px;
            color: var(--dark-color);
            padding-bottom: 10px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .article-content h3 {
            font-size: 22px;
            font-weight: 600;
            margin-top: 36px;
            margin-bottom: 16px;
            color: var(--dark-color);
        }
        
        .article-content p {
            margin-bottom: 28px;
        }
        
        .article-content blockquote {
            border-left: 4px solid var(--primary-color);
            padding-left: 24px;
            margin: 32px 0;
            font-style: italic;
            color: var(--gray-color);
            background-color: var(--light-color);
            padding: 20px 24px;
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }
        
        .article-content ul, .article-content ol {
            padding-left: 24px;
            margin-bottom: 28px;
        }
        
        .article-content li {
            margin-bottom: 8px;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: var(--border-radius);
            margin: 32px 0;
            box-shadow: var(--shadow);
        }
        
        .article-content .image-caption {
            text-align: center;
            font-size: 15px;
            color: var(--gray-color);
            margin-top: -20px;
            margin-bottom: 32px;
        }
        
        .article-content code {
            background-color: var(--light-color);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            font-size: 16px;
        }
        
        .article-content pre {
            background-color: #1e293b;
            color: #e2e8f0;
            padding: 24px;
            border-radius: var(--border-radius);
            overflow-x: auto;
            margin: 32px 0;
            font-family: 'Courier New', monospace;
            font-size: 16px;
            line-height: 1.6;
        }
        
        /* 文章标签 */
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 40px 0;
            padding-top: 30px;
            border-top: 1px solid var(--light-gray);
        }
        
        .article-tag {
            background-color: var(--light-color);
            color: var(--gray-color);
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 14px;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .article-tag:hover {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* 文章操作栏 */
        .article-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 40px 0;
            padding: 20px 0;
            border-top: 1px solid var(--light-gray);
            border-bottom: 1px solid var(--light-gray);
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: var(--light-color);
            border: 1px solid var(--light-gray);
            border-radius: var(--border-radius);
            padding: 10px 18px;
            color: var(--dark-color);
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
        }
        
        .action-btn:hover {
            background-color: var(--light-gray);
        }
        
        .action-btn.liked {
            color: #ef4444;
        }
        
        .article-share {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--light-color);
            border: 1px solid var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-color);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .share-btn:hover {
            background-color: var(--light-gray);
            transform: translateY(-3px);
        }
        
        /* 上一篇下一篇导航 */
        .article-navigation {
            display: flex;
            justify-content: space-between;
            margin: 40px 0 60px;
        }
        
        /* 作者信息卡片 */
        .author-card {
            background-color: white;
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            margin: 60px 0;
            display: flex;
            align-items: center;
            gap: 24px;
        }
        
        .author-avatar.large {
            width: 80px;
            height: 80px;
            font-size: 24px;
            flex-shrink: 0;
        }
        
        .author-info h3 {
            font-size: 20px;
            margin-bottom: 8px;
            color: var(--dark-color);
        }
        
        .author-info p {
            color: var(--gray-color);
            margin-bottom: 16px;
            font-size: 16px;
        }
        
        .author-social {
            display: flex;
            gap: 12px;
        }
        
        .author-social a {
            color: var(--gray-color);
            font-size: 18px;
            transition: var(--transition);
        }
        
        .author-social a:hover {
            color: var(--primary-color);
        }
        
        /* 相关文章 */
        .related-articles {
            margin: 60px 0;
        }
        
        .related-articles h2 {
            font-size: 24px;
            margin-bottom: 30px;
            color: var(--dark-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .related-articles h2 i {
            color: var(--primary-color);
        }
        
        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 24px;
        }
        
        .related-article {
            background-color: white;
            border-radius: var(--border-radius);
            padding: 24px;
            box-shadow: var(--shadow);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .related-article:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }
        
        .related-article h3 {
            font-size: 18px;
            margin-bottom: 12px;
            color: var(--dark-color);
            line-height: 1.5;
        }
        
        .related-article p {
            color: var(--gray-color);
            font-size: 15px;
            line-height: 1.6;
        }
        
        /* 页脚 */
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 60px 0 30px;
            margin-top: 80px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-section h3 {
            font-size: 18px;
            margin-bottom: 20px;
            color: white;
        }
        
        .footer-section p {
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.8;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .toc-sidebar {
                display: none;
            }
            
            .article-title {
                font-size: 32px;
            }
        }
        
        @media (max-width: 768px) {
            .article-title {
                font-size: 28px;
            }
            
            .article-content {
                font-size: 17px;
            }
            
            .article-content h2 {
                font-size: 24px;
            }
            
            .article-content h3 {
                font-size: 20px;
            }
            
            .article-actions {
                flex-direction: column;
                gap: 20px;
                align-items: flex-start;
            }
            
            .article-navigation {
                flex-direction: column;
                gap: 20px;
            }
            
            .nav-item {
                width: 100%;
            }
            
            .author-card {
                flex-direction: column;
                text-align: center;
            }
        }
        
        @media (max-width: 576px) {
            .article-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .related-grid {
                grid-template-columns: 1fr;
            }
        }