/* ============================================================
   blog.css — 博客列表页与文章页专属样式
   颜色 / 字体 / 圆角全部引用 base.css :root 设计令牌
   ============================================================ */

/* ================= 列表页 Hero ================= */

.blog-hero {
  padding-bottom: 0;
}

.blog-hero .sec-desc {
  max-width: 640px;
}

/* ================= 标签筛选按钮组 ================= */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.2rem;
}

.blog-filter {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .04em;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.blog-filter:hover {
  color: var(--text);
  border-color: var(--accent);
}

.blog-filter.on {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.blog-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 2.4rem 0;
  text-align: center;
}

/* ================= 文章卡片 ================= */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.post-tag {
  display: inline-block;
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.4;
}

.post-date {
  letter-spacing: .06em;
}

.post-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .25s var(--ease-out);
}

.post-title a:hover {
  color: var(--accent-2);
}

.post-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
}

.post-more {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
  transition: color .25s var(--ease-out);
}

.post-more::after {
  content: "→";
  margin-left: 6px;
}

.post-more:hover {
  color: var(--accent-2);
}

/* ================= 文章页:面包屑 ================= */

.crumbs {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .25s var(--ease-out);
}

.crumbs a:hover {
  color: var(--accent-2);
}

.crumbs .crumb-sep {
  color: var(--border);
}

.crumbs .crumb-current {
  color: var(--text);
}

/* ================= 文章页:头部 ================= */

.post-hero {
  padding-top: 2.4rem;
  padding-bottom: 2rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--border-soft);
}

.post-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.post-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--text);
}

.post-hero .post-lede {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
}

/* ================= 文章页:正文排版 ================= */

.post-body {
  max-width: 780px;
}

.post-body h2 {
  margin: 3rem 0 1.2rem;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--text);
}

.post-body h3 {
  margin: 2.2rem 0 1rem;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--peach-bright);
}

.post-body p {
  margin: 0 0 1.4rem;
  font-size: 15.5px;
  line-height: 2;
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.6rem;
  padding-left: 1.4em;
}

.post-body li {
  margin-bottom: .6em;
  font-size: 15.5px;
  line-height: 2;
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
}

.post-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}

.post-body a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.post-body strong {
  color: var(--text);
  font-weight: 700;
}

.post-body code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-panel2);
  border: 1px solid var(--border-soft);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--peach-bright);
}

.post-body pre {
  margin: 0 0 1.8rem;
  padding: 20px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  overflow-x: auto;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.post-body blockquote {
  margin: 0 0 1.6rem;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-2);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body img {
  max-width: 100%;
  border-radius: var(--r-m);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 2.6rem 0;
}

.post-body .table-wrap {
  margin-bottom: 1.8rem;
}

.post-body .callout,
.post-body .callout-warn,
.post-body .callout-error,
.post-body .callout-success {
  margin-bottom: 1.6rem;
}

/* ================= 文章页:文末下载引导卡 ================= */

.dl-guide {
  margin: 3.4rem 0;
  padding: 34px 30px;
  border-radius: var(--r-l);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background:
    radial-gradient(120% 160% at 8% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-panel2), var(--bg-panel));
  box-shadow:
    0 0 40px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--accent-2) 6%, transparent);
}

.dl-guide h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--text);
}

.dl-guide p {
  margin: 0 0 22px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.dl-guide .row-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ================= 文章页:延伸阅读 ================= */

#related-posts {
  margin-top: 3.4rem;
}

.rel-title {
  margin: 0 0 1.4rem;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--text);
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .rel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  text-decoration: none;
}

.rel-card .post-tag {
  align-self: flex-start;
}

.rel-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--text);
  transition: color .25s var(--ease-out);
}

.rel-card:hover h3 {
  color: var(--accent-2);
}

.rel-card time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
}

/* ================= 文章页:上一篇 / 下一篇 ================= */

#post-nav {
  margin-top: 2.6rem;
}

.post-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 700px) {
  .post-nav-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: var(--r-m);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  text-decoration: none;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.post-nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.post-nav-card.next {
  text-align: right;
}

@media (min-width: 701px) {
  .post-nav-card.next:only-child {
    grid-column: 2;
  }
}

.post-nav-dir {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
}

.post-nav-title {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text);
}

