/* Panda 主题样式：自写。
   设计令牌与版式数值 = 实测 Halo PandaPRO 站点样式表得到（reset.css:2-125 / style.css），
   未复制其文件；栅格与工具类由官方 Bootstrap 5.1.3（MIT，见 assets/vendor/）承担。 */
:root {
  /* 灰阶与主色（实测 --gray-1..8、--blue） */
  --gray-1: #f7f7fb; --gray-2: #f3f3f4; --gray-3: #e7e8eb; --gray-4: #dcdee0;
  --gray-5: #c8c9cc; --gray-6: #a2a6b1; --gray-7: #424a57; --gray-8: #20232b;
  --primary-color: #3858F6; --red: #ea1414; --green: #34968e; --orange: #ff8338;
  /* 语义令牌 */
  --bg-primary: var(--primary-color);
  --color-dark: var(--gray-8); --color-secondary: var(--gray-7); --color-body: var(--gray-8);
  /* --border-light 之前**从没定义**：写 `border-color: var(--border-light)` 时变量无效，
     浏览器回退成 currentColor，hover 边框就变成正文深色（CDP 实测 rgb(32,35,43)）。 */
  --color-muted: var(--gray-6); --border-color: var(--gray-2); --border-light: var(--gray-2);
  --bg-body: var(--gray-1); --bg-card: #fff; --bg-light: var(--gray-2);
  --shadow: 0 0 10px rgb(0 0 0 / .04); --shadow-lg: 0 6px 18px rgb(0 0 0 / .08);
  /* 圆角阶梯（实测 5/7/9/15/999） */
  --border-radius-xs: 5px; --border-radius-sm: 7px; --border-radius-md: 9px;
  --border-radius-lg: 15px; --border-radius-max: 999px;
  --pd-max: 1180px; --pd-side: 300px; --pd-gap: 24px;
  --animation-duration-base: .3s; --animation-duration-fast: .2s;
}
/* 暗色令牌逐条照源站 reset.css 的 --dark-* 与 style.css 的 `.dark ...` 规则：
     body   → --dark-bg-body #18191A / 文字 --dark-color-body(gray-3)
     .card/.block → --dark-bg-secondary #242525，**边框同色**（暗色下不描边）
     .site-navbar/.site-footer → --dark-bg-white #000
     下拉菜单 → --dark-bg-dark #1f1f1f，二级 → --dark-bg-secondary
   之前我用了 --gray-2/--gray-4/自造边框色，且页脚写成卡片色，都与源站不符。 */
