/* 新闻资讯页面特有样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .page-header p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

/* 新闻分类 */
.news-categories {
    padding: 30px 0;
    background-color: var(--light-blue);
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-tab {
    padding: 8px 20px;
    background-color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

    .category-tab:hover {
        background-color: var(--secondary-blue);
        color: white;
    }

    .category-tab.active {
        background-color: var(--primary-blue);
        color: white;
    }

/* 新闻列表 */
.news-list {
    padding: 40px 0 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px 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 5px 15px rgba(0, 0, 0, 0.12);
    }

.news-image {
    height: 180px;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    padding: 20px;
}

.news-date {
    color: var(--secondary-blue);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

    .read-more:hover {
        text-decoration: underline;
    }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

#page-info {
    font-weight: 500;
    color: var(--dark-blue);
}

/* 新闻详情模态框 */
#news-modal .modal-content {
    max-width: 800px;
    padding: 40px;
}

#news-modal h2 {
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.95rem;
}

    .news-meta span:first-child {
        color: var(--secondary-blue);
    }

.news-content {
    line-height: 1.8;
    color: #444;
}

    .news-content p {
        margin-bottom: 20px;
    }

    .news-content img {
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 4px;
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .category-tabs {
        flex-wrap: wrap;
    }

    #news-modal .modal-content {
        padding: 30px 20px;
    }

    #news-modal h2 {
        font-size: 1.5rem;
    }
}
