/* 迎帆智能主题包 v1 —— 视觉与排版基线。
 *
 * 改造原则（2026-11-06）：
 *   1. 只改样式，不动模板契约与 class 名，历史内容无需迁移。
 *   2. 颜色优先取平台下发的 --geo-color-* token，取不到时用 configSchema 默认值兜底。
 *   3. 版式按「企业软件官网」重做：首屏留白收紧、字阶拉开、卡片有层次、段落有节奏。
 *   4. 全部响应式断点集中在文件末尾，避免散落覆盖。
 */

:root {
  --yf-primary: var(--geo-color-primary, #005BAC);
  --yf-secondary: var(--geo-color-secondary, #00A6D6);
  --yf-accent: var(--geo-color-accent, #F39800);
  --yf-bg: var(--geo-color-background, #FFFFFF);
  --yf-surface: var(--geo-color-surface, #F6F8FA);
  --yf-text: var(--geo-color-text, #1F2937);
  --yf-muted: var(--geo-color-text-muted, #6B7280);
  --yf-inverse: var(--geo-color-text-inverse, #FFFFFF);
  --yf-border: var(--geo-color-border, #D1D5DB);

  /* 派生色：由主色与中性色推导，避免在业务规则里写裸色值。 */
  --yf-ink: #0F172A;                       /* 标题：比正文更重 */
  --yf-faint: #98A2B3;                     /* 三级文字 */
  --yf-line-soft: #EAECF0;                 /* 浅分隔线 */
  --yf-primary-tint: rgba(0, 91, 172, .08);/* 主色浅底 */
  --yf-surface-alt: #F9FAFB;
  --yf-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --yf-shadow: 0 4px 12px rgba(16, 24, 40, .07);
  --yf-shadow-lg: 0 18px 40px rgba(16, 24, 40, .10);

  /* 尺度：字阶与间距统一在这里调，业务规则只引用。 */
  --yf-radius-sm: 6px;
  --yf-radius: 10px;
  --yf-radius-lg: 16px;
  /* 字体栈与行高对齐线上：线上 globals 里是 `body{font-family:Arial,Helvetica,sans-serif}` +
   * line-height 1.5（24px）。Arial 没有中文字形，中文仍由系统 CJK 字体接手，只有西文/数字
   * 的观感不同；行高 1.7 → 1.5 是整站纵向节奏的差异，必须改。 */
  --yf-font: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  --yf-container: 1200px;
  --yf-container-pad: 24px;
  --yf-gap: 72px;          /* 区块上下留白 */
  --yf-gap-tight: 48px;
  --yf-head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

body.yingfan-site {
  margin: 0;
  color: var(--yf-text);
  background: var(--yf-bg);
  font-family: var(--yf-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 1.1.5：卡片网格等区块复刻的 Tailwind 按钮是 <a class="… bg-blue-600 text-white">，
 * 不在 .yf-rich/.prose/header/footer 内，会被下面的全局链接色染成主色（蓝底蓝字）。
 * 因此把 .text-white 也放进排除名单：显式声明白字的链接一律不受全局链接色影响。 */
/* 正文区（.yf-rich / .prose）里的元素一律排除在全局排版之外：
 * 1.1.2 起正文恢复保留原站 Tailwind 工具类，全局规则（如 a 的颜色、img 的 height:auto）
 * 权重高于单类工具类，会把按钮文字染成主色、把固定高度图片拉回自适应。
 * `.prose` 是文章详情页用的 Tailwind typography 容器（见 templates/detail.html），
 * 它的 h2/h3/a 规则权重只有 (0,1,0)，同样会被这里的 (0,1,1) 压掉，必须一起排除。
 * 正文自身的兜底规则见下方「富文本」段落，只作用于没有 class 的元素。
 * `.table-of-contents` 是详情页的文章目录卡片，由 theme.js 从正文标题生成并挪到 `.prose`
 * 之外（线上同样在 prose 外，靠 Tailwind preflight 的 a{color:inherit} 呈现正文色），
 * 这里一并排除，否则目录链接会被染成主色。 */
body.yingfan-site a:not(:where(.yf-rich *, .prose *, .table-of-contents *, header *, footer *, .text-white)) { color: var(--yf-primary); text-decoration: none; transition: color .15s; }
body.yingfan-site a:not(:where(.yf-rich *, .prose *, .table-of-contents *, header *, footer *, .text-white)):hover,
body.yingfan-site a:not(:where(.yf-rich *, .prose *, .table-of-contents *, header *, footer *, .text-white)):focus-visible { color: var(--yf-primary); text-decoration: underline; text-underline-offset: 3px; }
body.yingfan-site a:focus-visible { outline: 2px solid var(--yf-secondary); outline-offset: 3px; border-radius: 2px; }

/* 标题统一收紧行高与字距：默认行高 1.7 用在标题上会散。
 * 本次模板层对齐起，带 class 的标题交给自身的工具类（首屏 h1 的 text-6xl / text-white 必须生效）。 */
body.yingfan-site :where(h1, h2, h3):not(:where(.yf-rich *, .prose *, .table-of-contents *)):not([class]) {
  color: var(--yf-ink);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
body.yingfan-site p { text-wrap: pretty; }
body.yingfan-site img:not(:where(.yf-rich *, .prose *)):not([class]) { max-width: 100%; height: auto; }

/* site-content.css 是线上 Next 构建产物里的全站样式，Tailwind 只保留了线上用到的工具类：
 * 线上栏目页把 `py-12` 挂在 <main> 上，所以 `pt-12` / `pb-12` 被 purge 掉了。
 * 模板把栏目头与列表拆成两个区块，必须分别控制上下留白，这里补回同值定义，
 * 保证 `pt-12` / `pb-12` 与线上 `py-12` 的 3rem 一致（不从线上 CSS 改，只在这里补）。 */
.pt-12 { padding-top: 3rem; }
.pb-12 { padding-bottom: 3rem; }

/* --- 顶部导航：对齐线上 Next/shadcn 版 ---
 * 导航项直接使用原站工具类；下拉面板原站由 Radix 运行时生成，这里用 CSS hover/focus-within 复刻。
 * 「联系我们」在原站是独立 CTA，模板里它是最后一个导航项，这里按同一套按钮样式补上。 */
.yf-primary-nav > li { position: relative; }
.yf-menu-panel {
  position: absolute; left: 0; top: 100%; z-index: 50; display: none;
  min-width: 190px; padding: 8px; border-radius: 8px;
  background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
  list-style: none; margin: 0;
}
.yf-primary-nav > li:hover > .yf-menu-panel,
.yf-primary-nav > li:focus-within > .yf-menu-panel { display: block; }
.yf-menu-panel__link {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: #475569; white-space: nowrap;
  text-decoration: none; transition: background .15s, color .15s;
}
.yf-menu-panel__link:hover, .yf-menu-panel__link:focus-visible { background: #f1f5f9; color: #2563eb; }
.yf-primary-nav > li:last-child > a {
  background: #2563eb; color: #fff; height: 40px; padding: 0 16px;
}
.yf-primary-nav > li:last-child > a:hover,
.yf-primary-nav > li:last-child > a:focus-visible { background: #1d4ed8; color: #fff; text-decoration: none; }
.yf-primary-nav > li:last-child > a svg { display: none; }

/* 移动端菜单：原站由 Radix Dialog 弹出，静态站用同一个按钮展开一个纵向列表。 */
.yf-mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 12px 24px rgba(15, 23, 42, .08); padding: 12px 16px 16px; }
header { position: relative; }
.yf-mobile-nav.is-open { display: block; }
.yf-mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.yf-mobile-nav__link { display: block; padding: 10px 12px; border-radius: 6px; font-size: 15px; color: #334155; text-decoration: none; }
.yf-mobile-nav__link:hover { background: #f1f5f9; color: #2563eb; }
.yf-mobile-nav__item--sub .yf-mobile-nav__link { padding-left: 28px; font-size: 14px; color: #64748b; }

.yf-container {
  width: 100%;
  max-width: var(--yf-container);
  margin: 0 auto;
  padding: 0 var(--yf-container-pad);
}

.yf-skip-link { position: absolute; left: -9999px; top: 0; }
.yf-skip-link:focus {
  left: 8px; top: 8px; padding: 10px 16px; z-index: 200;
  background: var(--yf-primary); color: var(--yf-inverse);
  border-radius: var(--yf-radius-sm);
}

/* ==================== 页头 ==================== */
.yf-site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--yf-line-soft);
  backdrop-filter: saturate(180%) blur(14px);
}
.yf-header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: var(--yf-head-h);
}
.yf-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--yf-ink); flex: 0 0 auto; }
.yf-brand:hover { text-decoration: none; color: var(--yf-ink); }
.yf-brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--yf-primary) 0%, var(--yf-secondary) 100%);
  box-shadow: var(--yf-shadow-sm);
}
.yf-brand-name { font-size: 17px; letter-spacing: -.01em; }

.yf-menu-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border: 1px solid var(--yf-border); border-radius: var(--yf-radius-sm);
  background: transparent; cursor: pointer; padding: 0;
}
.yf-menu-toggle-bars,
.yf-menu-toggle-bars::before,
.yf-menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; margin: 0 auto;
  background: var(--yf-text); content: ""; position: relative;
}
.yf-menu-toggle-bars::before { top: -6px; }
.yf-menu-toggle-bars::after { top: 4px; }

/* ==================== 导航 ==================== */
.yf-nav { margin-left: auto; }
.yf-menu-list, .yf-nav-sub {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.yf-nav-sub { flex-direction: column; gap: 2px; padding-inline-start: 0; }
.yf-nav-link, .yf-nav-sub-link {
  display: block; padding: 8px 14px; border-radius: var(--yf-radius-sm);
  color: var(--yf-text); font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.yf-nav-link:hover, .yf-nav-sub-link:hover {
  background: var(--yf-surface); color: var(--yf-primary); text-decoration: none;
}
.yf-nav-item.is-active > .yf-nav-link,
.yf-nav-sub-item.is-active > .yf-nav-sub-link {
  color: var(--yf-primary); font-weight: 600; background: var(--yf-primary-tint);
}

/* ==================== 首屏 ==================== */
/* 对应原站首屏：整幅插画背景 + 蓝色蒙层 + 居中白字，高 70vh / 移动端满屏。
   背景图是包内资源（assets/images/hero-bg.webp），CSS 相对路径由构建时复制到产物。
   原站 512×512 插画按 cover 铺满，靠蓝色叠加保证文字可读。 */
.yf-hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 400px; height: 70vh;
  padding: 0 0 24px;
  text-align: center;
  color: var(--yf-inverse);
  background: var(--yf-primary) url("../images/hero-bg.webp") center/cover no-repeat;
  overflow: hidden;
}
/* 蓝色蒙层：压住插画细节，保证白字对比度。 */
.yf-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 78, 190, .72) 0%, rgba(23, 92, 214, .62) 55%, rgba(15, 66, 168, .78) 100%);
}
.yf-hero > .yf-container { position: relative; z-index: 1; max-width: 900px; }
.yf-hero__eyebrow {
  display: inline-block; margin: 0 0 18px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38);
  color: var(--yf-inverse); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.yf-hero__title {
  margin: 0 0 18px;
  color: var(--yf-inverse);
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(4, 32, 74, .35);
}
.yf-hero__desc {
  max-width: 720px; margin: 0 auto 30px;
  color: rgba(255, 255, 255, .94); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.7;
  font-weight: 600;
}
/* 首屏主按钮：白底蓝字，与原站一致。
   选择器叠到 0,3,2：全局 body.yingfan-site .yf-btn 是 0,2,1 且在本文件更靠后，
   只有再加一层才能压过它。 */
body.yingfan-site .yf-hero a.yf-btn--primary {
  background: var(--yf-inverse); color: var(--yf-primary);
  box-shadow: 0 10px 26px rgba(4, 32, 74, .22);
}
body.yingfan-site .yf-hero a.yf-btn--primary:hover,
body.yingfan-site .yf-hero a.yf-btn--primary:focus-visible {
  background: var(--yf-inverse); color: var(--yf-primary);
  filter: brightness(.96); text-decoration: none;
}
/* 首屏标题压在深色插画上，必须白字；
   选择器带 .yf-hero 是为了压过全局 body.yingfan-site h1 的标题色。 */
.yf-hero .yf-hero__title { color: var(--yf-inverse); }
@media (min-width: 901px) {
  .yf-hero { height: 100vh; }
}

/* ==================== 内页首屏 ==================== */
.yf-page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--yf-surface) 0%, var(--yf-bg) 100%);
  border-bottom: 1px solid var(--yf-line-soft);
}
.yf-page-hero > .yf-container { max-width: 900px; }
.yf-page-hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700; letter-spacing: -.02em;
}
.yf-page-hero__summary {
  margin: 0; max-width: 720px;
  color: var(--yf-muted); font-size: 17px;
}
.yf-page-hero__media {
  display: block; margin-top: 36px; width: 100%;
  border-radius: var(--yf-radius-lg); box-shadow: var(--yf-shadow);
}

/* --- 栏目横幅的 contact 变体（线上 /contact 的照片横幅） ---
 * 线上是 `relative bg-blue-800 text-white py-14 sm:py-20 md:py-28`，里面再叠一层
 * `bg-cover bg-center opacity-20` 的背景图。受限方言不能按字符串分支，
 * 模板把 sourceVariant 输出成 data-variant 属性，这里按属性切换外观。
 * 数值与线上工具类同值：py-14/20/28 = 3.5/5/7rem，bg-blue-800 = #1e40af，text-blue-100 = #dbeafe。 */
.yf-column-hero { position: relative; }
.yf-column-hero[data-variant="contact"] {
  overflow: hidden;
  background-color: #1e40af;
  color: #fff;
  padding: 3.5rem 0;
}
.yf-column-hero[data-variant="contact"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.webp");
  background-size: cover;
  background-position: center;
  opacity: .2;
}
/* 通用栏目头靠 container 的 pt-12 / mb-12 控制留白；照片横幅由 section 的 padding 统一负责。 */
.yf-column-hero[data-variant="contact"] > .container { position: relative; padding-top: 0; padding-bottom: 0; }
.yf-column-hero[data-variant="contact"] .text-center { margin-bottom: 0; }
.yf-column-hero[data-variant="contact"] h1 { color: #fff; font-size: 1.875rem; line-height: 1.2; }
.yf-column-hero[data-variant="contact"] p {
  margin: .75rem auto 0;
  max-width: 42rem;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.5rem;
}
@media (min-width: 640px) {
  .yf-column-hero[data-variant="contact"] { padding: 5rem 0; }
  .yf-column-hero[data-variant="contact"] h1 { font-size: 2.25rem; }
  .yf-column-hero[data-variant="contact"] p { margin-top: 1rem; font-size: 1.125rem; }
}
@media (min-width: 768px) {
  .yf-column-hero[data-variant="contact"] { padding: 7rem 0; }
  .yf-column-hero[data-variant="contact"] h1 { font-size: 3rem; line-height: 1; }
}

/* ==================== 通用区块 ==================== */
.yf-section { padding: var(--yf-gap) 0; }
.yf-section--surface { background: var(--yf-surface); }
.yf-section__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; letter-spacing: -.02em;
}
.yf-section__desc { margin: 0 0 40px; max-width: 720px; color: var(--yf-muted); font-size: 17px; }
/* 落地页把整页 HTML 放进 rich-content 时，区块标题与页头都是重复信息：
 * 内容侧把 title 置空，这里连外层留白一起去掉，让正文自己撑起整屏。 */
.yf-section__title:empty { display: none; }
.yf-section:has(> .yf-container > .yf-section__title:empty) { padding: 0; }
.yf-section:has(> .yf-container > .yf-section__title:empty) > .yf-container { max-width: none; padding: 0; }

/* ==================== 富文本 ==================== */
/* 1.1.2 分水岭：正文元素「有 class」= 原站 Tailwind 工具类说了算，「没有 class」= 走下面这套兜底。
 * 站点 2 的落地页正文来自原站整段 HTML，class 已在 2026-11-18 恢复（IMP-20261118-05）；
 * 新闻详情、以及平台生成的页面（FAQ/站点地图/标签云/搜索）仍然是没有 class 的裸结构。
 * 因此这里每条元素级规则都带 :not([class])，否则会把工具类的排版按回旧样式。 */
/* 正文兜底口径对齐线上：16px / 1.5。生成页（标签云、网站地图、站内搜索、FAQ）的正文没有
 * 任何 class，全靠这里兜底，16.5px/1.8 会让整页比线上松一档。 */
.yf-rich { color: var(--yf-text); font-size: 16px; line-height: 1.5; }
.yf-rich > :first-child { margin-top: 0; }
.yf-rich > :last-child { margin-bottom: 0; }
.yf-rich h2:not([class]) { position: relative; margin: 40px 0 16px; padding-inline-start: 16px; font-size: 26px; }
/* 1.1.1 色带兜底：原站靠 Tailwind 的背景色带区分小标题，清洗后颜色全丢；
   这里用主色→辅色的竖条重建层级，且不依赖任何内容侧 class。 */
.yf-rich h2:not([class])::before {
  content: ""; position: absolute; inset-inline-start: 0;
  top: .2em; bottom: .2em; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--yf-primary) 0%, var(--yf-secondary) 100%);
}
.yf-rich h3:not([class]) { margin: 32px 0 12px; font-size: 21px; }
/* 迁移自旧站的内容常带 h1（整页快照的标题），区块本身已有 h2，这里降到 h2 视觉层级。 */
.yf-rich h1:not([class]) { margin: 0 0 16px; font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--yf-ink); }
.yf-rich h4:not([class]) { margin: 26px 0 10px; font-size: 18px; }
.yf-rich h2:not([class]), .yf-rich h3:not([class]), .yf-rich h4:not([class]) { color: var(--yf-ink); }
.yf-rich p:not([class]) { margin: 0 0 18px; }
.yf-rich ul:not([class]), .yf-rich ol:not([class]) { margin: 0 0 18px; padding-inline-start: 24px; }
.yf-rich li:not([class]) { margin-bottom: 8px; }
/* 1.1.1 勾选清单：原站大量「要点」用 ✓ 列表表达，迁移后只剩项目符号。
   这里给无序列表换成主色勾选图标；有序列表保留数字，避免丢失序号语义。 */
