/* ==========================================================================
   云语VIP中心 - 文章列表徽章样式（NEW 角标 / 封面标签 / 标题图标）
   配色：主 #1e6fff / 深 #0b4fd6 / 亮青 #00b4ff / 阴影 rgba(30,111,255,.18)
   Author: 饺子 | https://www.yykbk.com
   ========================================================================== */

/* 列表卡片作为角标定位容器 */
li.joe_list__item {
    position: relative;
}

li.joe_list__item a.thumbnail {
    position: relative;
}

/* ---------- NEW 角标（卡片右上角，轻微浮动动画） ---------- */

.yvb-new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #1e6fff, #00b4ff);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(30, 111, 255, 0.18);
    pointer-events: none;
    animation: yvbBadgeFloat 2.4s ease-in-out infinite;
}

@keyframes yvbBadgeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ---------- 封面标签（缩略图左上角标签条） ---------- */

.yvb-cover-tag {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background: #1e6fff;
    border-radius: 0 0 6px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* ---------- 标题图标（标题文字前 16px 圆角图标） ---------- */

.yvb-title-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: -3px;
    display: inline-block;
    background: #f0f6ff;
    pointer-events: none;
}

/* ---------- 深色模式（跟随主题 html[data-night]） ---------- */

html[data-night] .yvb-new-badge {
    box-shadow: 0 4px 12px rgba(30, 111, 255, 0.35);
}

html[data-night] .yvb-cover-tag {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

html[data-night] .yvb-title-icon {
    background: #1f2937;
}

/* ---------- 移动端 ---------- */

@media (max-width: 768px) {
    .yvb-new-badge {
        top: 6px;
        right: 6px;
        padding: 2px 7px;
        font-size: 10px;
    }

    .yvb-cover-tag {
        padding: 2px 8px;
        font-size: 10px;
    }
}

/* 用户偏好减少动效时关闭浮动动画 */
@media (prefers-reduced-motion: reduce) {
    .yvb-new-badge {
        animation: none;
    }
}
