/* 新闻动态页面样式 */

.news-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
    margin-top: 70px;
}

.news-header .header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.news-header .header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-header .header-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85), rgba(63, 81, 181, 0.7));
}

.news-header .header-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.news-header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.news-header p {
    font-size: 20px;
    color: var(--secondary-color);
}

.news-categories {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-light);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-btn {
    padding: 10px 25px;
    background: var(--bg-light);
    border: none;
    border-radius: 25px;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: var(--accent-color);
    color: var(--bg-white);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.news-list {
    padding: 60px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-content .news-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
}

.news-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 15px 0;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .news-header {
        height: 300px;
    }

    .news-header h1 {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

