/* ==========================================================================
   星轨博客 · UI 增强层 (enhance.css)  v1.3.22-plus
   --------------------------------------------------------------------------
   设计原则：
   1. 克制 —— 不做科幻/发光/霓虹，延续二次元清新 + 编辑式排版的调性
   2. 无侵入 —— 只做视觉与排版增强，不改动任何 HTML 结构与业务逻辑
   3. 主题跟随 —— 全部走 CSS 变量，自动适配亮色 / 暗色 / 自定义主题色
   4. 渐进增强 —— JS 未加载时页面依然完整可用
   ========================================================================== */

/* ==========================================================================
   1. 顶部滚动进度条
   ========================================================================== */
.zb-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light, var(--primary)));
    z-index: 9999;
    pointer-events: none;
    transition: width 0.08s linear, opacity 0.3s ease;
    opacity: 0;
}
.zb-scroll-progress.visible { opacity: 1; }

/* ==========================================================================
   2. 导航栏滚动态 —— 滚动后收紧、加实、加投影，提升层次
   ========================================================================== */
.navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .navbar.is-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* 导航菜单项：下划线滑入，比单纯变色更有质感 */
.navbar-menu > li > a {
    position: relative;
}
.navbar-menu > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-menu > li > a:hover::after,
.navbar-menu > li > a.active::after {
    width: 60%;
}

/* 搜索框聚焦：轻微放大 + 主题色描边 */
.navbar-search {
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.navbar-search:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

/* ==========================================================================
   3. 文章卡片精细化
   ========================================================================== */
.post-card {
    border: 1px solid var(--border-color-light);
}
.post-card:hover {
    border-color: rgba(var(--primary-rgb), 0.28);
}

/* 封面：hover 缓慢推近 + 底部渐变压字，保证标题可读 */
.post-cover img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.post-card:hover .post-cover img {
    transform: scale(1.06);
}
.post-card:hover .post-cover::after {
    opacity: 1;
}

/* 置顶徽标：柔和不刺眼 */
.sticky-badge {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.02em;
}

/* 标题：两行截断，行高收紧，视觉更稳 */
.post-title {
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a {
    transition: color 0.2s ease;
}

/* 摘要：三行截断，颜色降一档，避免和标题抢注意力 */
.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

/* meta 行：图标统一宽度对齐，数字用等宽感 */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--text-tertiary);
}
.post-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.post-meta i {
    font-size: 12px;
    opacity: 0.85;
}

/* 分类徽标 */
.category-badge {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 阅读时长徽标（新） */
.read-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   4. 正文排版 —— 编辑式阅读体验
   ========================================================================== */
.article-content,
.post-content-text,
.entry-content {
    /* 中文正文：行高 1.8 是长时间阅读的舒适区 */
    line-height: 1.85;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    word-break: break-word;
}

.article-content p,
.entry-content p {
    margin: 0 0 1.15em;
}

/* 段落之间不留过大空白，保持呼吸感 */
.article-content > * + * {
    margin-top: 0.9em;
}

/* 引用块：左侧细线 + 淡背景，不喧宾夺主 */
.article-content blockquote {
    margin: 1.4em 0;
    padding: 0.85em 1.1em;
    border-left: 3px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    color: var(--text-secondary);
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 列表：缩进与符号对齐 */
.article-content ul,
.article-content ol {
    padding-left: 1.6em;
    margin: 1em 0;
}
.article-content li {
    margin-bottom: 0.45em;
}
.article-content li::marker {
    color: var(--primary);
}

/* 图片：圆角 + 居中 + 淡入 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin: 1.4em auto;
}

/* 图片说明文字 */
.article-content figcaption,
.article-content .img-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: -0.8em;
    margin-bottom: 1.4em;
}

/* 标题锚点：hover 时左侧浮现 # */
.article-content h2,
.article-content h3,
.article-content h4 {
    position: relative;
    scroll-margin-top: calc(var(--navbar-height) + 20px);
}
.zb-anchor {
    position: absolute;
    left: -0.8em;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: var(--primary);
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: 0.85em;
    user-select: none;
}
.article-content h2:hover .zb-anchor,
.article-content h3:hover .zb-anchor,
.article-content h4:hover .zb-anchor {
    opacity: 0.55;
}
.zb-anchor:hover {
    opacity: 1 !important;
}

/* 外链标记：灰蓝色小图标，提示将离开本站 */
.zb-external-link::after {
    content: '\f35d'; /* fa-arrow-up-right-from-square */
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 0.68em;
    margin-left: 0.35em;
    vertical-align: super;
    opacity: 0.55;
}

/* 表格：横向可滚动容器，避免撑破布局 */
.zb-table-wrap {
    overflow-x: auto;
    margin: 1.4em 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color-light);
    -webkit-overflow-scrolling: touch;
}
.zb-table-wrap table {
    margin: 0;
    min-width: 100%;
    border-collapse: collapse;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.article-content th,
.article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border-color-light);
    text-align: left;
}
.article-content thead th {
    background: var(--bg-hover);
    font-weight: 600;
}
.article-content tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}
[data-theme="dark"] .article-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