.yf-rich ul:not([class]) { padding-inline-start: 0; list-style: none; }
.yf-rich ul:not([class]) > li:not([class]) { position: relative; padding-inline-start: 26px; }
.yf-rich ul:not([class]) > li:not([class])::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 14px; height: 8px;
  border-inline-start: 2px solid var(--yf-primary);
  border-bottom: 2px solid var(--yf-primary);
  transform: rotate(-45deg);
}
.yf-rich img:not([class]) { max-width: 100%; height: auto; margin: 28px 0; border-radius: var(--yf-radius); box-shadow: var(--yf-shadow); }
/* 首页「快速联系我们」的企微二维码是富文本 <figure><img>，导入后带的是原始大图、贴左显示；
   线上是 192px 居中卡片（w-48 rounded-md shadow-md + 文字居中），这里按 alt 命中二维码补样式，
   不动富文本内容。 */
.yf-section:has(.yf-rich > figure > img[alt*="二维码"]) .yf-rich { text-align: center; }
.yf-section:has(.yf-rich > figure > img[alt*="二维码"]) .yf-section__title { text-align: center; }
.yf-section:has(.yf-rich > figure > img[alt*="二维码"]) .yf-rich > figure { margin: 0 0 16px; }
.yf-section:has(.yf-rich > figure > img[alt*="二维码"]) .yf-rich > figure > img {
  width: 192px; height: 192px; margin: 0 auto; border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
/* 清洗后的富文本仍可能带 section / 定义列表（企业信息表）。
   1.1.1：section 提升为卡片，隔段切换浅底色，替代原站被剥掉的 Tailwind 分区块背景。 */
.yf-rich section:not([class]) {
  margin: 36px 0; padding: 26px 28px;
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
  background: var(--yf-surface);
}
.yf-rich section:not([class]):nth-of-type(even) { background: var(--yf-surface-alt); }
.yf-rich section:not([class]) > :first-child { margin-top: 0; }
.yf-rich section:not([class]) > :last-child { margin-bottom: 0; }
.yf-rich dl:not([class]) { margin: 20px 0; }
.yf-rich dt:not([class]) { margin-top: 14px; color: var(--yf-muted); font-size: 14px; }
.yf-rich dd:not([class]) { margin: 4px 0 0; color: var(--yf-ink); font-weight: 500; }
/* 联系表单：清洗掉 Tailwind 后由主题接管基本外观。 */
.yf-rich form:not([class]) { margin: 24px 0; }
.yf-rich form:not([class]) > div:not([class]) { margin-bottom: 18px; }
.yf-rich label:not([class]) { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--yf-ink); }
.yf-rich input[type="text"]:not([class]),
.yf-rich input[type="tel"]:not([class]),
.yf-rich input[type="email"]:not([class]),
.yf-rich input[type="search"]:not([class]),
.yf-rich textarea:not([class]) {
  width: 100%; padding: 11px 14px; border: 1px solid var(--yf-border);
  border-radius: var(--yf-radius-sm); background: var(--yf-bg); color: var(--yf-text);
  font: inherit; font-size: 15px;
}
.yf-rich textarea:not([class]) { min-height: 108px; resize: vertical; }
.yf-rich input:focus, .yf-rich textarea:focus { outline: 2px solid var(--yf-secondary); outline-offset: 1px; border-color: var(--yf-secondary); }
.yf-rich button[type="submit"]:not([class]) {
  padding: 13px 28px; border: 0; border-radius: var(--yf-radius-sm);
  background: var(--yf-primary); color: var(--yf-inverse);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.yf-rich button[type="submit"]:not([class]):hover { background: #1d4ed8; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.yf-rich blockquote:not([class]) {
  margin: 28px 0; padding: 16px 22px;
  border-inline-start: 3px solid var(--yf-primary);
  background: var(--yf-surface); border-radius: 0 var(--yf-radius-sm) var(--yf-radius-sm) 0;
  color: var(--yf-text);
}
.yf-rich a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
.yf-rich table:not([class]) { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.yf-rich th:not([class]), .yf-rich td:not([class]) { padding: 12px 14px; border: 1px solid var(--yf-line-soft); text-align: start; }
.yf-rich th:not([class]) { background: var(--yf-surface); font-weight: 600; color: var(--yf-ink); }

/* ============ 平台生成页面：面包屑 / 页头 / FAQ / 页尾 CTA ============
 * 这些页面（/faq/、/sitemap/、/tags/、/search/）的正文由导入器生成，不是原站 HTML，
 * 没有 Tailwind 工具类可用，1.1.2 之前一直没有对应样式。结构与 class 由内容侧约定：
 * .yf-content-crumbs / .yf-faq__* / .yf-content-cta，缺 class 时按下面的兜底选择器命中。 */
.yf-rich .yf-content-crumbs {
  padding: 16px 0; border-bottom: 1px solid var(--yf-line-soft); background: var(--yf-bg);
}
.yf-rich .yf-content-crumbs > ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  max-width: var(--yf-container); margin: 0 auto; padding: 0 var(--yf-container-pad);
  list-style: none; font-size: 14px; color: var(--yf-muted);
}
.yf-rich .yf-content-crumbs > ol > li { display: flex; align-items: center; gap: 8px; margin: 0; }
/* 线上分隔是 lucide-chevron-right（16px），首项前是 lucide-house。 */
.yf-rich .yf-content-crumbs > ol > li + li::before {
  content: ""; width: 16px; height: 16px; background-color: #94a3b8;
  -webkit-mask: url("../images/chevron-right.svg") no-repeat center / contain;
  mask: url("../images/chevron-right.svg") no-repeat center / contain;
}
.yf-rich .yf-content-crumbs > ol > li:first-child > a::before {
  content: ""; width: 16px; height: 16px; margin-inline-end: 4px; background-color: currentColor;
  -webkit-mask: url("../images/house.svg") no-repeat center / contain;
  mask: url("../images/house.svg") no-repeat center / contain;
}
.yf-rich .yf-content-crumbs > ol > li:first-child > a { display: inline-flex; align-items: center; }
.yf-rich .yf-content-crumbs > ol > li:last-child span { color: #1e293b; font-weight: 500; }
.yf-rich .yf-content-crumbs a { color: var(--yf-muted); text-decoration: none; }
.yf-rich .yf-content-crumbs a:hover { color: var(--yf-primary); }
/* 没有 class 的同类结构（站点地图/标签云/搜索还没迁到新结构时）退化成同一套外观。 */
.yf-rich > div:not([class]):first-child > ol:not([class]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  max-width: var(--yf-container); margin: 0 auto; padding: 16px var(--yf-container-pad);
  list-style: none; font-size: 14px; color: var(--yf-muted);
}
.yf-rich > div:not([class]):first-child > ol:not([class]) > li { margin: 0; }
.yf-rich > div:not([class]):first-child > ol:not([class]) > li + li::before {
  content: ""; display: inline-block; vertical-align: -3px;
  width: 16px; height: 16px; margin-inline-end: 8px; background-color: #94a3b8;
  -webkit-mask: url("../images/chevron-right.svg") no-repeat center / contain;
  mask: url("../images/chevron-right.svg") no-repeat center / contain;
}
.yf-rich > div:not([class]):first-child > ol:not([class]) > li:first-child > a { display: inline-flex; align-items: center; }
.yf-rich > div:not([class]):first-child > ol:not([class]) > li:first-child > a::before {
  content: ""; display: inline-block; vertical-align: -3px;
  width: 16px; height: 16px; margin-inline-end: 4px; background-color: currentColor;
  -webkit-mask: url("../images/house.svg") no-repeat center / contain;
  mask: url("../images/house.svg") no-repeat center / contain;
}
.yf-rich > div:not([class]):first-child > ol:not([class]) > li:last-child span { color: #1e293b; font-weight: 500; }

/* 页头：无 class 的 header + h1 + 摘要，居中一栏。只命中导入器生成页那种
   「顶层包装 div → 内层 div → header」的形态；落地页的 header 藏在 section 里，不会误伤。 */
.yf-rich > div:not([class]) > div:not([class]) > header:not([class]) {
  max-width: 820px; margin: 0 auto; padding: 40px 24px 8px; text-align: center;
}
.yf-rich > div:not([class]) > div:not([class]) > header:not([class]) > h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); }
.yf-rich > div:not([class]) > div:not([class]) > header:not([class]) > p { margin: 0; color: var(--yf-muted); font-size: 17px; }

/* FAQ */
.yf-rich .yf-faq { max-width: 900px; margin: 0 auto; padding: 0 24px 72px; }
.yf-rich .yf-faq__head { max-width: 760px; margin: 0 auto 8px; text-align: center; }
/* 线上 FAQ 页标题是 `text-4xl md:text-5xl`；这里显式盖掉富文本 h1 的降级字号（30px）。 */
.yf-rich .yf-faq__head > h1 { font-size: 36px; line-height: 40px; }
@media (min-width: 768px) {
  .yf-rich .yf-faq__head > h1 { font-size: 48px; line-height: 48px; }
}
.yf-rich .yf-faq__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 0; }
/* 线上：`px-4 py-2 rounded-lg text-white`，第一颗 blue-600 + message-square，
   第二颗 slate-600 + mail（图标导入期丢了，这里用外部 svg 走 mask 补）。 */
