/* ============================================
 * 图片收藏 - 灯箱收藏按钮 + 收藏页
 * ============================================ */

/* ── 收藏页容器 ── */
.zib-fav-page-wrap {
    min-height: calc(100vh - 280px);
}

/* ── 卡片网格（响应式列数由 CSS 变量控制） ── */
.zib-fav-grid {
    display: grid;
    gap: 12px;
}

/* ── 瀑布流卡片 ── */
.zib-fav-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s;
}

.zib-fav-card:hover {
    transform: translateY(-3px);
}

.zib-fav-card img {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.zib-fav-card:hover img {
    transform: scale(1.05);
}

/* ── 底部悬停遮罩（瀑布流风格） ── */
.zib-fav-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zib-fav-card:hover .zib-fav-overlay {
    opacity: 1;
}

@media (hover: none), (max-width: 768px) {
    .zib-fav-overlay {
        opacity: 1;
    }
}

.zib-fav-ov-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zib-fav-ov-time {
    font-size: 11px;
    color: rgba(255,255,255,.6);
}

/* ── 显示控制 ── */
.zib-fav-hide-title .zib-fav-overlay {
    display: none;
}

/* ====== 灯箱收藏按钮 ====== */
.zib-fav-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: #888 !important;
}
.zib-fav-btn.faved {
    color: #ff6b6b !important;
}

/* ====== 灯箱"查看原文"按钮 ====== */
.zib-fav-article-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: #fff !important;
    font-size: 12px !important;
}
.zib-fav-article-btn:hover {
    color: #26c6da !important;
}
