/**
 * 课件式章节正文样式（与 claude_code_course.html 视觉对齐）
 * 入库 HTML 多为 .subtopic 片段，无外层 .module，故原「.module table」等规则不会命中；
 * 此处在 .chapter-body / .idea-article-body 下重做表格、引用、代码块与小节分隔。
 */
.chapter-body.rich-content,
.idea-article-body.rich-content {
  --cw-ink: #1a1a1e;
  --cw-muted: #5c5c66;
  --cw-accent: #c45c26;
  --cw-accent-soft: #e8d5cc;
  --cw-border: #e2ddd6;
  --cw-code-bg: #f0ebe4;
  --cw-radius: 12px;
  --cw-mono: "JetBrains Mono", "Consolas", "Courier New", monospace;
  --cw-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--cw-ink);
  font-family: var(--cw-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 52rem;
}

.chapter-body.rich-content .subtopic,
.idea-article-body.rich-content .subtopic {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--cw-border);
}

.chapter-body.rich-content .subtopic-first,
.idea-article-body.rich-content .subtopic-first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.chapter-body.rich-content .subtopic > h3,
.idea-article-body.rich-content .subtopic > h3 {
  font-size: 1.12rem;
  font-weight: 650;
  color: #2c2824;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.chapter-body.rich-content h4,
.idea-article-body.rich-content h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.6rem;
  color: var(--cw-muted);
  font-weight: 650;
}

.chapter-body.rich-content p,
.idea-article-body.rich-content p {
  margin: 0.65rem 0;
}

.chapter-body.rich-content ul,
.chapter-body.rich-content ol,
.idea-article-body.rich-content ul,
.idea-article-body.rich-content ol {
  margin: 0.65rem 0;
  padding-left: 1.35rem;
}

.chapter-body.rich-content li,
.idea-article-body.rich-content li {
  margin: 0.35rem 0;
}

.chapter-body.rich-content ul li::marker,
.idea-article-body.rich-content ul li::marker {
  color: var(--cw-accent);
}

.chapter-body.rich-content strong,
.idea-article-body.rich-content strong {
  color: #252018;
}

.chapter-body.rich-content hr,
.idea-article-body.rich-content hr {
  border: none;
  height: 1px;
  background: var(--cw-border);
  margin: 1.5rem 0;
}

.chapter-body.rich-content blockquote,
.idea-article-body.rich-content blockquote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--cw-accent-soft) 0%, transparent 100%);
  border-left: 4px solid var(--cw-accent);
  border-radius: 0 var(--cw-radius) var(--cw-radius) 0;
  color: #3a322c;
}

.chapter-body.rich-content blockquote p,
.idea-article-body.rich-content blockquote p {
  margin: 0;
}

.chapter-body.rich-content table,
.idea-article-body.rich-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--cw-border);
}

.chapter-body.rich-content th,
.chapter-body.rich-content td,
.idea-article-body.rich-content th,
.idea-article-body.rich-content td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--cw-border);
  vertical-align: top;
}

.chapter-body.rich-content th,
.idea-article-body.rich-content th {
  background: #faf7f3;
  font-weight: 650;
  color: #3a322c;
}

.chapter-body.rich-content tr:last-child td,
.idea-article-body.rich-content tr:last-child td {
  border-bottom: none;
}

.chapter-body.rich-content tbody tr:hover td,
.idea-article-body.rich-content tbody tr:hover td {
  background: #fdfcfa;
}

.chapter-body.rich-content pre,
.idea-article-body.rich-content pre {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: var(--cw-code-bg);
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--cw-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.chapter-body.rich-content code,
.idea-article-body.rich-content code {
  font-family: var(--cw-mono);
  font-size: 0.88em;
  background: var(--cw-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.chapter-body.rich-content pre code,
.idea-article-body.rich-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
