.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;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-simple);
}

.tool-content .text-item label {
    display: block;
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-content .text-result{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

.tool-content .text-result > div {
    background-color: var(--main-bg);
    border: solid 1px #ddd;
    flex: 1 1 22%;
    min-width: 200px; /* 防止太小 */
    display: inline-flex;
    justify-content: space-between;
    border-radius: .6em;
    padding: 1.2em;
}

.tool-content .text-result > div .text-label{
    color: #4b5563;
}

.tool-content .text-result > div .text-value{
    font-weight: 700;
    font-size: 16px;
}

/*按钮样式*/
.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-blue{
    color: #409EFF;
    background-color: #ecf5ff;
    border-color: #b3d8ff;
}

.btn-blue svg{
    fill: #409EFF;
}

.btn-grey{
    color: #555;
    background-color: #f4f4f5;
    border-color: #d3d4d6;
}

.btn-grey svg{
    fill: #555;
}

.btn-orange{
    color: #E6A23C;
    background: #fdf6ec;
    border-color: #f5dab1;
}

.btn-orange svg{
    fill: #E6A23C;
}


.btn-green{
    color: #67C23A;
    background: #f0f9eb;
    border-color: #c2e7b0;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/*富文本样式*/
.textarea-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    min-height: 430px;
    line-height: 30px;
    padding: 5px 12px;
    border-radius: 7px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
}

.textarea-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;
    }

    .tool-content .mobile-item label span{
        height: 16px !important;
        padding: 0 4px !important;
        margin: 0 2px !important;
        font-size: 12px !important;
    }
}