    /* 基础变量和重置 (完全保留) */
        :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);
            --code-bg: #1e1e2e;
            --quote-bg: rgba(99, 102, 241, 0.1);

            /* 新增：柔和的阅读色系 */
            --link-balanced: #4aa3c2; /* 比原科技蓝暗一点，但保持明亮 */
            --link-balanced-hover: #5fc3e3; /* 悬停时更亮 */
            --link-underline: rgba(74, 163, 194, 0.35); /* 适中透明度的下划线 */
            --link-soft-visited: #8a7ca8; /* 访问后的柔和紫色 */
        }

        * {
            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.7;
            overflow-x: hidden; /* 防止水平溢出 */
            width: 100%;
            position: relative;
        }

        /* 网格背景 */
        .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 20px;
            width: 100%; /* 确保容器不溢出 */
            overflow-x: hidden;
        }

        /* 头部导航 */
        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);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            flex-wrap: wrap; /* 允许移动端换行 */
            gap: 10px;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light-text);
            text-decoration: none;
            position: relative;
            z-index: 1001;
            flex-shrink: 0; /* 防止logo压缩 */
        }

        .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布局中被压缩 */
        }

        /* 登录注册按钮样式 (不变) */
        .btn {
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-size: 1rem;
            background: transparent;
            color: var(--light-text);
            border: 1px solid rgba(99, 102, 241, 0.5);
        }

        .btn:hover {
            background: rgba(99, 102, 241, 0.1);
            border-color: var(--primary);
            box-shadow: var(--glow);
        }

        .btn-login {
            background: transparent;
            color: var(--light-text);
        }

        .btn-register {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            color: white;
            border: none;
        }

        .btn-register:hover {
            background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
            box-shadow: var(--glow);
        }

        .user-actions {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        /* 基础链接样式 */
        a {
            color: var(--light-text);
            text-decoration: none;
            transition: var(--transition);
            position: relative;
        }

        /* 普通文本中的链接（文章内容中的链接）- 适中亮度版本 */
        .article-content a {
            color: var(--link-balanced); /* 4aa3c2 - 适中亮度的蓝 */
            text-decoration: none;
            border-bottom: 1px solid var(--link-underline);
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .article-content a:hover {
            color: var(--link-balanced-hover); /* 5fc3e3 - 悬停时更亮 */
            border-bottom-color: var(--link-balanced);
        }


        /* 带图标的链接 */
        .article-content a i {
            color: var(--link-balanced);
            font-size: 0.9em;
            margin-right: 4px;
            transition: transform 0.2s ease;
        }

        .article-content a:hover i {
            transform: translateX(2px);
        }


        /* 文章内容布局 (不变) */
        .article-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 280px;
            gap: 30px;
            padding: 40px 0;
        }

        .article-main {
            padding-left: 50px;
            min-width: 0; /* 防止flex/grid溢出 */
        }

        .article-header {
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .article-category {
            display: inline-flex;
            align-items: center;
            padding: 6px 15px;
            background: rgba(139, 92, 246, 0.2);
            border-radius: 50px;
            color: var(--accent);
            font-weight: 500;
            margin-bottom: 20px;
        }

        .article-category i {
            margin-right: 8px;
        }

        /* 核心修复：让链接继承父级的颜色并去掉下划线 */
        .article-category a {
            color: inherit; /* 继承父级的 var(--accent) 颜色 */
            text-decoration: none; /* 去掉默认的下划线 */
            transition: opacity 0.2s; /* 增加一个平滑的过渡效果 */
        }

        /* 交互优化：鼠标悬停时稍微变亮或变暗，给用户点击反馈 */
        .article-category a:hover {
            opacity: 0.8;
            text-decoration: none; /* 保持整洁，不显示下划线 */
        }


        .article-title {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.3;
            margin-bottom: 25px;
            background: linear-gradient(90deg, var(--light-text), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            word-break: break-word; /* 防止长标题溢出 */
        }

        .article-meta {
            display: flex;
            gap: 25px;
            color: var(--light-gray);
            font-size: 0.95rem;
            flex-wrap: wrap;
        }

        .author-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.3rem;
        }

        /* 文章内容样式 */
        .article-content {
            font-size: 1.1rem;
            max-width: 900px;
            margin: 0 auto;
        }

        .article-content h2 {
            font-size: 1.8rem;
            margin: 50px 0 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(99, 102, 241, 0.3);
            color: var(--accent);
            word-break: break-word;
        }

        .article-content h3 {
            font-size: 1.5rem;
            margin: 40px 0 15px;
            color: var(--light-text);
            word-break: break-word;
        }

        .article-content p {
            margin-bottom: 25px;
            text-align: justify;
            word-wrap: break-word;
        }

        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 30px 0;
            box-shadow: var(--glow);
            background: linear-gradient(135deg, #1e293b, #0f172a);
        }

        .article-content .image-caption {
            text-align: center;
            font-size: 0.9rem;
            color: var(--light-gray);
            margin-top: -20px;
            margin-bottom: 30px;
        }

        /* 代码块样式 */
        pre {
            background: var(--code-bg) !important;
            border-radius: 12px;
            padding: 20px !important;
            margin: 30px 0;
            overflow-x: auto;
            border: 1px solid rgba(99, 102, 241, 0.2);
            box-shadow: var(--glow);
            max-width: 100%;
            position: relative;
        }

        code {
            font-family: 'Fira Code', monospace !important;
            font-size: 0.95rem;
            white-space: pre-wrap; /* 允许代码换行，避免横向滚动 */
            word-break: break-word;
        }

        /* 引用块样式 */
        blockquote {
            background: var(--quote-bg);
            border-left: 4px solid var(--accent);
            padding: 20px 25px;
            margin: 30px 0;
            border-radius: 0 12px 12px 0;
            position: relative;
        }

        blockquote::before {
            content: "\" ";
            position: absolute;
            top: -20px;
            left: 10px;
            font-size: 4rem;
            color: rgba(99, 102, 241, 0.2);
            font-family: Georgia, serif;
        }

        blockquote p {
            margin: 0;
            font-style: italic;
            color: var(--light-gray);
        }

        /* 列表样式 */
        .article-content ul, .article-content ol {
            margin-left: 25px;
            margin-bottom: 25px;
        }

        .article-content li {
            margin-bottom: 10px;
        }

        .article-content ul li::marker {
            color: var(--accent);
        }

        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            background: var(--dark-card);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--glow);
            display: block; /* 手机端表格可滚动 */
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;

        }

        th, td {
            padding: 15px 20px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap; /* 保持表头不换行，但滚动可见 */
        }

        th {
            background: rgba(99, 102, 241, 0.2);
            color: var(--accent);
            font-weight: 600;
        }

        tr:hover {
            background: rgba(99, 102, 241, 0.05);
        }

        /* 右侧栏样式 */
        .article-sidebar {
            position: sticky;
            top: 100px;
            align-self: start;
        }

        .sidebar-card {
            background: var(--dark-card);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: var(--glow);
            border: 1px solid rgba(99, 102, 241, 0.2);
        }

        .sidebar-title {
            font-size: 1.3rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--accent);
        }

        .sidebar-title i {
            font-size: 1.2rem;
        }

        .toc-list {
            list-style: none;
        }

        .toc-list li {
            margin-bottom: 12px;
            position: relative;
            padding-left: 20px;
        }

        .toc-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
        }

        .toc-list a {
            color: var(--light-text);
            text-decoration: none;
            transition: var(--transition);
            display: block;
            padding: 5px 0;
            word-break: break-word;
        }

        .toc-list a:hover {
            color: var(--accent);
            padding-left: 5px;
        }

        .toc-list .level-2 {
            padding-left: 20px;
            font-size: 0.95rem;
        }

        .toc-list .level-3 {
            padding-left: 40px;
            font-size: 0.9rem;
            color: var(--light-gray);
        }

        .author-details {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .author-avatar-lg {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .author-name {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .author-title {
            color: var(--accent);
            margin-bottom: 15px;
        }

        .author-bio {
            color: var(--light-gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        .social-links {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--light-gray);
            font-size: 1.1rem;
        }

        .social-links a:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-3px);
        }

        /* 操作按钮栏 - 桌面端 - 缩小并左移 */
        .action-bar {
            position: fixed;
            top: 50%;
            left: 15px;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 20px;
            z-index: 100;
            background: rgba(26, 26, 36, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            padding: 15px 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(99, 102, 241, 0.2);
            width: auto;
        }

        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--light-gray);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: transparent;
            border: none;
            position: relative;
        }

        .action-btn:hover {
            color: var(--accent);
            background: rgba(6, 182, 212, 0.1);
            transform: translateY(-3px);
        }

        .action-btn.active {
            color: var(--accent);
        }

        .action-btn .count {
            position: absolute;
            top: -5px;
            right: 0;
            background: var(--accent);
            color: white;
            font-size: 0.65rem;
            min-width: 18px;
            height: 18px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }

        .action-btn i {
            font-size: 1.3rem;
        }

        .action-btn span {
            font-size: 0.7rem;
        }

        /* 移动端操作栏 (保留) */
        .mobile-action-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(26, 26, 36, 0.95);
            backdrop-filter: blur(10px);
            z-index: 100;
            padding: 12px 0;
            border-top: 1px solid rgba(99, 102, 241, 0.2);
            box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.3);
        }

        .mobile-actions {
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        .mobile-action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: var(--light-gray);
            cursor: pointer;
            transition: var(--transition);
            min-width: 55px;
        }

        .mobile-action-btn:hover, .mobile-action-btn.active {
            color: var(--accent);
        }

        .mobile-action-btn i {
            font-size: 1.3rem;
        }

        .mobile-action-btn span {
            font-size: 0.7rem;
        }

        /* 页脚 */
        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);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            margin-bottom: 40px;
        }

        .footer-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--accent);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        /* 相关文章链接样式 - 单行省略 + 悬停展开 */
        .footer-links a {
            color: var(--light-gray);
            text-decoration: none;
            transition: all 0.2s ease;
            font-size: 0.95rem;

            /* 默认状态：单行显示，超出显示省略号 */
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
            max-width: 100%;           /* 确保不超过父容器 */

            /* 移除可能导致边框的属性 */
            border: none;              /* 确保没有边框 */
            outline: none;             /* 确保没有轮廓 */
        }

        /* 鼠标悬停时：显示完整内容 */
        .footer-links a:hover {
            color: var(--accent);

            /* 展开显示完整内容 */
            overflow: visible;
            white-space: normal;
            word-break: break-word;

            /* 移除所有可能导致边框的属性 */
            box-shadow: none;           /* 移除阴影（防止某些浏览器显示为边框） */

            position: relative;
            z-index: 10;
        }

        .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);
        }

        /* ========== 优化手机端显示：覆盖原有导致溢出/字体过小的规则 ========== */
        @media (max-width: 768px) {
            /* 让body滚动正常，无水平条 */
            body {
                overflow-x: hidden;
                font-size: 16px; /* 基础字号稍微提高可读性，但保留rem机制 */
            }

            .container {
                padding: 0 15px;
                max-width: 100vw;
                overflow-x: hidden;
            }

            /* 调整布局为单列（原有设计已经具备，但保证main内无左填充） */
            .article-layout {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .article-main {
                padding-left: 0;
            }

            .article-title {
                font-size: 2rem; /* 稍微缩小但保持可读 */
                word-break: break-word;
            }

            /* 操作栏隐藏/显示正确 */
            .action-bar {
                display: none;
            }

            .mobile-action-bar {
                display: block;
            }

            /* 右侧边栏在手机上变成普通块流 */
            .article-sidebar {
                position: static;
                display: grid;
                grid-template-columns: 1fr;
                gap: 20px;
                margin-top: 20px;
            }

            /* 确保图片、pre、表格等不溢出 */
            .article-content img,
            .article-content pre,
            .article-content table {
                max-width: 100%;
            }

            /* 表格增加滚动 */
            .article-content table {
                display: block;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* 代码块内强制换行 */
            pre code {
                white-space: pre-wrap;
                word-wrap: break-word;
            }

            /* 目录小字号调整 */
            .toc-list a {
                font-size: 0.95rem;
            }

            /* 头部logo与按钮换行对齐 */
            .header-container {
                /*flex-direction: row; !* 保持行内，但允许换行 *!*/
                flex-direction: row;              /* 水平排列 */
                justify-content: space-between;
                flex-wrap: nowrap;
            }

            .user-actions {
                width: auto; /* 不要占满 */
                justify-content: flex-end;  /* 按钮右对齐 */
            }

            .logo span {
                /* 或者使用transform */
                transform: translateY(-2.5px);
            }

            /* 文章元数据间距 */
            .article-meta {
                gap: 15px;
            }

            .footer-links a {
                white-space: normal;           /* 移动端允许换行 */
                overflow: visible;              /* 显示全部内容 */
                text-overflow: clip;            /* 不显示省略号 */
                display: -webkit-box;
                -webkit-line-clamp: 2;          /* 最多显示2行 */
                -webkit-box-orient: vertical;
                line-height: 1.4;
                max-height: 2.8em;              /* 2行的高度 */
            }

            /* 移动端悬停效果（触摸设备） */
            .footer-links a:active {
                color: var(--accent);
                background: rgba(99, 102, 241, 0.08);
                padding: 4px 6px;
                margin-left: -6px;
                margin-right: -6px;
                border-radius: 4px;
            }

            /* 底部footer grid改成2列（原有已有，但强化） */
            .footer-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 20px; /* 可选：适当缩小间距 */
            }

            /* 减少底部padding避免与移动操作栏重叠 */
            footer {
                padding-bottom: 80px; /* 给移动操作栏让位 */
            }
        }

        @media (max-width: 480px) {
            /* 极小屏进一步优化 */
            .article-title {
                font-size: 1.8rem;
            }

            .article-content h2 {
                font-size: 1.6rem;
            }

            .article-content h3 {
                font-size: 1.3rem;
            }

            .article-content {
                font-size: 1rem;
            }

            .header-container {
                flex-direction: row;              /* 水平排列 */
                /*align-items: center;              !* 垂直居中 - 这是关键！ *!*/
                flex-wrap: nowrap;                 /* 禁止换行 */
            }

            .logo span {
                /* 或者使用transform */
                transform: translateY(-2.5px);
            }


            .user-actions {
                width: 100%;
                justify-content: flex-end;
            }

            .btn {
                padding: 8px 16px;
                font-size: 0.9rem;
            }

            .footer-links a {
                font-size: 0.9rem;              /* 稍微减小字体 */
                -webkit-line-clamp: 2;           /* 保持2行 */
            }

            .footer-grid {
                grid-template-columns: 1fr;
            }

            .sidebar-card {
                padding: 20px;
            }

            .author-avatar-lg {
                width: 80px;
                height: 80px;
                font-size: 1.8rem;
            }
        }

        /* 更小设备 (<=360px) 保险 */
        @media (max-width: 360px) {
            .article-title {
                font-size: 1.5rem;
            }

            .article-meta {
                flex-direction: column;
                gap: 8px;
            }

            .toc-list .level-2,
            .toc-list .level-3 {
                padding-left: 15px;
            }

            .user-actions {
                gap: 8px;
            }
        }

        /* 打印样式优化 (保留) */
        @media print {
            .action-bar, .mobile-action-bar {
                display: none;
            }

            body {
                background: white;
                color: black;
            }

            .grid-lines {
                display: none;
            }
        }

        /* 懒加载样式 (保留) */
        .lazy-load {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .lazy-load.loaded {
            opacity: 1;
            transform: translateY(0);
        }