/* =====================================================================
   AI 工具详情（tool.html）的三栏排版（B「派派一家」，11-07）。工具详情没有样稿，照技能详情的样稿 proto/brand/site/resource.css 搬：
   类名就用技能详情的 .rs-*（两页像一家人；等 b-detail 的 b/resource.css 合进来，这一段可以换成直接加载那一份，只留最后「工具自己的」）。
   版式：左 本页目录（吸顶）· 中 头部 + 正文（白纸）· 右 装上它 + 关于 + 接着看（吸顶）；宽屏正文一行最多约 48 个字，白纸在中栏居中；
   1280 以下目录收成正文上面的折叠条（两栏）；900 以下一栏：头部 → 目录折叠条 → 装上它 → 正文 → 关于 → 接着看。
   正文是服务器排好的 Markdown（app/web/mdx.py：.code 代码块 + 复制、.tbl 表格、.say-chip、blockquote.say / .got、.fig、常见问题 .faq）。
   :hover 都包进 @media (hover: hover)；只用 site.css 的变量
   ===================================================================== */
.page-tool {
  --rs-toc: clamp(176px, 11vw, 300px);
  --rs-side: clamp(300px, 24vw, 580px);
  --rs-gap: clamp(24px, 2.4vw, 56px);
  --rs-fs: clamp(16px, .16vw + 13.6px, 18px);    /* 正文字号：1440 → 16，2560 → 17.7 */
  --rs-pad: clamp(20px, 3vw, 64px);
  --rs-docw: calc(48 * var(--rs-fs) + 2 * var(--rs-pad));
  --rs-logo: clamp(72px, 4.6vw, 112px);          /* 头部 logo（技能详情这里是 3:2 封面） */
  --rs-h2: clamp(22px, .5vw + 15px, 30px);
  --rs-top: 24px;
}
.page-tool [hidden] { display: none !important; }

/* ---------- 面包屑 + 搜别的 ---------- */
.rs-bar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) 0 var(--space-lg); }
.rs-bar .crumbs { flex-wrap: nowrap; min-width: 0; }
.rs-bar .crumbs a { white-space: nowrap; }
.rs-bar .crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.rs-find { flex: none; margin-left: auto; width: clamp(220px, 14vw, 320px); height: 40px; padding: 0 8px 0 14px; }
.rs-find .search__icon svg { width: 18px; height: 18px; }
.rs-find .search__input { font-size: var(--fs-sm); }
.rs-find__kbd { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-3); }

/* ---------- 三栏 ---------- */
.rs-grid { display: grid; grid-template-columns: var(--rs-toc) minmax(0, 1fr) var(--rs-side); column-gap: var(--rs-gap); align-items: start; }
.rs-rail { align-self: stretch; min-width: 0; }
.rs-main { min-width: 0; }
.rs-head, .rs-doc, .rs-tocbar { width: 100%; max-width: var(--rs-docw); margin-inline: auto; }
.rs-side { align-self: stretch; display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.rs-stick { position: sticky; top: var(--rs-top); display: grid; gap: var(--space-md); }

/* ---------- 左栏目录：读到哪亮哪（蓝字 + 左边蓝条） ---------- */
.rs-toc { position: sticky; top: var(--rs-top); max-height: calc(100vh - 2 * var(--rs-top)); overflow-y: auto; scrollbar-width: thin; padding-bottom: var(--space-sm); }
.rs-toc__label { padding: 0 0 var(--space-sm) 14px; font-size: var(--fs-xs); letter-spacing: .06em; color: var(--ink-2); }
.rs-toc__list { border-left: 1.5px solid var(--line); }
.rs-toc__list a { display: block; margin-left: -1.5px; padding: 6px 12px 6px 14px; border-left: 2px solid transparent; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); transition: color .2s, border-color .2s; }
@media (hover: hover) { .rs-toc__list a:hover { color: var(--link); } }
.rs-toc__list a.is-on { color: var(--link); border-left-color: var(--blue); font-weight: 600; }
.rs-toc__top { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin: var(--space-md) 0 0 14px; font-size: var(--fs-xs); color: var(--ink-2); }
.rs-toc__top svg { width: 14px; height: 14px; }
@media (hover: hover) { .rs-toc__top:hover { color: var(--link); } }

