/* ========== 相册灯箱样式 ========== */
.cY-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    animation: cYLightboxFadeIn 0.25s ease;
}
@keyframes cYLightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cY-lightbox-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}
.cY-lightbox-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
}
.cY-lightbox-close:hover { opacity: 1; }

.cY-lightbox-body {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 20px 20px;
}
/* 左侧大图区 */
.cY-lightbox-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cY-lightbox-viewer img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}
.cY-lightbox-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}
.cY-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.cY-lightbox-prev { left: 10px; }
.cY-lightbox-next { right: 10px; }

/* 右侧面板 */
.cY-lightbox-sidebar {
    width: 280px;
    margin-left: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 75vh;
}
.cY-lightbox-sidebar h3 {
    font-size: 16px;
    margin: 0 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}
/* 分类列表 */
.cY-category-list {
    list-style: none;
    padding: 0; margin: 0 0 20px;
}
.cY-category-list li {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.2s;
}
.cY-category-list li:hover,
.cY-category-list li.active {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}
/* 房间信息 */
.cY-room-info-sidebar {
    font-size: 14px;
    line-height: 1.6;
}
.cY-room-info-sidebar .info-line {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 缩略图条（底部） */
.cY-thumbnail-strip {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}
.cY-thumb-item {
    width: 70px; height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
}
.cY-thumb-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cY-thumb-item.active {
    border-color: #2196F3;
    opacity: 1;
}
.cY-thumb-item:hover {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .cY-lightbox-body {
        flex-direction: column;
        padding: 0 10px 10px;
    }
    .cY-lightbox-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .cY-category-list {
        display: flex; flex-wrap: wrap; gap: 6px;
    }
    .cY-lightbox-viewer img {
        max-height: 50vh;
    }
}