.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    margin-bottom: 1.2em;
}

.tool-content .item-tool {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    font-family: var(--font-simple);
}

.tool-content .item-tool .image-upload {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    width: 100%;
    min-height: 380px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-content .item-tool .image-upload .image-wrapper {
    border: solid 10px #dfe3ff;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .01);
}

.tool-content .item-tool .image-upload .image-wrapper .image-box {
    width: 300px;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.tool-content .item-tool .image-upload .image-wrapper .image-box .image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tool-content .item-tool .image-upload .image-wrapper .image-box .image-litpic {
    min-width: 100%;
    min-height: 100%;
}

/*缩略图*/
.tool-content .item-litpic {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 1.2em;
    gap: 0.6em;
}

.tool-content .item-litpic .litpic {
    border: solid 3px #f2f0ff;
    position: relative;
    width: 66px;
    height: 66px;
    cursor: pointer;
}

.tool-content .item-litpic .active, .tool-content .item-litpic .litpic:hover {
    border: solid 3px #a49cff;
}

.tool-content .item-litpic .litpic > img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
}

.tool-content .item-litpic .litpic > div {
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.tool-content .item-litpic .litpic > div img {
    width: 100%;
}

/*按钮样式*/
.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.2em;
}

.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-family: var(--font-simple);
}

.btn .ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    animation: ripple-effect 0.6s ease-out forwards;
}

.btn svg {
    width: 0.92em;
    height: 0.92em;
}

.btn svg {
    fill: #fff;
}

.btn-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: var(--primary-color);
}

.btn-green {
    color: #fff;
    background-color: rgba(34, 197, 94, 0.95);
    border-color: #22c55e;
}

.btn-green svg {
    width: 1.1em;
    height: 1.1em;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .tool-content {
        padding: 0;
        box-shadow: none;
        border-width: 0;
        border-radius: 0;
    }

    .tool-content .item-tool .image-upload {
        padding: 0;
        background-color: unset;
        border-radius: 0;
        border-width: 0;
        min-height: unset;
    }

    .tool-content .item-tool .image-upload .image-wrapper .image-box {
        width: 100%;
        aspect-ratio: 1 / 1; /* 宽高比1:1 */
        height: unset;
    }

    .tool-content .item-litpic .litpic{
        width: 60px;
        height: 60px;
    }


}