/* 创恩 szcntop · 案例图片交互：悬浮描述 + 点击灯箱放大（独立模块，与文章不共用） */

/* 确保浮层相对 figure 定位 */
.sz-case-body .wp-block-image {
    position: relative;
}

/* ---------- 悬浮描述浮层 ---------- */
.szcn-cz-tip {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    max-width: 88%;
    padding: 7px 14px;
    background: rgba(20, 24, 38, 0.86);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sz-case-body .wp-block-image:hover > .szcn-cz-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- 灯箱（占满全屏，图片按比例放大，大气不局促） ---------- */
#szcn-case-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 99999;
    padding: 3vh 3vw;
}
#szcn-case-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.szcn-cz-box {
    position: relative;
    width: 100%;
    height: 100%;
}
.szcn-cz-frame {
    width: 100%;
    height: 100%;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f97316;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.szcn-cz-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
/* 关闭按钮：长方形（去掉方形/椭圆），固定在视口右上角，叉精确居中 */
.szcn-cz-close {
    position: fixed;
    top: 22px;
    right: 22px;
    width: 58px;
    height: 38px;
    border: none;
    border-radius: 6px;
    background: #f97316;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 100000;
}
.szcn-cz-close:hover {
    transform: scale(1.08);
    background: #ea580c;
}
.szcn-cz-desc {
    position: absolute;
    left: 50%;
    bottom: 2.5vh;
    transform: translateX(-50%);
    margin: 0;
    color: #e8eaf0;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
}
