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

        html {
            scroll-behavior: smooth;
            overflow-y: auto;
        }

        /* 隐藏浏览器滚动条，保留滚动功能 */
        html::-webkit-scrollbar {
            display: none;
        }

        html {
            scrollbar-width: none;
        }

        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 16px;
            color: var(--dark);
            line-height: 1.8;
            background: var(--white);
        }

        /* Navigation */
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            z-index: 1000;
            padding: 14px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 22px;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
        }

        .nav-logo i {
            font-size: 28px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-links {
            display: flex;
            gap: 32px;
        }

        .nav-links a {
            color: var(--gray);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }

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

        .nav-links a.active {
            color: var(--primary);
        }

        .nav-cta {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            padding: 10px 24px;
            border-radius: 25px;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
        }

        /* Article Header */
        .article-header {
            padding: 140px 24px 60px;
            background: linear-gradient(160deg, #F0F7FF 0%, #F5FFFC 100%);
            text-align: center;
        }

        .article-category {
            display: inline-block;
            padding: 6px 16px;
            background: rgba(0, 102, 255, 0.1);
            color: var(--primary);
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 20px;
        }

        .article-title {
            font-size: clamp(28px, 5vw, 42px);
            font-weight: 800;
            line-height: 1.3;
            max-width: 800px;
            margin: 0 auto 20px;
        }

        .article-meta {
            display: flex;
            justify-content: center;
            gap: 24px;
            color: var(--gray-light);
            font-size: 14px;
        }

        .article-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Article Cover Image */
        .article-cover {
            max-width: 1000px;
            margin: -30px auto 0;
            padding: 0 24px;
            position: relative;
            z-index: 10;
        }

        .article-cover img {
            width: 100%;
            height: auto;
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        }

        /* Article Content */
        .article-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 60px 24px;
        }

        .article-content h2 {
            font-size: 24px;
            font-weight: 700;
            margin: 40px 0 20px;
            color: var(--dark);
            border-left: 4px solid var(--primary);
            padding-left: 16px;
        }

        .article-content h3 {
            font-size: 20px;
            font-weight: 600;
            margin: 30px 0 16px;
            color: var(--dark);
        }

        .article-content p {
            margin-bottom: 20px;
            color: var(--gray);
        }

        .article-content ul,
        .article-content ol {
            margin-bottom: 20px;
            padding-left: 24px;
            color: var(--gray);
        }

        .article-content li {
            margin-bottom: 12px;
        }

        .article-content strong {
            color: var(--dark);
            font-weight: 600;
        }

        .article-content blockquote {
            border-left: 4px solid var(--primary);
            background: var(--light-gray);
            padding: 20px 24px;
            margin: 24px 0;
            border-radius: 0 12px 12px 0;
            font-style: italic;
            color: var(--gray);
        }

        .article-image {
            width: 100%;
            border-radius: 16px;
            margin: 32px 0;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        }

        .highlight-box {
            background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 196, 140, 0.08) 100%);
            border-radius: 16px;
            padding: 24px;
            margin: 32px 0;
            border: 1px solid rgba(0, 102, 255, 0.1);
        }

        .highlight-box h4 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--primary);
        }

        .pain-point {
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.03) 100%);
            border-radius: 16px;
            padding: 24px;
            margin: 24px 0;
            border-left: 4px solid var(--accent);
        }

        .pain-point h3 {
            color: var(--accent);
            margin-top: 0;
        }

        .conclusion-box {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 20px;
            padding: 32px;
            margin: 40px 0;
            text-align: center;
            color: var(--white);
        }

        .conclusion-box h3 {
            color: var(--white);
            font-size: 24px;
            margin-bottom: 16px;
        }

        .conclusion-box p {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 0;
        }

        /* Article Tags */
        .article-tags {
            margin-top: 40px;
            padding-top: 24px;
            border-top: 1px solid var(--light-gray);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .article-tag {
            display: inline-block;
            padding: 6px 14px;
            background: var(--light-gray);
            color: var(--gray);
            border-radius: 20px;
            font-size: 13px;
            text-decoration: none;
            transition: all 0.2s;
        }

        .article-tag:hover {
            background: var(--primary);
            color: var(--white);
        }

        /* Related Articles */
        .related-articles {
            background: var(--light-gray);
            padding: 60px 24px;
        }

        .related-articles h3 {
            font-size: 24px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 40px;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .related-card {
            background: var(--white);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
            text-decoration: none;
        }

        .related-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .related-card-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
        }

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

        .related-card-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            padding: 80px 24px;
            text-align: center;
            color: var(--white);
        }

        .cta-section h2 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .cta-section p {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 24px;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--white);
            color: var(--primary);
            padding: 14px 28px;
            border-radius: 30px;
            text-decoration: none;
            font-size: 15px;
            font-weight: 700;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 60px 24px 40px;
            text-align: center;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 16px;
        }

        .footer-logo i {
            font-size: 28px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 24px;
            margin-bottom: 32px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 14px;
        }

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

        .footer-copyright {
            font-size: 13px;
            opacity: 0.6;
        }

        /* Floating WeChat */
        .floating-wechat {
            position: fixed;
            right: 30px;
            bottom: 30px;
            z-index: 999;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .floating-wechat-qr {
            width: 70px;
            background: var(--white);
            border-radius: 16px;
            padding: 8px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .floating-wechat-qr img {
            width: 100%;
            height: auto;
            display: block;
        }

        .floating-wechat-text {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            user-select: none;
        }

        /* Back to top */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 998;
        }

        .back-to-top.visible {
            opacity: 1;
        }

        /* Delete & Logout Buttons */
        .delete-btn, .logout-btn {
            position: fixed;
            bottom: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 18px;
            z-index: 999;
        }

        .delete-btn {
            right: 30px;
            background: #e74c3c;
            color: #fff;
            box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
        }

        .delete-btn:hover { background: #c0392b; }

        .logout-btn {
            right: 90px;
            background: #e74c3c;
            color: #fff;
            box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
        }

        .logout-btn:hover { background: #c0392b; }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            .nav-mobile-toggle {
                display: block;
            }
            .article-meta {
                flex-direction: column;
                gap: 8px;
            }
            .article-cover {
                margin-top: -20px;
            }
            .article-cover img {
                border-radius: 16px;
            }
            .article-container {
                padding: 40px 16px;
            }
            .article-content h2 {
                font-size: 20px;
            }
            .related-grid {
                grid-template-columns: 1fr;
            }
            .floating-wechat {
                right: 16px;
                bottom: 16px;
            }
            .floating-wechat-qr {
                width: 56px;
            }
            .back-to-top {
                right: 16px;
                bottom: 16px;
                width: 44px;
                height: 44px;
            }
        }
    

/* === 文章详情页布局 === */
.article-layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 24px;
}

