/* ===== 留影阁 - 修仙画廊 ===== */

.gallery-filter-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: var(--body-bg-color, #1a1a2e);
    border: 1px solid rgba(184, 155, 94, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.gallery-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.gallery-filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5C5446;
    letter-spacing: 2px;
    min-width: 2em;
}

.filter-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.filter-items::-webkit-scrollbar {
    display: none;
}

.filter-item {
    flex-shrink: 0;
    padding: 4px 16px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    color: #7B6A4A;
    background: rgba(255, 248, 235, 0.75);
    border: 1px solid rgba(184, 155, 94, 0.2);
    transition: all 0.3s ease;
    user-select: none;
}
.filter-item:hover {
    color: #8C6B35;
    background: #F3E8CB;
    border-color: #C5A86A;
}

/* ===== 灵气光晕（激活态） ===== */
.filter-item.active {
    color: #6B4D1F;
    background: #EAD8AF;
    border-color: transparent;
}

@keyframes lingqi-glow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(184, 155, 94, 0.3),
                    0 0 12px rgba(184, 155, 94, 0.1);
    }
    50% {
        box-shadow: 0 0 12px rgba(184, 155, 94, 0.5),
                    0 0 24px rgba(184, 155, 94, 0.2),
                    0 0 40px rgba(184, 155, 94, 0.1);
    }
}

/* ===== 心得网格 ===== */
.gallery-list.posts-row {
    min-height: 40vh;
}

/* ===== 加载状态 ===== */
.gallery-loader {
    padding: 60px 0;
}

/* ===== 暗色主題适配 ===== */
[data-theme="dark"] .gallery-filter-bar,
.dark-mode .gallery-filter-bar {
    background: rgba(26, 26, 46, 0.95);
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
    .gallery-filter-bar {
        padding: 12px 14px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
    .gallery-filter-row {
        gap: 8px;
    }
    .filter-label {
        font-size: 12px;
        min-width: 1.5em;
    }
    .filter-item {
        padding: 3px 12px;
        font-size: 12px;
    }
}
