/* 新闻内容区域 */
.news-content {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 新闻网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* 左侧主要内容 */
.news-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 置顶新闻 */
.news-featured {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(8, 66, 138, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.news-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(8, 66, 138, 0.12);
}

.featured-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.featured-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}

.featured-content {
    padding: 30px;
    position: relative;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.news-date, .news-category, .source {
    display: inline-flex;
    align-items: center;
    height: 28px;  /* 固定高度确保对齐 */
    padding: 0 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 28px;  /* 与高度相同确保垂直居中 */
}

.news-date {
    background: #f8f9fa;
    color: #6c757d;
}

.news-category {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.source {
    color: #6c757d;
    background: #f8f9fa;
}

/* 来源前缀样式 */
.source::before {
    content: '来源：';
    margin-right: 2px;
}

.news-meta i {
    font-size: 16px;
    color: var(--primary-color);
}

.featured-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-featured:hover h2 {
    color: var(--primary-color);
}

.featured-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

/* 新闻列表项样式 */
.news-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(8, 66, 138, 0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(8, 66, 138, 0.12);
}

.news-image {
    height: 100%;
    min-height: 240px;
    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.08);
}

.news-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.news-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover h3 {
    color: var(--primary-color);
}

/* 新闻列表间距 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

/* 右侧边栏优化 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 资讯分类优化 */
.sidebar-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(8, 66, 138, 0.08);
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(var(--primary-rgb), 0.02);
    border-radius: 12px;
    padding: 15px;
}

.category-list li {
    margin-bottom: 2px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.category-list span {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.category-list a:hover span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 热门新闻优化 */
.popular-news li {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popular-news li:last-child {
    margin-bottom: 0;
}

.popular-news li:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.popular-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-news li:hover img {
    transform: scale(1.1);
}

.popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-info h4 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.popular-news li:hover h4,
.popular-news li:hover .news-date {
    color: #fff;
}

.news-date {
    font-size: 13px;
    color: #6c757d;
    transition: color 0.3s ease;
}

/* 标签云额外优化 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.tag-cloud a span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.tag-cloud a:hover span {
    color: #fff;
}

/* 搜索框 */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 16px;
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

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

.pagination a {
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .featured-image {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-content h2 {
        font-size: 24px;
    }
} 