/**
 * 新闻中心首页样式 - 方案B（顶大底小）
 */

/* 新闻中心页面容器 */
.news-center-page {
    padding: 40px 0;
}

.news-center-page .content-inner-page {
    max-width: 100%;
}

/* 分类区块 */
.news-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.news-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 分类标题栏 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b35;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #ff6b35;
    border-radius: 2px;
}

.section-more {
    font-size: 14px;
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-more:hover {
    color: #e55a2b;
}

.section-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.section-more:hover i {
    transform: translateX(3px);
}

/* 首页大卡片 */
.featured-news-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.featured-news-card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.featured-news-img {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}

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

.featured-news-card:hover .featured-news-img img {
    transform: scale(1.05);
}

.featured-news-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-news-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.featured-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-title a:hover {
    color: #ff6b35;
}

.featured-news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

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

/* 小卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.news-card-img {
    overflow: hidden;
}

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

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-content {
    padding: 15px;
}

.news-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 10px 0;
    height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #ff6b35;
}

.news-card-meta {
    font-size: 12px;
    color: #999;
}

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

/* 响应式布局 */
@media (max-width: 1199px) {
    .featured-news-img img {
        height: 240px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 991px) {
    .featured-news-card {
        flex-direction: column;
    }
    
    .featured-news-img {
        flex: none;
        max-width: 100%;
    }
    
    .featured-news-img img {
        height: 220px;
    }
    
    .featured-news-content {
        padding: 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card:nth-child(3),
    .news-card:nth-child(4) {
        display: none;
    }
}

@media (max-width: 575px) {
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .featured-news-img img {
        height: 180px;
    }
    
    .featured-news-title {
        font-size: 16px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card:nth-child(3),
    .news-card:nth-child(4) {
        display: block;
    }
    
    .news-card-img img {
        height: 180px;
    }
}