/* ============================================================
   文章标题前缀 — 图片徽章 + 文字标签（带扫光动画）
   ============================================================ */

/* ── 图片模式：SVG 徽章 ── */
.zm-tp-img {
    display: inline-block;
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    position: relative;
    top: -2px;
    pointer-events: none;
    border-radius: 3px;
}

/* ── 文字模式：彩色标签 ── */
.zm-tp-text {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 4px 6px;
    margin-right: 4px;
    height: 19px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    top: -2px;
    color: #fff;
    clip-path: polygon(7% 0, 99% 0, 93% 100%, 0 100%);
}

/* 扫光动画 */
.zm-tp-text::after {
    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: zmTpSweep 3s ease-in-out infinite;
    transform: rotate(28deg);
}

@keyframes zmTpSweep {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* ── 响应式 ── */
@media (max-width: 767px) {
    .zm-tp-img {
        height: 16px;
        margin-right: 3px;
    }
    .zm-tp-text {
        font-size: 10px;
        height: 16px;
        padding: 3px 5px;
    }
}
