:root { --primary-color: #07c160; --text-color: #333; --bg-color: #fff; --border-color: #eee; --code-bg: #f6f8fa; --quote-border: #07c160; --quote-bg: #f9f9f9; --link-color: #07c160; --heading-color: #333; --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --img-radius: 0px; --img-shadow: none; } /* Theme: Geek Black */ [data-theme="geek"] { --primary-color: #000; --text-color: #2c3e50; --heading-color: #000; --code-bg: #282c34; --quote-border: #000; --quote-bg: #f8f8f8; --link-color: #000; } /* Theme: Pastel (Pink) */ [data-theme="pastel"] { --primary-color: #ff9a9e; --text-color: #555; --heading-color: #ff758c; --code-bg: #fff0f5; --quote-border: #fad0c4; --quote-bg: #fffbfb; --link-color: #ff758c; } /* Theme: Notion (Clean & Serif/Sans mix) */ [data-theme="notion"] { --primary-color: #37352f; --text-color: #37352f; --heading-color: #37352f; --code-bg: #f7f6f3; --quote-border: #37352f; --quote-bg: transparent; --link-color: #37352f; --border-color: #e0e0e0; } /* Image Styles (Controlled by JS) */ [data-img-style="rounded"] { --img-radius: 8px; } [data-img-style="shadow"] { --img-shadow: 0 4px 12px rgba(0,0,0,0.1); } [data-img-style="both"] { --img-radius: 8px; --img-shadow: 0 4px 12px rgba(0,0,0,0.1); } body { margin: 0; font-family: var(--font-base); height: 100vh; display: flex; flex-direction: column; background-color: #f3f4f6; } /* WeChat Preview Styles - This is what gets copied */ #preview-content { font-size: 16px; line-height: 1.75; color: var(--text-color); word-break: break-all; text-align: justify; padding: 20px; background: #fff; /* Ensure white background for copy */ } /* Notion Specific Overrides */ [data-theme="notion"] #preview-content { font-family: "Lyon-Text", Georgia, ui-serif, serif; /* Serif for reading */ line-height: 1.8; } [data-theme="notion"] #preview-content h1, [data-theme="notion"] #preview-content h2, [data-theme="notion"] #preview-content h3 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; /* Sans for headings */ } #preview-content h1, #preview-content h2, #preview-content h3 { margin-top: 1.5em; margin-bottom: 0.8em; font-weight: bold; color: var(--heading-color); line-height: 1.3; } #preview-content h1 { font-size: 1.6em; border-bottom: 2px solid var(--primary-color); padding-bottom: 0.3em; text-align: center; } /* Geek theme H1 is different */ [data-theme="geek"] #preview-content h1 { border-bottom: 3px solid #000; text-align: left; } /* Notion theme H1 is minimal */ [data-theme="notion"] #preview-content h1 { border-bottom: 1px solid #eee; text-align: left; font-size: 2em; } #preview-content h2 { font-size: 1.3em; display: block; /* WeChat friendly */ border-left: 5px solid var(--primary-color); padding-left: 10px; border-bottom: none; } /* Notion theme H2 */ [data-theme="notion"] #preview-content h2 { border-left: none; padding-left: 0; font-size: 1.5em; border-bottom: 1px solid #eee; padding-bottom: 6px; } #preview-content h3 { font-size: 1.1em; font-weight: bold; margin-top: 1.2em; } [data-theme="notion"] #preview-content h3 { font-size: 1.25em; } #preview-content p { margin-bottom: 1.5em; text-align: justify; } #preview-content ul, #preview-content ol { margin-bottom: 1.5em; padding-left: 20px; } #preview-content li { margin-bottom: 0.2em; } /* Blockquote Styles */ #preview-content blockquote { margin: 1.5em 0; padding: 1em; background-color: var(--quote-bg); border-left: 4px solid var(--quote-border); color: #666; font-size: 0.95em; border-radius: 4px; } [data-theme="notion"] #preview-content blockquote { border-left: 3px solid currentcolor; padding-left: 1em; font-style: italic; color: inherit; opacity: 0.8; } /* Inline Code */ #preview-content code { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 0.9em; padding: 2px 5px; background-color: rgba(27, 31, 35, 0.05); color: #d63384; border-radius: 4px; margin: 0 2px; } [data-theme="notion"] #preview-content code { color: #EB5757; background: rgba(135,131,120,0.15); } /* Code Blocks */ #preview-content pre { background-color: #282c34; padding: 1em; border-radius: 8px; overflow-x: auto; margin: 1.5em 0; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; line-height: 1.5; position: relative; } [data-theme="notion"] #preview-content pre { background-color: #f7f6f3; border-radius: 4px; } [data-theme="notion"] #preview-content pre code { color: #37352f; text-shadow: none; } #preview-content pre code { background-color: transparent; color: #abb2bf; padding: 0; font-size: 13px; border-radius: 0; margin: 0; } /* Images */ #preview-content img { max-width: 100%; height: auto; display: block; margin: 1.5em auto; border-radius: var(--img-radius); box-shadow: var(--img-shadow); } /* Footnotes */ .footnote-ref { color: var(--link-color); text-decoration: none; font-size: 0.8em; vertical-align: super; margin-left: 2px; } .footnotes-sep { border-top: 1px solid #ddd; margin-top: 3em; margin-bottom: 1.5em; width: 30%; } .footnotes-list { font-size: 0.9em; color: #888; } .footnotes-list ol { padding-left: 20px; } .footnotes-list li { margin-bottom: 0.5em; word-break: break-all; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; } ::-webkit-scrollbar-track { background: transparent; }