/* 主内容区 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* 文章列表 */
.posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-category {
  display: inline-block;
  font-size: 0.8rem;
  color: #3498db;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
}

.post-title:hover {
  color: #3498db;
}

.post-excerpt {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #999;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #3498db;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  color: #2c3e50;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.category-list li a {
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list li a:hover {
  color: #3498db;
}

.category-count {
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* 分类标签高亮样式 */
.category-list li a.active {
  color: #3498db;
  font-weight: 600;
}
.category-list li a.active .category-count {
  background-color: #3498db;
  color: #fff;
}