/* 窄屏的目录折叠条：白胶囊吸顶，写着「目录 · 现在读到哪一节」，点开一张白卡列出全部 */
.rs-tocbar { display: none; position: sticky; top: var(--space-sm); z-index: 10; margin-bottom: var(--space-md); }
.rs-tocbar > summary { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh); cursor: pointer; list-style: none; font-size: var(--fs-sm); }
.rs-tocbar > summary::-webkit-details-marker { display: none; }
.rs-tocbar__k { flex: none; font-weight: 600; }
.rs-tocbar__k::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 10px; background: var(--line-2); vertical-align: -2px; }
.rs-tocbar__now { flex: 1; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tocbar > summary svg { flex: none; width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.rs-tocbar[open] > summary svg { transform: rotate(180deg); }
.rs-tocbar[open] > summary { box-shadow: var(--sh-lg); }
.rs-tocbar__menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--paper); box-shadow: var(--sh-lg); }
.rs-tocbar__menu .rs-toc__list { border-left: 0; }
.rs-tocbar__menu .rs-toc__list a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 14px; border-left: 0; border-radius: 10px; }
@media (hover: hover) { .rs-tocbar__menu .rs-toc__list a:hover { background: var(--sunk); } }
.rs-tocbar__menu .rs-toc__list a.is-on { background: var(--blue-bg); }

/* ---------- 头部：logo + 类别 · 哪家 → 名字 → 一句话 → 费用 → 能装在哪 → 按钮 ---------- */
.rs-head { display: grid; grid-template-columns: var(--rs-logo) minmax(0, 1fr); gap: clamp(20px, 1.8vw, 36px); align-items: start; padding-bottom: clamp(24px, 2vw, 40px); }
.rs-head__text { min-width: 0; }
.rs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); font-size: var(--fs-sm); line-height: 24px; color: var(--ink-2); }
@media (hover: hover) { .rs-meta__use:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; } }
.rs-dot { color: var(--ink-3); }
.rs-title { margin-top: var(--space-ms); }
.rs-title__name { display: block; font: var(--display-w) var(--fs-d2)/1.15 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; overflow-wrap: anywhere; }
.rs-sum { margin-top: var(--space-ms); max-width: 42em; font-size: clamp(16px, .14vw + 14px, 18px); line-height: 1.7; color: var(--ink-2); }
.rs-where { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-ms); margin-top: var(--space-ms); font-size: var(--fs-sm); }
.rs-where__k { color: var(--ink-2); }
.rs-where__v { font-weight: 600; color: var(--ink); }
.rs-where__more { color: var(--ink-2); }
.rs-acts { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-ms); margin-top: var(--space-lg); }

/* ---------- 正文白纸 ---------- */
.rs-doc { font-size: var(--rs-fs); padding: clamp(28px, 2.6vw, 56px) var(--rs-pad) clamp(32px, 3vw, 64px); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh); }
.rs-sec { scroll-margin-top: var(--rs-top); }
.rs-sec + .rs-sec { margin-top: 3em; padding-top: 2.5em; border-top: 1px solid var(--line); }
.rs-sec__t { margin-bottom: .9em; font: var(--display-w) var(--rs-h2)/1.3 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; letter-spacing: .01em; }