/* 分割线：柔和 */
.article-content hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2em 0;
}

/* ==========================================================================
   5. 图片懒加载 —— 模糊到清晰的淡入
   ========================================================================== */
.zb-img-fade {
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.zb-img-fade.is-loaded {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   6. 骨架屏 —— 首屏加载占位
   ========================================================================== */
.zb-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-hover);
    border-radius: var(--border-radius-sm);
}
.zb-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    animation: zb-shimmer 1.4s infinite;
}
[data-theme="dark"] .zb-skeleton::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
}
@keyframes zb-shimmer {
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   7. 滚动入场动画 —— 卡片依次浮现
   ========================================================================== */
.zb-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.zb-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
    .zb-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .zb-img-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   8. 回到顶部 —— 带阅读进度环
   ========================================================================== */
.zb-backtop {
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 900;
    color: var(--text-secondary);
}
.zb-backtop.is-show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.zb-backtop:hover {
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.zb-backtop svg {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}
.zb-backtop .zb-ring-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2.5;
}
.zb-backtop .zb-ring-fg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}
.zb-backtop i {
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   9. 代码块增强 —— 语言标签 + 复制按钮 + 折叠
   ========================================================================== */
.zb-code-block {
    position: relative;
    margin: 1.5em 0;
}
.zb-code-block pre {
    margin: 0;
}
.zb-code-lang {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 10px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 6px;
    border-top-right-radius: var(--border-radius-sm);
    pointer-events: none;
    user-select: none;
    font-family: var(--font-mono);
}
[data-theme="dark"] .zb-code-lang {
    background: rgba(255, 255, 255, 0.07);
}
.zb-code-copy {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-theme="dark"] .zb-code-copy {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}
.zb-code-block:hover .zb-code-copy {
    opacity: 1;
}
.zb-code-copy:hover {
    background: var(--primary);
    color: #fff;
}
.zb-code-copy.copied {
    background: var(--success);
    color: #fff;
    opacity: 1;
}
/* 有语言标签时，复制按钮往左让位 */
.zb-code-block.has-lang .zb-code-copy {
    right: auto;
    left: 6px;
}

/* 行内代码：保持朴素 */
.article-content code:not(pre code) {
    padding: 0.15em 0.42em;
    background: rgba(var(--primary-rgb), 0.09);
    color: var(--primary-dark, var(--primary));
    border-radius: 5px;
    font-size: 0.9em;
    font-family: var(--font-mono);
}

/* ==========================================================================
   10. 侧边栏小工具
   ========================================================================== */
.widget, .sidebar-widget {
    border: 1px solid var(--border-color-light);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.widget:hover, .sidebar-widget:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* 标签云：胶囊更圆润 */
.tag-cloud a, .tag-list a {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tag-cloud a:hover, .tag-list a:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   11. 评论区层次
   ========================================================================== */
.comment-item, .comment {
    transition: background-color 0.25s ease;
}
.comment-item:hover, .comment:hover {
    background: rgba(var(--primary-rgb), 0.025);
}
/* 楼中楼缩进引导线 */
.comment-children {
    border-left: 2px solid var(--border-color-light);
    padding-left: 14px;
    margin-left: 6px;
}

/* ==========================================================================
   12. 按钮微交互 —— 点击涟漪
   ========================================================================== */
.zb-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: zb-ripple-out 0.55s ease-out forwards;
    pointer-events: none;
}
@keyframes zb-ripple-out {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}
.btn, .btn-primary, .btn-secondary, .action-btn, .submit-btn {
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   13. 快捷键面板
   ========================================================================== */
.zb-shortcut-panel {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.zb-shortcut-panel.is-open {
    opacity: 1;
    visibility: visible;
}
.zb-shortcut-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 26px 30px;
    width: min(420px, 90vw);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.zb-shortcut-panel.is-open .zb-shortcut-box {
    transform: none;
}
.zb-shortcut-box h3 {
    margin: 0 0 18px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zb-shortcut-box h3 i { color: var(--primary); }
.zb-shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.zb-shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 2px;
    border-bottom: 1px solid var(--border-color-light);
    font-size: 14px;
}
.zb-shortcut-row:last-child { border-bottom: none; }
.zb-shortcut-row span { color: var(--text-secondary); }
kbd {
    display: inline-block;
    min-width: 24px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 6px;
    line-height: 1.4;
}
.zb-shortcut-hint {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

/* ==========================================================================
   14. 移动端文章大纲浮动按钮
   ========================================================================== */
.zb-toc-fab {
    position: fixed;
    right: 16px;
    bottom: 140px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 890;
    cursor: pointer;
}
.zb-toc-fab.is-show { display: flex; }
.zb-toc-fab.is-active { color: var(--primary); }

.zb-toc-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    z-index: 950;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow-y: auto;
    padding: 20px 18px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.zb-toc-drawer.is-open { transform: none; }
.zb-toc-drawer-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zb-toc-drawer-title i { color: var(--primary); }
.zb-toc-drawer .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.zb-toc-drawer .toc-list li { margin-bottom: 2px; }
.zb-toc-drawer .toc-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.zb-toc-drawer .toc-list a:hover,
.zb-toc-drawer .toc-list a.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}
.zb-toc-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 940;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.zb-toc-mask.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   15. 空状态与分页
   ========================================================================== */
.empty-state {
    padding: 48px 20px;
}
.empty-state .icon {
    font-size: 42px;
    color: var(--text-tertiary);
    opacity: 0.6;
    margin-bottom: 12px;
}

/* 分页按钮 */
.pagination a, .pagination span, .page-numbers {
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pagination a:hover, .page-numbers:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   16. 页脚
   ========================================================================== */
.site-footer, .footer {
    border-top: 1px solid var(--border-color-light);
}
.site-footer a:hover, .footer a:hover {
    color: var(--primary);
}

/* ==========================================================================
   17. Toast 微调
   ========================================================================== */
.toast, .zb-toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   18. 移动端适配与安全区
   ========================================================================== */
@media (max-width: 768px) {
    .zb-backtop {
        right: 14px;
        bottom: calc(80px + env(safe-area-inset-bottom));
        width: 40px;
        height: 40px;
    }
    .zb-backtop svg { width: 40px; height: 40px; }

    /* 移动端正文略缩，行高略放，更适合竖屏阅读 */
    .article-content,
    .entry-content {
        font-size: 15.5px;
        line-height: 1.8;
    }

    /* 移动端卡片不要上浮位移，避免与滚动冲突 */
    .post-card:hover {
        transform: none;
    }

    /* 代码块复制按钮常显（无 hover） */
    .zb-code-copy {
        opacity: 0.85;
    }
}

/* 大屏：正文限宽，保证单行字数在舒适区 */
@media (min-width: 1400px) {
    .article-content,
    .entry-content {
        max-width: 780px;
    }
}

/* ==========================================================================
   19. 打印样式 —— 文章可干净打印 / 存 PDF
   ========================================================================== */
@media print {
    .navbar, .zb-backtop, .zb-toc-fab, .zb-scroll-progress,
    .site-footer, .sidebar, .comment-form, .zb-code-copy,
    .action-bar, .mobile-nav {
        display: none !important;
    }
    .article-content {
        font-size: 12pt;
        line-height: 1.7;
    }
    .post-card, .article-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    a { color: #000 !important; text-decoration: underline; }
}

/* ==========================================================================
   20. 焦点可见性 —— 键盘无障碍
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   21. 内容时效提醒
   ========================================================================== */
.zb-stale-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 0 1.6em;
    border-radius: var(--border-radius);
    background: rgba(250, 173, 20, 0.09);
    border: 1px solid rgba(250, 173, 20, 0.28);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}
.zb-stale-notice > i {
    color: var(--warning);
    margin-top: 2px;
    flex-shrink: 0;
}
.zb-stale-notice strong {
    color: var(--text-primary);
}
[data-theme="dark"] .zb-stale-notice {
    background: rgba(250, 173, 20, 0.12);
}

/* ==========================================================================
   22. 上一篇 / 下一篇 导航
   ========================================================================== */
.zb-prev-next {
    display: flex;
    gap: 14px;
    margin: 28px 0 4px;
}
.zb-pn-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.zb-pn-item.zb-pn-empty {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}
a.zb-pn-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.3);
}
.zb-pn-label {
    font-size: 12px;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.zb-pn-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
a.zb-pn-item:hover .zb-pn-title {
    color: var(--primary);
}
.zb-pn-next {
    text-align: right;
    align-items: flex-end;
}
@media (max-width: 640px) {
    .zb-prev-next {
        flex-direction: column;
        gap: 10px;
    }
    .zb-pn-item.zb-pn-empty { display: none; }
    .zb-pn-next {
        text-align: left;
        align-items: flex-start;
    }
}
