        /* 新增模块切换样式 */
        .module-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #dee2e6;
        }
        
        .module-tab {
            padding: 10px 20px;
            cursor: pointer;
            border: 1px solid transparent;
            border-bottom: none;
            margin: 0 5px;
            border-radius: 5px 5px 0 0;
            transition: all 0.3s ease;
        }
        
        .module-tab.active {
            background: #f8f9fa;
            border-color: #dee2e6;
            border-bottom-color: #f8f9fa;
            color: var(--primary-color);
            font-weight: 500;
        }
        
        .module-tab:hover:not(.active) {
            background: #f1f1f1;
        }
        
        .module-content {
            display: none;
        }
        
        .module-content.active {
            display: block;
        }
        :root {
            --primary-color: #0d6efd;
            --secondary-color: #6c757d;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --border-radius: 12px;
            --box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            --transition: all 0.3s ease;
        }

        /* 修复焦点问题 */
        a:focus, button:focus, input:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* 修复搜索框布局 */
        .search-container {
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-box {
            display: flex;
            position: relative;
        }

        .search-input {
            flex-grow: 1;
            border-radius: 50px 0 0 50px;
            padding: 12px 20px;
            border: 1px solid #dee2e6;
            border-right: none;
            box-shadow: none;
            font-size: 1rem;
            transition: var(--transition);
        }

        .search-btn {
            border-radius: 0 50px 50px 0;
            padding: 0 20px;
            background: var(--primary-color);
            color: white;
            border: 1px solid var(--primary-color);
            transition: var(--transition);
            white-space: nowrap;
        }

        .search-btn:hover {
            background: #0b5ed7;
            border-color: #0b5ed7;
        }

        /* 修复热门文章焦点问题 */
        .article-card a {
            position: relative;
            z-index: 1;
        }

        .article-card a:after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
        }

        /* 其他样式保持不变 */
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            color: var(--dark-color);
            background-color: var(--light-color);
            line-height: 1.6;
            word-break: break-word;
            padding-top: 20px;
            padding-bottom: 20px;
        }

        .container {
            max-width: 1200px;
            padding-left: 15px;
            padding-right: 15px;
        }

        .site-title {
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            margin-bottom: 1.5rem;
            text-align: center;
            color: var(--primary-color);
            font-weight: 700;
        }

        .hot-articles {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
            border-radius: var(--border-radius);
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: var(--box-shadow);
        }


        .hot-articles-title {
            font-size: clamp(1.1rem, 3vw, 1.5rem);
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
        }

        .hot-articles-title:after {
            content: "";
            display: block;
            width: 60px;
            height: 3px;
            background: var(--primary-color);
            margin: 10px auto 0;
        }

        /* 搜索框样式 */
        .search-container {
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .search-box {
            position: relative;
        }

        .search-input {
            border-radius: 50px;
            padding: 12px 20px;
            border: 1px solid #dee2e6;
            box-shadow: none;
            font-size: 1rem;
            transition: var(--transition);
        }

        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        .search-btn {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            border-radius: 50px;
            padding: 0 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            transition: var(--transition);
        }

        .search-btn:hover {
            background: #0b5ed7;
        }

        /* 文章列表样式 */
        .article-list {
            list-style: none;
            padding: 0;
            margin: 0 0 30px 0;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }

        .article-item {
            background: #fff;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

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

        .article-link {
            display: block;
            padding: 20px;
            text-decoration: none;
            color: var(--dark-color);
            flex-grow: 1;
        }

        .article-title {
            font-weight: 500;
            margin-bottom: 10px;
            font-size: 1.1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            font-size: 0.85rem;
            color: var(--secondary-color);
        }

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

        .article-views:before {
            content: "👁️";
            margin-right: 5px;
        }

        /* 分页样式 */
        .pagination-container {
            margin-top: 30px;
        }

        .pagination {
            justify-content: center;
            flex-wrap: wrap;
        }

        .page-item {
            margin: 5px;
        }

        .page-link {
            border-radius: 8px !important;
            min-width: 40px;
            text-align: center;
        }

        .page-jump-form {
            display: flex;
            align-items: center;
            margin-top: 15px;
            justify-content: center;
        }

        .page-jump-input {
            width: 60px;
            margin: 0 10px;
            text-align: center;
        }

        /* 页脚样式 */
        .site-footer {
            margin-top: 50px;
            padding-top: 20px;
            border-top: 1px solid #eee;
            color: var(--secondary-color);
            text-align: center;
            font-size: 0.9rem;
        }

        /* 卡片样式 - 用于热门文章 */
        .article-card {
            height: 100%;
            border: none;
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: var(--transition);
            box-shadow: var(--box-shadow);
        }

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

        .article-card-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .article-card-title {
            font-size: 1rem;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-card-meta {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .view-count {
            font-size: 0.85rem;
        }

        /* 响应式调整 */
        @media (max-width: 767.98px) {
            .container {
                padding-left: 10px;
                padding-right: 10px;
            }

            .article-list {
                grid-template-columns: 1fr;
            }

            .hot-articles {
                padding: 15px;
            }

            .article-item, .article-card {
                border-radius: 10px;
            }

            .search-input {
                padding: 10px 15px;
            }

            .search-btn {
                padding: 0 15px;
            }
        }

        @media (min-width: 768px) and (max-width: 991.98px) {
            .article-list {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        /* 触摸设备优化 */
        @media (hover: none) {
            .article-item:hover, .article-card:hover {
                transform: none;
            }
        }

        /* 打印样式 */
        @media print {
            body {
                background: none;
                color: #000;
                padding: 0;
            }
            
            .container {
                max-width: 100%;
                padding: 0;
            }
            
            .hot-articles, .search-container, .pagination-container, .site-footer {
                display: none;
            }
            
            .article-list {
                display: block;
            }
            
            .article-item {
                page-break-inside: avoid;
                margin-bottom: 15px;
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }
        /* 原有CSS保持不变 */
        /* 新增评论相关样式 */
        .comment-section {
            max-width: 800px;
            margin: 30px auto;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        .comment-form input, 
        .comment-form textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        .comment-form textarea {
            min-height: 100px;
        }
        .comment {
            padding: 15px;
            background: white;
            border-radius: 5px;
            margin-bottom: 10px;
        }
        .comment-author {
            font-weight: bold;
        }
        .comment-meta {
            color: #666;
            font-size: 0.8em;
            margin-bottom: 5px;
        }
        .comment-content {
            line-height: 1.5;
        }
        /* 触摸反馈效果 */
.touch-device .touch-active {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

/* 页面加载动画 */
body:not(.loaded) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* 清空按钮样式 */
.search-box .btn-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.search-box .btn-link:hover {
    color: #0d6efd;
}