/**
 * 主文章列表 - 随机图片版 - 增量样式
 *
 * 仅定义分类角标样式，其他全部继承内置main.less中的
 * .main-article-list / .article-item 等样式
 */

/* 分类角标 - 定位在缩略图容器上 */
.main-article-list--random .article-item__thumb {
    position: relative;
}

/* 角标基础样式 */
.main-article-list--random .article-item__category-badge {
    position: absolute;
    z-index: 2;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: auto;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

/* hover时角标变蓝 */
.main-article-list--random .article-item__category-badge:hover {
    background: rgba(23, 114, 246, 0.85) !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* 深色模式 */
html[data-theme="dark"] .main-article-list--random .article-item__category-badge {
    opacity: 0.9;
}

html[data-theme="dark"] .main-article-list--random .article-item__category-badge:hover {
    background: rgba(23, 114, 246, 0.85) !important;
    color: #fff !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-article-list--random .article-item__category-badge {
        padding: 2px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .main-article-list--random .article-item__category-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
}