html[data-theme="dark"] {
  --color-dark: var(--gray-1);        /* = --dark-color-dark */
  --color-body: var(--gray-3);        /* = --dark-color-body（正文，比标题暗一档） */
  --color-secondary: var(--gray-2);   /* = --dark-color-secondary */
  --color-muted: var(--gray-6);       /* = --dark-color-muted */
  --border-color: #242525;            /* = --dark-bg-secondary（暗色不描边） */
  --bg-body: #18191A; --bg-card: #242525; --bg-light: #3d3e3e;
  --bg-dark: #1f1f1f;                 /* = --dark-bg-dark */
  --shadow: 0 0 10px rgb(0 0 0 / .3); --shadow-lg: 0 6px 18px rgb(0 0 0 / .45);
}
html[data-theme="dark"] .card, html[data-theme="dark"] .block,
html[data-theme="dark"] .widget.card { background-color: var(--bg-card); border-color: var(--bg-card); }
html[data-theme="dark"] .site-footer { background-color: #000; }   /* = --dark-bg-white */
html[data-theme="dark"] .pd-header .sub-menu { background-color: var(--bg-dark); }
html[data-theme="dark"] .pd-header .sub-menu .sub-menu { background-color: var(--bg-card); }
html[data-theme="dark"] .widget-cats .chip, html[data-theme="dark"] .widget-tags .chip { background-color: var(--bg-light); border-color: var(--bg-light); color: var(--color-muted); }   /* 源站暗色 chip 文字是 --dark-color-muted(gray-6)，不是 secondary */
html[data-theme="dark"] .widget-cats .chip:hover { border-color: var(--bg-light); color: var(--color-dark); }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg-body); color: var(--color-body);   /* 源站 body 用 --color-body，暗色是 gray-3 不是 gray-1 */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI",
    Arial, Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: .9375rem; line-height: 1.5;   /* 源站 reset.css `body{font-size:.9375rem}`，行高实测 22.5/15 = 1.5 */
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color var(--animation-duration-fast) ease-in-out; }
a:hover { color: var(--primary-color); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.35; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-muted { color: var(--color-muted) !important; }
.text-secondary { color: var(--color-secondary) !important; }
/* 字号阶梯照源站 reset.css：.text-xs/.8125 / .text-sm/.875 / .text-md/1.125 / .text-lg/1.25 /
   .text-xl/1.375 / .text-xxl/1.75，且 **<768 逐档下调**（xs→.75、md→1、lg→1.125、xl→1.25、xxl→1.5）。
   之前只写了一半，移动端没降档，卡片标题在小屏偏大。 */
.text-xs { font-size: .8125rem; }
.text-sm { font-size: .875rem; }
.text-md { font-size: 1.125rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.375rem; }
.text-xxl { font-size: 1.75rem; }
@media (max-width: 767.98px) {
  .text-xs { font-size: .75rem; }
  .text-md { font-size: 1rem; }
  .text-lg { font-size: 1.125rem; }
  .text-xl { font-size: 1.25rem; }
  .text-xxl { font-size: 1.5rem; }
}
.font-number { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* 行锁（实测 h-1x / h-2x 用 -webkit-line-clamp） */
.h-1x, .h-2x { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.h-1x { -webkit-line-clamp: 1; line-clamp: 1; }
.h-2x { -webkit-line-clamp: 2; line-clamp: 2; }

/* 版式骨架：照源站 Bootstrap 5 的 `.container` + `.row.gx-xl-3` + `col-xl-8 / col-xl-4`。
   容器宽度取 Bootstrap 官方断点值（实测 vendor/bootstrap.min.css：576→540、768→720、992→960、
   1200→1140、1400→1320），左右内边距 `.75rem`（=12px，Bootstrap `--bs-gutter-x` 的一半）。
   主区/侧栏 = col-xl-8 : col-xl-4 = **2:1**；列间距 `gx-xl-3` = 1rem = 16px。
   侧栏在源站是 `class="sidebar-site col-xl-4 d-none d-xl-block"`（modules/sidebar.html:1）——
   **<1200px 直接不渲染**，所以这里也整列隐藏，而不是折到主栏下面。 */
.pd-container { width: 100%; max-width: 100%; margin-inline: auto; padding-inline: 12px; }
/* 源站 <576 实测：`.container` padding 10px、`.row` margin -5px、`.col` padding 5px（10px 总沟槽），
   再叠加 `.list-grid-padding .list-item` 的 10px → 卡片宽 480（500 视口）。我之前固定 12px，卡片窄 4px。 */
@media (max-width: 575.98px) { .pd-container { padding-inline: 10px; } }
@media (min-width: 576px) { .pd-container { max-width: 540px; } }
@media (min-width: 768px) { .pd-container { max-width: 720px; } }
@media (min-width: 992px) { .pd-container { max-width: 960px; } }
@media (min-width: 1200px) { .pd-container { max-width: 1140px; } }
@media (min-width: 1400px) { .pd-container { max-width: 1320px; } }
/* 源站 `.site-main.h-v-75` → 主区最小高度 75vh */
/* 源站 `.site-main { padding: 2.25rem 0 }`（<768 降为 `1rem 0`），即**上 36px**、下 36px；
   我之前用 24px，导致首屏整体上移 12px（CDP 实测：源站横幅 y=115，我 103）。 */
.pd-main { padding: 2.25rem 0; min-height: 75vh; }
@media (max-width: 767.98px) { .pd-main { padding: 1rem 0; } }
/* 主/侧栏比例以**实测为准**：CDP 在源站 1440 宽下量到
     `.row` 1312 → `.col-xl-8` 918（内容 902）、`.sidebar-site` 394（内容 378），即 **主 70% / 侧 30%**、
     列间 8px、两侧各 8px padding（Bootstrap `gx-xl-3`）。不是常见的 8:4=2:1。 */
.pd-layout { display: grid; grid-template-columns: minmax(0, 70fr) minmax(0, 30fr); gap: 8px; align-items: start; }
.pd-col-main { min-width: 0; }
.pd-col-side { padding-left: 8px; }   /* 对齐源站侧栏列的 gutter */
.pd-col-side.is-sticky { position: sticky; top: var(--pd-gap); }

/* 卡片容器（实测 .block） */
.block {
  position: relative; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm); transition: all var(--animation-duration-base) ease-in-out;
}

/* 页脚：照源站 modules/footer.html ——
   .site-footer 白底 + py-3/4；.footer-content 两端对齐；.footer-menu 横排、li 之间 4px 圆点分隔；
   .footer-copyright 小字灰色。移动端整体居中。 */
.site-footer { padding: 1.5rem 0; background: var(--bg-card); }   /* 源站实测 padding-block 24px */
.site-footer .footer-content { display: flex; flex: 1 1 auto; justify-content: space-between; align-items: center; }
.site-footer .footer-menu { display: flex; flex-wrap: wrap; }
.site-footer .footer-menu li {
  position: relative; margin: .25rem 1rem .25rem 0; padding: 0 1rem 0 0;
}
.site-footer .footer-menu li:last-child { margin-right: 0; padding-right: 0; }
.site-footer .footer-menu li::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 4px; height: 4px;
  margin-top: -2px; border-radius: 10px; background: var(--border-color);
}
.site-footer .footer-menu li:last-child::after { display: none; }
.site-footer .footer-menu li a { display: block; }   /* 源站不设颜色 → 继承 body 深色 rgb(32,35,43)；我之前写成 muted，页脚公司名比源站浅 */
.site-footer .footer-menu li a:hover { color: var(--primary-color); }
/* 源站：`footer > .footer-content.mb-4.mb-md-3` + `.footer-copyright.text-xs.text-muted`
   —— 上间距来自 content 的 **下外边距**（移动 1.5rem / ≥768 1rem），不是 copyright 的上外边距；
   字号走 `.text-xs`（≥768 为 .8125rem、<768 为 .75rem）。我原来两项都写反了，页脚矮 5px（移动端矮 12px）。 */
.site-footer .footer-content { margin-bottom: 1rem; }
.footer-copyright { margin-top: 0; font-size: .8125rem; color: var(--color-muted); }
/* Bootstrap 自带 `.text-dark{color:...!important}`（#212529），不带 !important 盖不住；
   源站 reset.css 也是用同名工具类把它改成 --color-dark（gray-8 #20232b），这里同样加 !important。 */
.text-dark { color: var(--color-dark) !important; }
.footer-copyright a { color: inherit; }
.footer-copyright a:hover { color: var(--primary-color); }

/* 返回顶部：照源站 .totop-progress-parent（46px 固定右下，环形进度 + 上箭头） */
.totop-progress-parent {
  position: fixed; right: 30px; bottom: 30px; width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center; color: var(--primary-color); cursor: pointer;
  border-radius: 50px; font-size: 1.5rem;   /* 源站 .totop-progress-parent（移动端 1.125rem，见下方媒体查询） */
  background: none; border: 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s linear, transform .2s linear, visibility .2s linear; z-index: 40;
}
.totop-progress-parent.backto-top-active { opacity: 1; visibility: visible; transform: translateY(0); }
.totop-progress-parent svg.back-circle { position: absolute; inset: 0; }
.totop-progress-parent svg.back-circle path { fill: none; stroke: var(--border-color); stroke-width: 5; }
.totop-progress-parent .progress-ring { fill: none; stroke: var(--primary-color); stroke-width: 5;
  stroke-dasharray: 308; stroke-dashoffset: 308; transition: stroke-dashoffset .2s linear; }
.totop-progress-parent span { display: grid; place-items: center; }
.totop-progress-parent span svg { width: 1em; height: 1em; }   /* 跟随 font-size：桌面 24px / 移动 18px */

/* 页头（实测 .site-navbar） */
/* 页头：照源站 .site-navbar —— 默认静态、padding .75rem、白底+阴影、transition all .3s；
   滚动后加 .navbar-sticky 变 fixed + padding .25rem + 80% 透明底 + 毛玻璃。 */
.pd-header.site-navbar { position: relative; padding-block: .75rem; background: var(--bg-card); box-shadow: var(--shadow); transition: all .3s ease-in-out; }   /* 源站 .navbar 基础 position:relative */
/* 源站 `.site-navbar.navbar-sticky` 是**全局规则**（虽然紧跟在 `@media(min-width:768px) and …` 块后面，
   但那个块已经闭合了 —— 我一开始误以为它在媒体查询里，加了 ≥768 的约束，结果移动端不吸顶，
   而源站实测 500 视口滚动后是会 fixed 的（h 48 / padding 4px / blur 6px）。 */
.pd-header.site-navbar.navbar-sticky {
  position: fixed; inset-inline: 0; top: 0; z-index: 99; padding-block: .25rem;
  background-color: rgb(255 255 255 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(6px); backdrop-filter: saturate(180%) blur(6px);
}
html[data-theme="dark"] .pd-header.site-navbar.navbar-sticky { background-color: rgb(0 0 0 / .8); }
.pd-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
/* 源站靠 `ul.navbar-nav.me-auto` 把右侧动作区推到最右，元素间没有 gap —— 间距来自 logo 后的
   ms-lg-5（导航 3rem）与各项自身 padding。CDP 实测：源站 brand 右缘 189 → 导航盒 237。 */
.navbar-brand { display: inline-flex; align-items: center; margin: 0; padding: 0; flex: none; }
/* logo 尺寸照源站 .navbar-brand .logo：base max-height 55px，md 45px，sm max-width 135 / max-height 40 */
.navbar-brand .logo { display: block; width: auto; height: auto; max-width: 135px; max-height: 55px; }
/* 浅/深两套 logo 互斥：`html[data-theme=dark]` 时换深色版。
   **注意选择器权重**：上面 `.navbar-brand .logo { display:block }` 是 (0,2,0)，
   光写 `.dark-logo { display:none }` 是 (0,1,0) 会被压掉 —— 之前就是这样，
   结果浅色下两张 logo 并排渲染，品牌区宽度翻倍（CDP 实测 234px，源站 117px）。 */
.navbar-brand .logo.dark-logo { display: none; }
html[data-theme="dark"] .navbar-brand .logo.light-logo { display: none; }
html[data-theme="dark"] .navbar-brand .logo.dark-logo { display: block; }
.navbar-site { flex: 0 0 auto; margin-right: auto; }   /* = 源站 `.navbar-nav.me-auto`：宽度随内容，右外边距吃掉剩余空间（我之前 flex-grow 拉到 967px） */
/* 源站 `ul.navbar-site.navbar-nav.me-auto.ms-lg-5`（modules/header.html:17）：
   ≥992 上 margin-left 3rem（Bootstrap ms-lg-5），`me-auto` 把右侧动作区推到最右。 */
@media (min-width: 992px) { .navbar-site { margin-left: 3rem; } }
.nav-list { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }   /* 间距由项内 padding 提供 */
.menu-item { position: relative; }
.menu-item > a { display: inline-block; font-size: 1rem; color: var(--color-secondary); padding: .75rem .5rem; }
/* 源站：`.navbar-site li a` 是 **次级灰**， hover 与「当前栏目」才转深色（`--color-dark`），
   **没有蓝色高亮、也不加粗**。我之前用主色+600 是自造的，已改回源站行为。 */
.menu-item > a:hover, .menu-item.is-active > a { color: var(--color-dark); }
/* 源站**不区分当前页**（实测 6 个导航项都没有 active/current 类与 aria-current），
   所以这里不再改色/加粗；`aria-current="page"` 属性保留，只服务读屏，不影响观感。 */
.sub-menu {
  display: none; position: absolute; z-index: 30; top: 100%; left: 0; min-width: 160px;
  padding: 8px; margin: 0; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm); box-shadow: var(--shadow-lg);
}
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { display: block; }
/* 下拉箭头：源站 `.menu-item-has-children > a .menu-sign` —— 6×6 方块，只留左/下边框，旋转 45° 成「∨」，
   opacity .3；悬停 rotate 135° 并下移 2px。一级有下级的项右侧留 1.25rem 给它。 */
/* 源站：`.navbar-site > li { margin-right: .5rem }`，末项 0；有下级的项改为 1.25rem（给下拉箭头留位）。
   我漏了基础那 8px，导航整体比源站窄 52px。 */
/* 注意层级：我的 DOM 是 `nav.navbar-site > ul.nav-list > li.menu-item`，
   所以选择器要落在 `.nav-list > .menu-item`（写成 `.navbar-site > .menu-item` 一条都不匹配，
   之前那 8px 项间距和 1.25rem 箭头位其实从未生效）。 */
.nav-list > .menu-item { margin-right: .5rem; }
.nav-list > .menu-item:last-child { margin-right: 0; }
.nav-list > .menu-item-has-children { margin-right: 1.25rem; }
.menu-item-has-children > a { position: relative; }
.menu-sign {
  position: absolute; top: 50%; right: -6px; width: 6px; height: 6px; margin-top: -3px;
  opacity: .3; transition: all .3s ease;
}
.menu-sign::after {
  content: ""; display: block; width: 6px; height: 6px;
  border-left: 1px solid #000; border-bottom: 1px solid #000;
  transform: rotate(-45deg);
}
.menu-item-has-children > a:hover .menu-sign { margin-top: -1px; }
.menu-item-has-children > a:hover .menu-sign::after { transform: rotate(135deg); }
html[data-theme="dark"] .menu-sign::after { border-left-color: #fff; border-bottom-color: #fff; }
.header-tools { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }   /* = me-auto */
/* 页头圆钮照源站 .btn-icon.btn-sm = 2.1875rem(35px)；.btn-link 形态＝无边框透明底、muted 色。
   用户按钮走源站 header.html:43 的 .btn-primary（实心主色圆钮）。 */
.btn-icon {
  display: inline-grid; place-items: center; width: 2.1875rem; height: 2.1875rem; padding: 0;
  color: var(--color-muted); font: inherit; font-size: 1.25rem; background: none; border: 1px solid transparent;
  border-radius: 80px; cursor: pointer;   /* 源站 .btn-icon.btn-sm 的 font-size 1.25rem */
}
.btn-icon.is-primary { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }
.btn-icon.is-primary:hover { color: #fff; background: var(--primary-color); filter: brightness(1.08); }
.btn-icon svg { width: 20px; height: 20px; }   /* 源站 .btn-icon.btn-sm 的 font-size 1.25rem = 20px 字形 */
.btn-icon:hover { border-color: var(--primary-color); color: var(--primary-color); }
html[data-theme="dark"] .btn-icon { color: var(--color-dark); }
.aside-toggle { display: none; }
.site-cart-count { font-size: .7em; }

/* 列表卡片（实测 post-card.html 的 DOM） */
/* 列表卡片：照源站 `.list-grid.list-grid-padding` ——
   每张卡片是**独立的 .block**（白底 + 1px 边框 + 7px 圆角 + 1rem 内边距 + 1rem 间距），
   不是「一张大卡里用分隔线切条」。旧实现是后者，与源站视觉不同，已改成前者。
   移动端照源站压到 .625rem（见 767 断点）。 */
/* 列表容器/卡片：类名与规则照源站
     `#post-list.list-grid.list-grid-padding`（index.html:19）
     `.list-grid` 是 block 流，卡片之间 `.list-item { margin-bottom: 1rem }`
     `.list-grid-padding .list-item { padding: 1rem }`，缩略图右上外距桌面 1.25rem / 移动 .625rem */
.list-grid { display: block; }
.list-grid > .list-item { margin-bottom: 1rem; }
.list-grid > .list-item:last-child { margin-bottom: 0; }
.list-grid-padding > .list-item { padding: 1rem; }
.list-item { display: flex; flex-direction: row; gap: 0; min-width: 0; word-wrap: break-word; }
/* 宽度对齐源站 post-card 的 col-5 / col-md-4 / col-lg-3（Bootstrap 栏宽即 flex 基准） */
.list-item .media {
  position: relative; display: block; flex: 0 0 25%; overflow: hidden; padding: 0;
  border-radius: var(--border-radius-xs);
  margin-right: 1.25rem;   /* 源站 .list-grid.list-grid-padding .list-item > .media（桌面） */
}
/* 源站移动端：缩略图右外距 .625rem、摘要截到 **1 行**
   （`@media(max-width:767.98px){ .list-item .media{margin-right:.625rem} .list-desc .h-2x{-webkit-line-clamp:1} }`）。
   注意：这两条必须在**顶层**，之前我把它们插进了 `.list-item .media { }` 花括号里，
   整段 @media 被解析器丢弃 —— 移动端摘要一直截 2 行、缩略图外距也一直是 1.25rem。 */
@media (max-width: 767.98px) {
  .list-item .media { margin-right: .625rem; }
  .list-desc .h-2x { -webkit-line-clamp: 1; line-clamp: 1; }
}
.media-3x2::after { content: ""; display: block; padding-top: 66.66666%; }
.media .media-content { position: absolute; inset: 0; border: 0; border-radius: inherit; background-size: cover; background-position: center; }
.media .media-content img { width: 100%; height: 100%; object-fit: cover; }
.media .media-content { transition: all 300ms ease-in-out; }
.list-item:hover .media-content { transform: scale(1.05); }
.list-top-badge {
  position: absolute; top: 0; left: 0; padding: 2px 6px; color: #fff; background: var(--primary-color);
  font-size: 12px; font-weight: 600; border-radius: var(--border-radius-xs) 0 var(--border-radius-xs) 0;
}
/* 源站 .list-catname：left/top 贴角、12px/600、黑底 60%，只保留左上内直角 */
.list-catname {
  position: absolute; left: 0; top: 0; padding: 2px 6px; color: #fff; font-size: 12px; font-weight: 600;
  background: rgb(0 0 0 / .6); border-radius: inherit; border-top-right-radius: 0; border-bottom-left-radius: 0;
}
.list-content { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; padding: .25rem 0; min-width: 0; }
.list-body { flex: 1 1 auto; word-break: break-all; word-wrap: break-word; }
.list-title { margin: 0; color: inherit; word-break: break-all; line-height: 1.4; font-weight: 700; }   /* 源站是 h2 默认 700，我全局把标题压到 600 了 */   /* 源站实测 25.2px / 18px = 1.4 */
/* 不写 `display: block`：h2 本来就是 block，而写上会把上面的 `.h-2x{display:-webkit-box}` 压掉，
   两行截断（-webkit-line-clamp）就失效了 —— 这是 CDP 报 display flow-root→block 才发现的。 */
.list-desc { margin: .5rem 0 0; font-size: .9375rem; }
@media (min-width: 992px) { .list-desc { margin-top: 1rem; } }   /* = mt-lg-3 */
/* 外距/字号/颜色全部交给源站同款工具类（mt-2 mt-md-3 / text-xs / text-muted，Bootstrap 与本地都有），
   这里只补工具类覆盖不到的部分。 */
.list-footer { display: flex; align-items: center; gap: 12px; }
/* 作者块照源站 `a.d-flex.align-items-center` + `.flex-avatar.w-24`(24px) + `.h-1x` */
.list-author { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }

.list-author .flex-avatar, .flex-avatar.w-24 { width: 1.5rem; height: 1.5rem; overflow: hidden; }
@media (max-width: 767.98px) {  /* 必须写在基础规则**之后**，否则同权重会被后面的 1.5rem 覆盖 */
  .list-author .flex-avatar, .flex-avatar.w-24 { width: 20px; height: 20px; }
}
/* 源站 `.w-24` 是 24px（reset.css 1.5rem），**只在 <768 被覆盖成 20px**（style.css 的移动端块）。
   实测：1440 卡片页脚 24px、390 为 20px。 */
.list-author .flex-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.list-author .h-1x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-footer .flex-fill { flex: 1 1 auto; }
.flex-avatar {
  position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; line-height: 1; white-space: nowrap; border-radius: var(--border-radius-max);
  background: var(--bg-light); overflow: hidden;
}
.flex-avatar img { width: 100%; height: 100%; object-fit: cover; }
.flex-avatar--text { color: var(--primary-color); font-size: .875rem; font-weight: 600; }

/* 文章页（实测 .post / .post-content） */
.post { padding: 2rem; }
.post-title { font-size: 1.5rem; }
/* 元信息行（源站 post.html:19-42）：左侧「32px 圆形头像 + 作者名/日期两行」，右侧统计项（本主题无数据，不输出） */
.post-meta { display: flex; align-items: center; font-size: .8125rem; color: var(--color-muted); }
.post-meta-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.post-meta-author .flex-avatar { width: 32px; height: 32px; }
.post-meta-info { display: flex; flex-direction: column; line-height: 1.3; }
.post-meta-info .h-1x { color: var(--color-dark); font-size: .875rem; }
/* 正文与元信息之间的分隔线（源站 `.border-top border-light mt-3 pt-3`） */
.post-sep { margin: 16px 0; border-top: 1px solid var(--border-color); }
.post-content { position: relative; font-size: 1rem; line-height: 1.85; word-break: normal; word-wrap: break-word; }
.post-content h2 { margin: 1.8em 0 .8em; padding-bottom: .3em; border-bottom: 1px solid var(--border-color); font-size: 1.25em; color: var(--color-dark); }
.post-content h3 { margin: 1.5em 0 .6em; font-size: 1.1em; }
.post-content p { margin: 0 0 1.5rem; }
.post-content img { border-radius: var(--border-radius-xs); }
.post-content pre { position: relative; padding: 14px 16px; margin: 0 0 1.5rem; overflow-x: auto; background: var(--bg-light); border-radius: var(--border-radius-sm); font-size: .875rem; }
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.post-content blockquote { margin: 0 0 1.5rem; padding: 4px 0 4px 16px; border-left: 3px solid var(--primary-color); color: var(--color-muted); }
.post-content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.post-content th, .post-content td { padding: 8px 10px; border: 1px solid var(--border-color); text-align: left; }
/* 标签行：度量照源站 .post-tags a（.8125rem / .25rem .75rem / 圆角 100px / 淡主色底） */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.post-tags a {
  display: inline-block; padding: .25rem .75rem; font-size: .8125rem; border-radius: 100px;
  color: var(--primary-color); background: var(--bg-light); border: 1px solid var(--border-color);
}
.post-tags a:hover { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }
/* 推荐阅读：源站 post.html 是 .post-related.card（独立卡片），标题在 card-header 里 */
.post-related {
  margin-top: 16px; padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
}
.post-related-title { margin: 0 0 12px; font-size: 1.0625rem; color: var(--color-dark); }
.post-related .post-list { border: 0; }
.post-related .list-item:last-child { border-bottom: 0; }

/* 面包屑 / 小部件 / 分页 */
.site-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: .875rem; color: var(--color-muted); }
.site-breadcrumbs li + li::before { content: "/"; padding-right: 6px; }
/* 侧栏卡片：照源站 `.card`（白底 + --border-light 边框 + 7px 圆角 + hover 柔和阴影）
   与 `.card-header:first-child`(padding 1.25rem 1.25rem 0) / `.card-body`(padding 1.25rem)。 */
.widget { padding: 16px; margin-bottom: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); }
.card { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
  transition: all var(--animation-duration-base) ease-in-out; }
.card:hover { border-color: var(--border-color); box-shadow: 0 10px 30px 0 rgb(62 61 80 / 3%); }
.widget.card { padding: 0; margin-bottom: 16px; }
.card-header { padding: 1.25rem 1.25rem 0; margin-bottom: -.125rem; }
.card-body { padding: 1.25rem; }
.widget-title { margin: 0; line-height: 1.4; font-weight: 700;   /* 源站 reset.css: h1,h2{line-height:1.4} + 标题 font-weight:bolder(→700)；字号/颜色交给源站同款工具类 text-lg / text-dark */
  display: flex; align-items: center; gap: .25rem; }
.widget-title .widget-icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--primary-color); }
/* 源站 `.widget-tags`：同样是 flex + wrap + 外边距 -.25rem、li 内边距 .25rem，chip 复用分类那几个样式 */
.widget-tags { display: flex; flex-wrap: wrap; margin: -.25rem; }
.widget-tags li { padding: .25rem; }

