/* ============================================
 * 卡片悬浮遮罩美化 v1.6.13
 * hover 封面：黑色遮罩 + flex居中"立即查看"按钮
 * ============================================ */

.post-item {
    overflow: hidden !important;
    border-radius: 12px !important;
}
.post-item .entry-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* VIP/置顶角标保持在遮罩上面 */
.post-item .tips-badge {
    z-index: 6 !important;
}

/* flex 居中容器（覆盖整个封面，hover时淡入） */
.post-item .sq-cms-wrap {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 4;
    border-radius: inherit;
    backdrop-filter: blur(2px);
}

.post-item:hover .sq-cms-wrap {
    opacity: 1;
}

/* 按钮 */
.post-item .sq-cms-btn {
    display: inline-block;
    background: #FEC195;
    color: #3a2a1a;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background .25s ease, color .25s ease, border .25s ease, box-shadow .25s ease;
    text-decoration: none;
    border: 1.5px solid #FEC195;
    box-shadow: 0 6px 18px rgba(254, 193, 149, .45);
    white-space: nowrap;
}

/* hover 按钮本身 */
.post-item .sq-cms-btn:hover {
    background: transparent;
    color: #FEC195;
    border-color: #FEC195;
    box-shadow: 0 6px 22px rgba(254, 193, 149, .7);
}
