.back_icon {
    float: left;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    background: #fff;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.back_icon:hover {
    opacity: 0.8;
    background: #f0f0f0;
    box-shadow: 2px 2px 2px 2px #e0e0e0;
}

.fission_wrap {
    padding: 10px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.fission_view {
    background: #fff;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px #e0e0e0;
}

.fission_left {
    width: 100%;
    height: 100%;
    border-bottom: 10px solid #f4f6f8;
}

.upload_view {
    gap: 20px;
    align-items: center;
}

.upload_btn {
    box-shadow: 0 0 10px #ccc;
    flex: 1;
    height: 80px;
    border-radius: 10px;
    color: var(--theme4);
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.upload_btn:hover {
    background: var(--themeGradient1);
    color: #fff;
}

.upload_btn .tips {
    color: #777;
}

.upload_btn:hover .tips {
    color: #fff;
}

.example_image {
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.example_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.example_image:hover .preview {
    display: flex;
}

.form_slider input[type="text"] {
    height: 30px;
    border: 1px solid #e0e0e0;
    width: 60px;
    padding: 0 10px;
}

.basic {
    display: none;
}

.form_text .btn {
    background: var(--themeGradient1);
    color: #fff;
    outline: none;
}

.form_text .btn:disabled {
    background: #e0e0e0;
    color: #666;
}

.form_text textarea {
    width: 100%;
    height: 180px;
    border: 1px solid #d9d9d9;
    padding: 4px 24px 4px 11px;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color .3s ease-in;
}

.form_text textarea:focus {
    border: 1px solid var(--theme4)
}

.form_text textarea::placeholder {
    font-size: 12px;
}

.close-icon {
    width: 16px;
    height: 16px;
    right: 6px;
    top: 10px;
    display: none;
    align-items: center;
    justify-content: center;
}

.close-icon i {
    display: flex;
    color: #999
}

.select_item {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
}

.select_item.active {
    border-color: var(--theme4);
    color: var(--theme4)
}

.form_title {
    color: #666;
}

.form_title .bi {
    transition: transform .3s ease-in-out;
    display: inline-block;
    transform: rotate(0);
}

.form_title .rotate {
    transform: rotate(90deg);
}

.style_group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 4px 8px;
    width: 100%;
}

.style_item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    line-height: 1;
    cursor: pointer;
    border: 3px solid transparent;
}

.style_item span {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 20px;
    color: #555;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #fff;
    background-color: #0006;
}

.style_item.active,
.style_item:hover {
    border-color: var(--theme4)
}

.fission_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 20px;
    background-color: #fff;
    overflow: hidden;
}

.fission_box {
    margin-bottom: 10px;
}

.empty {
    height: 100%;
    padding: 10px 20px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.empty-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
}

.empty-desc {
    width: 75%;
    font-size: 16px;
    color: #0009;
}

.empty-example {
    margin: 20px 0;
}

.fission_result {
    height: 100%;
    padding: 10px;
    background-color: #fafafa;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    overflow: auto;
}

