        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --primary-light: #a5b4fc;
            --accent: #f59e0b;
            --bg-page: #0f172a;
            --bg-content: #1e293b;
            --bg-card: #334155;
            --text-main: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-light: #64748b;
            --border: #475569;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
            --radius: 16px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
            background: var(--bg-page);
            color: var(--text-main);
            line-height: 1.8;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        /* 阅读进度条 */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            z-index: 1000;
            width: 0%;
            transition: width 0.1s;
        }

        .container {
            width: min(1200px, calc(100% - 32px));
            margin: 0 auto;
        }

        .header {
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 14px 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 18px;
        }

        .logo-text {
            font-size: 20px;
            font-weight: 700;
            background: linear-gradient(90deg, var(--primary-light), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav {
            display: flex;
            gap: 28px;
        }

        .nav a {
            font-size: 14px;
            color: var(--text-secondary);
            transition: all 0.2s;
            position: relative;
        }

        .nav a::after {
            content: "";
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.2s;
        }

        .nav a:hover {
            color: var(--text-main);
        }

        .nav a:hover::after {
            width: 100%;
        }

        /* 布局：侧边栏在左侧 */
        .layout-grid {
            display: grid;
            grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
            gap: 28px;
            padding-top: 28px;
        }

        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: sticky;
            top: 80px;
            align-self: start;
        }

        .widget {
            background: var(--bg-content);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            padding: 24px;
        }

        .widget-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .widget-title::before {
            content: "";
            width: 4px;
            height: 16px;
            background: var(--primary);
            border-radius: 2px;
        }

        .tags-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tags-list a {
            padding: 6px 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .tags-list a:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        .rank-list {
            list-style: none;
            counter-reset: rank;
        }

        .rank-list li {
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }

        .rank-list li:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

        .rank-list li::before {
            counter-increment: rank;
            content: counter(rank);
            min-width: 22px;
            height: 22px;
            background: var(--bg-card);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-light);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .rank-list li:nth-child(1)::before,
        .rank-list li:nth-child(2)::before,
        .rank-list li:nth-child(3)::before {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
        }

        .rank-list a {
            font-size: 14px;
            color: var(--text-main);
            line-height: 1.5;
            transition: color 0.2s;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .rank-list a:hover {
            color: var(--primary-light);
        }

        /* 主内容区 */
        .main-area {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        /* 文章封面 */
        .article-cover {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            aspect-ratio: 16/9;
        }

        .article-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .article-cover-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 60px 32px 28px;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
        }

        .article-cover-category {
            display: inline-block;
            padding: 4px 12px;
            background: var(--primary);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .article-cover-title {
            font-size: clamp(24px, 4vw, 32px);
            font-weight: 800;
            line-height: 1.3;
        }

        /* 作者信息栏 */
        .author-bar {
            background: var(--bg-content);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            padding: 20px 24px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .author-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 18px;
            font-weight: 700;
            flex-shrink: 0;
        }

        .author-info {
            flex: 1;
        }

        .author-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 2px;
        }

        .author-meta {
            font-size: 13px;
            color: var(--text-light);
            display: flex;
            gap: 16px;
        }

        .author-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .follow-btn {
            padding: 8px 20px;
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary-light);
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .follow-btn:hover {
            background: var(--primary);
            color: #fff;
        }

        /* 文章内容 */
        .article-content {
            background: var(--bg-content);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            padding: 40px;
        }

        .article-body {
            font-size: 16px;
            color: var(--text-main);
            line-height: 2;
        }

        .article-body p {
            margin-bottom: 1.8em;
            text-indent: 2em;
        }

        .article-body h2 {
            font-size: 22px;
            font-weight: 700;
            margin: 2.5em 0 1.2em;
            color: var(--text-main);
            padding-left: 16px;
            border-left: 4px solid var(--primary);
        }

        .article-body h3 {
            font-size: 18px;
            font-weight: 600;
            margin: 2em 0 1em;
            color: var(--text-main);
        }

        .article-body img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 2em 0;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }

        .article-body blockquote {
            margin: 2em 0;
            padding: 20px 24px;
            background: var(--bg-card);
            border-left: 4px solid var(--accent);
            border-radius: 0 12px 12px 0;
            color: var(--text-secondary);
            quotes: none;
        }

        .article-body blockquote::before,
        .article-body blockquote::after {
            content: "";
        }

        .article-body strong {
            color: var(--accent);
            font-weight: 600;
        }

        .article-body a {
            color: var(--primary-light);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .article-body a:hover {
            color: var(--accent);
        }

        /* 行动号召 */
        .action-box {
            margin: 48px 0;
            padding: 32px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(245, 158, 11, 0.1));
            border: 1px solid var(--border);
            border-radius: var(--radius);
            text-align: center;
        }

        .action-box h3 {
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text-main);
        }

        .action-box p {
            text-indent: 0;
            color: var(--text-secondary);
            margin-bottom: 20px;
            font-size: 14px;
        }

        .btn-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 32px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
            font-weight: 600;
            font-size: 15px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
            transition: all 0.3s ease;
        }

        .btn-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
        }

        /* 文章标签 */
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
            margin-top: 32px;
        }

        .article-tags a {
            padding: 6px 14px;
            background: var(--bg-card);
            border-radius: 999px;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .article-tags a:hover {
            background: var(--primary);
            color: #fff;
        }

        /* 相关文章卡片 */
        .related-section {
            margin-top: 32px;
        }

        .related-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .related-title::before {
            content: "";
            width: 4px;
            height: 20px;
            background: var(--accent);
            border-radius: 2px;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .related-card {
            background: var(--bg-content);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            overflow: hidden;
            transition: all 0.3s;
        }

        .related-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow);
            border-color: var(--primary);
        }

        .related-card-image {
            aspect-ratio: 16/10;
            overflow: hidden;
        }

        .related-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .related-card:hover .related-card-image img {
            transform: scale(1.05);
        }

        .related-card-body {
            padding: 16px;
        }

        .related-card-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            line-height: 1.5;
            margin-bottom: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .related-card-meta {
            font-size: 12px;
            color: var(--text-light);
        }

        /* Footer */
        .footer {
            background: var(--bg-content);
            border-top: 1px solid var(--border);
            margin-top: 48px;
            padding: 40px 0;
        }

        .footer-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            font-size: 14px;
            color: var(--text-light);
        }

        .footer-links {
            display: flex;
            gap: 24px;
        }

        .footer-links a {
            color: var(--text-secondary);
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--primary-light);
        }

        @media (max-width: 1024px) {
            .related-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .layout-grid {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                position: static;
                order: -1;
            }
            
            .article-content {
                padding: 24px;
            }
            
            .article-cover-overlay {
                padding: 40px 20px 20px;
            }
            
            .related-grid {
                grid-template-columns: 1fr;
            }
            
            .nav {
                display: none;
            }
            
            .author-bar {
                flex-wrap: wrap;
            }
            
            .author-info {
                flex: none;
                width: calc(100% - 64px);
            }
        }
