/* 文章和视频共用角标；配色由后台基本设置注入。 */
.post-card,
.post-recommend__media {
    position: relative;
}
.hg-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 20px);
    pointer-events: none;
}
/* 文章封面遮罩的层级为 10，角标需置于其上以保留配置中的原色。 */
.post-card > .hg-card-badges {
    z-index: 11;
}
.hg-card-badge {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    height: 25px;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
    box-shadow: none;
}
.hg-card-badge--original {
    color: var(--hg-original-color, #ffffff);
    background: var(--hg-original-background, #ff2e78);
}
.hg-card-badge--new {
    color: var(--hg-new-color, #102b26);
    background: var(--hg-new-background, #55e5b0);
}
.hg-card-badge[hidden],
.hg-card-badges[hidden] {
    display: none !important;
}
@media (max-width: 767px) {
    /* 手机端原型为二倍稿：30px 高、20px 字号按一半落地。 */
    .hg-card-badges { top: 5px; left: 5px; gap: 5px; max-width: calc(100% - 10px); }
    .hg-card-badge { height: 15px; padding: 1px 4px; font-size: 10px; line-height: 13px; }
}
