/* News & Press 页面样式 */
.news-container {
    padding: 50px 0;
}

.news-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
    color: #2e7d32;
}

.news-container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #555;
}

/* 搜索功能和筛选器 */
.search-filter {
    max-width: 900px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-btn {
    padding: 12px 20px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-options select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    min-width: 150px;
}

/* 新闻网格布局 */
.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 200px;
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(46, 125, 50, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #777;
    font-size: 14px;
}

.news-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: white;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #2e7d32;
    color: white;
}

/* 订阅通讯区域 */
.newsletter-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.newsletter-section p {
    margin-bottom: 25px;
    color: #666;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
}

.newsletter-form button {
    width: 100%;
    max-width: 200px;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .search-filter {
        flex-direction: column;
        align-items: center;
    }

    .search-box {
        width: 100%;
    }

    .filter-options {
        width: 100%;
        justify-content: center;
    }
}


/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    text-align: center;
}