/* Markdown：中文一行 ≤ 48 字、行高 1.9；小标题 1.125 倍粗体；链接蓝字浅下划线 */
.rs-doc .md { line-height: 1.9; color: var(--ink); overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 1em; }
.md h3 { margin: 2em 0 .6em; font: 600 1.125em/1.5 var(--sans); scroll-margin-top: var(--rs-top); }
.md h4 { margin: 1.6em 0 .5em; font: 600 1em/1.5 var(--sans); color: var(--ink-2); }
.md ul, .md ol { margin: 0 0 1em; padding-left: 1.5em; }
.md ul { list-style: disc; } .md ol { list-style: decimal; }
.md li { margin: .35em 0; padding-left: .25em; }
.md li::marker { color: var(--ink-3); }
.md ol > li::marker { font-weight: 600; color: var(--link); }
.md strong { font-weight: 600; }
.md a { padding-block: 4px; color: var(--link); text-decoration: underline; text-decoration-color: rgb(9 88 217 / .3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
@media (hover: hover) { .md a:hover { text-decoration-color: currentColor; } }
.md code { padding: .1em .4em; border-radius: var(--r-sm); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); font: 400 .875em/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
/* 正文里「发这句话」那种（6 个汉字以上的行内代码）：浅蓝底 + 一个小复制 */
.md .say-chip { display: inline-flex; align-items: center; gap: var(--space-sm); max-width: 100%; padding: 2px 3px 2px 10px; border-radius: 10px; background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue-line); vertical-align: baseline; line-height: 1.6; }
.md .say-chip code { padding: 0; background: none; box-shadow: none; }
.md .say-chip button { position: relative; flex: none; display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-xs); font-weight: 600; }
/* 引用：「你只要说」灰底，「AI 回给你」浅蓝底 */
.md blockquote { margin: 0 0 1em; padding: 12px 16px; border-radius: var(--r-md); background: var(--sunk); }
.md blockquote.got { background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue-line); }
.md blockquote .lbl { display: inline-block; margin-bottom: 6px; padding: 0 8px; border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-xs); line-height: 22px; color: var(--ink-2); }
.md blockquote > :last-child { margin-bottom: 0; }
/* 表格：细边圆角框，表头浅灰蓝底，太宽就横着滑 */
.md .tbl { margin: .25em 0 1.25em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.md table { width: 100%; border-collapse: collapse; font-size: .875em; line-height: 1.7; }
.md th, .md td { min-width: 6em; padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.md th, .md thead td { background: var(--sunk); font-weight: 600; white-space: nowrap; }
.md tbody tr:last-child td { border-bottom: 0; }
.md td code { white-space: nowrap; }
.md td small { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.md td.nw { white-space: nowrap; }
.md .src { font-size: var(--fs-sm); color: var(--ink-2); }
/* 代码块（在终端里执行的命令）：墨色底，右上角「复制」（点了原地变「✓ 已复制」，ui.js 补第二层字）；一行放不下横着滚（ui.js 给 pre 加 tabindex） */
.md .code { position: relative; margin: .25em 0 1.25em; border-radius: var(--r-md); background: var(--ink); color: var(--line); }
.md .code pre { margin: 0; padding: 14px 84px 14px 16px; overflow-x: auto; font: 400 .875em/1.75 var(--mono); white-space: pre; tab-size: 2; scrollbar-width: thin; }
.md .code pre:focus-visible { outline: 2px solid var(--line); outline-offset: -4px; border-radius: var(--r-md); }
.md .code code { padding: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: inherit; }
.md .code .cp { position: absolute; top: 9px; right: 9px; display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / .12); color: var(--paper); font-size: var(--fs-xs); font-weight: 600; transition: background-color .2s; }
@media (hover: hover) { .md .code .cp:hover { background: rgb(255 255 255 / .22); } .md .say-chip button:hover { color: var(--link); box-shadow: inset 0 0 0 1px var(--blue-line); } }
.md .code .cp:focus-visible { outline-color: var(--line); }
.md .code .pp-swap svg, .md .say-chip .pp-swap svg { width: 12px; height: 12px; }
.md .say-chip .pp-done { color: var(--ok); }
@media (pointer: coarse) { .md .code .cp::after, .md .say-chip button::after { content: ""; position: absolute; inset: -8px -4px; } }
/* 截图：单独一行的大图 + 图说；细边勾出来，浅色截图不会融进白纸 */
.md .fig { margin: .5em 0 1.5em; }
.md .fig img, .md .fig video { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--r-md); background: var(--sunk); box-shadow: 0 0 0 1px var(--line); }
.md img[data-zoom], .md img.pp-zoomable { cursor: zoom-in; }
.md .fig figcaption { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-3); text-align: center; text-wrap: balance; }
/* 常见问题：一问一行，左边蓝色「问」，点开看答案（服务器排的 .faq > details） */
.md .faq { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.md .faq details + details { border-top: 1px solid var(--line); }
.md .faq summary { display: flex; align-items: center; gap: var(--space-ms); min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none; font-weight: 600; line-height: 1.6; transition: background-color .2s, color .2s; }
.md .faq summary::-webkit-details-marker { display: none; }
.md .faq summary::before { content: "问"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-bg); color: var(--link); font: var(--display-w) 14px/1 var(--display); }
.md .faq summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.md .faq details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .md .faq summary:hover { background: var(--sunk); } }
.md .faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.md .faq .ans { padding: 0 20px 18px 58px; }

