.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .text-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 15px;
    font-family: var(--font-simple);
}

.tool-content .text-item > label {
    display: block;
    width: 90px;
    text-align: right;
    white-space: nowrap;
}

.tool-content .text-item > input {
    display: flex;
    flex: 1;
}

/* ========== 自定义复选框样式 START ========== */
.checkbox-group {
    display: flex;
    flex: 1;
    gap: 10px 30px;
    flex-wrap: wrap;
}

/* 隐藏原生 checkbox */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 17px;
    height: 17px;
    clip: rect(0, 0, 0, 0);
    border: solid 1.5px #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #7569f9;
    border-color: #7569f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.285 6.709l-11.025 11.025-5.571-5.571 1.414-1.414 4.157 4.157 9.611-9.611z'/%3E%3C/svg%3E");
}

/* label 控制整体布局 */
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* ========== 自定义复选框样式 END ========== */

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* 按钮样式 */
.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 / 85%);
    border-color: rgb(93 79 248 / 85%);
}

.btn-purple svg {
    fill: #fff;
}

.input-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 110px;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
}

.input-text:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

.input-textarea {
    display: flex;
    flex: 1;
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    max-width: 100%;
    min-height: 200px;
    line-height: 30px;
    padding: 6px 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 15px;
    resize: none;
}

.input-textarea:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

.tool-content .text-result {
    flex-direction: column;
    align-items: start !important;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

    .tool-content .text-item > label{
        width: 80px !important;
    }
}