.yf-rich .yf-faq__actions a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 0; border-radius: 8px;
  background: var(--yf-primary); color: var(--yf-inverse);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.yf-rich .yf-faq__actions a::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px; background-color: currentColor;
  -webkit-mask: url("../images/message-square.svg") no-repeat center / contain;
  mask: url("../images/message-square.svg") no-repeat center / contain;
}
.yf-rich .yf-faq__actions a:nth-child(2) { background: #475569; }
.yf-rich .yf-faq__actions a:nth-child(2)::before {
  -webkit-mask-image: url("../images/mail.svg"); mask-image: url("../images/mail.svg");
}
.yf-rich .yf-faq__actions a:hover { color: var(--yf-inverse); }
.yf-rich .yf-faq__actions a:first-child:hover { background: #1d4ed8; }
.yf-rich .yf-faq__actions a:nth-child(2):hover { background: #334155; }
.yf-rich .yf-faq__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 24px; }
/* 线上筛选 chip：`px-4 py-2 rounded-full text-sm`，未选中是白底 + slate-200 描边。 */
.yf-rich .yf-faq__filters button {
  padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff;
  color: #334155; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.yf-rich .yf-faq__filters button:first-child { background: var(--yf-primary); border-color: var(--yf-primary); color: var(--yf-inverse); }
.yf-rich .yf-faq__filters button:hover { background: #f1f5f9; color: #334155; }
.yf-rich .yf-faq__list { display: flex; flex-direction: column; gap: 16px; }

/* 折叠问答：内容侧用原生 details/summary，避免依赖脚本。 */
.yf-rich .yf-accordion {
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
  background: var(--yf-bg); box-shadow: var(--yf-shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.yf-rich .yf-accordion:hover { border-color: #d3dae6; box-shadow: var(--yf-shadow); }
.yf-rich .yf-accordion > summary { position: relative; padding: 24px 56px 24px 24px; cursor: pointer; list-style: none; }
.yf-rich .yf-accordion > summary::-webkit-details-marker { display: none; }
.yf-rich .yf-accordion > summary::after {
  content: ""; position: absolute; inset-inline-end: 24px; top: 32px;
  width: 8px; height: 8px; border-inline-end: 2px solid var(--yf-faint); border-bottom: 2px solid var(--yf-faint);
  transform: rotate(-45deg); transition: transform .2s ease;
}
.yf-rich .yf-accordion[open] > summary::after { transform: rotate(45deg); }
/* 问题行：线上是 circle-help（蓝，20px）+ text-lg 标题。 */
.yf-rich .yf-accordion__q {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--yf-ink);
}
.yf-rich .yf-accordion__q::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px;
  background-color: #2563eb;
  -webkit-mask: url("../images/circle-help.svg") no-repeat center / contain;
  mask: url("../images/circle-help.svg") no-repeat center / contain;
}
.yf-rich .yf-accordion__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.yf-rich .yf-accordion__tags > div {
  padding: 2px 10px; border-radius: 999px; background: var(--yf-surface);
  color: var(--yf-muted); font-size: 12px; line-height: 1.8;
}
.yf-rich .yf-accordion-body { padding: 0 24px 24px; color: var(--yf-text); line-height: 1.6; }

/* 页尾 CTA */
.yf-rich .yf-content-cta {
  max-width: 900px; margin: 0 auto 72px; padding: 36px 32px; text-align: center;
  background: var(--yf-surface); border-radius: var(--yf-radius-lg);
}
.yf-rich .yf-content-cta__title { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 28px); color: var(--yf-ink); }
.yf-rich .yf-content-cta__desc { margin: 0 auto 20px; max-width: 640px; color: var(--yf-muted); }
.yf-rich .yf-content-cta__action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--yf-radius-sm);
  background: var(--yf-primary); color: var(--yf-inverse);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.yf-rich .yf-content-cta__action:hover { background: #1d4ed8; }

/* 生成页整体留白：落地页正文自带 container（整幅背景必须通栏），这些页面没有，
 * 只在「首个子节点是面包屑 ol」的正文上补一栏。 */
.yf-rich:has(> div:not([class]) > ol:not([class])) {
  max-width: var(--yf-container); margin: 0 auto; padding: 0 var(--yf-container-pad) 56px;
}

/* 生成页的 <main> 背景与留白逐个对齐线上：
 * /faq/          → `py-12 bg-slate-50`
 * /tags/ /sitemap/ /search/ → `py-12 bg-slate-50 min-h-screen`
 * 模板只有一套 landing，改不了 <main>；用 :has() 按正文形态认页，等价于线上的 min-h-screen。 */
main#main-content:has(> section > .yf-container > .yf-rich .yf-faq) {
  padding: 3rem 0;
  background: #f8fafc;
}
main#main-content:has(> section > .yf-container > .yf-rich > div:not([class]):first-child > ol:not([class])) {
  padding: 3rem 0;
  background: #f8fafc;
  min-height: 100vh;
}
/* 生成页头部（标签云 / 网站地图 / 站内搜索）：导入器是「面包屑 div + 内容 div」两层，
 * 头部在内容 div 的第一个无 class 子 div 里。线上是居中一栏。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) {
  max-width: 820px; margin: 0 auto; padding: 0 24px 8px; text-align: center;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) > h1 {
  margin: 0 0 12px; font-size: 36px; line-height: 40px;
}
/* 线上 /search 头部的标题是 `text-4xl`（36px），不像 /sitemap、/tags 那样随断点升到 48px。
   搜索页独有的标志是同一层里紧跟 header 的 <form>，用它把字号压回 36px。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> form) > header:not([class]) > h1 {
  font-size: 36px; line-height: 40px;
}
@media (min-width: 768px) {
  .yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) > h1 {
    font-size: 48px; line-height: 48px;
  }
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) > p {
  margin: 0; color: var(--yf-muted); font-size: 17px;
}
/* 标签云页头的小徽标（线上 lucide-hash + 「内容标签」描边胶囊）。
 * 导入器留下空 div + 文案 div，图标用外部 svg 走 mask 补。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) > div:first-child {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) > div:first-child > div:last-child {
  display: inline-flex; align-items: center; padding: 2px 10px;
  border: 1px solid var(--yf-primary); border-radius: 999px;
  color: var(--yf-primary); font-size: 12px; font-weight: 600; line-height: 1.5;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > header:not([class]) > div:first-child::before {
  content: ""; width: 32px; height: 32px; flex: 0 0 32px; background-color: var(--yf-primary);
  -webkit-mask: url("../images/hash.svg") no-repeat center / contain;
  mask: url("../images/hash.svg") no-repeat center / contain;
}
/* 页头下方的动作按钮行（网站地图的「返回首页 / 站内搜索 / 联系我们」）。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0 0 32px;
}
/* 线上是 `px-4 py-2 rounded-lg text-white`，三颗按钮底色依次 blue-600 / slate-600 / green-600。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px;
  border: 0; background: var(--yf-primary); color: var(--yf-inverse);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .15s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:nth-child(2) { background: #475569; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:nth-child(3) { background: #16a34a; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:hover { color: var(--yf-inverse); text-decoration: none; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:nth-child(1):hover { background: #1d4ed8; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:nth-child(2):hover { background: #334155; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:nth-child(3):hover { background: #15803d; }
/* 纯链接行：导入器把「返回首页 / 站内搜索 / 联系我们」平铺成一串 a。 */
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))),
.yf-rich section:not([class]) > div:not([class]):not(:has(> :not(a))) {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a,
.yf-rich section:not([class]) > div:not([class]):not(:has(> :not(a))) > a {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--yf-line-soft); background: var(--yf-bg); color: var(--yf-ink);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]):not(:has(> :not(a))) > a:hover,
.yf-rich section:not([class]) > div:not([class]):not(:has(> :not(a))) > a:hover {
  border-color: var(--yf-primary); color: var(--yf-primary);
}
/* 「所有标签」按分组列出的卡片：分组标题下是若干 a。 */
.yf-rich section:not([class]) div:not([class]):has(> a) {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 12px;
}
.yf-rich section:not([class]) div:not([class]):has(> a) > a {
  display: block; padding: 14px 16px; text-decoration: none; background: var(--yf-bg);
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
  transition: border-color .15s, box-shadow .15s;
}
.yf-rich section:not([class]) div:not([class]):has(> a) > a:hover {
  border-color: var(--yf-primary); box-shadow: var(--yf-shadow-sm);
}
.yf-rich section:not([class]) div:not([class]):has(> a) span { color: var(--yf-ink); font-weight: 600; }
.yf-rich section:not([class]) div:not([class]):has(> a) p { margin: 4px 0 0; color: var(--yf-muted); font-size: 13.5px; }