/* ---------- 右栏：装上它（白卡，同技能详情的「技能文件」框）---------- */
.rs-file { display: flex; flex-direction: column; gap: var(--space-ms); }
.rs-file__head { display: flex; align-items: center; gap: var(--space-sm); padding: 4px 4px 0; }
.rs-file__title { flex: none; font: var(--display-w) var(--fs-xl)/1.2 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.rs-tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
.rs-tabs::-webkit-scrollbar { display: none; }
.rs-tabs button { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
.rs-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.rs-tx { margin: 0; max-height: calc(10 * 1.75em + 24px); overflow: auto; padding: 12px 14px; border-radius: var(--r-md); background: var(--sunk); font: 400 var(--fs-sm)/1.75 var(--sans); white-space: pre-wrap; word-break: break-word; color: var(--ink); scrollbar-width: thin; }
.rs-tx:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.rs-file__acts { display: flex; gap: var(--space-sm); }
.rs-file__acts .btn { flex: 1; }
.rs-file__hint { padding: 0 4px; font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-2); }
.rs-file__hint:last-child { padding-bottom: 4px; }
.rs-file__hint code { padding: .1em .4em; border-radius: var(--r-sm); background: var(--sunk); font: 400 13px/1.6 var(--mono); }

/* 关于（学 GitHub 仓库页右边的 About）：一行一项，16px 线条图标 + 名称 + 内容 */
.rs-side__t { font: var(--display-w) var(--fs-lg)/1.3 var(--display); -webkit-text-stroke: var(--display-stroke) currentColor; }
.rs-about { padding: 4px 8px 0; }
.rs-ab { display: grid; gap: 10px; margin: var(--space-ms) 0 0; font-size: var(--fs-sm); line-height: 1.6; }
.rs-ab > div { display: grid; grid-template-columns: calc(16px + 8px + 4em) minmax(0, 1fr); column-gap: var(--space-ms); align-items: start; }
.rs-ab dt { display: flex; align-items: center; gap: var(--space-sm); height: 22px; color: var(--ink-3); white-space: nowrap; }
.rs-ab dt svg { flex: none; width: 16px; height: 16px; }
.rs-ab dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.rs-ab dd a { padding-block: 4px; color: var(--link); }
@media (hover: hover) { .rs-ab dd a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.rs-ab__sub { display: block; font-size: var(--fs-xs); line-height: 1.6; color: var(--ink-3); }
@media (pointer: coarse) { .rs-ab dd a { display: inline-block; padding-block: 6px; margin-block: -6px; } }

/* 吸顶的「一键复制安装命令」：装上它、头部按钮都滚出去以后才淡入 */
.rs-quick { display: flex; gap: var(--space-sm); transition: opacity .25s var(--ease); }
@starting-style { .rs-quick { opacity: 0; } }
.rs-quick .btn--primary { flex: 1; min-width: 0; }
.rs-quick .btn { min-width: 0; }

/* 接着看：同类的其他工具（logo + 名字 · 哪家 + 一句话 + 费用类型 · 装在哪） */
.rs-rel__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--space-sm); padding: 0 8px 4px; }
.rs-rel__sub { font-size: var(--fs-xs); color: var(--ink-3); }
.rs-rel__list { display: grid; gap: 2px; }
.rs-rel__item { gap: var(--space-ms); padding: var(--space-sm); border-radius: var(--r-md); }
.rs-rel__item .list-item__title { font-size: var(--fs-sm); line-height: 1.5; }
.rs-rel__item .list-item__title small { color: var(--ink-3); }
.rs-rel__item .list-item__desc { font-size: var(--fs-xs); }
.rs-rel__item .list-item__meta { margin-top: 2px; min-width: 0; }
.rs-rel__all { margin: var(--space-xs) 0 0 8px; }
.rs-rel__all svg { width: 14px; height: 14px; }