/* 源站 `.widget-cats`：flex + wrap + 外边距 -.25rem；li 内边距 .25rem */
.widget-cats { display: flex; flex-wrap: wrap; margin: -.25rem; }
.widget-cats li { padding: .25rem; }
/* chips = 源站 `.btn.btn-outline-light.btn-sm`：7px 圆角、5px 10px 内边距、.875rem、淡灰底
   （--outline-light: rgba(38,38,38,.05)，文字 --color-secondary） */
/* 分类与标签用的是**同一套 chip**（源站两处都是 `btn btn-outline-light btn-sm`），
   所以选择器从 `.widget-cats .chip` 放宽到 `.chip`；只在侧栏两个 widget 内生效以免影响正文。 */
.widget-cats .chip, .widget-tags .chip {
  display: inline-flex; align-items: center; font-size: .875rem; line-height: 1.5;
  padding: .3125rem .625rem; border: 1px solid rgb(38 38 38 / .05);
  border-radius: var(--border-radius-sm); color: var(--color-secondary);
  background-color: rgb(38 38 38 / .05); text-decoration: none;
}
.widget-cats .chip:hover, .widget-tags .chip:hover { color: var(--color-dark); background-color: rgb(38 38 38 / .05); border-color: var(--gray-2); }
.widget-cats .chip small { position: relative; top: -2px; right: -4px; font-size: 65%;
  padding: .125rem .375rem; border-radius: var(--border-radius-max); background-color: rgb(38 38 38 / .06); }