/* 分类计数：名字 + 数量的两列条目。 */
.yf-rich section:not([class]) > div > div:has(> div > span) {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.yf-rich section:not([class]) > div > div:has(> div > span) > div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--yf-bg);
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
  font-size: 14px; color: var(--yf-ink);
}
.yf-rich section:not([class]) > div > div:has(> div > span) > div > div { color: var(--yf-muted); }
/* 「所有标签」按分组列出的卡片。 */
.yf-rich section:not([class]) > div:not([class]) > div:has(> a) {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 12px;
}
.yf-rich section:not([class]) > div:not([class]) > div:has(> a) > a {
  display: block; padding: 14px 16px; text-decoration: none; background: var(--yf-bg);
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
}
.yf-rich section:not([class]) > div:not([class]) > div:has(> a) > a:hover { border-color: var(--yf-primary); }
.yf-rich section:not([class]) > div:not([class]) > div:has(> a) span { color: var(--yf-ink); font-weight: 600; }
.yf-rich section:not([class]) > div:not([class]) > div:has(> a) p { margin: 4px 0 0; color: var(--yf-muted); font-size: 13.5px; }
.yf-rich section:not([class]) > div > h3:not([class]) {
  display: flex; align-items: center; gap: 8px; margin: 24px 0 4px;
  font-size: 16px; color: var(--yf-ink);
}

/* ============ 平台生成页面：站内搜索 / 网站地图 / 标签云 ============
 * 这三类页面的正文也是导入器生成的裸结构，没有 Tailwind 工具类。
 * 选择器一律以 :not([class]) 为界，落地页（已恢复 class）不会被命中。 */
.yf-rich > div:not([class]) > div:not([class]) > form:not([class]) { max-width: 760px; margin: 8px auto 0; }
.yf-rich > div:not([class]) > div:not([class]) > form:not([class]) > div:not([class]) {
  display: flex; gap: 10px; align-items: center; margin-bottom: 0;
}
.yf-rich > div:not([class]) > div:not([class]) > form:not([class]) > div:not([class]) > div:not([class]) { flex: 1; margin: 0; }
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) { margin-top: 28px; }
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > div:not([class]) > div:not([class]) { text-align: start; }
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) h2 { margin: 0 0 6px; font-size: 20px; }
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) p { margin: 0; color: var(--yf-muted); font-size: 14px; }

/* 网站地图：每个栏目一组链接卡片 */
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 16px 0 0; padding: 0; list-style: none;
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) > li:not([class]) {
  margin: 0; padding: 0;
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) > li:not([class])::before { content: none; }
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) a {
  display: block; padding: 14px 16px; text-decoration: none;
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius); background: var(--yf-bg);
  transition: border-color .15s, box-shadow .15s;
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) a:hover {
  border-color: var(--yf-primary); box-shadow: var(--yf-shadow-sm);
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) span {
  display: block; color: var(--yf-ink); font-weight: 600;
}
.yf-rich > div:not([class]) > div:not([class]) > div:not([class]) > ul:not([class]) p {
  margin: 4px 0 0; color: var(--yf-muted); font-size: 13.5px;
}

