/* 创恩 szcntop · 文章图片交互：悬浮描述 + 点击灯箱放大 */

/* ---------- 悬浮描述浮层 ---------- */
.szcn-img-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;
}
.wp-block-image:hover > .szcn-img-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.wp-block-image img {
    width: 100% !important;   /* 强制撑满容器，覆盖古腾堡手动设宽的内联 style，保证详情页图片尺寸一致规整 */
    height: auto !important;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wp-block-image:hover > img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ---------- 灯箱（占满全屏，图片按比例放大，大气不局促） ---------- */
#szcn-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-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.szcn-lb-box {
    position: relative;
    width: 100%;
    height: 100%;
}
.szcn-lb-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-lb-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
/* 关闭按钮：长方形（去掉方形/椭圆），固定在视口右上角，叉精确居中 */
.szcn-lb-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-lb-close:hover {
    transform: scale(1.08);
    background: #ea580c;
}
.szcn-lb-desc {
    position: absolute;
    left: 50%;
    bottom: 2.5vh;
    transform: translateX(-50%);
    margin: 0;
    color: #e8eaf0;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
}
