.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 0; /* 只保留上下padding，移除左右padding */
    display: flex;
    flex-wrap: wrap;
    gap: 30px 0; /* 只保留上下gap，移除左右gap */
}
/* 阅读时长样式 */
.reading-time {
    display: flex;
    align-items: center;
    color: #777;
}

.reading-time i {
    margin-right: 6px;
    color: #3498db;
}
/* 修复左侧新闻列表样式 */
.news-list {
    flex: 0 0 72%;
    padding: 0 15px 0 0; /* 添加左右内边距保持间距 */
}

/* 修复右侧板块样式 */
.sidebar {
    flex: 0 0 28%;
    padding: 0 0 0 15px; /* 添加左右内边距保持间距 */
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

.news-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    border-left: 4px solid #000;
}

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

.news-thumbnail {
    flex: 0 0 220px;
    margin-right: 25px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

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

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3));
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.3;
}

.news-title:hover {
    color: #e74c3c;
}

.news-meta {
    display: flex;
    font-size: 15px;
    color: #777;
    margin-bottom: 15px;
}

.news-meta span {
    margin-right: 25px;
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 6px;
    color: #e74c3c;
}

.news-summary {
    font-size: 16px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.6;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    font-size: 13px;
    color: #333;
    background-color: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.tag:hover {
    background-color: #e74c3c;
    color: #fff;
}

.recommended-articles, .hot-tags {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    border-top: 5px solid #000;
}

.hot-tags {
    border-top: 5px solid #000;
}

.recommended-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    padding: 15px;
    border-radius: 8px;
}

.recommended-item:hover {
    background-color: #f9f9f9;
}

.recommended-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recommended-thumb {
    flex: 0 0 90px;
    margin-right: 18px;
    border-radius: 6px;
    overflow: hidden;
}

.recommended-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    transition: transform 0.5s;
}

.recommended-item:hover .recommended-thumb img {
    transform: scale(1.05);
}

.recommended-content {
    flex: 1;
}

.recommended-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.recommended-title:hover {
    color: #e74c3c;
}

.recommended-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    align-items: center;
}

.recommended-meta i {
    margin-right: 5px;
    color: #e74c3c;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud .tag {
    font-size: 14px;
    padding: 7px 16px;
}

.featured-section {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #e74c3c, #f39c12);
}
/* 响应式设计 */
@media (max-width: 1600px) {
    .container, .header-container, .footer-container {
        max-width: 1400px;
    }
}

@media (max-width: 1500px) {
    .container, .header-container, .footer-container {
        max-width: 1300px;
    }
}

@media (max-width: 1200px) {
    .container, .header-container, .footer-container {
        max-width: 1100px;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .news-list, .sidebar {
        flex: 0 0 100%;
        padding: 0; /* 在小屏幕上移除左右内边距 */
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumbnail {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .news-thumbnail img {
        height: 200px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 8px 15px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .container, .header-container, .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .news-list, .sidebar {
        padding: 0 10px; /* 在小屏幕上添加较小的左右内边距 */
    }

    .news-thumbnail img {
        height: 180px;
    }

    .news-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 24px;
    }
}