/* 标签云：分组标题 + 标签卡片网格 */
.yf-rich section:not([class]) > div > header:not([class]) { margin-bottom: 20px; text-align: start; }
.yf-rich section:not([class]) > div > header:not([class]) h2 { margin: 0 0 6px; font-size: 20px; }
.yf-rich section:not([class]) > div > header:not([class]) p { margin: 0; color: var(--yf-muted); font-size: 14px; }
.yf-rich section:not([class]) > div > div:has(> a) {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.yf-rich section:not([class]) > div > div:has(> a) > a {
  display: block; padding: 14px 16px; text-decoration: none;
  border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius); background: var(--yf-bg);
  transition: border-color .15s, box-shadow .15s;
}
.yf-rich section:not([class]) > div > div:has(> a) > a:hover {
  border-color: var(--yf-primary); box-shadow: var(--yf-shadow-sm);
}
.yf-rich section:not([class]) > div > div:has(> a) h3 { margin: 0; font-size: 15.5px; color: var(--yf-ink); }
.yf-rich section:not([class]) > div > div:has(> a) p { margin: 4px 0 0; color: var(--yf-muted); font-size: 13px; }

/* 落地页里的「相关产品推荐」：导入器补的小节，原站没有对应标记，单独给一套卡片样式。 */
.yf-rich .yf-related { margin: 0; padding: 64px 24px; background: var(--yf-bg); }
.yf-rich .yf-related > div { max-width: var(--yf-container); margin: 0 auto; }
.yf-rich .yf-related__heading { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 28px); color: var(--yf-ink); text-align: center; }
.yf-rich .yf-related__sub { margin: 0 0 32px; color: var(--yf-muted); text-align: center; }
.yf-rich .yf-related__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.yf-rich .yf-related__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
  background: var(--yf-bg); box-shadow: var(--yf-shadow-sm); transition: box-shadow .18s ease, transform .18s ease;
}
.yf-rich .yf-related__card:hover { box-shadow: var(--yf-shadow-lg); transform: translateY(-2px); }
.yf-rich .yf-related__title { font-size: 17px; font-weight: 700; color: var(--yf-ink); }
.yf-rich .yf-related__badge {
  align-self: flex-start; padding: 2px 10px; border-radius: 999px;
  background: var(--yf-primary-tint); color: var(--yf-primary); font-size: 12px; font-weight: 600;
}
.yf-rich .yf-related__desc { flex: 1; color: var(--yf-muted); font-size: 14.5px; line-height: 1.75; }
.yf-rich .yf-related__card a { text-decoration: none; }
.yf-rich .yf-related__card button {
  width: 100%; padding: 10px 16px; border: 0; border-radius: var(--yf-radius-sm);
  background: var(--yf-primary); color: var(--yf-inverse);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.yf-rich .yf-related__card button:hover { background: #1d4ed8; }
.yf-rich .yf-related__all { display: flex; justify-content: center; margin-top: 28px; }
.yf-rich .yf-related__all a { text-decoration: none; }
.yf-rich .yf-related__all button {
  padding: 11px 26px; border: 1px solid var(--yf-primary); border-radius: var(--yf-radius-sm);
  background: var(--yf-bg); color: var(--yf-primary);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.yf-rich .yf-related__all button:hover { background: var(--yf-primary-tint); }

/* ==================== 卡片网格 ==================== */
.yf-card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.yf-card {
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--yf-bg);
  border: 1px solid var(--yf-line-soft);
  border-radius: var(--yf-radius);
  box-shadow: var(--yf-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.yf-card:hover {
  transform: translateY(-3px);
  border-color: var(--yf-border);
  box-shadow: var(--yf-shadow-lg);
}
.yf-card__media {
  width: 100%; height: 168px; object-fit: cover;
  border-radius: var(--yf-radius-sm); margin-bottom: 20px;
  background: var(--yf-surface);
}
.yf-card__title {
  margin: 0 0 10px;
  font-size: 19px; font-weight: 600; line-height: 1.35;
}
.yf-card__desc { margin: 0 0 22px; color: var(--yf-muted); font-size: 15px; line-height: 1.7; }
/* 卡片底部「查看详情」按钮：与原站蓝底白字通栏按钮一致。
   选择器带 body.yingfan-site 是为了压过全局 body a 的链接色（同为 <a>）。 */
body.yingfan-site a.yf-card__more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: auto; padding: 13px 18px;
  border-radius: var(--yf-radius-sm);
  background: var(--yf-primary); color: var(--yf-inverse);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
body.yingfan-site a.yf-card__more:hover,
body.yingfan-site a.yf-card__more:focus-visible {
  background: #1d4ed8; color: var(--yf-inverse); text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.yf-card__more span { transition: transform .15s ease; }
.yf-card__more:hover span { transform: translateX(3px); }
/* 卡片内容撑满，让按钮贴底对齐。 */
.yf-card__desc { flex: 1 1 auto; }

/* ==================== 详情 ==================== */
.yf-detail { padding: clamp(40px, 6vw, 72px) 0 var(--yf-gap); }
.yf-detail > .yf-container { max-width: 900px; }
.yf-detail__head { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--yf-line-soft); }
.yf-detail__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700; letter-spacing: -.02em;
}
/* 1.1.1：摘要改为独立容器。原站是 bg-blue-50 + border-l-4 + italic 的引言块，
   这里用主色浅底与 4px 主色竖条还原层级，斜体保留（中文斜体不参与字面变化，仅作视觉提示）。 */
.yf-detail__desc {
  margin: 0; padding: 16px 20px;
  border-inline-start: 4px solid var(--yf-primary);
  border-radius: 0 var(--yf-radius-sm) var(--yf-radius-sm) 0;
  background: var(--yf-primary-tint);
  color: var(--yf-text); font-size: 16px; font-style: italic; line-height: 1.75;
}
.yf-detail__media {
  display: block; margin: 0 0 32px; width: 100%;
  border-radius: var(--yf-radius-lg); box-shadow: var(--yf-shadow);
}

/* 1.1.1：详情页顶部面包屑条。模板在 ${cms.blocks()} 之前加一层 .yf-detail-top，
   只负责与正文物色对齐（同一 900px 栏宽），不改变正文本体的结构。 */
.yf-detail-top { padding: 18px 0 0; }
.yf-detail-top > .yf-container { max-width: 900px; }
/* 有面包屑条时收紧正文上留白，避免两层大间距叠在一起。 */
.yf-detail-top + .yf-detail { padding-top: clamp(20px, 3.5vw, 36px); }

.sj-breadcrumbs { font-size: 13.5px; line-height: 1.6; }
.sj-breadcrumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.sj-breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.sj-breadcrumbs__item + .sj-breadcrumbs__item::before {
  content: "/"; color: var(--yf-border);
}
body.yingfan-site .sj-breadcrumbs__link { color: var(--yf-muted); }
body.yingfan-site .sj-breadcrumbs__link:hover,
body.yingfan-site .sj-breadcrumbs__link:focus-visible { color: var(--yf-primary); }
.sj-breadcrumbs__current { color: var(--yf-ink); font-weight: 500; }

/* 详情页发布日期：紧贴面包屑下方，与面包屑同栏宽、同灰度层级。 */
.yf-detail-meta {
  margin: 10px 0 0;
  color: var(--yf-faint);
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
/* 详情页「返回列表」：正文之后、页脚之前的独立一条，与正文本体同栏宽。 */
.yf-detail-foot {
  padding: 0 0 calc(var(--yf-gap) / 2);
}
.yf-detail-foot > .yf-container { max-width: 900px; }
body.yingfan-site a.yf-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--yf-line-soft); border-radius: 999px;
  background: var(--yf-bg);
  color: var(--yf-primary);
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
body.yingfan-site a.yf-back-link:hover,
body.yingfan-site a.yf-back-link:focus-visible {
  background: var(--yf-primary-tint);
  border-color: var(--yf-primary);
}
.yf-back-link__arrow { transition: transform .15s ease; }
body.yingfan-site a.yf-back-link:hover .yf-back-link__arrow { transform: translateX(-3px); }

/* ==================== 新闻列表 ==================== */
/* 1.1.1：由「标题 + 日期的分隔线列表」改为原站 /news 的卡片形态。
   原站是 max-w-4xl 的单列卡片（grid gap-8），每卡：日期 + 分类徽章、标题、摘要两行、「阅读全文 →」。
   摘要与分类由平台在发布冻结时物化进条目（hasSummary/hasCategory），模板按布尔输出。 */
.yf-news-list {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  max-width: 896px;
  margin: 0 auto; padding: 0; list-style: none;
}
.yf-news-item { margin: 0; }
/* 整卡是 <a>，必须压过 body.yingfan-site a 的链接色。 */
body.yingfan-site a.yf-news-item__link {
  display: flex; flex-direction: column; gap: 12px;
  height: 100%; padding: 24px;
  border: 1px solid var(--yf-line-soft);
  border-radius: var(--yf-radius);
  background: var(--yf-bg);
  box-shadow: var(--yf-shadow-sm);
  color: var(--yf-text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.yingfan-site a.yf-news-item__link:hover,
body.yingfan-site a.yf-news-item__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--yf-shadow-lg);
  text-decoration: none;
}
.yf-news-item__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.yf-news-item__date {
  color: var(--yf-faint);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
/* 分类徽章：原站是圆角浅底小标签，位于日期右侧。 */
.yf-news-item__category {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--yf-primary-tint);
  color: var(--yf-primary);
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
  letter-spacing: .01em;
}
.yf-news-item__title {
  color: var(--yf-ink);
  font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.4;
  letter-spacing: -.01em;
  transition: color .15s ease;
}
body.yingfan-site a.yf-news-item__link:hover .yf-news-item__title,
body.yingfan-site a.yf-news-item__link:focus-visible .yf-news-item__title {
  color: var(--yf-primary);
}
/* 摘要压到两行：内容侧摘要长度不一，卡片高度必须可比。 */
.yf-news-item__summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--yf-muted);
  font-size: 15px; line-height: 1.75;
}
.yf-news-item__more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--yf-primary); font-size: 15px; font-weight: 600;
}
.yf-news-item__arrow { transition: transform .15s ease; }
body.yingfan-site a.yf-news-item__link:hover .yf-news-item__arrow {
  transform: translateX(4px);
}

