.post-prefix-badg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-right: 3px;
  box-sizing: border-box;
  height: auto;
  min-height: 18px;
  transform: translateY(0);
  min-width: 18px;
  position: relative;
  overflow: hidden;
}

/* 小尺寸前缀，优先级更高 */
.post-prefix-badg-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 2px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-radius: 4px !important;
  margin-right: 2px !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 14px !important;
  transform: translateY(0) !important;
  min-width: 14px !important;
  max-width: 40px !important;
  letter-spacing: -0.5px !important;
}

/* 前缀悬停效果 */
.post-prefix-badg:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 确保前缀在标题中的正确显示 */
.post-title .post-prefix-badg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* 确保在所有文章列表中都能正确显示 */
.item-heading .post-prefix-badg, 
.post-title .post-prefix-badg, 
.zib_posts_mini_title .post-prefix-badg {
  display: inline-block;
  vertical-align: middle;
}

/* 电脑端前缀样式调整 */
@media (min-width: 769px) {
  .post-prefix-badg {
    font-size: 12px;
    padding: 1px 3px;
    min-height: 18px;
    margin-right: 3px;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .post-prefix-badg {
    font-size: 10px;
    padding: 1px 3px 1px 3px;
    line-height: 1.1;
    min-height: 14px;
    min-width: 22px;
    margin-right: 1px;
  }
  
  .post-prefix-badg-sm {
    font-size: 9px;
    padding: 1px 2px 1px 2px;
    line-height: 1;
    min-height: 12px;
    min-width: 18px;
    margin-right: 1px;
  }
}

/* 前缀扫光效果 */
.prefix-shine {
    position: absolute;
    content: " ";
    display: block;
    left: -100%;
    top: -5px;
    width: 15px;
    height: 145%;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    animation: sweepTitle 3s ease-in-out infinite;
    transform: rotate(28deg);
}

@keyframes sweepTitle {
    0% {
        left: -100%
    }
    
    100% {
        left: 100%
    }
}
