/**
 * 图片对比模块样式（独立，仅用于图片预览对比，不影响其他面板）
 * 所有类名以 .img-cmp- 为前缀，保证面板独立性
 */

.img-cmp-mount {
    flex: 1;
    min-height: 0;
    min-width: 0;
    flex-direction: column;
}

.img-cmp-root {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #000;
    overflow: hidden;
}

.img-cmp-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.img-cmp-grid {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.img-cmp-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    background: #0d0d0d;
}

.img-cmp-label {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.img-cmp-cell {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    cursor: grab;
}

.img-cmp-cell.dragging {
    cursor: grabbing;
}

.img-cmp-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: auto;
    will-change: transform;
    backface-visibility: hidden;
}

/* ========== 右侧工具架（独立，仅对比视图使用） ========== */
.img-cmp-toolbar-strip {
    width: 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #000;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.img-cmp-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    flex: 1;
    min-height: 0;
}

.img-cmp-toolbar .img-cmp-toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 52px;
    padding: 8px 6px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #a0a0a0;
    font-size: 11px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.img-cmp-toolbar .img-cmp-toolbar-btn:hover {
    background: #40465b;
    color: rgba(255, 255, 255, 0.95);
}

.img-cmp-toolbar .img-cmp-toolbar-btn.active {
    background: rgba(102, 126, 234, 0.35);
    color: rgba(255, 255, 255, 0.95);
}

.img-cmp-toolbar .img-cmp-toolbar-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.img-cmp-toolbar .img-cmp-toolbar-btn .img-cmp-toolbar-btn-text {
    font-size: 11px;
    line-height: 1.2;
}

/* ========== 对比全屏（仅对比模块使用，隐藏右侧反馈面板） ========== */
#imageModal.img-cmp-fullscreen .image-sidebar-area,
#imageModal.img-cmp-fullscreen .review-image-sidebar-area {
    display: none !important;
}
