.auto-cover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.auto-cover-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  width: 75%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  border: 0.5px solid silver;
  transition: all 0.3s ease;
  box-shadow: 0 0px 11px 6px rgba(0, 0, 0, 0.4);
  transform: scale(1);
  opacity: 1;
}

.recent-post-item:hover .auto-cover-inner {
  transform: scale(1.1);
  opacity: 0;
}

.auto-cover-title {
  font-size: 2em;
  font-weight: bold;
  font-family: haofont;
  color: white;
  text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  max-width: 100%;
  word-wrap: break-word;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.auto-cover-category {
  font-size: 1.1rem;
  font-family: haofont;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.8);
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* 响应式设计 */
@media (max-width: 1300px) {
  .auto-cover-title {
    font-size: 1.8em;
  }
  
  .auto-cover-category {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .auto-cover-inner {
    max-width: 90%;
    max-height: 75%;
  }
  
  .auto-cover-title {
    font-size: 1.2rem;
    line-height: normal;
  }
  
  .auto-cover-category {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .auto-cover-inner {
    padding: 10px;
    border-radius: 15px;
  }
  
  .auto-cover-title {
    font-size: 1.2rem;
    text-shadow: 0px 3px 1px rgba(0, 0, 0, 0.8);
  }
  
  .auto-cover-category {
    font-size: 0.8rem;
    padding: 2px 6px;
    text-shadow: 0px 3px 1px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 375px) {
  .auto-cover-inner {
    padding: 8px;
  }
  
  .auto-cover-title {
    font-size: 1.1rem;
    text-shadow: 0px 3px 1px rgba(0, 0, 0, 0.8);
  }
  
  .auto-cover-category {
    font-size: 0.75rem;
    padding: 2px 5px;
    text-shadow: 0px 3px 1px rgba(0, 0, 0, 0.8);
  }
}

/* 新增响应式样式 */

/* 确保所有布局模式下的post_cover都有定位上下文 */
.recent-post-item.top .post_cover,
.recent-post-item.left .post_cover,
.recent-post-item.right .post_cover {
  position: relative;
}

@media screen and (max-width: 768px) {
  /* 移动端单列布局且封面位置为左侧/右侧时的特殊处理 */
  .recent-post-item.col1.left .auto-cover-content,
  .recent-post-item.col1.right .auto-cover-content {
    width: 100%;
    height: 230px;
  }
  
  /* 移动端上方布局处理 */
  .recent-post-item.col1.top .auto-cover-content {
    width: 100%;
    height: 230px;
  }

  /* 确保父容器有 positioning context */
  .recent-post-item.col1.left .post_cover,
  .recent-post-item.col1.right .post_cover {
    position: relative;
  }
}

@media screen and (max-width: 375px) {
  /* 超小屏设备单列布局且封面位置为左侧/右侧时的特殊处理 */
  .recent-post-item.col1.left .auto-cover-content,
  .recent-post-item.col1.right .auto-cover-content {
    height: 170px;
  }
  
  /* 超小屏设备上方布局处理 */
  .recent-post-item.col1.top .auto-cover-content {
    height: 170px;
  }
}

/* 平板端(769px-1299px)通用样式 */
@media screen and (min-width: 769px) and (max-width: 1299px) {
  .recent-post-item .auto-cover-content {
    height: 220px;
  }
  
  /* 平板端单列布局且封面位置为左侧/右侧时的特殊处理 */
  .recent-post-item.col1.left .auto-cover-content,
  .recent-post-item.col1.right .auto-cover-content {
    width: 100%;
    height: 220px;
  }
  
  /* 平板端上方布局处理 */
  .recent-post-item.col1.top .auto-cover-content {
    width: 100%;
    height: 220px;
  }
  
  /* 确保父容器有 positioning context */
  .recent-post-item.col1.left .post_cover,
  .recent-post-item.col1.right .post_cover {
    position: relative;
  }
}

/* 桌面端(≥1300px)通用样式 */
@media screen and (min-width: 1300px) {
  .recent-post-item .auto-cover-content {
    height: 100%;
  }
  
  /* 桌面端单列布局且封面位置为左侧/右侧时的特殊处理 */
  .recent-post-item.col1.left .auto-cover-content,
  .recent-post-item.col1.right .auto-cover-content {
    width: 100%;
    height: 100%;
  }
  
  /* 桌面端上方布局处理 */
  .recent-post-item.col1.top .auto-cover-content {
    width: 100%;
    height: 225px;
  }
  
  /* 确保父容器有 positioning context */
  .recent-post-item.col1.left .post_cover,
  .recent-post-item.col1.right .post_cover {
    position: relative;
  }
}