.widget-list > li { padding: 4px 0; }
.widget-list > li.is-active > a { color: var(--primary-color); font-weight: 600; }
.widget-list .depth-2, .widget-sublist { padding-left: 16px; font-size: .9375rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }   /* 源站：无 gap，间距靠按钮 margin */
.pagination .space { padding: 0 4px; color: var(--color-muted); }

.term-header { margin-bottom: 16px; }
/* 标签页头通栏（源站 tag.html:9 的 h1 在 row 之外，字号 text-xxl） */
.term-title { margin: 0 0 16px; font-size: 1.6rem; color: var(--color-dark); }
.term-title sup { margin-left: 4px; font-size: .875rem; font-weight: 400; color: var(--color-muted); }
.term-title .term-icon { width: 1.35rem; height: 1.35rem; margin-right: 6px; vertical-align: -.2em; color: var(--primary-color); }
.term-desc { margin: 4px 0 0; font-size: .875rem; }
.empty-hint { padding: 32px 0; text-align: center; color: var(--color-muted); }

/* 移动侧栏抽屉：照源站 `.mobile-aside` / `.mobile-overflow` / `body.mobile-active`
   （源站 style.css 全写在 `@media(max-width:767.98px)` 里）：
     · 抽屉 fixed、整高、**18rem**（288px）、z-index **999**、**padding 0**（内距在 .aside-menu 的 1rem）
     · 遮罩 .mobile-overflow 全屏、rgba(0,0,0,.8)、blur 6px、默认 opacity 0 / visibility hidden
     · body.mobile-active 时遮罩显现、抽屉滑入、body overflow:hidden
   CDP 实测差异（改前）：宽 320→288、z 40→999、padding 20→0、无遮罩、body 没锁滚动。 */
