/* news.css */
:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --light-color: #f7fafc;
    --dark-color: #2d3748;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    transition: color var(--transition-speed);
    padding: 1rem 1.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-weight: 400;
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background-color: rgba(44, 82, 130, 0.1);
}

/* 主要内容区 */
.news-section {
    padding: 2rem 0;
}

.section-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 新闻筛选栏 */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    background-color: var(--light-color);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--dark-color);
    min-width: 80px;
}

.filter-group .form-select, .filter-group .form-control {
    flex: 1;
    min-width: 150px;
}

/* 新闻卡片 */
.news-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all var(--transition-speed);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background-color: #e2e8f0;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.news-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #718096;
}

.news-summary {
    color: #4a5568;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.news-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.news-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 分页导航 */
.pagination-container {
    margin-top: 3rem;
}

.pagination {
    justify-content: center;
}

.page-item.active .page-link {
    background-image: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
    color: white;
    border: none;
}

.page-link {
    color: var(--dark-color);
    transition: all var(--transition-speed);
}

.page-link:hover {
    color: var(--primary-color);
    background-color: #e2e8f0;
}

/* 版权信息栏 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-logo {
    margin-top: 1rem;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    margin-bottom: 0.8rem;
    color: #cbd5e0;
}

.copyright a {
    color: #cbd5e0;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group .form-select, .filter-group .form-control {
        width: 100%;
    }
    
    .news-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .section-description {
        font-size: 1rem;
    }
    
    .news-card {
        margin-bottom: 1.5rem;
    }
    
    .news-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-content {
        padding: 1rem;
    }
}