/* 新闻页面样式 */

/* 页面标题 */
.page-header {
    height: 300px;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* margin-top: 70px; */
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 新闻内容区域 */
.news-content {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item {
    display: flex;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    flex: 0 0 35%;
    overflow: hidden;
}

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

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

.news-text {
    flex: 1;
    padding: 30px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.news-date, .news-category {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
}

.news-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: #333;
}

.news-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-text .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

.pagination .next {
    width: auto;
    padding: 0 15px;
}

/* 订阅区域 */
.subscribe-section {
    padding: 80px 0;
    background-color: #222;
    color: #fff;
    text-align: center;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.subscribe-content p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.subscribe-form .btn {
    border-radius: 0;
    padding: 0 30px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .news-text h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 200px;
    }
    
    .page-header {
        height: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .subscribe-content h2 {
        font-size: 1.8rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-text {
        padding: 20px;
    }
    
    .news-text h2 {
        font-size: 1.4rem;
    }
    
    .pagination a {
        width: 35px;
        height: 35px;
    }
} 