/* 新闻资讯样式 */

/* Banner区域 */
.news-banner {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-banner .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.news-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 48px;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #88be4b;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* 新闻列表区域 */
.news-list {
    padding: 60px 0;
    background: white;
}

.list-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.list-header {
    text-align: center;
    margin-bottom: 60px;
}

.list-header h2 {
    font-size: 32px;
    color: #222;
    margin-bottom: 20px;
}

/* 分类导航 */
.category-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.category-item {
    padding: 10px 25px;
    background: #f8f9fa;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #666;
    border: 1px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: #88be4b;
    color: white;
    border-color: #88be4b;
}

/* 新闻卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #88be4b;
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    padding: 5px 15px;
    background: #88be4b;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-summary {
    font-size: 14px;
    color: #666;
    line-height: 24px;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 10px;
}

.pagination-item {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
    border: 1px solid transparent;
}

.pagination-item:hover,
.pagination-item.active {
    background: #88be4b;
    color: white;
    border-color: #88be4b;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    background: #f8f9fa;
    color: #666;
    border-color: transparent;
}

/* 新闻详情页 */
.news-detail {
    padding: 60px 0;
    background: white;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.detail-title {
    font-size: 32px;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: #999;
}

.detail-content {
    font-size: 16px;
    line-height: 28px;
    color: #333;
    margin-bottom: 40px;
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* 相关推荐 */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.related-header {
    font-size: 20px;
    color: #222;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #88be4b;
}

.related-card h3 {
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-card p {
    font-size: 14px;
    color: #666;
    line-height: 20px;
    margin-bottom: 15px;
}

.related-card .card-meta {
    justify-content: flex-start;
    gap: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-banner h1 {
        font-size: 36px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .category-nav {
        flex-wrap: wrap;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .news-banner h1 {
        font-size: 28px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .detail-content {
        font-size: 14px;
        line-height: 24px;
    }
}