/* ==================== 按钮 ==================== */
.yf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s;
}
/* 按钮是 <a>，必须压过 body.yingfan-site a 的链接色（特异性 0,1,1）；
   否则按钮会变成「蓝底 + 蓝字」，文字看不见。这里提高到 0,2,0。 */
body.yingfan-site .yf-btn,
.yf-btn--primary {
  background: var(--yf-primary); color: var(--yf-inverse);
  box-shadow: 0 6px 16px rgba(0, 91, 172, .22);
}
body.yingfan-site .yf-btn:hover,
.yf-btn--primary:hover {
  background: var(--yf-primary); color: var(--yf-inverse); filter: brightness(1.1);
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 91, 172, .26);
}

/* ==================== 联系页 ==================== */
/* 对应原站 /contact 主体：白卡片（左二维码 / 右表单）+ 企业信息表。
   页面标题与首屏背景由前置的 page-hero 区块承担，这里只排主体。 */
.yf-contact { padding: 56px 0 96px; }

.yf-contact-card {
  display: grid; grid-template-columns: 2fr 3fr; gap: 0;
  margin: 0 auto; max-width: 1040px;
  background: var(--yf-bg); border-radius: var(--yf-radius-lg);
  box-shadow: 0 24px 60px rgba(16, 24, 40, .12);
  overflow: hidden;
}
.yf-contact-qr {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px; text-align: center; background: var(--yf-surface);
}
.yf-contact-qr__image {
  width: 168px; height: 168px; object-fit: contain;
  margin-bottom: 18px; border-radius: var(--yf-radius-sm);
  background: var(--yf-bg); box-shadow: var(--yf-shadow);
}
.yf-contact-qr__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--yf-ink); }
.yf-contact-qr__desc { margin: 0; color: var(--yf-muted); font-size: 14px; }