/* ================= 文章页:常驻下载浮层 ================= */

.dl-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.dl-fab svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.dl-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ═══ clash-head-spec-v1(2026-08-18)═══
   字号级距:H1 桌面封顶 32/移动 24,导语 18,H2 24,H3 20;
   面包屑:13px 弱化单行,当前段 30ch 截断,下距 20px;
   页头间隙:顶栏→面包屑 24~40 带,hero 收底 12px,正文首块剥营销级节距,导语→正文 24~48 带 */

/* —— 字号级距 —— */
main h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.01em;
  margin-block: 0.875rem 0.75rem !important;
}
main h1 + p,
main .lead, main .article-lead, main .article-summary, main .post-lead {
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.125rem) !important;
  line-height: 1.7 !important;
  margin-top: 0 !important;
}
main .prose h2, main .article-body h2, main .post-content h2, main article h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.5rem) !important;
}
main .prose h3, main .article-body h3, main .post-content h3, main article h3 {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem) !important;
}

/* —— 面包屑重设计:只指路不复读 —— */
main nav[class*="crumb"]:not([id="post-nav"]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: nowrap;
  margin-block: 0 1.25rem !important;
}
main nav[class*="crumb"]:not([id="post-nav"]) ol,
main nav[class*="crumb"]:not([id="post-nav"]) ul,
main nav[class*="crumb"]:not([id="post-nav"]) > p {
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 0; margin: 0; padding: 0; list-style: none; overflow: hidden;
}
main nav[class*="crumb"]:not([id="post-nav"]) li { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
main nav[class*="crumb"]:not([id="post-nav"]) a {
  color: inherit; opacity: 0.62; text-decoration: none; flex: 0 0 auto;
  transition: opacity 120ms ease;
}
main nav[class*="crumb"]:not([id="post-nav"]) a:hover { opacity: 1; }
main nav[class*="crumb"]:not([id="post-nav"]) [aria-hidden="true"] { opacity: 0.35; flex: 0 0 auto; }
main nav[class*="crumb"]:not([id="post-nav"]) [aria-current="page"],
main nav[class*="crumb"]:not([id="post-nav"]) > :last-child:not(a):not([aria-hidden="true"]),
main nav[class*="crumb"]:not([id="post-nav"]) li:last-child > :not(a),
main nav[class*="crumb"]:not([id="post-nav"]) li:last-child {
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 30ch; opacity: 0.85;
}

/* —— 页头头尾间隙 —— */
main > nav:first-child { padding-top: 1.75rem !important; }
main > :first-child:has(nav[class*="crumb"]) { padding-top: 1.75rem !important; }
main > :first-child:has(nav[class*="crumb"]):not(:has(h2, .prose, .article-body, .post-body, .post-content)) { padding-bottom: 0.5rem !important; }
main > :first-child:has(nav[class*="crumb"]):not(:has(h2, .prose, .article-body, .post-body, .post-content)) + * { padding-top: 0.5rem !important; }
main > :first-child:has(nav[class*="crumb"]):not(:has(h2, .prose, .article-body, .post-body, .post-content)) + :is(article, div) > section:first-child { padding-top: 0 !important; }
main header:has(h1) { padding-bottom: 12px !important; }
main section header[class*="section-head"]:has(h1) { padding-bottom: 0 !important; }
main section[class*="article-hero"], main section[class*="post-hero"] { padding-bottom: 12px !important; }
main > section:has(h1):not(:has(h2, article, .prose, .article-body)) { padding-bottom: 12px !important; }
main article > section:first-of-type { padding-top: 0 !important; margin-top: 0 !important; }
main > :is(header, section):has(h1) + section:not(:has(nav[class*="crumb"])) { padding-top: 16px !important; }
main :is(article, .article-body, .post-content, .prose) > section:first-of-type > :is(h2, h3):first-child,
main :is(article, .article-body, .post-content, .prose) > :is(h2, h3):first-child {
  margin-top: 12px !important; padding-top: 0 !important;
}
/* TOC 网格残柱兜底:没有 toc 的 article-layout 网格回退单栏(页内 TOC 已全站封杀,新文章没有) */
main [class*="article-layout"]:not(:has(nav[class*="toc"], aside[class*="toc"])) { display: block !important; }

/* ═══ clash-head-spec-v2(2026-08-18 v1 复测 964 病页解剖:
   ①clash1002/1010/1019 没有 <main>,v1 的 main 前缀全灭——关键规则加 body>.wrap 根;
   ②hero/正文容器扛营销级 pt56~104(.post-hero/.sec--tight/.strip),压到 28/20;
   ③部分站 main 自带 90~115px 大顶距,归零换面包屑自己的 28px 呼吸;
   ④v1 面包屑没锁 flex-wrap,长标题折 3 行)═══ */

/* 面包屑单行铁律 */
:is(main, body > .wrap) nav[class*="crumb"]:not([id="post-nav"]),
:is(main, body > .wrap) nav[class*="crumb"]:not([id="post-nav"]) :is(ol, ul, p) {
  flex-wrap: nowrap !important;
}
/* main 自带大顶距归零(呼吸交给首容器/面包屑的 28px) */
main:has(> nav[class*="crumb"]:first-child) { padding-top: 0.5rem !important; }
/* hero 容器营销级 pt 压到 28 */
:is(main, body > .wrap) :is(section, article, header)[class*="hero"] { padding-top: 28px !important; }
main > section[class*="strip"]:first-child,
main > :first-child:has(h1) { padding-top: 28px !important; }
/* hero 之后的正文容器不再叠一份营销级 pt */
:is(main, body > .wrap) :is(section, article, header)[class*="hero"] + :is(article, section, div) { padding-top: 20px !important; }
/* 导语下距封顶(66~70px 边缘病例:导语自己的 mb 20+ 就出带) */
:is(main, body > .wrap) :is(.lead, .post-lead, .post-lede, .post-summary, .article-lead, .article-summary, .hero-lead) { margin-bottom: 14px !important; }

/* —— 无 main 三站的面包屑重设计(v1 只写了 main 前缀)—— */
body > .wrap > nav[class*="crumb"] {
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 0; overflow: hidden;
  font-size: 0.8125rem; line-height: 1.5; white-space: nowrap;
  margin-block: 1.75rem 1.25rem !important;
}
body > .wrap > nav[class*="crumb"] :is(ol, ul, p) {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap;
  min-width: 0; margin: 0; padding: 0; list-style: none; overflow: hidden;
}
body > .wrap > nav[class*="crumb"] a { color: inherit; opacity: 0.62; text-decoration: none; flex: 0 0 auto; }
body > .wrap > nav[class*="crumb"] [aria-hidden="true"] { opacity: 0.35; flex: 0 0 auto; }
body > .wrap > nav[class*="crumb"] [aria-current="page"],
body > .wrap > nav[class*="crumb"] > :last-child:not(a):not([aria-hidden="true"]),
body > .wrap > nav[class*="crumb"] li:last-child {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 30ch; opacity: 0.85;
}
/* 无 main 三站的字号级距 */
body > .wrap h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem) !important;
  line-height: 1.32 !important;
  margin-block: 0.875rem 0.75rem !important;
}
body > .wrap :is(.post-lead, .post-lede, .lead, .post-summary),
body > .wrap h1 + p {
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.125rem) !important;
  line-height: 1.7 !important;
  margin-top: 0 !important;
}
body > .wrap article h2 { font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.5rem) !important; }
body > .wrap article h3 { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem) !important; }
body > .wrap article > section:first-of-type { padding-top: 0 !important; margin-top: 0 !important; }
body > .wrap :is(.post-body, .article-body, .post-content) > :is(h2, h3):first-child { margin-top: 12px !important; padding-top: 0 !important; }

