/* 主题切换按钮样式 */
.theme-switch {
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    background: #f1f1f1;
    border: 1px solid #ddd;
    margin: 5px;
    vertical-align: middle;
    font-size: 12px;
}

/* 确保主题切换按钮始终可见 */
.theme-switcher-container {
    position: relative !important;
    z-index: 9999 !important;
    float: right !important;
    margin: 5px !important;
    padding: 5px !important;
    background: transparent !important;
}

/* 覆盖 Discuz 原始样式 - 使用稍微浅一点的颜色 */
body .edt .area {
    padding: 4px !important;
    zoom: 1;
}

/* 暗色主题样式 - 编辑区域 */
body .editor-dark-theme .edt .area {
    background-color: #383838 !important;  /* 比主色调 #2d2d2d 稍亮 */
    color: #e0e0e0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 4px !important;
}

/* 护眼主题样式 - 编辑区域 */
body .editor-eye-care .edt .area {
    background-color: #d8f2dc !important;  /* 比主色调 #c7edcc 稍亮 */
    color: #333 !important;
    border: none !important;
    margin: 0 !important;
    padding: 4px !important;
}

/* 深蓝主题样式 - 编辑区域 */
body .editor-deep-blue .edt .area {
    background-color: #293366 !important;  /* 比主色调 #1e2749 稍亮 */
    color: #a8b1c5 !important;
    border: none !important;
    margin: 0 !important;
    padding: 4px !important;
}

/* 编辑区域通用样式 */
#e_iframe,
#e_textarea,
.area,
.editarea,
.edt .area {
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 移除所有编辑器内部的边距和边框 */
.editor-dark-theme .editarea *,
.editor-eye-care .editarea *,
.editor-deep-blue .editarea * {
    border: none !important;
    margin: 0 !important;
} 