/** * MD 红色主题 * 传统书法风格,红金配色,宋体排版 */ /* ==================== 容器字体覆盖 ==================== */ section, container { font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Source Han Serif CN", STSong, SimSun, serif; font-size: 16px; line-height: 1.8; background-color: rgba(255, 251, 240, 1); border: 4px solid rgba(169, 50, 38, 1); border-radius: 12px; padding: 6px 12px; } #output { font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Source Han Serif CN", STSong, SimSun, serif; font-size: 16px; line-height: 1.8; } /* ==================== 一级标题 ==================== */ h1 { display: table; padding: 0 1em; border-bottom: 2px solid #A93226; margin: 30px auto 20px; color: #A93226; font-size: 24px; font-weight: bold; text-align: center; } /* ==================== 二级标题 ==================== */ h2 { display: block; width: fit-content; padding: 6px 20px; margin: 30px auto 20px; color: #FFFFFF; background-color: #A93226; font-size: 18px; font-weight: bold; text-align: center; border-radius: 8px; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px; line-height: 1.6em; } /* ==================== 三级标题 ==================== */ h3 { padding-left: 8px; border-left: 3px solid #A93226; margin: 20px 8px 10px 0; color: #A93226; font-size: 17px; font-weight: normal; line-height: 1.2; } /* ==================== 四级标题 ==================== */ h4 { margin: 10px 8px; color: #D4AC0D; font-size: 16px; font-weight: normal; } /* ==================== 五级标题 ==================== */ h5 { margin: 10px 8px; color: #797D7F; font-size: 15px; font-weight: normal; } /* ==================== 六级标题 ==================== */ h6 { margin: 10px 8px; color: #797D7F; font-size: 14px; font-weight: normal; } /* ==================== 段落 ==================== */ p { margin: 16px 0; letter-spacing: 0.5px; color: #2C2C2C; line-height: 1.8; } /* ==================== 引用块 ==================== */ blockquote { font-style: normal; padding: 15px 12px; border-left: 2px solid rgba(169, 50, 38, 0.8); border-radius: 4px; color: #5D4037; background-color: rgba(253, 237, 236, 1); margin: 12px 0; } blockquote > p { color: #5D4037; font-size: 14px; margin: 0; } /* ==================== 代码块 ==================== */ pre.code__pre, .hljs.code__pre { font-size: 13px; border: 1px solid #D4AC0D; } /* ==================== 图片 ==================== */ img { border-radius: 4px; border: 1px solid #D4AC0D; margin: 20px auto; padding: 5px; } /* ==================== 列表 ==================== */ ol { padding-left: 1em; margin: 15px 0; line-height: 1.6; } ul { list-style: none; padding-left: 0; margin: 15px 0; line-height: 1.6; } li { margin: 0.2em 0; color: #2C2C2C; font-size: 16px; } /* ==================== 分隔线 ==================== */ hr { border-style: solid; border-width: 2px 0 0; border-color: #D4AC0D; margin: 40px 0; } /* ==================== 强调 ==================== */ strong { color: #A93226; font-weight: bold; } /* ==================== 标记高亮 ==================== */ .markup-highlight { background-color: #FADBD8; padding: 5px; color: #A93226; } .markup-underline { text-decoration: underline; text-decoration-color: #D4AC0D; } /* ==================== 链接 ==================== */ a { color: #A93226; text-decoration: none; } /* ==================== 表格 ==================== */ th { background: rgba(169, 50, 38, 0.1); }