.article-media {
    position: relative;
    width: 45%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-media img {
    width: 100%;
    height: auto;
    display: block;
}

.article-detail-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.article-detail-text h2 {
    font-size: 18px;
    color: #1A1A1A;
    margin: 16px 0 8px;
    padding-left: 12px;
    border-left: 4px solid #FF4D4D;
}

.article-detail-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 8px 0;
}

.article-detail-text strong {
    color: #FF4D4D;
    font-weight: 600;
}

.article-detail-tags {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.article-detail-tag {
    background: #FFF0F0;
    color: #FF4D4D;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.article-detail-interaction {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
}

.article-detail-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.article-detail-btn:hover {
    border-color: #FF4D4D;
    color: #FF4D4D;
}

.article-detail-btn.liked {
    background: #FFF0F0;
    border-color: #FF4D4D;
    color: #FF4D4D;
}

    
        :root {
            --primary: #FF4D4D;
            --primary-light: #FF6B6B;
            --primary-dark: #E63E3E;
            --secondary: #FF9500;
            --accent: #FF5722;
            --dark: #1A1A1A;
            --gray: #666666;
            --gray-light: #999999;
            --light-gray: #F5F5F5;
            --white: #FFFFFF;
            --gradient-primary: linear-gradient(135deg, #FF4D4D 0%, #FF8E8E 100%);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
        }

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

        html {
            scroll-behavior: smooth;
            overflow-y: auto;
        }

        /* 隐藏浏览器滚动条，保留滚动功能 */
        html::-webkit-scrollbar {
            display: none;
        }

        html {
            scrollbar-width: none;
        }

        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 14px;
            color: var(--dark);
            line-height: 1.6;
            background: var(--light-gray);
            min-height: 100vh;
        }

        body.modal-open {
            overflow: hidden;
        }

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

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* ===== 整体布局 ===== */
        .page-wrapper {
            display: flex;
            min-height: 100vh;
        }

        /* ===== 左侧导航（桌面端宽侧边栏） ===== */
        .left-sidebar {
            width: 0;
            overflow: hidden;
            transition: width 0.3s ease;
        }

        .left-sidebar-expanded {
            width: var(--sidebar-width);
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            background: var(--white);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 24px 16px;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
            z-index: 100;
        }

        .left-logo {
            width: 56px;
            height: 56px;
            background: var(--gradient-primary);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 32px;
            cursor: pointer;
            text-decoration: none;
        }

        .left-logo i {
            font-size: 26px;
            color: var(--white);
        }

        .left-nav-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .left-nav-item {
            width: 100%;
            height: 48px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 16px;
            border-radius: 12px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }

        .left-nav-item i {
            font-size: 20px;
            width: 24px;
            text-align: center;
        }

        .left-nav-item:hover,
        .left-nav-item.active {
            background: rgba(255, 77, 77, 0.1);
            color: var(--primary);
        }

        .left-nav-item.active {
            font-weight: 600;
        }

        .sidebar-footer {
            width: 100%;
            text-align: center;
            padding-top: 16px;
            border-top: 1px solid var(--light-gray);
        }

        .sidebar-footer a {
            font-size: 11px;
            color: var(--gray-light);
            text-decoration: none;
        }

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

        .sidebar-copyright {
            font-size: 10px;
            color: var(--gray-light);
            margin-top: 6px;
        }

        /* ===== 主内容区 ===== */
        .main-area {
            flex: 1;
            padding: 0;
            padding-bottom: 40px;
            transition: margin-left 0.3s ease;
        }

        /* ===== 顶部工具栏（标签+搜索） ===== */
        .top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            background: var(--white);
            border-bottom: 1px solid var(--light-gray);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .top-nav {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-shrink: 0;
        }

        .top-nav-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 32px;
            padding: 0 8px;
            font-size: 13px;
            color: var(--gray);
            text-decoration: none;
            transition: color 0.2s;
            white-space: nowrap;
            box-sizing: border-box;
        }

        .top-nav-btn:hover {
            color: var(--primary);
        }

        .category-tabs {
            display: flex;
            gap: 4px;
            overflow-x: auto;
            flex: 1;
            min-width: 0;
        }

        .category-tabs::-webkit-scrollbar {
            display: none;
        }

        .category-tab {
            flex-shrink: 0;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            border-radius: 16px;
        }

        .category-tab:hover {
            color: var(--primary);
            background: rgba(255, 77, 77, 0.05);
        }

        .category-tab.active {
            background: var(--primary);
            color: var(--white);
        }

        .search-bar {
            width: 100%;
            max-width: 280px;
            flex-shrink: 0;
        }

        .search-dropdown {
            position: relative;
        }

        .search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-icon {
            position: absolute;
            left: 12px;
            color: var(--gray-light);
            font-size: 13px;
        }

        .search-arrow {
            position: absolute;
            right: 46px;
            color: var(--gray-light);
            font-size: 12px;
            transition: transform 0.2s;
            pointer-events: none;
        }

        .search-arrow.open {
            transform: rotate(180deg);
        }

        .search-input {
            width: 100%;
            padding: 6px 46px 6px 34px;
            border: 1px solid #EEE;
            border-radius: 18px;
            font-size: 13px;
            line-height: 20px;
            background: var(--light-gray);
            outline: none;
            transition: all 0.2s;
            cursor: text;
        }

        .search-input:focus {
            border-color: var(--primary);
            background: var(--white);
        }

        .search-btn {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: center;
            line-height: 22px;
            font-size: 0;
            padding: 0;
        }

        .search-btn::before {
            content: '';
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid var(--primary);
            border-radius: 50%;
            position: relative;
            vertical-align: middle;
        }

        .search-btn::after {
            content: '';
            display: inline-block;
            width: 2px;
            height: 8px;
            background: var(--primary);
            border-radius: 1px;
            position: absolute;
            bottom: 2px;
            right: 2px;
            transform: rotate(-45deg);
            transform-origin: bottom right;
        }

        .search-btn:active {
            opacity: 0.7;
        }

        .search-menu {
            display: none;
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            background: var(--white);
            border: 1px solid #EEE;
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            z-index: 1000;
            overflow: hidden;
        }

        .search-menu.open {
            display: block;
        }

        .search-menu-item {
            padding: 10px 16px;
            font-size: 14px;
            color: var(--dark);
            cursor: pointer;
            transition: background 0.2s;
        }

        .search-menu-item:hover {
            background: var(--light-gray);
            color: var(--primary);
        }

        /* ===== 内容区域 ===== */
        .content-area {
            padding: 16px;
        }

        /* ===== 瀑布流内容区 ===== */
        .waterfall-container {
            position: relative;
            width: 100%;
        }

        .waterfall-column {
            position: absolute;
            top: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* ===== 瀑布流卡片 ===== */
        .note-card {
            background: var(--white);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .note-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .note-card-image {
            position: relative;
            width: 100%;
            background: #f0f0f0;
            overflow: hidden;
        }

        .note-card-image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .note-card-tag {
            position: absolute;
            top: 6px;
            left: 6px;
            padding: 2px 6px;
            background: rgba(255, 77, 77, 0.9);
            color: var(--white);
            font-size: 9px;
            font-weight: 600;
            border-radius: 3px;
        }

        .note-card-video-icon {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 20px;
            height: 20px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 8px;
        }

        .note-card-multi {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 9px;
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .note-card-content {
            padding: 8px;
        }

        .note-card-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.4;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .note-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .note-card-author {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .note-card-avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            object-fit: cover;
        }

        .note-card-name {
            font-size: 10px;
            color: var(--gray);
        }

        .note-card-stats {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .note-card-stat {
            display: flex;
            align-items: center;
            gap: 2px;
            font-size: 10px;
            color: var(--gray-light);
        }

        .note-card-stat i {
            font-size: 10px;
        }

        
        /* ===== 悬浮按钮 ===== */
        .floating-wechat {
            position: fixed;
            right: 16px;
            bottom: 16px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .floating-wechat-qr {
            width: 44px;
            background: var(--white);
            border-radius: 10px;
            padding: 4px;
            box-shadow: var(--shadow-md);
        }

        .floating-wechat-qr img {
            width: 100%;
            height: auto;
        }

        .floating-wechat-text {
            background: var(--primary);
            color: var(--white);
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .back-to-top {
            position: fixed;
            right: 16px;
            bottom: 80px;
            width: 36px;
            height: 36px;
            background: var(--white);
            color: var(--gray);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 99;
            border: none;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--primary);
            color: var(--white);
        }

        /* ===== 文章详情弹窗 ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 2000;
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.open {
            display: flex;
            opacity: 1;
        }

        .article-modal {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
            max-height: 90vh;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid var(--light-gray);
        }

        .modal-author {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .modal-author-info {
            display: flex;
            flex-direction: column;
        }

        .modal-author-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--dark);
        }

        .modal-author-follow {
            font-size: 12px;
            color: var(--primary);
            cursor: pointer;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--light-gray);
            color: var(--gray);
            border: none;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: var(--gray);
            color: var(--white);
        }

        /* 字体大小控制按钮 */
        .font-size-controls {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            margin-right: 12px;
        }

        .font-size-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            background: var(--light-gray);
            color: var(--gray);
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .font-size-btn:hover {
            background: var(--primary);
            color: var(--white);
        }

        .font-size-btn.active {
            background: var(--primary);
            color: var(--white);
        }

        .modal-body {
            flex: 1;
            display: flex;
            min-height: 0;
            align-items: stretch;
        }

        .modal-media {
            position: relative;
            width: 30vw;
            flex-shrink: 0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: center;
        }

        .modal-media img {
            width: 100%;
            height: auto;
            object-fit: contain;
            transition: opacity 0.2s ease;
            cursor: zoom-in;
            display: block;
        }

        .media-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
        }

        .media-nav:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .media-nav.prev {
            left: 16px;
        }

        .media-nav.next {
            right: 16px;
        }

        .media-nav.visible {
            display: flex;
        }

        .media-dots {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            gap: 8px;
        }

        .media-dots.visible {
            display: flex;
        }

        .media-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
        }

        .media-dot.active {
            background: white;
        }

        .modal-content {
            width: 30vw;
            flex-shrink: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #c1c1c1 #f1f1f1;
            scrollbar-gutter: stable;
        }

        .modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }

        /* 内容可完整显示时隐藏滚动条 */
        .modal-content.no-scroll {
            overflow-y: hidden;
        }

        .modal-content.no-scroll::-webkit-scrollbar {
            width: 0;
        }

        .modal-content::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.4;
            margin-bottom: 12px;
            transition: font-size 0.2s;
            flex-shrink: 0;
        }

        .modal-text {
            font-size: 14px;
            color: var(--gray);
            line-height: 1.8;
            margin-bottom: 16px;
            flex-shrink: 0;
            transition: font-size 0.2s;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .modal-text h2 {
            font-size: 16px;
            font-weight: 700;
            color: var(--dark);
            margin: 20px 0 12px 0;
            padding-left: 10px;
            border-left: 3px solid var(--primary);
        }

        .modal-text h2:first-child {
            margin-top: 0;
        }

        .modal-text h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--dark);
            margin: 16px 0 8px 0;
        }

        .modal-text p {
            margin: 10px 0;
            line-height: 1.7;
        }

        .modal-text strong {
            color: var(--primary-dark);
        }

        .modal-text hr {
            border: none;
            border-top: 1px solid var(--light-gray);
            margin: 16px 0;
        }

        .modal-text img {
            width: 100%;
            border-radius: var(--radius-sm);
            margin: 12px 0;
        }

        /* 正文列表样式 */
        .modal-text ul, .modal-text ol {
            margin: 8px 0;
            padding-left: 20px;
        }

        .modal-text li {
            margin: 4px 0;
        }

        /* 字体大小状态 */
        .modal-title.font-small { font-size: 16px; }
        .modal-title.font-medium { font-size: 18px; }
        .modal-title.font-large { font-size: 20px; }
        .modal-title.font-xlarge { font-size: 22px; }

        .modal-text.font-small { font-size: 12px; }
        .modal-text.font-medium { font-size: 14px; }
        .modal-text.font-large { font-size: 16px; }
        .modal-text.font-xlarge { font-size: 18px; }

        .modal-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .modal-tag {
            font-size: 13px;
            color: var(--primary);
        }

        .modal-meta {
            font-size: 12px;
            color: var(--gray-light);
            margin-bottom: 20px;
        }

        .modal-comments-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 16px;
        }

        .modal-comment {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }

        .modal-comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .modal-comment-content {
            flex: 1;
        }

        .modal-comment-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 2px;
        }

        .modal-comment-text {
            font-size: 13px;
            color: var(--gray);
            line-height: 1.5;
        }

        .modal-comment-time {
            font-size: 11px;
            color: var(--gray-light);
            margin-top: 4px;
        }

        .modal-interaction {
            display: flex;
            gap: 8px;
            padding: 16px 0;
            border-top: 1px solid var(--light-gray);
            margin-top: auto;
        }

        .modal-interaction-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 12px;
            background: var(--light-gray);
            border: none;
            border-radius: 8px;
            font-size: 14px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
        }

        .modal-interaction-btn:hover {
            background: rgba(255, 77, 77, 0.1);
            color: var(--primary);
        }

        .modal-interaction-btn.active {
            background: rgba(255, 77, 77, 0.1);
            color: var(--primary);
        }

        .modal-interaction-btn i {
            font-size: 16px;
        }

        /* ===== 图片放大 Lightbox ===== */
        .lightbox-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            cursor: pointer;
        }

        .lightbox-overlay.active {
            display: flex;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            z-index: 3010;
            transition: transform 0.2s;
        }

        .lightbox-close:hover {
            transform: scale(1.2);
        }

        .lightbox-overlay img {
            max-width: 90vw;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        }

        .lightbox-hint {
            position: absolute;
            bottom: 20px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .left-sidebar-expanded {
                display: none;
            }

            .main-area {
                padding: 12px 10px;
            }

            .top-bar {
                flex-wrap: wrap;
                gap: 8px;
            }

            .top-nav-desktop {
                display: flex;
                gap: 8px;
                align-items: center;
                flex-shrink: 0;
            }

            .category-tabs {
                display: none;
            }

            .search-bar {
                order: 1;
                width: 100%;
            }

            .search-input {
                width: 100%;
            }
        }

        @media (min-width: 769px) {
            :root {
                --sidebar-width: 200px;
            }

            .main-area {
                margin-left: var(--sidebar-width);
            }
        }

        @media (max-width: 480px) {
            .note-card-content {
                padding: 6px;
            }

            .note-card-title {
                font-size: 11px;
            }

            .search-bar {
                margin-bottom: 12px;
            }

            .category-tabs {
                margin-bottom: 12px;
            }

            .category-tab {
                padding: 6px 12px;
                font-size: 13px;
            }
        }

        /* ===== 动画 ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .note-card {
            opacity: 0;
            animation: fadeInUp 0.4s ease forwards;
        }

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

        html {
            scroll-behavior: smooth;
            overflow-y: auto;
        }

        /* 隐藏浏览器滚动条，保留滚动功能 */
        html::-webkit-scrollbar {
            display: none;
        }

        html {
            scrollbar-width: none;
        }

        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 14px;
            color: var(--dark);
            line-height: 1.6;
            background: var(--light-gray);
            min-height: 100vh;
        }

        body.modal-open {
            overflow: hidden;
        }

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

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* ===== 整体布局 ===== */
        .page-wrapper {
            display: flex;
            min-height: 100vh;
        }

        /* ===== 左侧导航（桌面端宽侧边栏） ===== */
        .left-sidebar {
            width: 0;
            overflow: hidden;
            transition: width 0.3s ease;
        }

        .left-sidebar-expanded {
            width: var(--sidebar-width);
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            background: var(--white);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 24px 16px;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
            z-index: 100;
        }

        .left-logo {
            width: 56px;
            height: 56px;
            background: var(--gradient-primary);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 32px;
            cursor: pointer;
            text-decoration: none;
        }

        .left-logo i {
            font-size: 26px;
            color: var(--white);
        }

        .left-nav-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .left-nav-item {
            width: 100%;
            height: 48px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 16px;
            border-radius: 12px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }

        .left-nav-item i {
            font-size: 20px;
            width: 24px;
            text-align: center;
        }

        .left-nav-item:hover,
        .left-nav-item.active {
            background: rgba(255, 77, 77, 0.1);
            color: var(--primary);
        }

        .left-nav-item.active {
            font-weight: 600;
        }

        .sidebar-footer {
            width: 100%;
            text-align: center;
            padding-top: 16px;
            border-top: 1px solid var(--light-gray);
        }

        .sidebar-footer a {
            font-size: 11px;
            color: var(--gray-light);
            text-decoration: none;
        }

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

        .sidebar-copyright {
            font-size: 10px;
            color: var(--gray-light);
            margin-top: 6px;
        }

        /* ===== 主内容区 ===== */
        .main-area {
            flex: 1;
            padding: 0;
            padding-bottom: 40px;
            transition: margin-left 0.3s ease;
        }

        /* ===== 顶部工具栏（标签+搜索） ===== */
        .top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            background: var(--white);
            border-bottom: 1px solid var(--light-gray);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .top-nav {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-shrink: 0;
        }

        .top-nav-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 32px;
            padding: 0 8px;
            font-size: 13px;
            color: var(--gray);
            text-decoration: none;
            transition: color 0.2s;
            white-space: nowrap;
            box-sizing: border-box;
        }

        .top-nav-btn:hover {
            color: var(--primary);
        }

        .category-tabs {
            display: flex;
            gap: 4px;
            overflow-x: auto;
            flex: 1;
            min-width: 0;
        }

        .category-tabs::-webkit-scrollbar {
            display: none;
        }

        .category-tab {
            flex-shrink: 0;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            border-radius: 16px;
            user-select: none;
            -webkit-user-select: none;
        }

        .category-tab:hover {
            color: var(--primary);
            background: rgba(255, 77, 77, 0.05);
        }

        .category-tab.active {
            background: var(--primary);
            color: var(--white);
        }

        .search-bar {
            width: 100%;
            max-width: 280px;
            flex-shrink: 0;
        }

        .search-dropdown {
            position: relative;
        }

        .search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .search-icon {
            position: absolute;
            left: 12px;
            color: var(--gray-light);
            font-size: 13px;
        }

        .search-arrow {
            position: absolute;
            right: 46px;
            color: var(--gray-light);
            font-size: 12px;
            transition: transform 0.2s;
            pointer-events: none;
        }

        .search-arrow.open {
            transform: rotate(180deg);
        }

        .search-input {
            width: 100%;
            padding: 6px 46px 6px 34px;
            border: 1px solid #EEE;
            border-radius: 18px;
            font-size: 13px;
            line-height: 20px;
            background: var(--light-gray);
            outline: none;
            transition: all 0.2s;
            cursor: text;
        }

        .search-input:focus {
            border-color: var(--primary);
            background: var(--white);
        }

        .search-btn {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            border: none;
            background: transparent;
            cursor: pointer;
            text-align: center;
            line-height: 22px;
            font-size: 0;
            padding: 0;
        }

        .search-btn::before {
            content: '';
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid var(--primary);
            border-radius: 50%;
            position: relative;
            vertical-align: middle;
        }

        .search-btn::after {
            content: '';
            display: inline-block;
            width: 2px;
            height: 8px;
            background: var(--primary);
            border-radius: 1px;
            position: absolute;
            bottom: 2px;
            right: 2px;
            transform: rotate(-45deg);
            transform-origin: bottom right;
        }

        .search-btn:active {
            opacity: 0.7;
        }

        .search-menu {
            display: none;
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            background: var(--white);
            border: 1px solid #EEE;
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            z-index: 1000;
            overflow: hidden;
        }

        .search-menu.open {
            display: block;
        }

        .search-menu-item {
            padding: 10px 16px;
            font-size: 14px;
            color: var(--dark);
            cursor: pointer;
            transition: background 0.2s;
        }

        .search-menu-item:hover {
            background: var(--light-gray);
            color: var(--primary);
        }

        /* ===== 内容区域 ===== */
        .content-area {
            padding: 16px;
        }

        /* ===== 骨架屏 ===== */
        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
        }

        @media (max-width: 1400px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }
        @media (max-width: 1100px) { .skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 768px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

        .skeleton-card {
            background: var(--white);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        .skeleton-img {
            width: 100%;
            padding-bottom: 75%;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        .skeleton-content {
            padding: 12px;
        }

        .skeleton-line {
            height: 14px;
            border-radius: 4px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            margin-bottom: 8px;
        }

        .skeleton-line.short { width: 60%; }
        .skeleton-line:last-child { margin-bottom: 0; }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ===== 瀑布流内容区（改为5列等宽网格） ===== */
        .waterfall-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
        }

        /* ===== 瀑布流卡片 ===== */
        .note-card {
            background: var(--white);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .note-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .note-card-image {
            position: relative;
            width: 100%;
            padding-bottom: 133.33%;
            background: #e8e8e8;
            overflow: hidden;
        }

        .note-card-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .note-card-tag {
            position: absolute;
            top: 8px;
            left: 8px;
            padding: 3px 8px;
            background: rgba(255, 77, 77, 0.9);
            color: var(--white);
            font-size: 12px;
            font-weight: 600;
            border-radius: 4px;
        }

        .note-card-video-icon {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 20px;
            height: 20px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 8px;
        }

        .note-card-multi {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 9px;
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .note-card-content {
            padding: 8px;
        }

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

        .note-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .note-card-author {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .note-card-avatar {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            object-fit: cover;
        }

        .note-card-name {
            font-size: 13px;
            color: var(--gray);
        }

        .note-card-stats {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .note-card-stat {
            display: flex;
            align-items: center;
            gap: 3px;
            font-size: 13px;
            color: var(--gray-light);
        }

        .note-card-stat i {
            font-size: 13px;
        }

        
        /* ===== 悬浮按钮 ===== */
        .floating-wechat {
            position: fixed;
            right: 16px;
            bottom: 16px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .floating-wechat-qr {
            width: 44px;
            background: var(--white);
            border-radius: 10px;
            padding: 4px;
            box-shadow: var(--shadow-md);
        }

        .floating-wechat-qr img {
            width: 100%;
            height: auto;
        }

        .floating-wechat-text {
            background: var(--primary);
            color: var(--white);
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }

        .back-to-top {
            position: fixed;
            right: 16px;
            bottom: 80px;
            width: 36px;
            height: 36px;
            background: var(--white);
            color: var(--gray);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 99;
            border: none;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: var(--primary);
            color: var(--white);
        }

        /* ===== 文章详情弹窗 ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 2000;
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.open {
            display: flex;
            opacity: 1;
        }

        .article-modal {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
            max-height: 90vh;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid var(--light-gray);
        }

        .modal-author {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .modal-author-info {
            display: flex;
            flex-direction: column;
        }

        .modal-author-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--dark);
        }

        .modal-author-follow {
            font-size: 12px;
            color: var(--primary);
            cursor: pointer;
        }

        .modal-close {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--light-gray);
            color: var(--gray);
            border: none;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: var(--gray);
            color: var(--white);
        }

        /* 字体大小控制按钮 */
        .font-size-controls {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
            margin-right: 12px;
        }

        .font-size-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            background: var(--light-gray);
            color: var(--gray);
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .font-size-btn:hover {
            background: var(--primary);
            color: var(--white);
        }

        .font-size-btn.active {
            background: var(--primary);
            color: var(--white);
        }

        .modal-body {
            flex: 1;
            display: flex;
            min-height: 0;
            align-items: stretch;
        }

        .modal-media {
            position: relative;
            width: 30vw;
            flex-shrink: 0;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: center;
        }

        .modal-media img {
            width: 100%;
            height: auto;
            object-fit: contain;
            transition: opacity 0.2s ease;
            cursor: zoom-in;
            display: block;
        }

        .media-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
        }

        .media-nav:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .media-nav.prev {
            left: 16px;
        }

        .media-nav.next {
            right: 16px;
        }

        .media-nav.visible {
            display: flex;
        }

        .media-dots {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            display: none;
            gap: 8px;
        }

        .media-dots.visible {
            display: flex;
        }

        .media-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
        }

        .media-dot.active {
            background: white;
        }

        .modal-content {
            width: 30vw;
            flex-shrink: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #c1c1c1 #f1f1f1;
            scrollbar-gutter: stable;
        }

        .modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }

        /* 内容可完整显示时隐藏滚动条 */
        .modal-content.no-scroll {
            overflow-y: hidden;
        }

        .modal-content.no-scroll::-webkit-scrollbar {
            width: 0;
        }

        .modal-content::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.4;
            margin-bottom: 12px;
            transition: font-size 0.2s;
            flex-shrink: 0;
        }

        .modal-text {
            font-size: 14px;
            color: var(--gray);
            line-height: 1.8;
            margin-bottom: 16px;
            flex-shrink: 0;
            transition: font-size 0.2s;
            overflow-wrap: break-word;
            word-wrap: break-word;
        }

        .modal-text h2 {
            font-size: 16px;
            font-weight: 700;
            color: var(--dark);
            margin: 20px 0 12px 0;
            padding-left: 10px;
            border-left: 3px solid var(--primary);
        }

        .modal-text h2:first-child {
            margin-top: 0;
        }

        .modal-text h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--dark);
            margin: 16px 0 8px 0;
        }

        .modal-text p {
            margin: 10px 0;
            line-height: 1.7;
        }

        .modal-text strong {
            color: var(--primary-dark);
        }

        .modal-text hr {
            border: none;
            border-top: 1px solid var(--light-gray);
            margin: 16px 0;
        }

        .modal-text img {
            width: 100%;
            border-radius: var(--radius-sm);
            margin: 12px 0;
        }

        /* 正文列表样式 */
        .modal-text ul, .modal-text ol {
            margin: 8px 0;
            padding-left: 20px;
        }

        .modal-text li {
            margin: 4px 0;
        }

        /* 字体大小状态 */
        .modal-title.font-small { font-size: 16px; }
        .modal-title.font-medium { font-size: 18px; }
        .modal-title.font-large { font-size: 20px; }
        .modal-title.font-xlarge { font-size: 22px; }

        .modal-text.font-small { font-size: 12px; }
        .modal-text.font-medium { font-size: 14px; }
        .modal-text.font-large { font-size: 16px; }
        .modal-text.font-xlarge { font-size: 18px; }

        .modal-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .modal-tag {
            font-size: 13px;
            color: var(--primary);
        }

        .modal-meta {
            font-size: 12px;
            color: var(--gray-light);
            margin-bottom: 20px;
        }

        .modal-comments-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 16px;
        }

        .modal-comment {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }

        .modal-comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .modal-comment-content {
            flex: 1;
        }

        .modal-comment-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 2px;
        }

        .modal-comment-text {
            font-size: 13px;
            color: var(--gray);
            line-height: 1.5;
        }

        .modal-comment-time {
            font-size: 11px;
            color: var(--gray-light);
            margin-top: 4px;
        }

        .modal-interaction {
            display: flex;
            gap: 8px;
            padding: 16px 0;
            border-top: 1px solid var(--light-gray);
            margin-top: auto;
        }

        .modal-interaction-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 12px;
            background: var(--light-gray);
            border: none;
            border-radius: 8px;
            font-size: 14px;
            color: var(--gray);
            cursor: pointer;
            transition: all 0.2s;
        }

        .modal-interaction-btn:hover {
            background: rgba(255, 77, 77, 0.1);
            color: var(--primary);
        }

        .modal-interaction-btn.active {
            background: rgba(255, 77, 77, 0.1);
            color: var(--primary);
        }

        .modal-interaction-btn i {
            font-size: 16px;
        }

        /* ===== 图片放大 Lightbox ===== */
        .lightbox-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            cursor: pointer;
        }

        .lightbox-overlay.active {
            display: flex;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            z-index: 3010;
            transition: transform 0.2s;
        }

        .lightbox-close:hover {
            transform: scale(1.2);
        }

        .lightbox-overlay img {
            max-width: 90vw;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        }

        .lightbox-hint {
            position: absolute;
            bottom: 20px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .left-sidebar-expanded {
                display: none;
            }

            .main-area {
                padding: 12px 10px;
                margin-left: 0;
            }

            .top-bar {
                flex-wrap: nowrap;
                gap: 8px;
                padding: 8px 12px;
            }

            .top-nav {
                display: flex;
                gap: 8px;
                align-items: center;
                flex-shrink: 0;
            }

            .top-nav-desktop {
                display: flex;
                gap: 8px;
                align-items: center;
                flex-shrink: 0;
            }

            .category-tabs {
                display: none;
            }

            .top-nav-btn {
                height: 32px;
                padding: 0 8px;
                font-size: 14px;
                line-height: 32px;
            }

            .search-bar {
                flex: 1;
                min-width: 140px;
                max-width: 200px;
            }

            .search-input {
                width: 100%;
            }
        }

        @media (min-width: 769px) {
            .top-nav-desktop {
                display: none;
            }

            .category-tabs {
                display: flex;
                gap: 4px;
                overflow-x: auto;
                flex: 1;
                min-width: 0;
            }
        }

        .note-card {
            opacity: 1;
        }

        /* ===== 微信咨询弹窗 ===== */
        .wechat-share-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .wechat-share-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .wechat-share-content {
            background: var(--white);
            border-radius: var(--radius-xl);
            padding: 32px;
            text-align: center;
            max-width: 300px;
            transform: scale(0.9);
            transition: transform 0.3s;
        }

        .wechat-share-modal.active .wechat-share-content {
            transform: scale(1);
        }

        .wechat-share-content h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 20px;
        }

        .wechat-share-qr {
            width: 180px;
            height: 180px;
            margin: 0 auto 16px;
            background: var(--light-gray);
            border-radius: var(--radius-md);
            overflow: hidden;
        }

        .wechat-share-qr img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .wechat-share-content p {
            font-size: 13px;
            color: var(--gray);
        }

        /* ===== 响应式：固定5列，仅调整间距 ===== */
        @media (max-width: 1200px) {
            .waterfall-container {
                gap: 12px;
            }
        }

        @media (max-width: 900px) {
            .waterfall-container {
                gap: 10px;
            }
            .note-card-title {
                font-size: 14px;
            }
            .note-card-content {
                padding: 10px;
            }
            .note-card-tag {
                font-size: 11px;
            }
        }

        @media (max-width: 600px) {
            .content-area {
                background: var(--light-gray);
                padding: 3px 3px 0;
            }
            .waterfall-container {
                gap: 3px;
                grid-template-columns: repeat(2, 1fr);
            }
            .note-card {
                background: var(--white);
                border-radius: 4px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(0,0,0,0.06);
            }
        }

        /* ===== 手机竖屏：全宽两列瀑布流 ===== */
        @media (max-width: 480px) {
            html, body {
                overflow-x: hidden;
            }
            .page-wrapper {
                width: 100%;
                max-width: 100vw;
                overflow-x: hidden;
            }
            .main-area {
                padding: 0;
                margin-left: 0;
                width: 100%;
                max-width: 100vw;
                overflow-x: hidden;
            }
            .content-area {
                padding: 3px 3px 0;
                width: 100%;
                background: var(--light-gray);
            }
            .waterfall-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 3px;
                width: 100%;
            }
            .note-card {
                background: var(--white);
                border-radius: 4px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(0,0,0,0.06);
            }
            .top-bar {
                position: relative;
                flex-wrap: nowrap;
                gap: 0;
                padding: 6px 10px;
                height: auto;
                min-height: 44px;
                background: var(--white);
                margin-bottom: 0;
            }
            .top-nav {
                display: flex;
                gap: 10px;
                align-items: center;
                flex-shrink: 0;
                position: relative;
                z-index: 2;
            }
            .top-nav-btn {
                height: 32px;
                padding: 0 8px;
                font-size: 14px;
                line-height: 32px;
            }
            .search-bar {
                position: absolute;
                left: calc(50% + 10px);
                right: 10px;
                top: 50%;
                transform: translateY(-50%);
                width: auto;
                max-width: none;
                height: 32px;
            }
            .search-input {
                width: 100%;
                height: 32px;
            }
        }
