.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 .item-tool {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.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;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.btn-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
}

/*输出样式*/
.table-container table {
    width: 100%;
}

.table-container table tr:nth-child(n+1) {
    cursor: move;
}

.table-container table tr.drag-start {
    opacity: 0.5;
}

.table-container table tr.drag-over {
    border-top: 2px solid rgb(93 79 248 / 95%);
    background-color: #f0f0ff;
}

.table-container table th, .table-container table td {
    border-width: 0;
    font-weight: 400;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-align: center;
}

.table-container table th:nth-child(2), .table-container table td:nth-child(2) {
    text-align: left;
    white-space: nowrap;
}

.table-container table td:nth-child(3){
    font-size: 14px;
    color: #818181;
}

.table-container table td:nth-child(4) button{
    color: #ff5252;
    font-size: 14px;
}

.table-container table td:nth-child(4) button:hover{
    color: #f00;
}

.encrypted-badge {
    color: #b45309;
    font-size: 12px;
    background: #fff0e6;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
}

/* 图片上传框 */
.image-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;
    outline: none;
    font-size: 15px;
    color: #6c6c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    cursor: pointer;
    position: relative;
}

/* 拖拽时高亮 */
.image-upload.dragover {
    border-color: #5a4df8;
    background-color: #f0edff;
    color: #5a4df8;
}

.image-upload .upload-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 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;
    }

    .tool-content .mobile-item label span {
        height: 16px !important;
        padding: 0 4px !important;
        margin: 0 2px !important;
        font-size: 12px !important;
    }

    .image-upload {
        min-height: 180px;
        padding: 10px;
    }

    .image-upload img {
        max-width: 100%;
    }

    .upload-prompt > svg {
        width: 50px;
        height: 50px;
    }

    .upload-prompt p {
        text-align: center;
    }

    .input-number {
        height: 36px;
        line-height: 36px;
        display: flex;
        flex: 1;
    }

    .tool-content .item-select {
        gap: 1em 1em;
    }

    .tool-content .item-select .options {
        display: flex;
        flex: 1;
    }

    .tool-content .item-select .options > label {
        width: 78px;
        text-align: right;
    }

    .tool-content .item-select .options .custom-select {
        display: flex;
        flex: 1;
    }

    .tool-content .item-select .options .custom-select button {
        display: flex;
        flex: 1 !important;
    }

    table td, table th {
        white-space: nowrap !important;
    }

    .name-group {
        flex-direction: column;
    }

    .name-group .item-label {
        width: 100%;
    }

    .name-group .item-label label {
        width: 78px;
        text-align: right;
    }

    #customNamed .item-label label {
        display: block;
    }

    #ruleNamed .item-label .input-text, #randomNamed .item-label .input-text {
        display: flex;
        flex: 1;
    }
}