.history-task-img {
    width: 47%;
    border-radius: 12px;
    background: #f9f9f9;
    overflow: hidden;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-mask {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.preview-image {
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
}

.download-btn .bi.bi-info-circle-fill {
    width: 16px;
    height: 16px;
    display: none;
}

.layui-menu-body-title {
    font-size: 12px;
}

.contrast-detail,
.case-detail {
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 198910159;
}

.case-detail-close {
    right: 0;
    top: 0;
    font-size: 32px;
    z-index: 99;
}

.case-detail-wrap {
    max-width: calc(100vw - 32px);
    margin: auto;
}

.case-detail-left,
.case-detail-right {
    max-width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0;
    background: transparent;
}

.case-detail-left img,
.case-detail-right img {
    pointer-events: none;
    max-width: 100%;
    max-height: 512px;
}

.invisible {
    visibility: hidden;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f4f6f8;
}

@media (min-width: 768px) {

    .fission_view {
        height: 100%;
    }

    .create_form {
        overflow-y: auto;
    }

    .fission_left {
        width: 410px;
        margin-right: 3px;
        border-right: 1px solid #e0e0e0;
    }

    .style_group {
        grid-template-columns: repeat(4, 1fr);
    }

    .history-task-img {
        width: 240px;
        height: 320px;
        border-radius: 12px;
        background: #f9f9f9;
        overflow: hidden;
    }

    .image-mask {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .download-btn {
        bottom: 12px;
        right: 12px;
        background: #fff;
        border-radius: 20px;
        padding: 0 9px !important;
        color: #403d3c;
        height: 32px;
        line-height: 32px;
    }

    .filter-btn {
        top: 12px;
        right: 12px;
        background: #fff;
        border-radius: 20px;
        padding: 0 9px !important;
        color: #403d3c;
        cursor: pointer;
        height: 32px;
        line-height: 32px;
    }

    .history-task-img:hover .preview-image {
        opacity: 1;
    }

    .contrast-btn {
        bottom: 12px;
        left: 12px;
        background: #fff;
        border-radius: 20px;
        padding: 0 9px;
        color: #403d3c;
        width: 80px;
        text-align: center;
        height: 32px;
        line-height: 32px;
        font-size: 12px;
    }

    .filter-btn:hover,
    .download-btn:hover,
    .contrast-btn:hover {
        background: var(--themeGradient1);
        color: #fff
    }

    .visible {
        visibility: visible;
    }
}

.fission_side_menu {
    width: 180px;
    min-width: 140px;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    padding: 24px 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.fission_side_menu .menu-title {
    font-weight: bold;
    font-size: 16px;
    padding: 0 24px 10px 24px;
    color: #333;
}

.fission_side_menu .menu-list {
    flex: 1;
    overflow-y: auto;
}

.fission_side_menu .menu-item {
    padding: 10px 24px;
    cursor: pointer;
    color: #666;
    border-left: 3px solid transparent;
    transition: background 0.15s;
    font-size: 14px;
}

.fission_side_menu .menu-item:hover,
.fission_side_menu .menu-item.active {
    background: #f7f7fa;
    color: #1890ff;
    border-left: 3px solid #1890ff;
}

.form_prompt_tags {
    margin-top: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    padding-top: 4px;
}

.form_prompt_tags::-webkit-scrollbar {
    height: 6px;
    background: #f5f5f5;
}

.form_prompt_tags .prompt-tag {
    display: inline-block;
    padding: 4px 14px;
    background: #f1f3f6;
    color: #555;
    border-radius: 16px;
    margin-right: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.form_prompt_tags .prompt-tag:hover,
.form_prompt_tags .prompt-tag.active {
    background: #e6f7ff;
    color: #1890ff;
    border-color: #1890ff;
}

@media (max-width: 767px) {
    .fission_side_menu {
        display: none;
    }
}
.compare-wrap {
    width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(19, 24, 32, 0.08);
    overflow: hidden;
    padding: 0;
}
.compare-box {
    position: relative;
    width: 100%;
    height: 500px;
    user-select: none;
}
.compare-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.compare-img.after {
    clip-path: inset(0 0 0 50%);
    /* transition: clip-path 0.1s;  移除延迟，提升流畅度 */
}
.compare-label {
    position: absolute;
    top: 18px;
    padding: 4px 18px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 14px;
    border-radius: 18px;
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    border: 1px solid #eaeaea;
}
.compare-label.left { left: 22px; }
.compare-label.right { right: 22px; }

.compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    left: 50%;
    z-index: 3;
}
.compare-bar {
    position: absolute;
    left: -1.5px;
    top: 0;
    width: 0px;
    height: 100%;
    background: linear-gradient(180deg, #ebebeb 0%, #ececec 100%);
    box-shadow: 0 0 0 2px #fff;
    border-radius: 2px;
    z-index: 4;
}
.compare-handle {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    backdrop-filter: blur(7px);
    background-color: rgba(0, 0, 0, 0.125);
    border: 2.5px solid #e6e7ea;
    box-shadow: 0 2px 10px 0 rgba(19, 24, 32, 0.08);
    border-radius: 50%;
    z-index: 5;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.15s;
}
.compare-handle:after {
    content: '';
    display: block;
    width: 14px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 6px 0 0 #fff, 0 -6px 0 0 #fff;
}
.compare-handle:active, .compare-handle.dragging {
    box-shadow: 0 4px 16px 0 rgba(19,24,32,0.15);
    border-color: #fff;
}

@media (max-width: 600px) {
    .compare-box { height: 54vw; min-height: 220px; }
    .compare-label { font-size: 13.5px; padding: 2.5px 10px; top: 10px; border-radius: 12px; }
    .compare-label.left { left: 10px; }
    .compare-label.right { right: 10px; }
    .compare-handle { width: 32px; height: 32px; left: -16px; }
    .compare-handle:after { width: 10px; height: 2px; box-shadow: 0 4px 0 0 #d3d6db, 0 -4px 0 0 #d3d6db; }
    .compare-wrap { width: 20rem; }
}