/* ===== 文章页三栏布局 ===== */
.page-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--light-gray);
}

/* ===== 左侧导航栏 (60px) ===== */
.left-navbar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: var(--white);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 100;
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo i {
    font-size: 20px;
    color: var(--white);
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.nav-item.active {
    background: rgba(255, 77, 77, 0.1);
    color: var(--primary);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: 60px;
    margin-right: 300px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== 文章卡片容器（居中） ===== */
.article-container {
    width: 100%;
    max-width: calc(100vw - 380px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 文章弹窗式容器 ===== */
.article-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.article-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--white);
}

.article-modal-body {
    flex: 1;
    display: flex;
    min-height: 0;
    align-items: stretch;
}

/* 文章页内容滚动条：内容溢出时显示，否则隐藏 */
.article-modal .modal-content {
    overflow-y: auto;
    scrollbar-gutter: auto;
}

/* ===== 右侧边栏 (300px) ===== */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: var(--white);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding: 24px 20px 50px 20px;
    overflow: hidden;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.sidebar-search {
    display: flex;
    gap: 8px;
}

.sidebar-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #EEE;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search-input:focus {
    border-color: var(--primary);
}

.sidebar-search-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-search-btn:hover {
    background: var(--primary-light);
}

.sidebar-article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-article-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s;
}