/* ═══ clash-head-spec-v3(v2 复测残余:面包屑→meta 64px ×151——crumb mb20 + hero pt28 +
   meta mt 三层叠刚好出带;导语→正文 65~90 边缘案)═══ */
/* 面包屑之后的首容器:crumb 的 mb20 已是呼吸,容器 pt 压到 8 */
:is(main, body > .wrap) nav[class*="crumb"]:not([id="post-nav"]) + * { padding-top: 8px !important; }
/* meta 行自身 mt 归零(容器的 pt 就是它的呼吸) */
:is(main, body > .wrap) :is(.post-meta, .article-meta, .meta, .post-line, .post-head, [class*="hero__meta"], [class*="-meta"]) { margin-top: 0 !important; }
/* 导语→正文边缘案:正文容器首块 mt 封顶 */
:is(main, body > .wrap) :is(.post-body, .article-body, .post-content, .prose, article) > :is(h2, h3):first-child { margin-top: 12px !important; padding-top: 0 !important; }
:is(main, body > .wrap) :is(.post-body, .article-body, .post-content) > p:first-child { margin-top: 8px !important; }

/* ═══ clash-head-spec-v4(2026-08-18 三轮复测定案:1010 一族容器直挂 body、nav 自带 .wrap 类,
   v1~v3 的 main/body>.wrap 根前缀全踩空;1061 一族 nav+article+hero 三层壳叠距。
   blog.css 只加载在博客页,规则按语义类兜底,不再赌容器根)═══ */

