/* 编辑器容器 */
.editor-container {
  display: flex;
  width: 100vw;
  height: calc(100vh - 74px);
  gap: 6px;
  padding: 4px;
  transition: all 0.3s ease;
}

/* 编辑区包装器 */
.edit-wrapper {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

/* 行号 */
.editor-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: var(--hover);
  border-right: 1px solid var(--border);
  color: var(--text-light);
  font-family: Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
  padding: 12px 4px;
  overflow: hidden;
  user-select: none;
  z-index: 2;
  white-space: pre;
}

/* 当前行高亮 */
.current-line-highlight {
  position: absolute;
  left: 50px;
  width: calc(100% - 50px);
  height: 22.4px;
  background: rgba(59, 130, 246, 0.15);
  pointer-events: none;
  z-index: 1;
  display: none;
}

/* 编辑输入框 */
.edit-area {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-dark);
  background: var(--panel);
  padding: 12px 12px 12px 55px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  border-radius: 6px;
  resize: none;
  outline: none;
  overflow-y: auto;
  transition: all 0.15s ease;
  position: relative;
  z-index: 0;
}

/* 视图切换 */
.container-only-edit .edit-wrapper { width: 100% !important; }
.container-only-edit .preview-area { width: 0% !important; padding: 0; border: 0; overflow: hidden; }
.container-only-preview .preview-area { width: 100% !important; }
.container-only-preview .edit-wrapper { width: 0% !important; padding: 0; border: 0; overflow: hidden; }

body{
	overflow: hidden;
}