/* xhs-philosophy.css * 小红书哲学类文章主题样式 * 设计理念: * - 现代简洁的排版风格 * - 适合哲学、思辨类长文阅读 * - 突出引用和重点内容 * - 舒适的阅读体验 * 特色: * - 大标题设计,层次分明 * - 特色引用样式,带引号装饰 * - 适合小红书平台的视觉风格 */ .note2any { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.8; color: #2c2c2c; background: #ffffff; margin: 0; padding: 20px; max-width: 750px; margin: 0 auto; } /* 段落 */ .note2any p { margin: 1.5em 0; letter-spacing: 0.5px; text-align: justify; color: #333333; } /* 标题层级设计 */ .note2any h1, .note2any h2, .note2any h3, .note2any h4, .note2any h5, .note2any h6 { margin: 2.5em 0 1.2em; line-height: 1.3; color: #1a1a1a; font-weight: 700; letter-spacing: 1px; } /* H1:主标题 - 大号粗体 */ .note2any h1 { font-size: 32px; font-weight: 800; margin: 1.5em 0 1em; text-align: center; position: relative; padding: 0 20px; } .note2any h1::before { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: linear-gradient(90deg, #ff6b6b, #4ecdc4); border-radius: 2px; } /* H2:章节标题 - 带数字序号 */ .note2any h2 { font-size: 24px; font-weight: 800; position: relative; padding: 15px 0 15px 60px; margin: 2em 0 1.5em; counter-increment: section; } .note2any h2::before { content: counter(section, decimal); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: #2c2c2c; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; } /* H3:小节标题 */ .note2any h3 { font-size: 20px; font-weight: 700; border-left: 4px solid #ff6b6b; padding-left: 15px; margin: 2em 0 1em; } /* H4-H6:次级标题 */ .note2any h4 { font-size: 18px; font-weight: 600; color: #444444; } .note2any h5 { font-size: 16px; font-weight: 600; color: #555555; } .note2any h6 { font-size: 15px; font-weight: 600; color: #666666; } /* 初始化计数器 */ .note2any { counter-reset: section; } /* 引用样式 - 仿小红书风格 */ .note2any blockquote { position: relative; margin: 2em 0; padding: 25px 30px 25px 60px; background: #f8f9fa; border: none; border-radius: 12px; border-left: 5px solid #4ecdc4; font-size: 16px; line-height: 1.7; color: #2c2c2c; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .note2any blockquote::before { content: "\201C"; position: absolute; left: 15px; top: 10px; font-size: 40px; color: #4ecdc4; font-family: Georgia, serif; font-weight: bold; line-height: 1; } .note2any blockquote::after { content: "\201D"; position: absolute; right: 15px; bottom: 5px; font-size: 40px; color: #4ecdc4; font-family: Georgia, serif; font-weight: bold; line-height: 1; } .note2any blockquote p { margin: 0.8em 0; font-style: normal; } /* 加粗文本 */ .note2any strong, .note2any b { font-weight: 700; color: #1a1a1a; background: linear-gradient(180deg, transparent 60%, #fff2cc 60%); padding: 2px 4px; border-radius: 3px; } /* 斜体 */ .note2any em, .note2any i { font-style: italic; color: #666666; } /* 列表样式 */ .note2any ul, .note2any ol { margin: 1.5em 0; padding-left: 2em; } .note2any ul li { list-style: none; position: relative; margin: 0.8em 0; padding-left: 1.5em; } .note2any ul li::before { content: "▪"; position: absolute; left: 0; color: #4ecdc4; font-size: 18px; font-weight: bold; } .note2any ol li { margin: 0.8em 0; padding-left: 0.5em; } /* 分隔线 */ .note2any hr { border: none; height: 2px; background: linear-gradient(90deg, transparent, #e0e0e0, transparent); margin: 3em 0; } /* 代码样式 */ .note2any code { background: #f1f3f4; color: #d73a49; padding: 3px 6px; border-radius: 4px; font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace; font-size: 0.9em; } .note2any pre { background: #f8f8f8; border: 1px solid #e1e4e8; border-radius: 8px; padding: 20px; margin: 2em 0; overflow-x: auto; line-height: 1.5; } .note2any pre code { background: none; color: #24292e; padding: 0; border-radius: 0; font-size: 14px; } /* 表格样式 */ .note2any table { width: 100%; border-collapse: collapse; margin: 2em 0; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .note2any th, .note2any td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e1e4e8; } .note2any th { background: #f6f8fa; font-weight: 600; color: #24292e; } .note2any tr:hover { background: #f6f8fa; } /* 图片样式 */ .note2any img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: block; margin-left: auto; margin-right: auto; } /* 链接样式 */ .note2any a { color: #4ecdc4; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.3s ease; } .note2any a:hover { color: #ff6b6b; border-bottom-color: #ff6b6b; } /* 高亮标记 */ .note2any mark { background: linear-gradient(180deg, transparent 50%, #ffeb3b 50%); color: #2c2c2c; padding: 2px 4px; border-radius: 3px; } /* 删除线 */ .note2any del, .note2any s { color: #999999; text-decoration: line-through; } /* 特殊样式:次仁群宗风格的标题 */ .note2any .philosophy-title { font-size: 28px; font-weight: 800; text-align: center; margin: 2em 0 1.5em; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); } /* 特殊引用:专家观点 */ .note2any .expert-quote { position: relative; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; padding: 25px 30px; border-radius: 15px; margin: 2em 0; box-shadow: 0 8px 25px rgba(0,0,0,0.15); } .note2any .expert-quote::before { content: "专家观点"; position: absolute; top: -12px; left: 20px; background: #2c2c2c; color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; } /* 响应式设计 */ @media (max-width: 768px) { .note2any { padding: 15px; font-size: 16px; } .note2any h1 { font-size: 28px; } .note2any h2 { font-size: 22px; padding-left: 50px; } .note2any h2::before { width: 35px; height: 35px; font-size: 16px; } .note2any blockquote { padding: 20px 25px 20px 50px; } }