/* =========================================
   news-list.css — PbootCMS 新闻列表卡片布局
   配合 article.css 使用，覆盖在 skin/css/ 下
   ========================================= */
/* ========== 栏目头部（白底卡片） ========== */
.news-col-header {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  margin-bottom: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-col-main {
  flex: 1;
  min-width: 0;
}

.news-col-title {
  font-size: 28px;
  font-weight: 650;
  color: #222;
  line-height: 1.35;
  margin: 0;
}

.news-col-desc {
  font-size: 15px;
  color: #777;
  margin: 6px 0 0;
  line-height: 1.65;
  max-width: 680px;
}

.news-col-count {
  font-size: 14px;
  color: #aaa;
  white-space: nowrap;
  margin-left: 16px;
  flex-shrink: 0;
  background-color: #f5f7fa;
  padding: 4px 14px;
  border-radius: 30px;
  line-height: 32px;
}

.news-col-count b {
  color: #0066ff;
  font-weight: 630;
}

/* 响应式：窄屏堆叠 */
@media screen and (max-width: 640px) {
  .news-col-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .news-col-title {
    font-size: 23px;
  }

  .news-col-count {
    margin-left: 0;
    margin-top: 12px;
  }
}
/* ---------- 双列卡片网格 ---------- */
.news-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin: 0 0 30px;
}

/* 单卡片 */
.news-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
	display: flex;
	flex-direction: column;
}

.news-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.10);
	transform: translateY(-2px);
}

/* 缩略图 */
.news-card-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 2 / 1;
	background: #f5f5f5;
}
.news-card-thumb .img-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.news-card:hover .news-card-thumb .img-cover {
	transform: scale(1.05);
}

/* 卡片正文 */
.news-card-body {
	padding: 16px 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

/* 标题 */
.news-card-title {
	font-size: 17px;
	line-height: 1.5;
	margin: 0;
	font-weight: 700;
}
.news-card-title a {
	color: #222;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-card-title a:hover {
	color: #e53935;
}

/* 描述 */
.news-card-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 元信息行 */
.news-card-meta {
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px dashed #eee;
	font-size: 12px;
	color: #999;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.news-card-meta .news-date { color: #888; }
.news-card-meta .news-cat {
	color: #e53935;
	text-decoration: none;
}
.news-card-meta .news-cat:hover { text-decoration: underline; }
.news-card-meta .news-views { margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
	.news-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.news-card-title { font-size: 16px; }
}
/* ========== 侧边栏整体 ========== */
#sidebar {
  width: 320px;               /* 固定宽度，可根据实际调整 */
  flex-shrink: 0;             /* 防止在弹性布局中被压缩 */
  margin-left: 30px;          /* 与主内容区的间距 */
}

/* 响应式：小屏幕隐藏侧边栏（保留原始 hidden-sm-md-lg 类） */
@media screen and (max-width: 992px) {
  #sidebar.hidden-sm-md-lg {
    display: none !important;
  }
}

/* ========== 通用 Widget 卡片 ========== */
.widget {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px 18px;
  margin-bottom: 25px;
}

.widget .c-title {
  font-size: 17px;
  font-weight: 620;
  color: #1a1a1a;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.widget .c-title .name {
  position: relative;
  padding-left: 12px;
}

.widget .c-title .name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background-color: #0066ff;
  border-radius: 2px;
}

/* ========== 热门阅读列表 ========== */
.widget-hot .widget-content {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-hot .widget-content li {
  margin-bottom: 14px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 14px;
}

.widget-hot .widget-content li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.widget-hot .widget-content li a {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.widget-hot .widget-content li a:hover {
  opacity: 0.85;
}

.widget-hot .img-wrap {
  width: 90px;
  height: 60px;
  flex-shrink: 0;
  margin-right: 12px;
  overflow: hidden;
  border-radius: 6px;
}

.widget-hot .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.widget-hot .new-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.widget-hot .new-text .title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.widget-hot .new-text .info {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 12px;
}

.widget-hot .new-text .info .time,
.widget-hot .new-text .info .view {
  display: inline-flex;
  align-items: center;
}

/* ========== 栏目导航 ========== */
.widget-nav .widget-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-nav .nav-item {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f5f7fa;
  color: #444;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.widget-nav .nav-item:hover {
  background-color: #0066ff;
  color: #fff !important;
  border-color: #0066ff;
}

.pagination li a, .pagination a{
    background: #ffffff;
}