.sidebar-article-item:hover {
    background: var(--light-gray);
}

.sidebar-article-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
}

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

.sidebar-article-info {
    flex: 1;
    min-width: 0;
}

.sidebar-article-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.sidebar-article-meta {
    font-size: 11px;
    color: var(--gray-light);
}

.sidebar-icp-section {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-light);
    padding-top: 12px;
}

.sidebar-icp-section a {
    color: var(--gray-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sidebar-icp-section a:hover {
    color: var(--primary);
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    .main-content {
        margin-right: 0;
    }
}

@media (max-width: 992px) {
    .left-navbar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .article-modal {
        max-width: 600px;
        flex-direction: column;
    }
    .article-modal-body {
        flex-direction: column;
    }
    .modal-media {
        width: 100%;
        height: 35vh;
        min-height: 250px;
    }
    .modal-content {
        width: 100%;
        max-height: none;
    }
}

/* ===== 移动端弹窗覆盖（优先级高于992px断点） ===== */
@media (max-width: 768px) {
    .modal-overlay,
    .modal-overlay.open {
        padding: 0;
        align-items: stretch;
        justify-content: center;
        overflow: hidden;
    }
    .article-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
        flex-direction: column;
        overflow: hidden;
        display: flex;
    }
    .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--white);
        padding: 12px 16px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .modal-header .modal-close {
        width: 32px !important;
        height: 32px !important;
        background: #e8e8e8 !important;
        background-color: #e8e8e8 !important;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: none !important;
        cursor: pointer;
        padding: 0 !important;
        font-size: 18px !important;
        color: #333 !important;
        line-height: 1;
    }
    .modal-body {
        flex: 1 1 0%;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    .modal-media {
        width: 100%;
        height: auto;
        min-height: unset;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .modal-media img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
    /* 隐藏media内部的dots（移动端使用外部的） */
    .media-dots {
        display: none !important;
    }
    /* 移动端轮播指示点 - 在图片下方、标题上方 */
    .media-dots-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 10px 0 6px;
        flex-shrink: 0;
    }
    .media-dots-mobile .media-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #b3d9ff;
        display: inline-block;
        margin: 0;
        cursor: pointer;
        transition: background 0.2s;
    }
    .media-dots-mobile .media-dot.active {
        background: #0066cc;
    }
    .modal-content {
        width: 100%;
        flex: none;
        padding: 16px;
        overflow-x: hidden;
        overflow-y: hidden;
        display: block;
    }
    .modal-interaction {
        position: relative;
        background: var(--white);
        border-top: 1px solid var(--light-gray);
        padding: 12px 16px;
        display: flex;
        gap: 24px;
    }
    .modal-interaction-btn {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        color: #666;
        background: none !important;
        border: none;
        border-radius: 0 !important;
        cursor: pointer;
        padding: 8px 12px;
    }
    .modal-interaction-btn .icon-heart,
    .modal-interaction-btn .icon-share {
        font-size: 20px;
        line-height: 1;
    }
    .modal-interaction-btn.active .icon-heart {
        color: #e74c3c;
    }
    /* 左右箭头隐藏（移动端用滑动） */
    .media-nav {
        display: none !important;
    }
    /* 搜索结果弹窗全屏显示 */
    .modal-overlay.search-modal,
    .modal-overlay.search-modal.open {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .search-results-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        flex-direction: column;
    }
    .search-results-list {
        max-height: calc(100vh - 70px);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 16px;
    }
}

/* ===== 搜索结果弹窗 ===== */
.search-results-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: var(--white);
}

.search-results-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
}

.search-results-container .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.search-results-container .modal-close:hover {
    color: var(--primary);
}

.search-results-list {
    overflow-y: auto;
    padding: 16px;
    max-height: calc(80vh - 70px);
}

.search-result-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--dark);
    line-height: 1.4;
}

.search-result-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.search-result-tags .tag {
    background: var(--light-gray);
    color: var(--gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.search-no-results p {
    font-size: 16px;
}

mark {
    background: #FFF59D;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* 响应式 */
@media (max-width: 600px) {
    .search-result-item {
        flex-direction: column;
    }
    .search-result-item img {
        width: 100%;
        height: 150px;
    }
}
