/* 自定义样式 - 修复分类页布局 */

/* 强制分类页内容顶部对齐 */
.layout#content-inner {
  -webkit-box-pack: start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
  -webkit-box-align: start !important;
  -ms-flex-align: start !important;
  align-items: flex-start !important;
}

/* 减少分类页第一个子元素的顶部内边距 */
.layout > #category:first-child,
.layout > .category-lists:first-child,
.layout > #archive:first-child,
.layout > #tag-page-tags:first-child {
  padding: 0.8rem 1.5rem !important;
}

/* 减少分类列表标签页的顶部间距 */
#tag-page-tags {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
}

/* 调整分类页标题的间距 */
.article-sort-title {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

/* 分类导航栏上移 */
#catalog-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 修复子分类页顶部间距 */
body[data-type="anzhiyu"] .layout > div:first-child:not(.recent-posts) {
  padding: 0.8rem 1.5rem !important;
}

/* 调整分类标签的间距 */
#tag-page-tags a {
  margin: 4px 6px !important;
  padding: 6px 12px !important;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .layout > #category:first-child {
    padding: 0.5rem 1rem !important;
  }
}

/* ====== 首页右侧边栏放大 ====== */

/* 作者卡片头像放大 */
.card-info .author-info-avatar img.avatar-img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 60px !important;
}

/* 作者状态图标放大 */
.author-info-avatar .author-status {
  width: 40px !important;
  height: 40px !important;
}
.author-info-avatar .author-status img {
  width: 32px !important;
  height: 32px !important;
}

/* 作者卡片底部信息放大 */
.author-info__bottom-group .author-info__name {
  font-size: 1.4rem !important;
}
.author-info__bottom-group .author-info__desc {
  font-size: 0.9rem !important;
}

/* "最近发布" 卡片 - 显示文章缩略图大图 */
.card-recent-post .aside-list-item .thumbnail img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
}

/* 右侧整体卡片加宽 */
#aside-content .card-widget {
  padding: 1.2rem !important;
}

/* ====== 动画技术图标修复 ====== */

/* 确保SVG图标正确显示 */
.tags-group-icon img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  padding: 8px !important;
}

/* 图标背景圆形 */
.tags-group-icon {
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  margin: 4px !important;
}