/* ===== 編輯器內容區 Reset ===== */
.editor-content {
  line-height: 1.75;
  font-size: 16px;
  color: #333;
}

/* ===== 標題 ===== */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  all: revert;
  font-weight: bold;
  margin: 1em 0 0.5em;
  line-height: 1.3;
}

.editor-content h1 { font-size: 2em; }
.editor-content h2 { font-size: 1.75em; }
.editor-content h3 { font-size: 1.5em; }
.editor-content h4 { font-size: 1.25em; }
.editor-content h5 { font-size: 1.1em; }
.editor-content h6 { font-size: 1em; }

/* ===== 段落 ===== */
.editor-content p {
  all: revert;
  margin: 0 0 1em;
}

/* ===== 連結 ===== */
.editor-content a {
  all: revert;
  color: #1a73e8;
  text-decoration: underline;
}

.editor-content a:hover {
  text-decoration: none;
}

/* ===== 清單 ===== */
.editor-content ul,
.editor-content ol {
  all: revert;
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.editor-content li {
  margin-bottom: 0.5em;
}

/* ===== 粗體 / 斜體 ===== */
.editor-content strong {
  font-weight: bold;
}

.editor-content em {
  font-style: italic;
}

/* ===== 圖片 ===== */
.editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
}

/* ===== 表格 ===== */
.editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.editor-content th,
.editor-content td {
  border: 1px solid #ddd;
  padding: 8px;
}

.editor-content th {
  background: #f5f5f5;
  font-weight: bold;
}

/* ===== 區塊引用 ===== */
.editor-content blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid #ddd;
  color: #666;
}

/* ===== 程式碼 ===== */
.editor-content pre {
  background: #f6f8fa;
  padding: 1em;
  overflow: auto;
}

.editor-content code {
  background: #f1f1f1;
  padding: 2px 4px;
  font-family: monospace;
}

/* ===== 分隔線 ===== */
.editor-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}