.tool-card-img-left-wrapper{
    overflow-y: auto;
}
#tool-card-upload-btn{
    margin-bottom: 10px;
}
.batch-handle{
    height: auto;
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 20px;
    -webkit-box-pack: center;
    justify-content: center;
    margin-bottom: 10px;
}
.batch-handle span{
    margin-right: 10px
}
.tool-card-img-left-wrapper .ange-btn{
    width: 100%;
}
.ange-slider-full__track-wrapper {
    padding: 18px 0 25px;
}
.ange-form-switch{
    margin-top: 0;
}
.tool-card-file-list{
    flex: 1;
}
.tool-card-file-list .image-item {
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dcdfe6;
    position: relative;        /* 新增：作为绝对定位的参照容器 */
    padding: 5px;
}
.tool-card-file-list .image-item.selected {
    border-color: var(--theme-color);
    background: var(--theme-background-color);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}
.tool-card-file-list .image-item .item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.tool-card-file-list .image-item .item-info {
    flex: 1;
    overflow: hidden;
    margin-right: 8px;   /* 避免文字与绝对定位按钮重叠（非必须，取决于内容长度） */
}
.tool-card-file-list .image-item .item-info .item-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tool-card-file-list .image-item .item-info .item-size {
    font-size: 0.7rem;
    color: #5b6e8c;
    margin-top: 4px;
}
.tool-card-file-list .image-item .delete-single {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 0;
    width: 18px;
    height: 18px;
    color: #fff;
    font-size: 12px;
    background: hsla(0, 0%, 40%, .8);
    box-shadow: 0 0 2px 0 rgba(255, 255, 255, .6);
    border-top-right-radius: calc(6px - 1px);
    border-bottom-left-radius: 100%;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1;
    transition: all .2s;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 4;
}
.tool-card-file-list .image-item .delete-single i{
    height: 1em;
    width: 1em;
    line-height: 1em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    fill: currentColor;
    color: inherit;
    font-size: inherit;
    margin: -2px -3px 0 0;
}

.tool-card-file-list .image-item .delete-single:hover {
    background: #ff4d4f;
}

/* 预览框 */
.preview-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.preview-scroll-container {
    flex: 1;
    height: 100%;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(rgba(0, 0, 0, .36) 8%, #f0f2f5 8%) center / 16px 16px repeat;;
    position: relative;
}

.preview-canvas-wrapper {
    display: inline-block;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAASUlEQVR4AezSOwoAIAwD0NITuIj3v52fQW9Qt7hG0C2BQKYOj3rtM9jGRdw+RYcBKwpRQADDS07Gto1lbPVuxxjr8ZAxQEUBig0AAP//PW4eXgAAAAZJREFUAwC43XZBk0sEDgAAAABJRU5ErkJggg==");
    border-radius: 12px;
    padding: 0;
    margin: 20px;
}

canvas#previewCanvas {
    display: block;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
    border-radius: 8px;
}

.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    z-index: 10;
    font-size: 14px;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: auto;
}

.zoom-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-btn:hover {
    background: rgba(255,255,255,0.4);
}

.zoom-percent {
    min-width: 38px;
    text-align: center;
    font-family: monospace;
    font-size: 12px;
}
.download-all{
    width: 100%;
}
.item-handle{
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px; /* 按钮之间的间距 */
}
.download-item,.clear-all {
    flex: 1; /* 平均分配剩余空间 */
}

.tool-card-param-wrapper{
    overflow-y: auto;
}

/* 上传区域撑满高度，内容垂直居中 */
.tool-card-upload-wrapper {
    display: flex;
    flex-direction: column;
}
.tool-card-upload {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tool-card-upload .tool-upload-span {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* pc下 */
@media screen and (min-width: 768px) {
    .tool-card-img-left-wrapper {
        height: 600px;
    }
    .tool-card-upload-wrapper{
        height: 600px;
    }
    .tool-card-param-wrapper{
        height: 600px;
    }
    .preview-panel{
        height: 600px;
    }
}
/** pad下 */
@media screen and (max-width: 1047px) {
    .tool-card-img-left-wrapper {
        height: 500px;
    }
    .tool-card-upload-wrapper{
        height: 500px;
    }
    .tool-card-param-wrapper{
        height: 500px;
    }
    .preview-panel{
        height: 500px;
    }
}

/** 手机下 */
@media screen and (max-width: 430px) {
    .tool-card-img-left-wrapper {
        height: 330px;
    }
    .tool-card-upload-wrapper{
        height: 330px;
    }
    .tool-card-param-wrapper{
        height: 330px;
    }
    .preview-panel{
        height: 330px;
    }
}
