:root {
            --primary: #2c3e50;
            --primary-light: #3498db;
            --primary-dark: #1a2530;
            --secondary: #3498db;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --text: #34495e;
            --gray: #95a5a6;
            --bg: #f5f7fa;
        }
        
        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
        }
        
        body { 
            font-family: 'Noto Sans SC', 'Segoe UI', sans-serif; 
            background: linear-gradient(135deg, var(--bg) 0%, #eaf0f7 100%);
            color: var(--text); 
            line-height: 1.6; 
            min-height: 100vh;
        }
        
        .container { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 20px; 
        }
        
        /* 头部样式 */
        .header {
            text-align: center;
            margin: 30px 0 40px;
            padding: 20px 0;
            position: relative;
        }
        
        .header h1 {
            margin: 0;
            font-size: 2.8rem;
            color: var(--primary);
            text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
            position: relative;
            display: inline-block;
            font-weight: 700;
        }
        
        .header h1:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--primary-light));
            border-radius: 2px;
        }
        
.header p {
    margin-top: 25px;
    font-size: 1.2rem;
    color: var(--gray); /* 原始灰色 */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
        /* 搜索区域样式 */
        .search-container {
            max-width: 700px;
            margin: 0 auto 50px;
            background: white;
            padding: 25px 30px;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            position: relative;
            border: 1px solid #e0e7f0;
        }
        
        .search-container:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--primary-light));
            border-radius: 15px 15px 0 0;
        }
        
        .search-title {
            text-align: center;
            margin-bottom: 25px;
            color: var(--primary);
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        
        .search-form {
            display: flex;
            position: relative;
        }
        
        .search-input {
            flex: 1;
            padding: 18px 25px;
            border: 2px solid #e0e7f0;
            border-radius: 12px 0 0 12px;
            font-size: 1.1rem;
            outline: none;
            transition: all 0.3s;
            color: var(--text);
            background: #f8fafc;
        }
        
        .search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.2);
        }
        
        .search-button {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            border: none;
            padding: 0 35px;
            border-radius: 0 12px 12px 0;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 600;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
        }
        
        .search-button:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
        }
        
        .search-button i {
            margin-right: 10px;
        }
        
        .search-info {
            margin-top: 20px;
            color: var(--gray);
            font-size: 1rem;
            text-align: center;
            padding: 12px;
            background: #f0f5fd;
            border-radius: 8px;
        }
        
        .search-info strong {
            color: var(--primary);
        }
        
        /* 文章网格样式 */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .article-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s ease;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            border: 1px solid #e0e7f0;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 30px rgba(44, 62, 80, 0.2);
        }
        
        .card-header {
            padding: 25px 25px 20px;
        }
        
        .card-date {
            color: var(--primary);
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .card-title {
            margin: 0 0 15px;
            font-size: 1.5rem;
            line-height: 1.4;
        }
        
        .card-title a {
            color: var(--dark);
            text-decoration: none;
            transition: all 0.3s;
            display: block;
        }
        
        /* 修改：标题悬停时变为蓝色 */
        .card-title a:hover {
            color: #3498db;
        }
        
        .card-excerpt {
            color: var(--text);
            margin: 0 0 20px;
            line-height: 1.7;
            font-size: 1.05rem;
        }
        
        .card-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: auto;
            padding: 15px 25px 20px;
            /* 移除背景色 */
            background: none;
            /* 移除上边框 */
            border-top: none;
        }
        
        .keyword-tag {
            background: linear-gradient(135deg, #e3ecf8, #d5e4f5);
            color: var(--primary);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: all 0.3s;
        }
        
        .keyword-tag:hover {
            background: linear-gradient(135deg, #d5e4f5, #c7dcf2);
            transform: translateY(-2px);
        }
        
        .card-footer {
            padding: 0 25px 25px;
            display: flex;
            justify-content: center; /* 居中按钮 */
            align-items: center;
        }
        
        .read-more {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--primary);
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
        }
        
        .read-more:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 30px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            margin: 30px 0;
            border: 1px solid #e0e7f0;
        }
        
        .empty-state i {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 20px;
            opacity: 0.7;
        }
        
        .empty-state h2 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 2rem;
        }
        
        .empty-state p {
            margin-bottom: 25px;
            font-size: 1.1rem;
            color: var(--text);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.8;
        }
        
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f0f5fd;
            color: var(--primary);
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            border: 2px solid var(--primary);
        }
        
        .back-button:hover {
            background: var(--primary);
            color: white;
        }
        
        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            margin: 50px 0 30px;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .page-item {
            display: inline-block;
        }
        
        .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: white;
            color: var(--primary);
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            border: 2px solid #e0e7f0;
            transition: all 0.3s;
        }
        
        .page-link:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
        }
        
        .page-link.active {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            border-color: transparent;
            box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
        }
        
        .page-link.disabled {
            color: #bdc3c7;
            pointer-events: none;
            background: #f8f9fa;
            box-shadow: none;
        }
        
        /* 新增分页跳转样式 */
        .page-jump {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 15px;
        }
        
        .page-jump-input {
            width: 60px;
            padding: 12px 15px;
            border: 2px solid #e0e7f0;
            border-radius: 8px;
            text-align: center;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s;
        }
        
        .page-jump-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
        }
        
        .page-jump-button {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
        }
        
        .page-jump-button:hover {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
        }
        
        /* 省略号样式 */
        .page-ellipsis {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            color: var(--gray);
            font-weight: bold;
        }
        
        /* 页脚 */
        .footer {
            text-align: center;
            padding: 40px 0 30px;
            margin-top: 50px;
            color: var(--gray);
            font-size: 1rem;
            border-top: 1px solid #e0e7f0;
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .footer-link {
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .footer-link:hover {
            color: var(--primary);
        }
        
        /* 响应式设计 */
        @media (max-width: 900px) {
            .articles-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            .header h1 {
                font-size: 2.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .search-form {
                flex-direction: column;
            }
            
            .search-input {
                border-radius: 12px;
                margin-bottom: 15px;
            }
            
            .search-button {
                border-radius: 12px;
                padding: 18px;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .pagination {
                gap: 5px;
            }
            
            .page-jump {
                margin-top: 15px;
                margin-left: 0;
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            .articles-grid {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 1.8rem;
            }
            
            .container {
                padding: 15px;
            }
            
            .page-link {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
        }
.keyword-tag {
    text-decoration: none;
}