
        /* 使登录按钮与编程环境按钮样式协调 */
        .login-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 4px;
            padding: 9px 18px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        /* 主要内容区 */
        main {
            margin-top: 70px;
            padding-top: 30px;
            padding-bottom: 50px;
        }

        /* 文章标题区 */
        .article-header {
            position: relative;
            margin-bottom: 30px;
        }

        .article-header-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 10px;
        }

        .article-header-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
            padding: 40px 30px 30px;
            border-radius: 0 0 10px 10px;
        }

        .article-category {
            display: inline-block;
            background: #6b5ce7;
            color: white;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 15px;
        }

        .article-title {
            color: white;
            font-size: 2.2rem;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        .article-meta {
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .article-date {
            display: flex;
            align-items: center;
            margin-right: 20px;
        }

        .meta-icon {
            margin-right: 5px;
        }

        .article-author {
            display: flex;
            align-items: center;
        }

        /* 文章内容区 */
        .article-container {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
        }

        .article-content {
            background: white;
            border-radius: 10px;
            padding: 40px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            font-size: 1.05rem;
            line-height: 1.8;
        }

        .article-content p {
            margin-bottom: 20px;
        }

        .article-content h2 {
            font-size: 1.5rem;
            margin: 30px 0 15px;
            color: #333;
        }

        .article-content h3 {
            font-size: 1.3rem;
            margin: 25px 0 15px;
            color: #333;
        }

        .article-content ul,
        .article-content ol {
            margin-bottom: 20px;
            padding-left: 25px;
        }

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

        .article-content img {
            max-width: 100%;
            border-radius: 8px;
            margin: 20px 0;
        }

        .article-image-caption {
            text-align: center;
            color: #666;
            font-size: 0.9rem;
            margin-top: -15px;
            margin-bottom: 20px;
        }

        .article-quote {
            background: #f7f9fc;
            border-left: 4px solid #6b5ce7;
            padding: 20px 25px;
            margin: 30px 0;
            font-style: italic;
            color: #555;
        }

        /* 作者信息 */
        .author-section {
            display: flex;
            align-items: center;
            background: #f7f9fc;
            border-radius: 10px;
            padding: 20px;
            margin-top: 40px;
        }

        .author-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 20px;
        }

        .author-info {
            margin-left: 20px;
        }

        .author-info h4 {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .author-info p {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 0;
        }

        /* 分享按钮 */
        .share-section {
            margin-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .share-title {
            font-size: 1rem;
            font-weight: 600;
        }

        .share-buttons {
            display: flex;
            gap: 10px;
        }

        .share-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f0f3f8;
            border-radius: 50%;
            color: #333;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .share-btn:hover {
            background: #6b5ce7;
            color: white;
        }

        /* 标签 */
        .tags-section {
            margin-top: 30px;
        }

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

        .tag {
            background: #f0f3f8;
            color: #666;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .tag:hover {
            background: #e0e5ee;
        }

        /* 侧边栏 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .sidebar-widget {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .widget-title {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: #333;
            position: relative;
            padding-bottom: 10px;
        }

        .widget-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: linear-gradient(135deg, #6b5ce7, #ff7f50);
            border-radius: 3px;
        }

        /* 相关新闻 */
        .related-news-item {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .related-news-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .related-news-img {
            width: 70px;
            height: 70px;
            border-radius: 5px;
            object-fit: cover;
            margin-right: 15px;
        }

        .related-news-content {
            flex-grow: 1;
        }

        .related-news-title {
            font-size: 0.95rem;
            margin-bottom: 5px;
            font-weight: 600;
            color: #333;
            transition: color 0.3s ease;
        }

        .related-news-title:hover {
            color: #6b5ce7;
        }

        .related-news-date {
            font-size: 0.8rem;
            color: #888;
        }

        /* 热门标签 */
        .popular-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .popular-tag {
            background: #f0f3f8;
            color: #666;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }

        .popular-tag:hover {
            background: #6b5ce7;
            color: white;
        }

        /* 下一篇/上一篇导航 */
        .article-nav {
            display: flex;
            justify-content: space-between;
            margin-top: 50px;
        }

        .article-nav-item {
            flex: 0 0 48%;
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .article-nav-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }

        .article-nav-label {
            color: #888;
            font-size: 0.8rem;
            margin-bottom: 10px;
        }

        .article-nav-title {
            font-size: 1.1rem;
            color: #333;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .article-nav-title:hover {
            color: #6b5ce7;
        }

        /* 相关文章网格 */
        .related-articles-section {
            margin-top: 50px;
        }

        .related-articles-title {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: #333;
            position: relative;
            padding-bottom: 10px;
        }

        .related-articles-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(135deg, #6b5ce7, #ff7f50);
            border-radius: 3px;
        }

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

        .related-article-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

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

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

        .related-article-content {
            padding: 15px;
        }

        .related-article-card-title {
            font-size: 1rem;
            margin-bottom: 10px;
            color: #333;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .related-article-card-title:hover {
            color: #6b5ce7;
        }

        .related-article-excerpt {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .related-article-link {
            color: #6b5ce7;
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
        }

        .related-article-link-arrow {
            margin-left: 5px;
            transition: transform 0.3s ease;
        }

        .related-article-link:hover .related-article-link-arrow {
            transform: translateX(3px);
        }

        /* 页脚 */
        footer {
            background: #333;
            color: white;
            padding: 40px 0 20px;
            text-align: center;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .footer-logo {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .footer-logo span {
            color: #ffde59;
        }

        .social-links {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-icon:hover {
            background: #ffde59;
            color: #333;
            transform: translateY(-3px);
        }

        .copyright {
            margin-top: 20px;
            color: #999;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .article-container {
                grid-template-columns: 1fr;
            }

            .sidebar {
                margin-top: 30px;
            }

            .article-title {
                font-size: 1.8rem;
            }

            .article-header-image {
                height: 300px;
            }

            .related-articles-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .article-content {
                padding: 30px;
            }
        }

        @media (max-width: 768px) {
            .nav-left .nav-links {
                display: none;
            }

            .nav-right {
                display: none;
            }

            .mobile-nav {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background: #6b5ce7;
                padding: 20px;
                transition: 0.5s ease-in-out;
                display: flex;
                flex-direction: column;
                z-index: 999;
            }

            .mobile-nav.active {
                left: 0;
            }

            .mobile-nav .nav-links {
                flex-direction: column;
                align-items: center;
                margin-bottom: 20px;
            }

            .mobile-nav .nav-links li {
                margin: 15px 0;
            }

            .hamburger {
                display: block;
            }

            .article-title {
                font-size: 1.5rem;
            }

            .article-header-image {
                height: 250px;
            }

            .article-content {
                padding: 20px;
                font-size: 1rem;
            }

            .related-articles-grid {
                grid-template-columns: 1fr;
            }

            .article-nav {
                flex-direction: column;
                gap: 15px;
            }

            .article-nav-item {
                flex: 0 0 100%;
            }
        }

        @media (max-width: 480px) {
            .article-header-overlay {
                padding: 30px 20px 20px;
            }

            .article-content {
                padding: 15px;
            }

            .author-section {
                flex-direction: column;
                text-align: center;
            }

            .author-avatar {
                margin-right: 0;
                margin-bottom: 15px;
            }

            .share-section {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
        }
