/* 新闻中心列表页样式 */

/* 页面头部 */
.news-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.news-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.news-header .header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.news-header .container {
    position: relative;
    z-index: 2;
}

.news-header .sub-title {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.news-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 2px;
}

.news-header .desc {
    font-size: 14px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 分类筛选 */
.category-filter {
    padding: 20px 0;
    text-align: center;
    background: #f8f5f0;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    color: #666;
    background: #fff;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

/* 新闻列表 */
.news-list-section {
    padding: 40px 0 60px;
    background: #f8f5f0;
}

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

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    width: 300px;
    flex-shrink: 0;
}

.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-tag {
    position: absolute;
    top: 15px;
    left: 0;
    background: #8B4513;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.news-title a:hover {
    color: #8B4513;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #999;
}

.news-meta i {
    margin-right: 5px;
    color: #8B4513;
}

.news-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    display: inline-block;
    color: #8B4513;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #CD853F;
    transform: translateX(5px);
}

.read-more i {
    margin-left: 5px;
    font-size: 11px;
}

/* 侧边栏 */
.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: #8B4513;
}

/* 热门资讯 */
.hot-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-news-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.hot-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-news-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.hot-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-news-title {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.hot-news-title:hover {
    color: #8B4513;
}

.hot-news-views {
    font-size: 11px;
    color: #999;
    align-self: flex-start;
}

/* 文章分类 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 13px;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: #8B4513;
    padding-left: 10px;
}

.category-count {
    background: #f8f5f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #8B4513;
}

/* 侧边栏广告 */
.sidebar-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* 分页 */
.pagination-section {
    padding: 40px 0;
    text-align: center;
    background: #f8f5f0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-card {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-header {
        height: 300px;
    }
    
    .news-header h1 {
        font-size: 28px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .sidebar-section {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .news-header {
        height: 250px;
    }
    
    .news-header h1 {
        font-size: 24px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
}