/* Lightbox 样式 */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.8;
}

.lightbox-loading {
    color: white;
    font-size: 18px;
    text-align: center;
}

.lightbox-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: lightbox-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes lightbox-spin {
    to { transform: rotate(360deg); }
}

/* 图片可点击提示 */
img[data-full] {
    cursor: zoom-in;
    transition: opacity 0.3s, transform 0.3s;
}

img[data-full]:hover {
    opacity: 0.9;
}

/* 图片加载中状态 */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: img-shimmer 1.5s infinite;
}

@keyframes img-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
