/* 正文、目录、问答与课程样式。 */
.article-page { padding-top: 28px; padding-bottom: 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0,850px) minmax(230px,1fr); align-items: start; gap: 28px; }
.article-paper { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 28px; }
.article-header h1 { font-size: 32px; line-height: 1.6; margin: 15px 0; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 11px; }
.answer-box, .article-summary { padding: 20px 24px; background: #f1f5ec; border-left: 3px solid var(--green); margin: 28px 0; border-radius: 0 8px 8px 0; }
.answer-box strong, .article-summary strong { color: var(--green); font-size: 13px; }
.answer-box p, .article-summary p { margin: 8px 0 0; line-height: 1.9; font-size: 14px; }
.prose { font-size: 16px; line-height: 2; color: #3c443c; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .8em; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 20px; margin-top: 1.7em; }
.prose h4 { font-size: 17px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.prose img { display: block; margin: 25px auto; border-radius: 6px; max-width: 100%; height: auto; }
.prose figure { margin: 24px 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: 12px; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 20px 0; }
.prose li { margin: 8px 0; }
.prose blockquote { margin: 25px 0; padding: 18px 24px; background: #f8f7f1; border-left: 3px solid var(--gold); }
.prose pre { overflow-x: auto; background: #183b31; color: #e8efe5; padding: 20px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.prose code { font-family: Consolas,monospace; }
.prose table { display: block; overflow-x: auto; margin: 22px 0; font-size: 14px; }
.prose th { background: #f2f5ec; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 35px 0; }
.article-sidebar { position: sticky; top: 24px; }
.article-toc ol { margin: 0; padding-left: 18px; font-size: 12px; max-height: 60vh; overflow-y: auto; }
.article-toc li { padding: 6px 0; line-height: 1.7; }
.article-toc .level-3 { margin-left: 12px; color: var(--muted); }
.mobile-toc { display: none; }
.article-faq, .article-sources, .related-section, .comments, .course-enroll { margin-top: 35px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.article-faq summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.article-faq p { margin: 12px 0 0; font-size: 14px; }
.article-sources p { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.article-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.article-tags a { padding: 4px 11px; background: #edf2e9; border-radius: 4px; color: #66815b; font-size: 12px; }
.related-section ul { padding-left: 18px; font-size: 14px; }
.related-section li { margin: 12px 0; }
.comment { border-bottom: 1px solid var(--line); padding: 22px 0; }
.comment header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.comment time { color: var(--muted); }
.comment .prose { font-size: 14px; }
.reply-link { font-size: 11px; color: var(--muted); }
.comments form { margin-top: 24px; }
.lesson-list { padding: 0; margin: 0; list-style: none; }
.lesson-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.lesson-list a { display: flex; justify-content: space-between; gap: 18px; }
.lesson-list span { flex-shrink: 0; font-size: 11px; color: var(--green); }
.chapter-title { font-weight: 700; color: var(--green); background: #f7f9f3; }
.lesson-video { display: block; width: 100%; aspect-ratio: 16/9; background: #102b23; margin: 24px 0; border-radius: 8px; }
.locked-lesson { text-align: center; padding: 60px 20px; background: #f0f4eb; border-radius: 8px; }
.player-status, .note-status { font-size: 13px; overflow-wrap: anywhere; min-height: 1.6em; color: var(--green); }
.notebook-page h1 { overflow-wrap: anywhere; }
.note-editor textarea { width: 100%; font-family: Consolas,monospace; white-space: pre-wrap; }
.note-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.note-toolbar label { min-width: 0; max-width: 100%; }
.note-toolbar input { max-width: 100%; }
.note-toolbar input[type="number"] { width: 130px; }
.note-preview { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
.note-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); gap: 16px; }
.note-gallery figure { margin: 0; min-width: 0; }
.note-gallery img { width: 100%; height: auto; border-radius: 6px; }
.note-pagination { display: flex; gap: 20px; padding-top: 20px; }
.notebook-page .lesson-list a { overflow-wrap: anywhere; }
.notebook-page .lesson-list [aria-current="page"] { font-weight: 700; color: var(--green); }
@media(max-width: 950px) { .article-layout { grid-template-columns: minmax(0,1fr); } .article-sidebar { display: none; } .mobile-toc { display: block; padding: 15px; margin: 20px 0; background: #f7f8f3; font-size: 13px; } .mobile-toc summary { cursor: pointer; font-weight: 600; } }
@media(max-width: 600px) { .article-paper { padding: 24px 20px; } .article-header h1 { font-size: 25px; } .prose { font-size: 15px; } .prose h2 { font-size: 22px; } .article-page > .breadcrumbs { margin-bottom: 18px; } .answer-box { padding: 16px; } }
