 /* Your existing CSS styles go here */
        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #8b5cf6;
            --dark-bg: #0f0f13;
            --dark-card: #1a1a24;
            --light-text: #e2e8f0;
            --light-gray: #94a3b8;
            --accent: #06b6d4;
            --accent-hover: #22d3ee;
            --transition: all 0.3s ease;
            --glow: 0 0 15px rgba(99, 102, 241, 0.3);
            --content-padding: 40px;
            --header-height: 70px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', 'Roboto', sans-serif;
            background: var(--dark-bg);
            color: var(--light-text);
            line-height: 1.6;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        /* 科技感背景效果 */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
            z-index: -1;
            pointer-events: none;
        }

        .grid-lines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: -1;
            pointer-events: none;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--content-padding);
        }

        /* 头部导航 */
        header {
            background: rgba(10, 10, 15, 0.8);
            backdrop-filter: blur(10px);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(99, 102, 241, 0.2);
            height: var(--header-height);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 10px;
            height: 100%;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light-text);
            text-decoration: none;
            position: relative;
        }

        .logo::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s ease;
        }

        .logo:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .logo i {
            margin-right: 10px;
            color: var(--accent);
        }

        /* 新增SVG样式，与原来图标大小一致 */
        .logo .logo-icon {
            width: 1.8rem;      /* 与原来的字体图标大小相同 */
            height: 1.8rem;     /* 保持宽高一致 */
            margin-right: 10px; /* 保留原来的右边距 */
            color: var(--accent);  /* 这行确保图标颜色与fa-atom一致 */
            display: inline-block;
            vertical-align: middle;
            flex-shrink: 0;      /* 防止在flex布局中被压缩 */
        }

        .nav-menu {
            display: flex;
            gap: 35px;
        }

        /* 修改导航链接样式 */
        .nav-menu a {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .nav-item {
            position: relative;
            font-size: 1.1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            padding: 8px 0;
        }

        .nav-item::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav-item:hover::after {
            width: 100%;
        }

        .nav-item.active {
            color: var(--accent);
        }

        .nav-item.active::after {
            width: 100%;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: rgba(30, 30, 40, 0.6);
            border-radius: 50px;
            padding: 8px 20px;
            width: 300px;
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .search-bar input {
            background: transparent;
            border: none;
            color: var(--light-text);
            padding: 5px 10px;
            width: 100%;
            font-size: 1rem;
        }

        .search-bar input:focus {
            outline: none;
        }

        .search-bar button {
            background: transparent;
            border: none;
            color: var(--accent);
            cursor: pointer;
        }

        /* 主要内容布局 */
        .main-layout {
            display: grid;
            grid-template-columns: 3.5fr 1fr;
            gap: 40px;
            margin: 40px 0;
        }

        /* 文章流区域 */
        .articles-stream {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .article-card {
            background: var(--dark-card);
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
            border: 1px solid rgba(99, 102, 241, 0.2);
            display: flex;
            min-height: 188px;
            will-change: transform, box-shadow;
        }

        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--glow);
        }

        /* 图片优化 */
        .article-img {
            width: 180px;
            flex-shrink: 0;
            background: linear-gradient(135deg, #1e293b, #0f172a);
            position: relative;
            overflow: hidden;
        }

        .image-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background: linear-gradient(135deg, #1e293b, #0f172a);
        }
        /* 图片加载失败/无图样式 */
        .image-fallback {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
        }
                .image-fallback .image-icon {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        /* 低像素警告 */
        .pixel-warning {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(255, 193, 7, 0.9);
            color: #000;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 3;
        }
        /*新增tag 样式*/
        .tag{
            text-decoration: none;
            color: inherit;
        }

        /* 响应式图片优化 */
        .lazy-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .lazy-img.loaded {
            opacity: 1;
        }

        .low-res {
            filter: blur(3px);
            transform: scale(1.05);
        }

        .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-icon {
            font-size: 2rem;
            color: var(--accent);
            z-index: 2;
        }

        .image-label {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.6);
            color: var(--light-gray);
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            z-index: 3;
        }

        .article-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .article-category {
            color: var(--accent);
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .article-category i {
            margin-right: 8px;
        }

        .article-category a {

            text-decoration: none;
            color: inherit;

        }

        .article-title {
            font-size: 1.7rem;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.4;
            color: var(--light-text);
            transition: var(--transition);
            max-width: 95%;
            text-decoration: none;
        }

        .article-title:hover {
            color: var(--accent);
        }

         /* 修改现有的.article-excerpt样式 */
        .article-excerpt {
            color: var(--light-gray);
            line-height: 1.7;
            margin-bottom: 15px;
            flex-grow: 1;
            max-width: 95%;
            font-size: 1.05rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            /* 新增固定高度确保两行显示 */
            height: calc(1.7em * 2); /* 行高 * 行数 */
            min-height: calc(1.7em * 2); /* 确保最小高度 */
        }

        .article-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .article-meta {
            display: flex;
            gap: 12px;
            font-size: 0.85rem;
            color: var(--light-gray);
            flex-wrap: wrap;
        }

        .article-stats {
            display: flex;
            gap: 15px;
            font-size: 0.85rem;
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* 侧边栏 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 35px;
            position: sticky;
            top: 90px;
            height: fit-content;
        }

        .sidebar-section {
            background: var(--dark-card);
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--glow);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .section-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--accent);
        }

        .section-title i {
            color: var(--accent);
        }

        .trending-list, .new-list {
            list-style: none;
        }

        .trending-item, .new-item {
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .trending-item:last-child, .new-item:last-child {
            border-bottom: none;
        }

        .trending-number {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--light-gray);
            width: 40px;
            display: inline-block;
            vertical-align: top;
        }

        .trending-content, .new-content {
            display: inline-block;
            width: calc(100% - 50px);
        }

        .trending-title, .new-title {
            font-weight: 600;
            margin-bottom: 8px;
            display: block;
            text-decoration: none;
            color: var(--light-text);
            transition: var(--transition);
            font-size: 1.05rem;
            line-height: 1.4;
        }

        .trending-title:hover, .new-title:hover {
            color: var(--accent);
        }

        .trending-meta, .new-meta {
            font-size: 0.85rem;
            color: var(--light-gray);
            display: flex;
            gap: 15px;
        }

        .new-number {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--accent);
            width: 40px;
            display: inline-block;
            vertical-align: top;
            text-align: center;
        }

        /* 页脚 */
        footer {
            background: rgba(10, 10, 15, 0.9);
            backdrop-filter: blur(10px);
            padding: 60px 0 30px;
            margin-top: 50px;
            border-top: 1px solid rgba(99, 102, 241, 0.2);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            color: var(--light-gray);
        }

        /* 加载更多 */
        .load-more {
            text-align: center;
            margin: 40px 0;
        }

        .load-btn {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 14px 40px;
            border-radius: 50px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .load-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--glow);
        }

        /* 性能优化提示 */
        .performance-info {
            background: rgba(6, 182, 212, 0.1);
            border-left: 3px solid var(--accent);
            padding: 15px;
            border-radius: 0 8px 8px 0;
            margin-top: 20px;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .main-layout {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
                grid-row: 1;
            }
        }

        @media (max-width: 992px) {
            .article-card {
                flex-direction: column;
                min-height: auto;
            }

            .article-img {
                width: 100%;
                height: 200px;
            }

            .image-fallback .image-icon {
                font-size: 2rem;
            }

            .article-title {
                font-size: 1.5rem;
            }

            .article-content {
                padding: 20px;
            }

            .article-excerpt {
            -webkit-line-clamp: 2; /* 确保移动端也只显示两行 */
            height: calc(1.7em * 2); /* 保持相同高度 */
            min-height: calc(1.7em * 2);
            }

            .article-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            :root {
                --content-padding: 25px;
                --header-height: 60px;
            }

            .header-container {
                flex-wrap: wrap;
                gap: 15px;
            }

            .nav-menu {
                order: 3;
                width: 100%;
                justify-content: center;
                gap: 15px;
            }

            .search-bar {
                width: 100%;
                order: 2;
            }

            .trending-content, .new-content {
                width: calc(100% - 40px);
            }

            .logo {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            :root {
                --content-padding: 15px;
            }

            .nav-menu {
                gap: 10px;
                flex-wrap: wrap;
            }

            .nav-item {
                font-size: 0.9rem;
                padding: 5px;
            }

            .article-meta {
                flex-direction: column;
                gap: 5px;
            }

            .article-excerpt {
            font-size: 1rem; /* 稍微减小字体大小 */
            line-height: 1.6; /* 调整行高 */
            height: calc(1.6em * 2); /* 重新计算高度 */
            min-height: calc(1.6em * 2);
            }

            .article-stats {
                flex-wrap: wrap;
            }

            .trending-number, .new-number {
                width: 30px;
                font-size: 1.2rem;
            }

            .article-content {
                padding: 15px;
            }

            .article-img {
                height: 180px;
            }

            .pixel-warning {
                bottom: 5px;
                right: 5px;
                font-size: 0.6rem;
                padding: 2px 5px;
            }

            .article-title {
                font-size: 1.4rem;
            }
        }

        /* 动画效果 */
        .article-card {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .article-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 加载动画 */
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }

        .loading {
            animation: pulse 1.5s infinite;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }

        /* 沉浸感增强 */
        .articles-stream {
            perspective: 1000px;
        }

        .article-card {
            transform-style: preserve-3d;
            transform: translateZ(0);
        }

        /* 骨架屏加载效果 */
        .skeleton {
            background: linear-gradient(90deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* 阅读进度条 */
        .reading-progress {
            position: fixed;
            top: var(--header-height);
            left: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            z-index: 999;
            transform-origin: 0 0;
            transform: scaleX(0);
            transition: transform 0.1s linear;
        }

        /* 回到顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: rgba(99, 102, 241, 0.8);
            backdrop-filter: blur(5px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 99;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .back-to-top.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .back-to-top:hover {
            background: var(--primary);
            transform: translateY(-5px) scale(1.05);
        }

        /* 主题切换 */
        .theme-switch {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 50px;
            height: 50px;
            background: rgba(99, 102, 241, 0.8);
            backdrop-filter: blur(5px);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 99;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        /* 亮色主题 */
        body.light-theme {
            --dark-bg: #f0f2f5;
            --dark-card: #ffffff;
            --light-text: #1e293b;
            --light-gray: #64748b;
            --accent: #0ea5e9;
            --accent-hover: #38bdf8;
        }

        body.light-theme::before {
            background:
                radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
        }

        body.light-theme .grid-lines {
            background-image:
                linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
        }

        body.light-theme header {
            background: rgba(255, 255, 255, 0.8);
            border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        }

        body.light-theme .search-bar {
            background: rgba(240, 240, 245, 0.6);
            border: 1px solid rgba(99, 102, 241, 0.1);
        }

        body.light-theme .article-card,
        body.light-theme .sidebar-section {
            background: var(--dark-card);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        body.light-theme footer {
            background: rgba(255, 255, 255, 0.9);
            border-top: 1px solid rgba(99, 102, 241, 0.1);
        }

        body.light-theme .copyright {
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* 移动端菜单按钮 */
        .mobile-menu-btn {
            display: none;
            background: transparent;
            border: none;
            color: var(--light-text);
            font-size: 1.5rem;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-menu {
                position: fixed;
                top: var(--header-height);
                left: 0;
                width: 100%;
                background: rgba(10, 10, 15, 0.95);
                backdrop-filter: blur(10px);
                flex-direction: column;
                padding: 20px;
                gap: 15px;
                transform: translateY(-100%);
                opacity: 0;
                transition: all 0.4s ease;
                z-index: 999;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            }

            .nav-menu.active {
                transform: translateY(0);
                opacity: 1;
            }
        }