.mobile-aside {
  position: fixed; inset: 0 auto 0 0; z-index: 999; display: flex; flex-direction: column;
  width: 20rem; padding: 0; background: var(--bg-card);
  transform: translateX(-100%); transition: all .2s ease-in-out;
}
.mobile-aside.is-open { transform: translateX(0%); }   /* 写成 translateX(0%) 而非 none：源站计算值就是 matrix(1,0,0,1,0,0) */
@media (max-width: 767.98px) { .mobile-aside { width: 18rem; } }   /* 源站移动端收窄到 18rem（288px） */
.mobile-aside[hidden] { display: none; }
.mobile-overflow {
  position: fixed; inset: 0; z-index: 998; background-color: rgb(0 0 0 / .8);
  -webkit-backdrop-filter: saturate(180%) blur(6px); backdrop-filter: saturate(180%) blur(6px);
  opacity: 0; visibility: hidden; transition: all .2s ease-in-out;
}
body.mobile-active { overflow: hidden; }
body.mobile-active .mobile-overflow { opacity: 1; visibility: visible; }
.aside-body { display: flex; flex-direction: column; height: 100%; overflow: auto; }
.aside-menu { padding: 1rem; }
.aside-menu > li { position: relative; padding: .5rem 0; }
.aside-menu > li > a { background-color: var(--bg-light); border-radius: var(--border-radius-xs); }
.aside-menu > li > a:hover { color: var(--primary-color); }
.aside-menu li a { position: relative; display: block; padding: .75rem 1rem; transition: all .3s; }
.aside-menu > li > ul { display: none; background-color: var(--bg-light); border-radius: var(--border-radius-xs); }
.aside-menu > li.is-open > ul, .aside-menu > li.menu-item-has-children.is-open > ul { display: block; }
.aside-menu li > ul li { padding-top: 0; padding-bottom: 0; }
.aside-menu li > ul li a { padding: .5rem 1rem; }
.aside-menu .menu-sign { position: absolute; right: 15px; top: 50%; height: 8px; width: 8px; margin-top: -4px; opacity: .3; }
.aside-menu .menu-sign::after { content: ""; display: block; height: 8px; width: 8px;
  border-left: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); transform: rotate(225deg); }
