/* xhs-philosophy2.css * 小红书哲学思辨类文章主题 v2 * 设计灵感:项飙、哲学对话访谈风格 * 特点: * - 大号标题,强烈视觉冲击 * - 带序号的章节设计(❶❷❸...) * - 引用块带引号装饰 * - 灰色调背景,适合长文阅读 * - 现代简约,适合小红书平台 */ .note2any { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.75; color: #1a1a1a; background: #f5f5f5; margin: 0; padding: 20px; max-width: 750px; margin: 0 auto; } /* 段落 */ .note2any p { margin: 1.2em 0; letter-spacing: 0.3px; text-align: justify; color: #2c2c2c; line-height: 1.8; } /* 标题通用样式 */ .note2any h1, .note2any h2, .note2any h3, .note2any h4, .note2any h5, .note2any h6 { margin: 2em 0 1em; line-height: 1.3; color: #000000; font-weight: 800; letter-spacing: 0.5px; } /* H1:超大标题 - 主标题 */ .note2any h1 { font-size: 42px; font-weight: 900; margin: 1em 0 0.8em; line-height: 1.2; letter-spacing: 1px; word-break: keep-all; } /* H2:带数字序号的章节标题 */ .note2any h2 { font-size: 28px; font-weight: 900; position: relative; padding: 12px 0 12px 0; margin: 2em 0 1.2em; background: #ffffff; border-radius: 8px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); counter-increment: section; } /* H2序号样式 - 使用圆形数字 */ .note2any h2::before { content: counter(section) " "; display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: #000000; color: white; border-radius: 50%; font-size: 18px; font-weight: 700; margin-right: 12px; vertical-align: middle; } /* H3:小节标题 */ .note2any h3 { font-size: 22px; font-weight: 700; color: #1a1a1a; padding-left: 16px; border-left: 4px solid #000000; margin: 1.8em 0 1em; } /* H4-H6:次级标题 */ .note2any h4 { font-size: 18px; font-weight: 600; color: #2c2c2c; } .note2any h5 { font-size: 16px; font-weight: 600; color: #3c3c3c; } .note2any h6 { font-size: 15px; font-weight: 600; color: #4c4c4c; } /* 初始化计数器 */ .note2any { counter-reset: section; } /* 引用样式 - 带引号装饰 */ .note2any blockquote { position: relative; margin: 2em 0; padding: 24px 30px 24px 70px; background: #ffffff; border: none; border-left: 5px solid #000000; font-size: 15px; line-height: 1.75; color: #2c2c2c; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-radius: 4px; } /* 左上引号 */ .note2any blockquote::before { content: "\201C"; position: absolute; left: 20px; top: 15px; font-size: 48px; color: #000000; font-family: Georgia, serif; font-weight: bold; line-height: 1; opacity: 0.3; } /* 右下引号 */ .note2any blockquote::after { content: "\201D"; position: absolute; right: 20px; bottom: 10px; font-size: 48px; color: #000000; font-family: Georgia, serif; font-weight: bold; line-height: 1; opacity: 0.3; } .note2any blockquote p { margin: 0.8em 0; font-style: normal; } .note2any blockquote p:first-child { margin-top: 0; } .note2any blockquote p:last-child { margin-bottom: 0; } /* 加粗文本 - 黑色高亮 */ .note2any strong, .note2any b { font-weight: 700; color: #000000; } /* 斜体 */ .note2any em, .note2any i { font-style: italic; color: #4c4c4c; } /* 列表样式 */ .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: #000000; font-size: 16px; font-weight: bold; } .note2any ol li { margin: 0.8em 0; padding-left: 0.5em; } /* 分隔线 */ .note2any hr { border: none; height: 1px; background: #d0d0d0; margin: 3em 0; } /* 代码样式 */ .note2any code { background: #e8e8e8; color: #000000; padding: 3px 6px; border-radius: 3px; font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace; font-size: 0.9em; font-weight: 500; } .note2any pre { background: #ffffff; border: 1px solid #d0d0d0; border-radius: 6px; padding: 20px; margin: 2em 0; overflow-x: auto; line-height: 1.5; box-shadow: 0 2px 6px rgba(0,0,0,0.05); } .note2any pre code { background: none; color: #2c2c2c; padding: 0; border-radius: 0; font-size: 14px; } /* 表格样式 */ .note2any table { width: 100%; border-collapse: collapse; margin: 2em 0; background: white; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } .note2any th, .note2any td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e0e0e0; } .note2any th { background: #f5f5f5; font-weight: 600; color: #000000; } .note2any tr:last-child td { border-bottom: none; } .note2any tr:hover { background: #fafafa; } /* 图片样式 */ .note2any img { max-width: 100%; height: auto; border-radius: 6px; margin: 2em 0; display: block; margin-left: auto; margin-right: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.15); } /* 链接样式 */ .note2any a { color: #000000; text-decoration: none; border-bottom: 2px solid #000000; transition: all 0.3s ease; font-weight: 500; } .note2any a:hover { color: #4c4c4c; border-bottom-color: #4c4c4c; } /* 高亮标记 */ .note2any mark { background: #ffeb3b; color: #000000; padding: 2px 4px; border-radius: 2px; font-weight: 500; } /* 删除线 */ .note2any del, .note2any s { color: #888888; text-decoration: line-through; } /* 特殊样式:访谈对话框 */ .note2any .interview-question { background: #ffffff; border-left: 6px solid #000000; padding: 16px 20px; margin: 2em 0; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); } .note2any .interview-question::before { content: "次仁群宗:"; display: block; font-weight: 700; color: #000000; margin-bottom: 0.5em; font-size: 14px; } .note2any .interview-answer { background: #f8f8f8; padding: 16px 20px; margin: 1em 0; border-radius: 4px; border-left: 4px solid #666666; } .note2any .interview-answer::before { content: "项飙:"; display: block; font-weight: 700; color: #000000; margin-bottom: 0.5em; font-size: 14px; } /* 特殊标注:观点卡片 */ .note2any .viewpoint-card { position: relative; background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%); color: white; padding: 30px; border-radius: 8px; margin: 2.5em 0; box-shadow: 0 8px 20px rgba(0,0,0,0.2); } .note2any .viewpoint-card::before { content: "VIEWPOINT"; position: absolute; top: -12px; right: 20px; background: #000000; color: white; padding: 5px 15px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 1px; } /* 带三角形装饰的引用块 */ .note2any .quote-triangle { position: relative; background: #ffffff; padding: 20px 25px; margin: 2em 0; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,0.1); } .note2any .quote-triangle::before { content: "▶"; position: absolute; left: -10px; top: 20px; color: #000000; font-size: 20px; } /* 响应式设计 */ @media (max-width: 768px) { .note2any { padding: 15px; font-size: 15px; } .note2any h1 { font-size: 32px; } .note2any h2 { font-size: 24px; padding: 16px 20px; } .note2any h2::before { width: 32px; height: 32px; line-height: 32px; font-size: 16px; margin-right: 10px; } .note2any blockquote { padding: 20px 25px 20px 60px; } .note2any blockquote::before, .note2any blockquote::after { font-size: 36px; } } /* 确保在小红书平台的兼容性 */ .note2any * { box-sizing: border-box; } /* 打印样式优化 */ @media print { .note2any { background: white; color: black; } .note2any blockquote { page-break-inside: avoid; } .note2any h1, .note2any h2, .note2any h3 { page-break-after: avoid; } }