/* ---------- 工具自己的 ---------- */
.tool-logo { display: block; width: var(--rs-logo); height: var(--rs-logo); }
.tool-logo .mono-logo { width: 100%; height: 100%; border-radius: var(--r-lg); font-size: calc(var(--rs-logo) * .4); box-shadow: var(--sh); }
.tool-logo .mono-logo.img { padding: calc(var(--rs-logo) * .14); background: var(--paper); box-shadow: var(--sh), inset 0 0 0 1px var(--line); }
.tool-logo span.mono-logo { background: var(--paper); color: var(--ink); }
.tool-fee { height: 28px; padding: 0 10px; font-size: var(--fs-sm); font-weight: 600; }
.tool-cmd { font: 400 13px/1.75 var(--mono); }
.tool-note { margin-top: var(--space-sm); }
.tool-rel__logo { flex: none; display: block; width: 40px; height: 40px; }
.tool-rel__logo .mono-logo { width: 40px; height: 40px; }
.tool-rel__where { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-skills { margin-top: clamp(48px, 4vw, 80px); }
.tool-skills__more { display: flex; justify-content: center; margin-top: var(--space-xl); }

/* ---------- 1280 以下：目录收成正文上面的折叠条，两栏（正文 + 右栏） ---------- */
@media (max-width: 1279px) {
  .page-tool { --rs-side: clamp(288px, 30vw, 340px); }
  .rs-grid { grid-template-columns: minmax(0, 1fr) var(--rs-side); }
  .rs-rail { display: none; }
  .rs-tocbar { display: block; }
  .rs-sec, .md h3 { scroll-margin-top: 72px; }   /* 吸顶的目录折叠条（48 高）不盖住跳到的那一节标题 */
}
/* ---------- 900 以下：一栏。头部 → 目录折叠条（吸顶）→ 装上它 → 正文 → 关于 → 接着看 ---------- */
@media (max-width: 899px) {
  .page-tool { --rs-pad: 20px; --rs-logo: 64px; }
  .rs-bar { padding-bottom: var(--space-md); }
  .rs-find { display: none; }
  .rs-grid { display: flex; flex-direction: column; gap: var(--space-lg); }
  .rs-main, .rs-side { display: contents; }
  .rs-head { order: 1; } .rs-tocbar { order: 2; } .rs-file { order: 3; } .rs-doc { order: 4; } .rs-about { order: 5; } .rs-stick { order: 6; }
  .rs-tocbar { margin: 0; }
  .rs-stick { position: static; }
  .rs-quick { display: none !important; }
  .rs-head { grid-template-columns: var(--rs-logo) minmax(0, 1fr); grid-template-areas: "logo meta" "logo title" "sum sum" "where where" "where2 where2" "acts acts"; column-gap: 14px; row-gap: 0; padding-bottom: 0; }
  .rs-head__text { display: contents; }
  .tool-logo { grid-area: logo; align-self: start; }
  .rs-meta { grid-area: meta; align-self: end; gap: 6px; font-size: var(--fs-xs); }
  .rs-title { grid-area: title; margin-top: 6px; }
  .rs-title__name { font-size: 26px; }
  .rs-sum { grid-area: sum; margin-top: var(--space-md); font-size: var(--fs-md); }
  .rs-where { grid-area: where; }
  .rs-where + .rs-where { grid-area: where2; }
  .rs-acts { grid-area: acts; margin-top: var(--space-md); gap: var(--space-sm); }
  .rs-acts .btn { flex: 1 1 auto; padding: 0 16px; }
  .rs-about { padding: var(--space-lg) 4px 0; border-top: 1px solid var(--line); }
}
/* 手机：正文不再套白纸（省出两边各 20 的留白），各节之间还是一道细线 */
@media (max-width: 599px) {
  .rs-doc { padding: var(--space-sm) 0 0; border-radius: 0; background: none; box-shadow: none; }
  .md .faq summary { padding: 12px 14px; }
  .md .faq .ans { padding: 0 14px 16px; }
  .md .code pre { padding-right: 16px; padding-top: 44px; }
  /* 表格改成一行一张小卡：第一格当小标题 */
  .md .tbl { border: 0; border-radius: 0; overflow: visible; }
  .md .tbl table, .md .tbl tbody, .md .tbl tr, .md .tbl td { display: block; width: 100%; }
  .md .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .md .tbl tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
  .md .tbl tr + tr { margin-top: 8px; }
  .md .tbl td { min-width: 0; padding: 2px 0; border: 0; }
  .md .tbl td.nw { white-space: normal; }
  .md td code { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rs-quick { transition: none; } }
