

/* 主内容区域 */
.main-content {
    display: flex;
}

/* 新闻列表 */
.news2-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-radius: 10px;
    overflow: hidden;
}

.news2-item {
    background-color: white;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    display: block;
    cursor: pointer;
    border-left: 3px solid #1e56c0;
}

.news2-item:hover {
    background-color: #1e56c0;
   
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}



.news2-item:hover h3 {
    color: #fff;
}
.news2-item:hover p {
    color: #fff;
}

.date-tag {
    background-color: #1e56c0;
    color: white;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}
.news2-item:hover .date-tag {
    background-color: #fff;
    color: #1e56c0;
}

.news2-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.news2-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
}

.section-header h3 {
    color: #1e56c0;
    font-size: 18px;
}

.sidebar-news-list {
    padding: 10px;
}

.sidebar-news2-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-news2-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
}

.sidebar-news2-item:hover h4 {
    color: #1e56c0;
}

.sidebar-news2-item:last-child {
    border-bottom: none;
}

.news2-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-news-item:hover .news2-thumbnail {
    transform: scale(1.05);
}

.news2-info {
    flex: 1;
}

.news2-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news2-info .date {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news2-item h3 {
        font-size: 16px;
    }
}