/* 子比图片对比古腾堡模块 */

.zibll-image-diff {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
}

.zibll-image-diff__inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* 底层图片，决定整体高度 */
.zibll-image-diff__img {
    display: block;
    width: 100%;
    height: auto;
}

/* 上层原图遮罩：始终铺满，用 clip-path 从右侧裁剪 */
.zibll-image-diff__top {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.zibll-image-diff__top .zibll-image-diff__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 50% 0 0); /* 初始显示左边 50% */
    /* 去掉过渡，避免拖动延迟感 */
}

/* 中间拖动手柄（线 + 圆点） */
.zibll-image-diff__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
}

.zibll-image-diff__line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ffffff;
    opacity: 0.9;
}

.zibll-image-diff__knob {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    box-sizing: border-box;
}

.zibll-image-diff__arrow {
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

/* 编辑器里没选图时的占位 */
.zibll-image-diff__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f5f5f7;
    color: #999;
    font-size: 12px;
}