.aside-menu li a.is-open .menu-sign::after { transform: rotate(315deg); }
html[data-theme="dark"] .mobile-aside { background-color: var(--bg-dark); }
html[data-theme="dark"] .aside-menu > li > a,
html[data-theme="dark"] .aside-menu > li > ul { background-color: var(--bg-light); }
html[data-theme="dark"] .aside-menu .menu-sign::after { border-left-color: #fff; border-bottom-color: #fff; }

/* 页脚 */
.pd-footer { margin-top: 40px; padding-block: 24px; background: var(--bg-card); border-top: 1px solid var(--border-color); }

/* 响应式：与 pandapro 的 Bootstrap 断点一致（xl=1200 收侧栏，md=768 改列宽） */
/* 断点照源站 `header.site-navbar.navbar.navbar-expand-xl`（Bootstrap）：
   ≥1200 出主菜单（`.navbar-site`）、藏汉堡（`.aside-toggle`）、出用户钮（`.d-none.d-xl-block`）；
   <1200 反过来。源站汉堡是 `d-xl-none`、用户钮是 `d-none d-xl-block`（modules/header.html:40,44）。 */
@media (max-width: 1199.98px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); }
  .pd-col-side { display: none; }   /* 源站 aside 是 d-none d-xl-block */
  .navbar-site { display: none; }
  .navbar-site.is-open { display: block; }
  .aside-toggle { display: inline-grid; }
  .pd-header .btn-icon.is-primary { display: none; }
}
@media (max-width: 991.98px) {
  .navbar-brand .logo { max-height: 45px; }
  .list-item .media { flex: 0 0 33.3333%; }   /* col-md-4 */
  .nav-list { flex-direction: column; align-items: flex-start; }
  .sub-menu { position: static; display: block; border: 0; background: none; box-shadow: none; padding-left: 14px; }
}
@media (max-width: 767.98px) {
  :root { --pd-gap: 14px; }
  .site-footer { padding: 1rem 0; text-align: center; }   /* 源站移动端实测 16px */
  .site-footer .footer-content { margin-bottom: 1.5rem; }   /* = 源站 mb-4 */
  .footer-copyright { font-size: .75rem; }                 /* = text-xs 的 <768 档 */
  .site-footer .footer-content { flex-direction: column; }
  .site-footer .footer-menu { justify-content: center; margin-bottom: 1rem; }
  .site-footer .footer-menu li { margin: .25rem; padding: 0 .5rem; }
  .site-footer .footer-menu li::after { display: none; }
  .totop-progress-parent { right: 15px; bottom: 60px; width: 40px; height: 40px; font-size: 1.125rem; }   /* 源站移动端 18px */
  .navbar-brand .logo { max-height: 40px; max-width: 135px; }
  .pd-header.site-navbar { padding-block: .5rem; }
  .list-grid > .list-item { margin-bottom: .625rem; }
  .list-grid-padding > .list-item { padding: .625rem; }   /* 源站移动端 .625rem */
  .list-item .media { flex: 0 0 41.6667%; margin-right: .625rem; }   /* col-5 + 源站 .625rem 间距 */
  .list-content { padding: 0; }
  .post { padding: 1.25rem; }
  .post-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 搜索页 / 404 */
.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 8px 12px; font: inherit; color: var(--color-dark);
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.term-section { margin-bottom: 28px; }
.term-section h2 { margin: 0 0 12px; font-size: 1.125rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.product-card { padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); }
/* 404 对齐源站 error/404.html：在 75vh 里垂直居中，大号警示图标 + h1 + 说明 */
.error-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 75vh; padding: 40px 24px; text-align: center;
}
.error-icon { width: 64px; height: 64px; color: var(--primary-color); }
.error-title { margin: 14px 0 6px; font-size: 1.35rem; color: var(--color-dark); }
.error-detail { margin: 0 0 16px; font-size: .9375rem; }
.error-back a { color: var(--primary-color); }

