.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: 15px;
    font-family: var(--font-simple);
}

.item-input {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    gap: 1em;
}

.item-input .input-group {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    gap: 0 10px;
}

.item-input .input-group .input-text {
    width: 100%;
    height: 40px;
    background-color: #fff;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, 0.1);
}

.item-input .input-group .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);
}

.item-input .input-group .input-color {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="color" i]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color" i]::-webkit-color-swatch {
    border-radius: 8px;
    border: solid 1px #e1e5eb;
}

.item-input .input-group .btn-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8f7fd;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 1rem;
    height: auto;
    user-select: none;
}

.item-input .input-group .btn-picker:hover {
    background-color: rgba(90, 77, 248, 0.85);
    color: #fff;
}

.item-input .input-group .label{
    border: solid 1px #ddd;
    border-right-width: 0;
    line-height: 40px;
    width: 110px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    background-color: var(--main-bg);
}

.item-input .input-group .text{
    border: solid 1px #ddd;
    line-height: 40px;
    display: flex;
    flex: 1;
    padding: 0 12px;
    outline: none;
    box-shadow: inset 0 1px 4px rgb(211 198 255 / 20%), 0 0 0 2px rgba(224, 224, 224, 0.1);
}

.item-input .input-group .text:focus {
    border-color: var(--primary-color);
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2);
}

.item-input .input-group .copy{
    border: solid 1px #ddd;
    border-left-width: 0;
    line-height: 40px;
    user-select: none;
}

.item-input .input-group .copy:hover span{
    background-color: var(--primary-color);
    color: #fff;
}

.item-input .input-group .copy span{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #efeff6;
    color: var(--primary-color);
    width: 80px;
    height: 32px;
    margin: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.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;
    }
}

.input-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 150px;
    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);
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }
}