.yf-contact-form { padding: 40px 44px; }
.yf-contact-field { margin-bottom: 20px; }
.yf-contact-field label {
  display: block; margin-bottom: 7px;
  font-size: 14px; font-weight: 600; color: var(--yf-ink);
}
.yf-contact-field input,
.yf-contact-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--yf-border); border-radius: var(--yf-radius-sm);
  background: var(--yf-bg); color: var(--yf-text);
  font: inherit; font-size: 15px;
}
.yf-contact-field textarea { min-height: 110px; resize: vertical; }
.yf-contact-field input:focus,
.yf-contact-field textarea:focus {
  outline: 2px solid var(--yf-secondary); outline-offset: 1px; border-color: var(--yf-secondary);
}
.yf-contact-submit {
  width: 100%; padding: 14px 24px; border: 0; border-radius: var(--yf-radius-sm);
  background: var(--yf-primary); color: var(--yf-inverse);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.yf-contact-submit:hover:not(:disabled) {
  background: #1d4ed8; box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.yf-contact-submit:disabled { opacity: .55; cursor: not-allowed; }
.yf-contact-submit__note {
  margin: 10px 0 0; text-align: center; color: var(--yf-muted); font-size: 13px;
}

.yf-contact-company { max-width: 1040px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--yf-line-soft); }
.yf-contact-company__title { margin: 0 0 24px; font-size: 22px; font-weight: 600; color: var(--yf-ink); }
.yf-contact-company__list { margin: 0; }
.yf-contact-company__row {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 12px 0; border-bottom: 1px solid var(--yf-line-soft);
}
.yf-contact-company__row dt { color: var(--yf-muted); font-size: 14px; }
.yf-contact-company__row dd { margin: 0; color: var(--yf-ink); font-size: 15px; }

@media (max-width: 900px) {
  .yf-contact { padding: 40px 0 72px; }
  .yf-contact-card { grid-template-columns: 1fr; }
  .yf-contact-form { padding: 32px 24px; }
  .yf-contact-company__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==================== 页脚 ==================== */
/* 对应原站深色页脚：底色 slate-900、浅灰文字、上下分区。 */
.yf-site-footer {
  padding: 56px 0 28px;
  background: var(--yf-ink);
  color: #cbd5e1;
  font-size: 14px; line-height: 1.9;
}
.yf-site-footer .yf-container {
  display: flex; flex-wrap: wrap; gap: 32px 48px;
  align-items: flex-start; justify-content: space-between;
}
.yf-footer-brand {
  margin: 0; color: var(--yf-inverse);
  font-size: 20px; font-weight: 600; letter-spacing: .01em;
}
.yf-footer-hotline { margin: 0; color: #94a3b8; }
.yf-footer-copy,
.yf-footer-icp { margin: 0; color: #94a3b8; font-size: 13px; }
/* 版权与备案信息单独占一行，压在最底部。 */
.yf-footer-copy,
.yf-footer-icp { flex: 1 1 100%; }
.yf-footer-copy { margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(148, 163, 184, .22); }
.yf-footer-icp { margin-top: -6px; }
.yf-site-footer a { color: #cbd5e1; }
.yf-site-footer a:hover { color: var(--yf-inverse); }

/* --- 页脚「联系方式」列的邮箱图标（#6） ---
 * 线上 components/footer.tsx 对 url.startsWith('mailto:') 的链接前置 lucide-mail（h-4 w-4 mr-2 text-blue-400）。
 * 受限方言不能比较字符串，改用属性选择器等价实现：模板里 mailto 链接已挂 .yf-footer-link。 */
body.yingfan-site footer .yf-footer-link[href^="mailto:"] {
  display: inline-flex; align-items: center;
}
body.yingfan-site footer .yf-footer-link[href^="mailto:"]::before {
  content: ""; width: 16px; height: 16px; margin-right: 8px; flex: 0 0 16px;
  background-color: #60a5fa;
  -webkit-mask: url("../images/mail.svg") no-repeat center / contain;
  mask: url("../images/mail.svg") no-repeat center / contain;
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  :root { --yf-gap: 56px; --yf-container-pad: 20px; --yf-head-h: 64px; }
  /* 移动端首屏与桌面同样式：满屏背景 + 居中白字，只收字阶与留白。 */
  .yf-hero { padding: 0 0 16px; }
  .yf-hero__title { font-size: clamp(26px, 6.6vw, 36px); }
  .yf-hero__desc { font-size: 16px; margin-bottom: 24px; }
  .yf-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .yf-card { padding: 22px; }
}

@media (max-width: 768px) {
  .yf-menu-toggle { display: block; }
  .yf-nav { display: none; flex-basis: 100%; margin-left: 0; padding-bottom: 12px; }
  .yf-site-header.is-open .yf-nav { display: block; }
  .yf-menu-list { flex-direction: column; gap: 2px; padding: 8px 0 0; }
  .yf-nav-sub { padding-inline-start: 12px; }
  body.yingfan-site a.yf-news-item__link { padding: 18px; }  .yf-rich { font-size: 15.5px; }
  .yf-rich table { display: block; overflow-x: auto; }
}

/* 尊重系统的减少动效偏好。 */
@media (prefers-reduced-motion: reduce) {
  body.yingfan-site *, body.yingfan-site *::before, body.yingfan-site *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .yf-card:hover, .yf-btn--primary:hover { transform: none; }
}

/* ==========================================================================
   导航样式补齐（2026-11-06）
   --------------------------------------------------------------------------
   partials/navigation.html 输出的是 .sj-nav / .sj-nav__* 这套类名，
   而本包此前只定义了 .yf-nav / .yf-menu-list，类名对不上，
   导致页头导航无样式、塌成竖排项目符号列表。这里按模板实际类名补一份。
   ========================================================================== */
.sj-nav { margin-inline-start: auto; }
.sj-nav > ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sj-nav li { list-style: none; position: relative; }
.sj-nav a {
  display: block; padding: 8px 14px; border-radius: var(--yf-radius-sm);
  color: var(--yf-text); font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.sj-nav a:hover { background: var(--yf-surface); color: var(--yf-primary); text-decoration: none; }
.sj-nav__item.is-active > .sj-nav__link,
.sj-nav__item.menu-item.is-active > a { color: var(--yf-primary); background: var(--yf-primary-tint); }

/* 导航最后一项（联系我们）做成右上角主按钮，与原站一致。
   依赖导航数据里「联系我们」排在最后且已启用；不加这个类名判断，
   避免模板里写死 URL。 */
.sj-nav > ul > li:last-child > .sj-nav__link {
  margin-inline-start: 10px; padding: 10px 22px;
  background: var(--yf-primary); color: var(--yf-inverse);
  border-radius: var(--yf-radius-sm); font-weight: 600;
}
.sj-nav > ul > li:last-child > .sj-nav__link:hover {
  background: #1d4ed8; color: var(--yf-inverse);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .26);
}

.sj-nav__sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60;
  min-width: 220px; margin: 0; padding: 8px; list-style: none;
  background: var(--yf-bg); border: 1px solid var(--yf-line-soft); border-radius: var(--yf-radius);
  box-shadow: var(--yf-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.sj-nav li:hover > .sj-nav__sub,
.sj-nav li:focus-within > .sj-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sj-nav__sub-link { padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: var(--yf-radius-sm); }

@media (max-width: 768px) {
  .sj-nav { display: none; flex-basis: 100%; margin-inline-start: 0; padding-bottom: 12px; }
  .yf-site-header.is-open .sj-nav { display: block; }
  .sj-nav > ul { flex-direction: column; gap: 2px; padding: 8px 0 0; }
  /* 移动端菜单里主按钮通栏显示，不再右移。 */
  .sj-nav > ul > li:last-child > .sj-nav__link {
    margin: 8px 0 0; text-align: center;
  }
  .sj-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-inline-start: 2px solid var(--yf-line-soft);
    border-radius: 0; padding: 4px 0 4px 12px; margin-top: 2px;
  }
}

/* ==================== 站内搜索 ==================== */
/* 索引由平台在发布时生成（<语言根>/search-index.json），交互由 assets/js/search.js 接管；
   这里只负责结果列表的呈现，避免把样式写进脚本。 */
.yf-search-results { margin-top: 28px; }
.yf-search-count {
  margin: 0 0 16px;
  color: var(--yf-muted);
  font-size: 14px;
}
.yf-search-list {
  display: grid; gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
body.yingfan-site a.yf-search-item__link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--yf-line-soft);
  border-radius: var(--yf-radius);
  background: var(--yf-bg);
  color: var(--yf-text);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.yingfan-site a.yf-search-item__link:hover,
body.yingfan-site a.yf-search-item__link:focus-visible {
  border-color: var(--yf-primary);
  box-shadow: var(--yf-shadow-sm);
  text-decoration: none;
}
.yf-search-item__date {
  color: var(--yf-faint);
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.yf-search-item__title {
  color: var(--yf-ink);
  font-size: 17px; font-weight: 700; line-height: 1.45;
}
body.yingfan-site a.yf-search-item__link:hover .yf-search-item__title {
  color: var(--yf-primary);
}
.yf-search-item__summary {
  color: var(--yf-muted);
  font-size: 14.5px; line-height: 1.7;
}
.yf-search-empty {
  margin: 0;
  color: var(--yf-muted);
  font-size: 14.5px;
}

/* ============ 生成页结构对齐（标签云 / 网站地图 / 站内搜索） ============
 * 上面那批选择器写在 1.1.2，当时按「面包屑 div 直接包内容」的假设写的；
 * 实际导入器的 DOM 是「面包屑 div + 内容 div」两层，很多规则一直没命中。
 * 这里按真实 DOM 重写一遍：内容层统一是 `.yf-rich > div + div`。
 * 外观数值抄线上：section 卡 white + border-slate-200 + rounded-xl + p-8，
 * 热标签 4 列、分组卡 2 列、搜索框 max-w-lg 居中。 */

/* --- 标签云：分组卡 --- */
/* 1.1.2 给正文里无 class 的 section 铺过灰底 + 内边距；生成页现在的分工是
   「section 只负责间距、内层 div 才是白卡」，所以旧底色/内边距要撤掉。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) {
  margin: 0 0 4rem; padding: 0; background: none; border: 0; box-shadow: none;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):not(:has(> a)) {
  padding: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > header:not([class]) {
  margin: 0 0 24px; text-align: start;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) h2 {
  margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > header:not([class]) p {
  margin: 0; color: var(--yf-muted); font-size: 15px;
}
/* 热门标签：2 列起、桌面 4 列（线上 `grid-cols-2 md:grid-cols-4 gap-4`）。
   用 `:has(a h3)` 与「所有标签」的三列卡区分开。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) {
  display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* 热门标签卡（卡片里有 h3，线上是 `p-6 text-center` 的 shadcn Card） */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a {
  display: block; height: 100%; padding: 24px 16px; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a:hover {
  border-color: #bfdbfe; box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a h3 {
  margin: 0; font-size: 16px; font-weight: 600; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a p {
  margin: 4px 0 0; font-size: 14px; color: var(--yf-muted);
}
/* 热门标签卡的圆形图标位：导入器只剩一个空 div（线上是 48px 彩色圆 + lucide 图标）。
   各标签线上的配色不同、图标也不同，数据里都没有，这里统一用主色淡底 + hash 占位。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a > div > div > div:first-child:empty {
  position: relative; width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 999px; background-color: rgba(37, 99, 235, .12);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a > div > div > div:first-child:empty::after {
  content: ""; position: absolute; inset: 12px; background-color: #2563eb;
  -webkit-mask: url("../images/hash.svg") no-repeat center / contain;
  mask: url("../images/hash.svg") no-repeat center / contain;
}
/* 「所有标签」分组内的三列卡片网格（线上 `grid-cols-1 md:grid-cols-3 gap-4`）。
   导入器在这里多套了一层 div（section > 卡片 > 分组容器 > 链接容器），所以用后代选择器。 */
.yf-rich > div:not([class]) + div:not([class]) section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) {
  display: grid; gap: 12px; grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .yf-rich > div:not([class]) + div:not([class]) section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* 分类计数 chip：名字 + 数量 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> div > span) {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> div > span) > div {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 999px;
  background: #fff; font-size: 14px; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> div > span) > div:first-child {
  background: var(--yf-primary); border-color: var(--yf-primary); color: #fff;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> div > span) > div > div {
  color: var(--yf-muted); font-variant-numeric: tabular-nums;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> div > span) > div:first-child > div { color: rgba(255, 255, 255, .85); }
/* 「所有标签」：分组标题 + 三列卡片 */
.yf-rich > div:not([class]) + div:not([class]) section:not([class]) div:not([class]) > h3:not([class]) {
  display: flex; align-items: center; gap: 8px;
  margin: 28px 0 12px; font-size: 17px; font-weight: 700; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) section:not([class]) div:not([class]) > h3 > div:last-child {
  padding: 0 8px; border-radius: 999px; background: var(--yf-surface);
  color: var(--yf-muted); font-size: 12px; font-weight: 600;
}
/* 上面那条分组标题规则会顺带命中「热门标签」卡片里的 h3（卡片也是 section > div > … > h3），
   这里按卡片的 h3 再收一次：字号/字重/居中/外边距对齐线上 text-base font-semibold text-center。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]) > div:has(> a h3) > a h3:not([class]) {
  display: block; margin: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a {
  position: relative; display: block; padding: 16px;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div {
  position: static; height: auto; padding: 0; border: 0; border-radius: 0; background: none;
}
/* 「所有标签」卡片内部补三个纯装饰件：名称前缀色点、计数前缀 tag 图标、右侧 arrow-right。
   导入器把原来的 <svg> 和色点 div 都留成了空 div，模板层补不回来，这里用 CSS 画。
   图标一律走外部 SVG（assets/images/*.svg）+ mask，避免内联 data URI。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div > div:first-child { display: flex; align-items: center; margin-bottom: 8px; }
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div > div:first-child > div:first-child {
  width: 12px; height: 12px; flex: 0 0 12px; margin-right: 8px;
  border-radius: 999px; background: var(--yf-primary);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div > div:last-child {
  display: flex; align-items: center; padding-right: 18px;
  color: #94a3b8; font-size: 12px;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div > div:last-child::before {
  content: ""; width: 12px; height: 12px; margin-right: 4px; background-color: currentColor;
  -webkit-mask: url("../images/tag.svg") no-repeat center / contain;
  mask: url("../images/tag.svg") no-repeat center / contain;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a::after {
  content: ""; position: absolute; top: 50%; right: 16px; width: 16px; height: 16px;
  transform: translateY(-50%); background-color: #94a3b8;
  -webkit-mask: url("../images/arrow-right.svg") no-repeat center / contain;
  mask: url("../images/arrow-right.svg") no-repeat center / contain;
  transition: background-color .15s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a:hover::after {
  background-color: var(--yf-primary);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a:hover {
  border-color: #bfdbfe; box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div > div:first-child span {
  font-size: 16px; font-weight: 500; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) div:not([class]):has(> a):not(:has(> a h3)) > a > div > div > p { margin: 0 0 8px; font-size: 14px; color: #64748b; }
/* 「探索更多内容」CTA：section 直接是 h2 + p + 两个按钮。
   线上是 `text-center bg-blue-600 rounded-xl p-8 text-white` + 白底/深蓝两枚按钮。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):has(> h2) {
  padding: 32px; text-align: center;
  background: var(--yf-primary); border-radius: 12px; color: #fff;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):has(> h2) h2 {
  color: #fff; margin-bottom: 16px; padding-inline-start: 0; text-align: center;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):has(> h2) h2::before { content: none; }
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):has(> h2) > p {
  margin: 0 auto 24px; max-width: 42rem; color: #dbeafe;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):has(> a):not(:has(> a > div)) {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):has(> a):not(:has(> a > div)) > a {
  display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 8px;
  border: 1px solid var(--yf-primary); background: var(--yf-bg);
  color: var(--yf-primary); font-size: 14px; font-weight: 600; text-decoration: none;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):has(> a):not(:has(> a > div)) > a:hover {
  background: #fff; color: var(--yf-primary);
}
/* 首枚按钮白底蓝字、次枚深蓝底白字（对齐线上 /tags 的 CTA）。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):has(> a):not(:has(> a > div)) > a:first-child {
  background: #fff; border-color: #fff; color: var(--yf-primary);
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):has(> a):not(:has(> a > div)) > a:last-child {
  background: #1d4ed8; border-color: #1d4ed8; color: #fff;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) > div:not([class]):has(> a):not(:has(> a > div)) > a:last-child:hover {
  background: #1e40af; border-color: #1e40af; color: #fff;
}

/* 页头下方的统计行（标签云的「19 个标签 / 5 个分类」）：线上与标题同轴居中。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> header) > div:not([class]):has(> div > span) {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin-top: 20px; font-size: 14px; color: var(--yf-muted);
}
/* 「19 个标签 / 5 个分类」前的 lucide-tag（蓝）与 lucide-trending-up（绿），导入器丢了 svg。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> header) > div:not([class]):has(> div > span) > div {
  display: flex; align-items: center;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> header) > div:not([class]):has(> div > span) > div::before {
  content: ""; width: 16px; height: 16px; margin-right: 8px; flex: 0 0 16px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> header) > div:not([class]):has(> div > span) > div:nth-child(1)::before {
  background-color: #3b82f6;
  -webkit-mask: url("../images/tag.svg") no-repeat center / contain;
  mask: url("../images/tag.svg") no-repeat center / contain;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> header) > div:not([class]):has(> div > span) > div:nth-child(2)::before {
  background-color: #22c55e;
  -webkit-mask: url("../images/trending-up.svg") no-repeat center / contain;
  mask: url("../images/trending-up.svg") no-repeat center / contain;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> header) > div:not([class]):has(> div > span) > div {
  display: inline-flex; align-items: center; gap: 6px;
}

/* --- 网站地图：分组卡（2 列）+ 链接竖排 --- */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) {
  display: grid; gap: 24px; grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 32px;
}
@media (min-width: 768px) {
  .yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) {
  padding: 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div h2 {
  margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div p {
  margin: 0 0 20px; color: var(--yf-muted); font-size: 14px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul:not([class]) {
  display: block; margin: 0; padding: 0; list-style: none;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li { margin: 0 0 12px; padding: 0; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li::before { content: none; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul a {
  display: block; padding: 0; border: 0; background: none; text-decoration: none;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul a span {
  display: block; font-size: 15px; font-weight: 500; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul a:hover span { color: var(--yf-primary); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul a p {
  margin: 2px 0 0; color: var(--yf-muted); font-size: 13px;
}
/* XML 网站地图：白卡 + 两个按钮 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) {
  margin-top: 32px; padding: 32px; text-align: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > h2 {
  padding-inline-start: 0; text-align: center;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > h2::before { content: none; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > div:last-child {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px;
}
/* 线上两枚按钮都是 `px-6 py-3 bg-slate-100 text-slate-700 rounded-lg hover:bg-slate-200`，
   且都带 lucide-external-link（h-4 w-4 ml-2）。导入器把 svg 丢了，用外部文件 + mask 补。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > div:last-child a {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 8px;
  border: 0; background: #f1f5f9;
  color: #334155; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .15s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > div:last-child a::after {
  content: ""; width: 16px; height: 16px; margin-left: 8px; flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask: url("../images/external-link.svg") no-repeat center / contain;
  mask: url("../images/external-link.svg") no-repeat center / contain;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > div:last-child a:hover {
  background: #e2e8f0; color: #334155;
}
/* 第 2 枚按钮会被更早的「动作按钮行」规则刷成 slate-600，这里按线上值压回去 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > div:last-child a:nth-child(2) {
  background: #f1f5f9; color: #334155;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> h2):not(:has(> ul)) > div:last-child a:nth-child(2):hover {
  background: #e2e8f0; color: #334155;
}
/* 底部统计条：4 个数字卡 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 32px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div {
  padding: 24px 16px; text-align: center; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 12px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div > div:nth-child(2) {
  font-size: 26px; font-weight: 700; color: var(--yf-primary); line-height: 1.2;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div > div:last-child {
  color: var(--yf-muted); font-size: 13px;
}

/* --- 站内搜索：max-w-lg 居中的输入框 + 按钮 --- */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) {
  max-width: 512px; margin: 0 auto 32px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) > div:not([class]) {
  display: flex; align-items: stretch; margin: 0;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) > div:not([class]) > div:not([class]) {
  position: relative; flex: 1; margin: 0;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) input[type="search"] {
  width: 100%; margin: 0; padding: 12px 16px 12px 42px;
  border: 1px solid #cbd5e1; border-radius: 8px 0 0 8px; background-color: #fff;
  /* 图标改用外部文件：内联 data URI 会让上游中转（api.ai-pixel）整包 400。
     临时规避，视觉与原来一致。 */
  background-image: url("../images/search.svg");
  background-repeat: no-repeat; background-position: 12px center; background-size: 20px 20px;
  font-size: 16px; color: var(--yf-ink);
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) input[type="search"]:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) button[type="submit"] {
  margin: 0; padding: 12px 24px; border: 0; border-radius: 0 8px 8px 0;
  background: var(--yf-primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]) > form:not([class]) button[type="submit"]:hover {
  background: #1d4ed8;
}

/* --- 404「您可能想要访问的页面」卡片 ---
 * 卡片本身是 <a>，类名照抄线上（group block p-6 border …），只多挂一个 yf-404-card 钩子：
 * 全局 a 规则（主色 + hover 下划线）会把整张白卡染蓝，线上这里是继承正文色、无下划线。 */
body.yingfan-site a.yf-404-card { color: inherit; text-decoration: none; }
body.yingfan-site a.yf-404-card:hover,
body.yingfan-site a.yf-404-card:focus-visible { color: inherit; text-decoration: none; }

/* 404 的两颗动作按钮：线上是蓝底/灰底白字，全局 a 规则会把「返回首页」文字染成主色。
 * 只钉文字色（bg 仍由 bg-blue-600 / bg-slate-600 提供）。 */
body.yingfan-site a.yf-404-btn,
body.yingfan-site a.yf-404-btn:hover,
body.yingfan-site a.yf-404-btn:focus-visible { color: #fff; text-decoration: none; }

/* --- 网站地图：按线上真实结构再收一遍 ---
 * 线上卡片是 `p-6 rounded-xl shadow-sm`，卡头是「图标 + 标题/副标题」横排，
 * 列表 `ul.space-y-3`，链接 `p-3 rounded-lg hover:bg-slate-50`。
 * 之前那批规则用的是 `> div > ul` 链，实际 DOM 是「卡片 > ul」，所以 li 间距/链接内边距都没生效。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) {
  padding: 24px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class]) {
  display: flex; align-items: center; margin: 0 0 24px;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class]) > div:not([class]) { margin: 0; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class]) h2 {
  margin: 0 0 2px; font-size: 20px; font-weight: 700; color: var(--yf-ink); line-height: 1.3;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class]) h2 { padding-inline-start: 0; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class]) h2::before { content: none; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class]) p { margin: 0; font-size: 14px; color: #475569; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul:not([class]) { display: block; margin: 0; padding: 0; list-style: none; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li { margin: 0; padding: 0; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li + li { margin-top: 12px; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li::before { content: none; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li > a {
  display: block; padding: 12px; border-radius: 8px; background: none; border: 0;
  text-decoration: none; transition: background-color .15s ease;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li > a:hover { background: #f8fafc; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li > a > div { margin: 0; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li > a span {
  display: block; font-size: 16px; font-weight: 500; color: var(--yf-ink); line-height: 1.5;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li > a:hover span { color: var(--yf-primary); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > ul > li > a p { margin: 4px 0 0; font-size: 14px; color: #64748b; line-height: 1.5; }

/* --- 网站地图：分组卡头部图标 + 底部统计卡图标 ---
 * 线上四组固定是 house(蓝) / package(绿) / newspaper(紫) / users(灰)，导入器把 svg 丢了。
 * 这里按卡片出现顺序补图标（顺序来自平台生成器，本站在 主要页面→产品服务→新闻资讯→法律条款
 * 之间稳定；若将来分组增减，图标只影响观感，不影响内容）。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]) > div:not([class])::before {
  content: ""; width: 24px; height: 24px; flex: 0 0 24px; margin-right: 12px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]):nth-child(1) > div:not([class])::before { background-color: #2563eb;
  -webkit-mask-image: url("../images/house.svg"); mask-image: url("../images/house.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]):nth-child(2) > div:not([class])::before { background-color: #16a34a;
  -webkit-mask-image: url("../images/package.svg"); mask-image: url("../images/package.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]):nth-child(3) > div:not([class])::before { background-color: #9333ea;
  -webkit-mask-image: url("../images/newspaper.svg"); mask-image: url("../images/newspaper.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div > ul) > div:not([class]):nth-child(4) > div:not([class])::before { background-color: #475569;
  -webkit-mask-image: url("../images/users.svg"); mask-image: url("../images/users.svg"); }

/* 底部四张统计卡：图标 + 深色数字 + 灰标签，居中。 */
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div { padding: 24px; text-align: center; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div > div:first-child:empty {
  width: 24px; height: 24px; margin: 0 auto 8px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div:nth-child(1) > div:first-child:empty { background-color: #2563eb;
  -webkit-mask-image: url("../images/house.svg"); mask-image: url("../images/house.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div:nth-child(2) > div:first-child:empty { background-color: #16a34a;
  -webkit-mask-image: url("../images/package.svg"); mask-image: url("../images/package.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div:nth-child(3) > div:first-child:empty { background-color: #9333ea;
  -webkit-mask-image: url("../images/newspaper.svg"); mask-image: url("../images/newspaper.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div:nth-child(4) > div:first-child:empty { background-color: #475569;
  -webkit-mask-image: url("../images/users.svg"); mask-image: url("../images/users.svg"); }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div > div:nth-child(2) { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: #0f172a; }
.yf-rich > div:not([class]) + div:not([class]) > div:not([class]):has(> div:not([class]) > div:empty) > div > div:last-child { font-size: 14px; color: #475569; }

/* --- 标签云分区标题 ---
 * 线上分区标题是「图标 + h2」，没有左侧色条；这里的色条是 1.1.1 给无 class 内容做的兜底，
 * 在生成页上跑偏了，按 section 关掉；「热门标签」补回线上的 trending-up（绿）。 */
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) h2 {
  padding-inline-start: 0;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]) h2::before { content: none; }
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):nth-of-type(1) > div:not([class]) > header:not([class]) {
  margin-bottom: 24px;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):nth-of-type(1) > div:not([class]) > header:not([class]) h2 {
  display: flex; align-items: center; gap: 12px;
}
.yf-rich > div:not([class]) + div:not([class]) > section:not([class]):nth-of-type(1) > div:not([class]) > header:not([class]) h2::before {
  content: ""; position: static; inset: auto; display: block;
  width: 24px; height: 24px; flex: 0 0 24px; background: #16a34a;
  -webkit-mask: url("../images/trending-up.svg") no-repeat center / contain;
  mask: url("../images/trending-up.svg") no-repeat center / contain;
}
