@charset "UTF-8";
/* 主要内容区域 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 文章中心页面样式 */
.articles-container {
    margin: 30px 0;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%234cc9f0" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,192C672,181,768,139,864,128C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
}

.page-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* 文章分类导航 */
.categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-link {
    padding: 10px 20px;
    border: none;
    background: #f8f9fa;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    display: inline-block;
}

.category-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    text-decoration: none;
    color: #495057;
}

.category-link.active {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
}

/* 搜索框 */
.articles-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background-color: white;
    color: #333;
}

.search-box input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box button {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 14px;
}

.search-box button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
}

/* 文章列表 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.article-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
}

.article-date, .article-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a2e;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #0066cc;
}

.article-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-tag {
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #cce0ff;
    font-weight: 500;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.article-read-more:hover {
    gap: 12px;
    color: #0052a3;
}

 /* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 30px;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #eee;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn.active {
    background-color: #FF0050;
    color: white;
    border-color: #FF0050;
}

.page-btn:hover:not(.active) {
    background-color: #f5f5f5;
    border-color: #ddd;
}

/* 侧边栏 */
.articles-sidebar {
    display: none;
}
/* 响应式设计 */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .categories-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 15px;
        white-space: nowrap;
    }
    
    .page-container {
        padding: 15px;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-link, .pagination-ellipsis, .pagination-current {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input, .search-box button {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        padding: 12px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}