/* 首屏大图（pandapro index 顶部 hero） */
/* 首屏横幅：照源站 modules/banners.html —— `.swiper.rounded-2 > .media.media-3x1.custom-hover`。
   比例 33%（media-3x1）；Bootstrap `.rounded-2` = .5rem = 8px；`.custom-hover` 悬停把图片放大到 1.05。 */
.hero { overflow: hidden; margin-bottom: 1rem; border-radius: 7px; }   /* 源站 .swiper.rounded-2 实测 7px，不是 Bootstrap 默认的 8px */   /* = 源站 `.banner-section mb-md-3`（1rem），我之前写成 0 */
.hero-link { position: relative; display: block; overflow: hidden; border-radius: inherit; }
.hero-image { display: block; width: 100%; height: auto;   /* 源站实测：横幅高度 = 图片自身比例（1200×396 → 297.7px），
   不是写死 3:1（那会得 300.5px）。`media-3x1` 的 33.33% 在源站并没有生效，img 撑开了 .media。 */
  transition: transform .3s ease-in-out; }
.hero-link:hover .hero-image { transform: scale(1.05); }
/* 多图轮播（源站 swiper 的等价实现）：横向 scroll-snap + 圆点 */
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track > .hero-link { flex: 0 0 100%; scroll-snap-align: start; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 8px; height: 8px; padding: 0; background: rgb(255 255 255 / .55); border: 0;
  border-radius: 50%; cursor: pointer; transition: all .2s ease-in-out; }
