.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2em;
}

/*二维码预览*/
.qrcode-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.qrcode-preview .qrcode-inner {
    border: solid 1px var(--border-color);
    min-height: 430px;
    width: 100%;
    padding: 5px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-bg);
}

.qrcode-preview .qrcode-inner img {
    background-color: #fff;
}

/*二维码操作*/
.qrcode-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 50%;
}

.qrcode-text .qrcode-item {
    margin-bottom: 12px;
}

.qrcode-text .qrcode-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0 12px;
}

.qrcode-text .qrcode-select > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 50%;
}

.qrcode-text .qrcode-select > div select{
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    outline: none;
    border-radius: 8px;
    padding: 8px 12px;
}

.qrcode-text .qrcode-button{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: auto;
    gap: 0 12px;
}

/*富文本样式*/
.textarea-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    min-height: 172px;
    line-height: 30px;
    padding: 5px 12px;
    border-radius: 8px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
    resize: none;
}

.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); /* 外发光点缀（可选） */
}

.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-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;
    }
}


@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        flex-direction: column !important;
    }

    .qrcode-preview{
        width: 100% !important;
        min-height: auto !important;
    }

    .qrcode-preview .qrcode-inner{
        min-height: 300px !important;
    }

    .qrcode-text .qrcode-item{
        margin-bottom: 8px !important;
    }

    .qrcode-text{
        width: 100% !important;
    }

    .qrcode-text .qrcode-select > div{
        gap: 5px !important;
    }

    .qrcode-text .qrcode-button{
        flex-wrap: wrap !important;
        gap: 12px;
    }

    .operate-buttons .btn {
        line-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
    }

}