/* —— 字号级距(兜底,无根前缀) —— */
h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem) !important;
  line-height: 1.32 !important;
  margin-block: 0.875rem 0.75rem !important;
}
h1 + p, .post-lead, .post-lede, .lead, .post-summary, .article-lead, .article-summary, .hero-lead {
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.125rem) !important;
  line-height: 1.7 !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
article h2, .post-body h2, .article-body h2, .post-content h2 { font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.5rem) !important; }
article h3, .post-body h3, .article-body h3, .post-content h3 { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem) !important; }

/* —— 面包屑重设计(兜底) —— */
nav[class*="crumb"]:not([id="post-nav"]) {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap !important;
  min-width: 0; overflow: hidden;
  font-size: 0.8125rem; line-height: 1.5; white-space: nowrap;
  margin-block: 0 1.25rem !important;
  padding-top: 1.75rem;
}
nav[class*="crumb"]:not([id="post-nav"]) :is(ol, ul, p) {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap !important;
  min-width: 0; margin: 0; padding: 0; list-style: none; overflow: hidden;
}
nav[class*="crumb"]:not([id="post-nav"]) li { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
nav[class*="crumb"]:not([id="post-nav"]) a { color: inherit; opacity: 0.62; text-decoration: none; flex: 0 0 auto; }
nav[class*="crumb"]:not([id="post-nav"]) a:hover { opacity: 1; }
nav[class*="crumb"]:not([id="post-nav"]) [aria-hidden="true"] { opacity: 0.35; flex: 0 0 auto; }
nav[class*="crumb"]:not([id="post-nav"]) [aria-current="page"],
nav[class*="crumb"]:not([id="post-nav"]) > :last-child:not(a):not([aria-hidden="true"]),
nav[class*="crumb"]:not([id="post-nav"]) li:last-child {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 30ch; opacity: 0.85;
}
/* 面包屑在容器里时容器自己的 pt 归还(避免 28+28 叠;面包屑自带 pt28 呼吸) */
main:has(> nav[class*="crumb"]:first-child),
:is(main, body) > :is(div, section):has(> nav[class*="crumb"]:first-child) { padding-top: 0 !important; }

/* —— hero/壳层顶距:有面包屑的页面,面包屑之后的壳一律薄(呼吸已由面包屑给足) —— */
:is(section, article, header)[class*="hero"] { padding-top: 28px !important; }
body:has(nav[class*="crumb"]) :is(section, article, header)[class*="hero"]:not(:has(nav[class*="crumb"])) { padding-top: 8px !important; }
body:has(nav[class*="crumb"]) article:has(> [class*="hero"]):not(:has(nav[class*="crumb"])) { padding-top: 8px !important; }
/* 无面包屑页:strip/首容器与内嵌 hero 不许双层叠 28 */
section[class*="strip"] :is(article, section, header)[class*="hero"] { margin-top: 0 !important; padding-top: 8px !important; }
/* meta 行自身不背距 */
:is(.post-meta, .article-meta, .post-line, .post-head) { margin-top: 0 !important; }

/* ═══ clash-head-spec-v5(1011 无面包屑变体 header→meta 86px,离 80 红线差 6:strip 顶距再收) ═══ */
section[class*="strip"]:has(h1) { padding-top: 16px !important; }
