/* 国力化工 - 新闻列表页专属样式 */
/* 从 template/cms/default/newslist.html 提取 */

.content-wrapper { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.sidebar { position: sticky; top: 20px; height: fit-content; }
.sidebar-title { font-size: 14px; font-weight: 600; color: #fff; background: var(--primary); padding: 10px 15px; border-radius: 8px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; background: rgba(26, 26, 46, 0.8); border-radius: 12px; padding: 15px; box-shadow: 0 2px 15px rgba(0,0,0,.3); }
.sidebar-list li { margin-bottom: 5px; }
.sidebar-list li:last-child { margin-bottom: 0; }
.sidebar-list a { display: flex; align-items: center; gap: 8px; padding: 12px 15px; background: var(--bg-light); border-radius: 8px; color: var(--text-dark); font-size: 14px; line-height: 1.5; transition: all 0.3s; }
.sidebar-list a:hover, .sidebar-list a.active { background: var(--primary); color: #fff; transform: translateX(5px); }
.sidebar-list a i { color: var(--primary); flex-shrink: 0; }
.sidebar-list a:hover i, .sidebar-list a.active i { color: #fff; }

.content-main { min-width: 0; }
.content-main-title { font-size: 24px; color: var(--text-dark); margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid var(--border); }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: flex; background: rgba(26, 26, 46, 0.8); border-radius: 16px; padding: 25px; box-shadow: 0 5px 25px rgba(0,0,0,.3); transition: all 0.3s; border-left: 4px solid transparent; }
.news-item:hover { border-left-color: var(--primary); transform: translateX(5px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.news-date { flex-shrink: 0; width: 80px; text-align: center; padding-right: 20px; border-right: 1px solid var(--border); margin-right: 20px; }
.news-date .day { display: block; font-size: 24px; font-weight: bold; color: var(--primary); line-height: 1.2; }
.news-date .year { display: block; font-size: 12px; color: var(--text-light); margin-top: 5px; }
.news-content { flex: 1; }
.news-title { font-size: 18px; margin-bottom: 10px; }
.news-title a { color: var(--text-dark); transition: color 0.3s; }
.news-title a:hover { color: var(--primary); }
.news-summary { font-size: 14px; color: var(--text-light); margin-bottom: 15px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-size: 14px; font-weight: 500; transition: all 0.3s; }
.read-more:hover { color: var(--accent); transform: translateX(3px); }
.news-thumb { flex-shrink: 0; width: 180px; height: 120px; margin-left: 20px; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-item:hover .news-thumb img { transform: scale(1.05); }
.pagination { margin-top: 40px; display: flex; justify-content: center; }

@media (max-width: 991px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .news-item { flex-direction: column; }
    .news-date { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 15px; margin-right: 0; margin-bottom: 15px; display: flex; gap: 15px; align-items: baseline; }
    .news-thumb { width: 100%; height: 200px; margin-left: 0; margin-top: 15px; }
}
@media (max-width: 767px) {
    .news-thumb { height: 150px; }
    .news-title { font-size: 16px; }
}
