/* 新闻分类页独立样式 */
.news-archive-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.news-archive-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-archive-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.news-archive-nav-container {
    background: white;
    border-bottom: 1px solid #ecf0f1;
    position: sticky;
    top: 0;
    z-index: 100;
}

.news-archive-nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    overflow-x: auto;
}

.news-archive-nav-menu li {
    margin: 0;
}

.news-archive-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-archive-nav-menu a:hover {
    color: #2c3e50;
}

.news-archive-nav-menu .current-menu-item a {
    color: #2c3e50;
    border-bottom: 2px solid #1e40af;
}

.news-archive-main {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-archive-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-archive-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    color: #7f8c8d;
    font-weight: 500;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #dcdfe6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.filter-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.news-count {
    color: #7f8c8d;
}

.count-number {
    color: #1e40af;
    font-weight: bold;
}

.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e40af;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 20px;
}

.news-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #1e40af;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 12px;
    color: #7f8c8d;
}

.news-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-read-more {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: #3b82f6;
}

.no-news {
    text-align: center;
    padding: 60px 0;
    color: #7f8c8d;
}

.news-pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.page-item.active .page-link {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.page-item.disabled .page-link {
    color: #bdc3c7;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-archive-nav-menu {
        justify-content: flex-start;
    }
    
    .news-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .news-archive-filter {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .news-archive-box {
        padding: 20px;
    }
    
    .news-archive-banner {
        padding: 60px 0;
    }
    
    .news-archive-title {
        font-size: 28px;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .news-archive-nav-menu {
        flex-direction: column;
    }
    
    .news-archive-nav-menu li {
        width: 100%;
    }
    
    .news-archive-nav-menu a {
        text-align: center;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}