.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(44, 36, 25, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: lbFadeIn 0.5s ease-out forwards;
}

@keyframes lbFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes lbFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.lb-overlay.closing {
    animation: lbFadeOut 0.4s ease-out forwards;
}

.lb-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.lb-loader-text {
    font-family: 'ZCOOL XiaoWei', 'KaiTi', cursive;
    font-size: 32px;
    color: #8B6914;
    letter-spacing: 8px;
    opacity: 0;
    transform: translateY(8px);
    animation: lbLoaderTextIn 0.6s ease-out forwards;
}

@keyframes lbLoaderTextIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.lb-loader-line {
    width: 120px;
    height: 1px;
    background: rgba(139, 105, 20, 0.15);
    position: relative;
    overflow: hidden;
}

.lb-loader-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #8B6914;
    animation: lbLineFill 1.2s linear forwards;
}

@keyframes lbLineFill {
    0% { width: 0; }
    100% { width: 100%; }
}

.lb-loader.fade-out {
    animation: lbFadeOut 0.3s ease-out forwards;
}

.lb-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.24, 0.5, 0.49, 0.94),
                transform 0.6s cubic-bezier(0.24, 0.5, 0.49, 0.94);
    position: relative;
    z-index: 1;
}

.lb-image.show {
    opacity: 1;
    transform: scale(1);
}

.lb-image.hide {
    opacity: 0;
    transform: scale(0.96);
    transition-duration: 0.3s;
}

.lb-seal {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: #C0392B;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    z-index: 3;
    pointer-events: none;
}

.lb-seal span {
    font-family: 'ZCOOL XiaoWei', 'KaiTi', cursive;
    font-size: 11px;
    color: #fff;
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    line-height: 1;
}

.lb-seal.show {
    opacity: 0.85;
    transform: scale(1);
}

.lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
    z-index: 10;
}

.lb-close:hover {
    opacity: 1;
    color: #8B6914;
}
