{"slug":"chinese-typography","title":"chinese-typography","summary":"中文排版规范助手。当用户要\"排版\"\"中文网页样式\"\"文章排版\"\"公众号排版\"\"PDF/Word 排版\"\"字体怎么选\"\"中英混排\"\"为什么我的中文网页很丑\"时使用。处理中英间距、标点、行高、字体栈、CJK 断行等中文特有问题，输出可直接用的 CSS 或排版建议。","platform":"Claude","tags":["design"],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-27T19:10:07.913607Z","repo":{"url":"https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools","stars":12,"forks":7,"license":"MIT","updatedAt":"2026-11-23T08:26:40Z"},"bodyHtml":"<hr>\n<h2>name: chinese-typography\ndescription: 中文排版规范助手。当用户要\"排版\"\"中文网页样式\"\"文章排版\"\"公众号排版\"\"PDF/Word 排版\"\"字体怎么选\"\"中英混排\"\"为什么我的中文网页很丑\"时使用。处理中英间距、标点、行高、字体栈、CJK 断行等中文特有问题，输出可直接用的 CSS 或排版建议。\nmetadata:\nauthor: sanhuang520-ship-it\ncategory: design\ntags: design, chinese, standards, ui</h2>\n<h1>中文排版助手</h1>\n<p><strong>中文网页丑，八成不是设计问题，是排版问题。</strong></p>\n<p>大部分模板是按西文设计的，直接拿来放中文，会同时踩到十几个坑：行高不够、中英挤在一起、标点占位不对、断行断在不该断的地方。</p>\n<h2>什么时候用</h2>\n<p>网页/文章/公众号/PDF/Word/PPT 的中文排版，选字体，中英混排，修\"说不上哪里丑\"的中文页面。</p>\n<h2>第一步：确认载体</h2>\n<p>不同载体规则差别大：</p>\n<table>\n<thead>\n<tr>\n<th>载体</th>\n<th>关键差异</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>网页</strong></td>\n<td>可用 CSS 控制，字体要考虑加载</td>\n</tr>\n<tr>\n<td><strong>公众号</strong></td>\n<td>内联样式，字体受限，宽度固定</td>\n</tr>\n<tr>\n<td><strong>Word/PDF</strong></td>\n<td>首行缩进传统，字号用磅</td>\n</tr>\n<tr>\n<td><strong>PPT</strong></td>\n<td>字号大、行数少、对比强</td>\n</tr>\n</tbody>\n</table>\n<h2>中文排版的 10 条核心规则</h2>\n<h3>1. 中英文之间加空格（盘古之白）</h3>\n<pre><code>❌ 我用Python写了一个爬虫\n✅ 我用 Python 写了一个爬虫\n</code></pre>\n<p><strong>数字同理</strong>：<code>3 个苹果</code>、<code>iPhone 15 Pro</code></p>\n<p>例外：<strong>标点旁边不加</strong>——<code>使用 Python，然后……</code>（逗号前不加）</p>\n<h3>2. 行高要比西文大</h3>\n<p>中文字符方正饱满，行高不够会挤成一团。</p>\n<pre><code>line-height: 1.75;   /* 正文，1.6-1.8 都可以 */\nline-height: 1.35;   /* 大标题可以紧一些 */\n</code></pre>\n<blockquote>\n<p>西文常用的 1.4-1.5 放中文会显得压抑。</p>\n</blockquote>\n<h3>3. 字体栈要写对</h3>\n<pre><code>font-family:\n  -apple-system, BlinkMacSystemFont,   /* 苹方 / SF */\n  \"Segoe UI\", Roboto,                   /* 西文优先 */\n  \"PingFang SC\", \"Hiragino Sans GB\",    /* 苹果中文 */\n  \"Microsoft YaHei\", \"微软雅黑\",         /* Windows */\n  \"Source Han Sans SC\", \"Noto Sans CJK SC\",  /* 思源 */\n  sans-serif;\n</code></pre>\n<p><strong>顺序原则</strong>：西文字体放前面，中文字体放后面。这样英文用西文字体渲染，中文自动 fallback，混排更好看。</p>\n<p><strong>衬线（正文长阅读 / 文艺感）</strong>：</p>\n<pre><code>font-family: \"Songti SC\", \"SimSun\", \"Noto Serif SC\", Georgia, serif;\n</code></pre>\n<h3>4. 标点：全角还是半角</h3>\n<table>\n<thead>\n<tr>\n<th>场景</th>\n<th>用法</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>中文句子</td>\n<td><strong>全角</strong>：，。？！：；\"\"''</td>\n</tr>\n<tr>\n<td>英文句子</td>\n<td><strong>半角</strong>：, . ? ! : ; \" '</td>\n</tr>\n<tr>\n<td>中文句中的英文</td>\n<td>英文内部用半角，句子结束用全角句号</td>\n</tr>\n</tbody>\n</table>\n<p><strong>括号</strong>：中文内容用全角（），英文内容用半角 ()</p>\n<p><strong>省略号</strong>：中文用 <code>……</code>（六点），不是 <code>...</code></p>\n<p><strong>破折号</strong>：中文用 <code>——</code>（两个），不是 <code>--</code></p>\n<h3>5. 引号</h3>\n<ul>\n<li>简体大陆规范：<code>\"\"</code> 和 <code>''</code></li>\n<li>港台 / 文艺排版：<code>「」</code> 和 <code>『』</code></li>\n</ul>\n<p><strong>统一即可，不要混用。</strong></p>\n<h3>6. CJK 断行控制</h3>\n<pre><code>word-break: normal;        /* 不要用 break-all，会把英文单词拦腰截断 */\noverflow-wrap: anywhere;   /* 超长 URL 才需要 */\nline-break: strict;        /* 严格避头尾（标点不出现在行首）*/\n</code></pre>\n<p><strong>避头尾规则</strong>：<code>。，、；：？！）》」</code> 不能出现在行首；<code>（《「</code> 不能出现在行尾。</p>\n<h3>7. 段落：缩进还是间距</h3>\n<table>\n<thead>\n<tr>\n<th>载体</th>\n<th>推荐</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>网页</td>\n<td><strong>段间距</strong>（<code>margin-bottom: 1.5em</code>），不缩进</td>\n</tr>\n<tr>\n<td>印刷 / Word / PDF</td>\n<td><strong>首行缩进 2 字符</strong>（<code>text-indent: 2em</code>）</td>\n</tr>\n</tbody>\n</table>\n<p>⚠️ <strong>不要同时用</strong>——又缩进又空行是排版新手最常见的错误。</p>\n<h3>8. 着重强调</h3>\n<p>中文<strong>不用下划线</strong>，也慎用斜体（中文没有真正的斜体，会被拉斜变形）。</p>\n<pre><code>/* 着重号（中文传统做法）*/\nem {\n  font-style: normal;\n  text-emphasis: dot;\n  text-emphasis-position: under right;\n}\n</code></pre>\n<p>或直接用<strong>加粗</strong>。</p>\n<h3>9. 字号与行宽</h3>\n<pre><code>font-size: 16px;      /* 网页正文最小值，17-18px 更舒适 */\nmax-width: 38em;      /* 中文一行 30-40 字最舒服 */\n</code></pre>\n<blockquote>\n<p>一行超过 45 个汉字，眼睛回扫会累。</p>\n</blockquote>\n<h3>10. 数字与单位</h3>\n<ul>\n<li>数字用<strong>半角</strong>：<code>2026 年</code>不是<code>２０２６年</code></li>\n<li>数字与单位间加空格：<code>5 GB</code>、<code>30 分钟</code>（中文单位可不加：<code>5个</code>→<code>5 个</code>更清晰）</li>\n<li>表格里的数字用等宽对齐：<code>font-variant-numeric: tabular-nums;</code></li>\n</ul>\n<h2>可直接用的基础样式</h2>\n<pre><code>:root {\n  --font-sans: -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n               \"PingFang SC\", \"Microsoft YaHei\", \"Noto Sans CJK SC\", sans-serif;\n  --font-serif: \"Songti SC\", \"Noto Serif SC\", Georgia, serif;\n}\n\nbody {\n  font-family: var(--font-sans);\n  font-size: 17px;\n  line-height: 1.75;\n  letter-spacing: 0.01em;      /* 中文微调，别超过 0.05em */\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n}\n\narticle {\n  max-width: 38em;\n  margin: 0 auto;\n}\n\np { margin-bottom: 1.5em; }\n\nh1, h2, h3 {\n  line-height: 1.35;\n  letter-spacing: 0;           /* 大字号不需要额外字距 */\n  margin: 2em 0 0.8em;\n}\n\n/* 中英混排自动间距（现代浏览器）*/\nbody { text-spacing-trim: normal; }\n\n/* 着重号 */\nem {\n  font-style: normal;\n  text-emphasis: dot;\n  text-emphasis-position: under right;\n}\n\n/* 表格数字对齐 */\ntd.num { font-variant-numeric: tabular-nums; text-align: right; }\n</code></pre>\n<h2>常见问题速查</h2>\n<table>\n<thead>\n<tr>\n<th>症状</th>\n<th>原因</th>\n<th>解法</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>中文网页\"说不上哪里丑\"</td>\n<td>行高太小</td>\n<td><code>line-height: 1.75</code></td>\n</tr>\n<tr>\n<td>中英文挤在一起</td>\n<td>缺盘古之白</td>\n<td>手动加空格或用 <code>text-spacing-trim</code></td>\n</tr>\n<tr>\n<td>英文单词被截断</td>\n<td><code>word-break: break-all</code></td>\n<td>改成 <code>normal</code></td>\n</tr>\n<tr>\n<td>标点出现在行首</td>\n<td>没设避头尾</td>\n<td><code>line-break: strict</code></td>\n</tr>\n<tr>\n<td>加粗中文变模糊</td>\n<td>字体没有真 Bold，被伪粗</td>\n<td>用思源黑体等有多字重的字体</td>\n</tr>\n<tr>\n<td>一行字太长看着累</td>\n<td>没限宽</td>\n<td><code>max-width: 38em</code></td>\n</tr>\n<tr>\n<td>斜体中文很难看</td>\n<td>中文无真斜体</td>\n<td>改用加粗或着重号</td>\n</tr>\n</tbody>\n</table>\n<h2>公众号排版特殊规则</h2>\n<ul>\n<li>正文字号 <strong>15-16px</strong>（微信默认 17px 偏大）</li>\n<li>行高 <strong>1.75</strong></li>\n<li>段间距 <strong>1em</strong>，不要首行缩进</li>\n<li>两端不留白边（微信已有边距）</li>\n<li><strong>不要用系统外字体</strong>，会失效</li>\n<li>图片宽度 100%，圆角 4-8px</li>\n</ul>\n<h2>边界</h2>\n<ol>\n<li><strong>不替用户决定品牌字体</strong>。商用字体有授权问题（如方正、汉仪部分字体商用需付费），涉及商业项目时提醒核实授权。</li>\n<li><strong>不确定的规范要说明</strong>。大陆/港台/新马排版规范有差异，涉及具体出版规范时建议查对应标准（如 GB/T 15834 标点符号用法）。</li>\n<li><strong>免费可商用中文字体</strong>推荐：思源黑体/宋体（SIL OFL）、阿里巴巴普惠体、HarmonyOS Sans、霞鹜文楷。用之前仍建议核对最新授权条款。</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":6862,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-27T19:11:43.620273Z","sha256":"137190F1B07717F15EDDFE580E160380C0E630B1C0B70CD53DE0DE2A125B7D2E","sizeBytes":3866},"review":null,"source":{"repositoryUrl":"https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools","path":"skills/chinese-typography","license":"MIT","commit":"9abdb1f69f608755478e3067322c32819e60fbae","subtreeSha":"171CB680B3F22AEC50FB5A59C873F6709F2AA5278E51A9F7081D797C6201CF6B","lastSyncedAt":"2026-11-27T19:10:06.73682Z"},"reviewedAt":"2026-11-27T19:16:16.14026Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools/tree/main/skills/chinese-typography"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sanhuang520-ship-it-awesome-chinese-ai-tools@llmmart"},{"target":"git","command":"git clone https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools.git"}]}