.hero-dot.is-active { width: 20px; border-radius: 999px; background: #fff; }

/* 侧栏资料卡（pandapro widgets/profile） */
/* 资料卡对齐源站 widgets/profile.html：cover 是 media-2x1（50% 高）的封面带，
   头像绝对定位在 meta 容器顶边中线上（translate(-50%,-50%)），meta 顶部留 44px 避开头像。 */
.widget-profile { padding: 0; text-align: center; overflow: hidden; }   /* 源站 `.widget-author` 无 padding，内距在 `.widget-author-meta` 上 */
.profile-cover {
  position: relative; padding-top: 50%; background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #6b8cff 55%, #a9b8ff 100%);
}
.profile-cover.has-image { background-size: cover; background-position: center; }
.profile-meta { position: relative; padding: 56px 32px 32px; }   /* 源站 .widget-author-meta */
.profile-avatar {
  position: absolute; left: 50%; top: 0; width: 5rem; height: 5rem; transform: translate(-50%, -50%);   /* 源站 .w-80 = 5rem */
  object-fit: cover; border: 3px solid var(--bg-card);
  border-radius: 100%; box-shadow: var(--shadow);   /* 源站 .flex-avatar 用 border-radius: 100% */
}
.profile-avatar--text { display: grid; place-items: center; font-size: 1.4rem; font-weight: 600; color: var(--primary-color); }
.profile-name { margin: 10px 0 4px; }   /* 字号走 .text-md（1.125rem，<768 降 1rem） */
.profile-desc { margin: .5rem 0 0; color: var(--color-muted); }   /* 字号走 .text-sm；间距 = 源站 .mt-2(.5rem) */

/* 分类目录 chips（pandapro widgets/categories 的观感） */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip a {
  display: inline-block; padding: 3px 12px; font-size: .8125rem;
  background: var(--bg-body); border: 1px solid var(--border-color); border-radius: var(--border-radius-max);
}
.chip a:hover { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }

/* 圆形分页（pandapro modules/pagination） */
nav.pagination { margin-top: 1rem; }   /* = 源站 nav#pagination mt-3 mt-md-4 */
@media (min-width: 768px) { nav.pagination { margin-top: 1.5rem; } }
/* 分页按钮照源站 `.pagination .page-number/.extend`：
   2.5rem 见方、`padding: 0 .375rem`、`margin: .25rem`、**`border-radius: 100%`（圆形）**、
   底 `--btn-light`(=gray-2 #f3f3f4)、字 `--color-muted`；hover 与当前页变主色实心。
   我之前是 34px 圆角矩形 + 1px 描边 + 6px gap，形状和间距都不对。 */
.pagination .page-number, .pagination .extend, .pagination .space {
  display: flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .375rem; margin: .25rem; text-align: center;
  background: #f3f3f4; color: var(--color-muted); border: 0; border-radius: 100%;
  font-size: .875rem;
}
.pagination .space { min-width: auto; background: transparent; border-radius: 0; }
.pagination .page-number:hover, .pagination .extend:hover, .pagination .page-number.current { color: #fff; background: var(--primary-color); }
html[data-theme="dark"] .pagination .page-number, html[data-theme="dark"] .pagination .extend { background: var(--bg-light); color: var(--color-muted); }
html[data-theme="dark"] .pagination .page-number:hover, html[data-theme="dark"] .pagination .extend:hover, html[data-theme="dark"] .pagination .page-number.current { color: #fff; background: var(--primary-color); }
.pagination svg { width: 1rem; height: 1rem; }

/* 目录（pandapro widgets/toc 观感：左侧竖线 + 层级缩进） */
.widget-toc[hidden] { display: none; }
.toc-list { max-height: 60vh; overflow-y: auto; border-left: 2px solid var(--border-color); }
.toc-list li { padding: 3px 0 3px 14px; font-size: .875rem; line-height: 1.5; }
.toc-list .toc-h3 { padding-left: 28px; font-size: .8125rem; }
.toc-list a { color: var(--color-muted); }
.toc-list a:hover { color: var(--primary-color); }

/* 无封面时（站内媒体库尚无封面，见上游 #4042）分类信息改用标题前的小 chip，保证信息不丢 */
.list-catname-inline {
  display: inline-block; margin-bottom: 6px; padding: 1px 8px; font-size: .75rem;
  color: var(--primary-color); background: var(--bg-light);
  border-radius: var(--border-radius-max);
}

/* ── 对齐 pandapro 的交互细节（实测取自其 style.css）────────────────────
   .block:hover { border-color: var(--border-light); box-shadow: 0 10px 30px rgba(62 61 80/.03) }
   .site-navbar.navbar-sticky → 见文件上方「页头」一节：**照源站用滚动监听加类名**（panda.js initStickyHeader），
       不是常驻 sticky；padding 收紧/半透明/毛玻璃都在那条规则里。
   .navbar-site li ul.sub-menu { top:115%; min-width:220px; padding:.5rem }
   .navbar-site li ul.sub-menu li a { display:block; padding:.75rem; color: var(--color-muted) }
   .dark .site-navbar { background-color: var(--dark-bg-white)  → #000 }   */
/* 旧实现是常驻 sticky，已改为源站的「滚动后才吸顶」 */
html[data-theme="dark"] .pd-header.site-navbar { background-color: #000; color: #242525; }   /* 源站 .dark .site-navbar */

.block { transition: border-color var(--animation-duration-base) ease-in-out, box-shadow var(--animation-duration-base) ease-in-out; }
.block:hover { border-color: var(--border-light); box-shadow: 0 10px 30px 0 rgb(62 61 80 / 3%); }
/* 源站 hover **不改边框色**（默认就是 --border-light = gray-2），只加柔和阴影。我之前写成 gray-3，hover 时边框变深一档。 */
html[data-theme="dark"] .block:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

.pd-header .sub-menu { top: 115%; min-width: 220px; padding: .5rem; }
.pd-header .sub-menu .menu-item a { display: block; padding: .75rem; color: var(--color-muted); }
.pd-header .sub-menu .menu-item a:hover { color: var(--primary-color); }
.pd-header .sub-menu .sub-menu { top: 100%; left: -10px; }

/* 吸顶后不遮挡锚点跳转的标题 */
.post-content h2, .post-content h3 { scroll-margin-top: 84px; }

/* 栏目页头（对齐 pandapro .archive-poster / .media-3x1 / .heading-content） */
.archive-poster { position: relative; margin-bottom: 16px; overflow: hidden; }
.archive-poster .media-3x1 { padding-top: 33%; min-height: 96px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6b8cff 55%, var(--bg-light) 100%); }
.archive-poster .heading-content { position: absolute; left: 20px; right: 20px; bottom: 14px; }
.poster-title { margin: 0; color: #fff; font-size: 1.5rem; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.poster-title sup { margin-left: 4px; font-size: .875rem; font-weight: 400; opacity: .85; }
.poster-desc { margin: 4px 0 0; color: rgba(255,255,255,.85); font-size: .875rem; }
