.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.tool-content .tool-box {
    font-family: var(--font-simple);
    border-width: 0;
    background-color: #000;
    width: 100%;
    min-height: 500px;
    line-height: 30px;
    padding: 6px 12px;
    border-radius: 7px;
    position: relative;
}

.tool-content .tool-box .merit-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 20px;
    color: #fff;
}

.tool-content .tool-box .merit-counter > span.merit-label {
    font-size: 17px;
}

.tool-content .tool-box .merit-counter > div.merit-num {
    font-size: 20px;
}

.tool-content .tool-box .merit-counter > div.merit-num span {
    font-family: NumberFont;
    font-size: 16px;
    padding: 0 7px;
}

.tool-content .tool-box .woodfish-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    margin-top: 150px;
}

.tool-content .fullscreen .woodfish-body {
    margin-top: 280px !important;
}

.tool-content .fullscreen .woodfish-body .woodfish img {
    width: 220px !important;
    height: 167px !important;
}

.tool-content .tool-box .woodfish-body .merit {
    transform: translateY(0);
    font-weight: 500;
    color: #fff;
    font-size: 16px;
    opacity: 0; /* 默认隐藏 */
    user-select: none;
}

.tool-content .tool-box .woodfish-body .woodfish img {
    display: inline-block;
    width: 180px;
    height: 137px;
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 弹性缓动 */
    transform-origin: center; /* 缩放中心点在中间 */
    cursor: pointer;
    user-select: none;
}

.tool-content .tool-box .woodfish-body .woodfish img.active {
    transform: scale(0.9);
}

/* 功德+1动画类 - 保持这个就够了 */
.woodfish-click {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 17px;
    font-weight: 500;
    pointer-events: none;
    z-index: 2000;

    /* 核心：先上升，再淡出（位置不变） */
    animation:
            slide-up 0.6s ease-out 0s forwards,
            fade-out 0.8s linear 0.6s forwards;
}

@keyframes slide-up {
    to {
        transform: translateX(-50%) translateY(-80px);
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

/*按钮样式*/
.woodfish-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    color: #fff;
    background-color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    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;
}

/* 关键动画：扩散 + 淡出 */
@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: .8em !important;
        box-shadow: unset;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .btn {
        height: 32px;
    }

    .input-textarea {
        min-height: 200px;
    }

}