.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-file {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-simple);
    cursor: pointer;
}

.file-upload {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    min-height: 250px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 15px;
    color: #6c6c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    position: relative;
}

.file-upload .upload-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    width: 100%;
    height: 100%;
}

.file-upload .upload-prompt > div > p {
    text-align: center;
    margin-bottom: 0;
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/*按钮样式*/
.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-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
}

.btn-red {
    color: #fff;
    background-color: rgb(242 55 55 / 95%);
    border-color: rgb(242 55 55 / 95%);
}

.btn-grey {
    color: #fff;
    background-color: rgba(100, 100, 100, 0.95);
    border-color: rgba(100, 100, 100, 0.95);
}

.btn-green {
    color: #fff;
    background-color: rgba(34, 197, 94, 0.95);
    border-color: rgba(34, 197, 94, 0.95);
}

.tool-result {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.tool-result table {
    border-collapse: collapse;
    width: fit-content;
    min-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #dfdfdf;
}

.tool-result table tr th, .tool-result table tr td {
    border: 1px solid #dfdfdf;
    padding: 10px 12px;
    font-size: 14.5px;
    white-space: nowrap;
    font-family: var(--font-simple);
    text-align: left;
}

.tool-result table tr th:first-child, .tool-result table tr td:first-child{
    text-align: center;
}

.tool-result table tr th:nth-child(2), .tool-result table tr td:nth-child(2){
    max-width: 50%;
}

/* 关键动画：扩散 + 淡出 */
@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;
    }

    .btn {
        line-height: 36px;
        height: 36px;
        padding: 0 12px;
    }

    .file-upload {
        min-height: 200px;
    }

    .tool-result .item-md5 label {
        width: 7em;
    }

    .tool-result .item-md5 input {
        line-height: 30px;
        padding: 5px 10px;
    }

    .tool-result .item-md5 .consistent {
        right: 15px;
    }
}