/* 文本替换工具专属样式 */
/* 操作按钮组 */
.tp-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    text-align: center;
}

/* 输入输出左右并排 */
.tp-io-row {
    display: flex;
    gap: 16px;
}
.tp-io-col {
    flex: 1;
    min-width: 0;
}
.tp-io-col textarea {
    width: 100%;
    resize: vertical;
}

/* 查找替换控制区域 */
.tp-replace-controls {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.tp-replace-input-group {
    flex: 1;
    min-width: 0;
}
.tp-replace-input-group .ange-input {
    width: 100%;
}

/* 选项行 */
.tp-options-row {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    align-items: center;
}
.tp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #606266;
}
.tp-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* === 响应式：移动端 ≤768px === */
@media (max-width: 768px) {
    /* 输入输出在移动端恢复上下堆叠 */
    .tp-io-row {
        flex-direction: column;
        gap: 12px;
    }
    /* 查找替换控制区域移动端堆叠 */
    .tp-replace-controls {
        flex-direction: column;
        gap: 12px;
    }
    /* 选项行移动端换行 */
    .tp-options-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    /* 按钮在移动端纵向排列 */
    .tp-btn-group .ange-btn {
        width: 100%;
    }
}