/* 页面容器整体最大宽度和居中 */
#page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 页面布局：文章 + 侧边栏 */
#page-container .layout-flex {
  display: flex;
  gap: 30px; /* 控制左右间距 */
  align-items: flex-start;
}

/* 文章主内容区域 */
.main-content {
  width: 70%;
}

/* 右侧栏宽度修正 */
.right-sidebar {
  width: 30%;
}

/* 面包屑导航 */
#breadcrumb-bar .breadcrumb-inner {
  padding: 10px 0;
  font-size: 14px;
  color: #555;
}

/* 文章卡片样式 */
.article-card {
  display: flex;
  border: 1px solid #ddd;
  background-color: #fff;
  margin-bottom: 20px;
  padding: 15px;
  transition: box-shadow 0.3s ease;
}
.article-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card-thumb {
  width: 180px;
  height: 120px;
  overflow: hidden;
  margin-right: 15px;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  flex: 1;
}
.card-body h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #333;
}
.card-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.card-description {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 分页样式 */
.pagination-bar {
  margin-top: 20px;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pagination .page-item {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #333;
  background-color: #f9f9f9;
  text-decoration: none;
}
.pagination .page-item:hover {
  background-color: #eee;
}
.pagination .page-num-current {
  background-color: #333;
  color: #fff;
}

/* 无数据提示 */
.no-data {
  margin: 30px 0;
  text-align: center;
  color: #aaa;
  font-size: 15px;
}

/* ---------- 右侧栏侧边栏样式 ---------- */
.sidebar,
.widget,
.sidebar-widget {
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 20px;
  padding: 15px;
}
.widget-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  color: #333;
}

/* 简单文字列表 */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.simple-list li {
  margin-bottom: 10px;
}
.simple-list li a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

/* 图文文章列表 */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.post-thumb {
  width: 80px;
  height: 60px;
  overflow: hidden;
  flex-shrink: 0;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.post-content {
  flex: 1;
}
.post-content h4 {
  font-size: 14px;
  margin: 0 0 5px;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-content h4 a {
  text-decoration: none;
  color: #333;
}
.post-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-meta i {
  margin-right: 3px;
}
/* 美化侧边栏图文列表缩略图 */
.post-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.post-thumb {
  width: 120px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  margin-right: 12px;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.post-item h4 {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

