.editorForm {
    /* display: flex;
    flex-direction: row; */
}

.editor-preview {
    width: 50%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    padding: 0 10px;
}

#editor {
    width: 100%;
    min-height: 400px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    /* padding: 16px; */
    outline-color: rgba(83, 160, 231, 0.61);
}



/* 样式化模式切换容器 */
.mode-switch {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    margin-bottom: 16px;
}

/* 样式化模式标签 */
.mode-label {
    cursor: pointer;
    user-select: none;
}

/* 样式化单选按钮 */
.mode-switch input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #2196F3;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 4px;
    background-color: transparent;
}

/* 样式化单选按钮的选中状态 */
.mode-switch input[type="radio"]:checked {
    background-color: #2196F3;
}


.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    background: #ddd;
    border-radius: 20px;
    padding: 5px;
    margin: 10px auto;
}

/* Button styles */
.toggle-switch-button {
    font-size: 16px;
    border: none;
    background: none;
    width: 50%;
    text-align: center;
    border-radius: 15px;
    padding: 2px 0;
    cursor: pointer;
    z-index: 2;
    user-select: none;
}

/* Slider styles */
#slider {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: blueviolet;
    border-radius: 15px;
    z-index: 1;
    transition: all 0.3s ease;
    left: 0;
}

#popup-container {
    position: relative;

    /* 样式用于图标 */
    #popup-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background-color: #007bff;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        cursor: pointer;
        transition: transform 0.3s;
    }

    /* 弹窗显示时隐藏图标 */
    #popup-icon.active {
        transform: scale(0);
    }
}

/* 样式用于弹窗容器 */
#popup-item {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

/* 样式用于弹窗 */
#popup {
    width: 300px;
    height: 200px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    animation: fadeIn 0.5s;
}

/* 弹窗的动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 样式用于配置选择 */
.config {
    padding: 10px;

    & label {
        display: block;
        margin: 10px 0;
        user-select: none;
    }
}