/* ========================================
   Puock-Zi 主样式
   ======================================== */

/* 基础变量 */
:root {
    --pz-primary: #2d8cf0;
    --pz-primary-dark: #1a73e8;
    --pz-success: #18b566;
    --pz-warning: #ff9900;
    --pz-danger: #e74c3c;
    --pz-vip-gold: #f5a623;
    --pz-border: #eaeaea;
    --pz-bg-soft: #f7f8fa;
    --pz-text: #333;
    --pz-text-soft: #888;
    --pz-radius: 8px;
}

/* 深色模式变量重定义（用户中心/全局组件自动适配） */
body.puock-dark,
html[data-bs-theme="dark"] {
    --pz-border: #495057;
    --pz-bg-soft: #2b2b38;
    --pz-text: #dee2e6;
    --pz-text-soft: #adb5bd;
}

/* ========================================
   全局提示（Toast）— 此前完全缺失，导致所有 AJAX 错误提示不可见
   ======================================== */
.pz-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.pz-toast {
    padding: 10px 22px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    pointer-events: auto;
    max-width: 90vw;
    word-break: break-word;
    animation: pz-toast-in .25s ease;
}
.pz-toast.error { background: rgba(231, 76, 60, .92); }
.pz-toast.success { background: rgba(24, 181, 102, .92); }
@keyframes pz-toast-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.pz-hide { display: none; }

.pz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: var(--pz-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    color: #fff;
    background: var(--pz-primary);
}
.pz-btn:hover { opacity: .9; color: #fff; }
.pz-btn-block { display: flex; width: 100%; }
.pz-btn-sm { padding: 5px 12px; font-size: 13px; }
.pz-btn-plain { background: var(--pz-bg-soft); color: var(--pz-text-soft); border: 1px solid var(--pz-border); }
.pz-btn-plain:hover { color: var(--pz-primary); border-color: var(--pz-primary); }
.pz-btn-lg { padding: 11px 26px; font-size: 15px; }
.pz-btn-primary { background: var(--pz-primary); }
.pz-btn-outline { background: transparent; border: 1px solid var(--pz-primary); color: var(--pz-primary); }
.pz-btn-outline:hover { background: var(--pz-primary); color: #fff; }
.pz-btn-alipay { background: #1677ff; }
.pz-btn-wxpay { background: #07c160; }
.pz-btn-balance { background: #ff9900; }
.pz-btn-points { background: #9c5cf5; }

/* ========================================
   付费区块
   ======================================== */
.pz-pay-block { margin: 24px 0; scroll-margin-top: 90px; }
/* 资源属性（规格参数） */
.pz-pay-attrs { padding: 14px 18px; border-bottom: 1px dashed var(--pk-c-border, var(--pz-border)); background: var(--pk-bg-card, #fff); border-radius: 12px 12px 0 0; }
.pz-pay-attrs-hd { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--pz-primary); margin-bottom: 10px; }
.pz-pay-attrs-hd i { font-size: 15px; }
.pz-pay-attrs-list { list-style: none; margin: 0; padding: 0; }
.pz-pay-attrs-list li {
    display: flex; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--pk-c-border, var(--pz-border));
}
.pz-pay-attrs-list li:last-child { border-bottom: none; }
.pz-pay-attrs-k { flex: 0 0 88px; color: var(--pk-c-sub, var(--pz-text-soft)); }
.pz-pay-attrs-v { flex: 1; color: var(--pk-c-font, var(--pz-text)); word-break: break-all; }
/* 演示地址按钮 */
.pz-btn-demo {
    margin: 14px 18px 0; background: linear-gradient(135deg, #36cfc9, #13c2c2); color: #fff;
    border: none; box-shadow: 0 4px 12px rgba(19,194,194,.25);
}
.pz-btn-demo:hover { background: linear-gradient(135deg, #40d9d3, #1ad0d0); color: #fff; }

/* ---- 新卡片式付费区（左右两栏：文章首图 + 右侧信息） ---- */
.pz-pay-card {
    position: relative;
    display: flex; gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: var(--pk-bg-card, #fff);
    border: 1px solid var(--pk-c-border, #f0f0f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    color: var(--pk-c-font, #333);
    overflow: hidden;
}
/* 无左侧文章图时，内容区整体居中，避免“太靠左” */
.pz-pay-card-no-media {
    justify-content: center;
}
.pz-pay-card-no-media .pz-pay-card-content {
    align-items: center;
    text-align: center;
}
.pz-pay-card-no-media .pz-pay-card-hd,
.pz-pay-card-no-media .pz-pay-card-price-row,
.pz-pay-card-no-media .pz-pay-card-vip-row,
.pz-pay-card-no-media .pz-pay-card-footer {
    align-items: center;
    justify-content: center;
}
.pz-pay-card-no-media .pz-pay-card-footer {
    flex-direction: column;
    gap: 10px;
}
.pz-pay-card-no-media .pz-pay-card-badge-top {
    align-self: flex-start;
}
.pz-pay-card-media {
    position: relative; flex: 0 0 260px; max-width: 42%;
    min-height: 160px; border-radius: 10px; overflow: hidden;
    background: #f5f5f5;
}
/* 图片绝对定位铺满左侧区域（height:100% 会被父主题 img height:auto 覆盖，故用 inset 方案） */
.pz-pay-card-media img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; margin: 0; padding: 0; border: none;
}
.pz-pay-card-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #ff7a9a, #ff4d6d);
    padding: 4px 10px; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 77, 109, .3);
}
/* 类型标签绝对定位在付费卡片左上角边缘（贴在卡片边框上） */
.pz-pay-card-badge-top {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #ff7a9a, #ff4d6d);
    padding: 5px 12px; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 77, 109, .3);
}
.pz-pay-card-badge-top i { font-size: 11px; }
.pz-pay-card-content {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
}
.pz-pay-card-hd { margin-bottom: 10px; }
.pz-pay-card-title {
    margin: 0 0 6px;
    font-size: 18px; font-weight: 700; color: var(--pk-c-font, #222);
    line-height: 1.4;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border: none !important;
}
.pz-pay-card-title::after,
.pz-pay-card-title::before {
    content: none !important;
    display: none !important;
    border: none !important;
    background: transparent !important;
}
.pz-pay-card-subtitle { margin: 0; font-size: 13px; color: var(--pk-c-sub, #888); line-height: 1.5; }
.pz-pay-card-price-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 10px; margin: 12px 0;
}
.pz-pay-card-currency { font-size: 14px; font-weight: 500; color: #ff4d6d; }
.pz-pay-card-price {
    font-size: 36px; font-weight: 800; color: #ff4d6d;
    line-height: 1; letter-spacing: -1px;
}
.pz-pay-card-price-free { font-size: 24px; color: #52c41a; letter-spacing: 0; }
/* 促销标签在上，原价与销量横排：标签在原价上方融为一体 */
.pz-pay-card-origin-group {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 3px; flex-shrink: 0;
}
/* 原价与销量同一行，销量紧跟原价后面 */
.pz-pay-card-origin-line {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
}
.pz-pay-card-promo {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #ff7a9a, #ff4d6d);
    padding: 2px 8px; border-radius: 6px;
    flex-shrink: 0;
}
.pz-pay-card-promo i { font-size: 10px; }
.pz-pay-card-original {
    font-size: 13px; color: #ff8a9b;
    text-decoration: line-through;
    text-decoration-color: #ff8a9b;
}
.pz-pay-card-sales {
    font-size: 12px; color: var(--pk-c-sub, #999);
}
.pz-pay-card-vip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pz-pay-card-vip-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 500; color: var(--pk-c-font, #555);
    background: #f7f7f7; padding: 5px 12px; border-radius: 20px;
}
.pz-pay-card-vip-tag i { font-size: 13px; }
.pz-pay-card-vip-gold i { color: #f5a623; }
.pz-pay-card-vip-diamond i { color: #9c5cf5; }
.pz-pay-card-footer {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.pz-pay-card-hint { font-size: 12px; color: var(--pk-c-sub, #999); }
.pz-pay-card-hint a { color: #ff4d6d; text-decoration: none; }
.pz-pay-card-hint a:hover { text-decoration: underline; }
.pz-pay-card-buy {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 110px; padding: 10px 24px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff4d4f);
    color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: .2s;
}
.pz-pay-card-buy:hover { opacity: .9; transform: translateY(-1px); }
/* 购买权限不足态（pay_limit 限制）：提示 + 开通/升级会员按钮，整行铺满更醒目 */
.pz-pay-card-hint-limit { display: flex; align-items: center; gap: 6px; color: #d48806; }
.pz-pay-card-hint-limit i { font-size: 13px; }
.pz-pay-card-limit-btn {
    background: linear-gradient(135deg, #f6c453, #e8a020);
    text-decoration: none;
}
.pz-pay-card-limit-btn:hover { opacity: .9; transform: translateY(-1px); }

/* 站内二维码支付弹窗：金额居中、突出显示 */
.pz-pay-modal .pz-pay-title { text-align: center; font-weight: 600; margin-bottom: 2px; }
.pz-pay-modal .pz-pay-price-row {
    display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
    gap: 3px; margin: 8px 0 14px;
}
.pz-pay-modal #pz-pay-price {
    justify-content: center; font-size: 30px; font-weight: 700; color: var(--pz-danger);
    line-height: 1.1;
}
.pz-pay-modal .pz-pay-settle-mark { font-size: 20px; font-weight: 700; color: var(--pz-danger); line-height: 1; }
.pz-pay-modal .pz-pay-settle-unit { font-size: 14px; color: var(--pz-text-soft); align-self: flex-end; margin-bottom: 5px; }

/* 深色模式适配 */
body.puock-dark .pz-pay-attrs,
body.puock-dark .pz-pay-attrs-list li,
html[data-bs-theme="dark"] .pz-pay-attrs,
html[data-bs-theme="dark"] .pz-pay-attrs-list li { border-bottom-color: #2b3446; }
/* ===== 付费图库(type5)/视频(type6) 锁定预览与已购展示（差异④） ===== */
/* 付费卡片改纵向：锁定预览铺满顶部，标题/价格在下方 */
.pz-pay-card-gallery,
.pz-pay-card-video { flex-direction: column; }

/* 锁定预览：付费前模糊缩略图 + 居中锁遮罩（覆盖 .pz-pay-card-media 的桌面定宽） */
.pz-pay-gallery-locked,
.pz-pay-video-locked {
    flex: 0 0 auto; max-width: 100%; width: 100%;
    min-height: 200px; border-radius: 10px; overflow: hidden; background: #f0f0f0;
}
.pz-pay-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 200px; }
.pz-pay-gallery-cell { background-size: cover; background-position: center; filter: blur(6px); transform: scale(1.06); }
.pz-pay-gallery-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; background: #f0f0f0; color: #bbb; font-size: 32px; }
.pz-pay-video-locked { min-height: 220px; }
.pz-pay-video-poster { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(4px); transform: scale(1.04); }
.pz-pay-video-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    z-index: 2; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.pz-pay-video-center i { margin-left: 4px; }
/* 锁遮罩（图库/视频共用） */
.pz-pay-media-lock {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; align-items: center; gap: 6px; padding: 10px 12px;
    font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.pz-pay-media-lock i { font-size: 13px; }

/* 已购图库网格（点击放大） */
.pz-paid-gallery { margin: 16px 0; }
.pz-paid-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pz-paid-gallery-cell {
    position: relative; display: block; padding-top: 66%; border-radius: 8px;
    overflow: hidden; background: #f5f5f5; cursor: zoom-in;
}
.pz-paid-gallery-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.pz-paid-gallery-cell:hover img { transform: scale(1.05); }

/* 已购视频播放器 */
.pz-paid-video { margin: 16px 0; }
.pz-video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.pz-video-wrap[style*="--pz-vh"] { aspect-ratio: auto; height: var(--pz-vh, 56%); min-height: 240px; }
.pz-video-el { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.pz-video-iframe .pz-video-poster { position: absolute; inset: 0; cursor: pointer; }
.pz-video-iframe .pz-video-poster img { width: 100%; height: 100%; object-fit: cover; }
.pz-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px; transition: background .2s;
}
.pz-video-iframe .pz-video-poster:hover .pz-video-play { background: rgba(255,77,109,.85); }
.pz-video-play i { margin-left: 4px; }

/* 视频剧集切换 */
.pz-paid-video-episodes { margin-top: 12px; }
.pz-paid-video-ep-title { font-size: 14px; font-weight: 600; color: var(--pk-c-font, #222); margin-bottom: 8px; }
.pz-paid-video-ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-video-ep {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px;
    cursor: pointer; font-size: 13px; color: var(--pk-c-font, #333);
    background: var(--pk-bg-sub, #f2f3f5); border: 1px solid transparent; transition: all .18s;
}
.pz-video-ep span { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.08); font-size: 11px; }
.pz-video-ep:hover { background: #ffe9ee; color: #ff4d6d; }
.pz-video-ep.active { background: #ff4d6d; color: #fff; border-color: #ff4d6d; }
.pz-video-ep.active span { background: rgba(255,255,255,.25); }

/* 图库灯箱（全局单例，事件委托打开，PJAX 安全） */
.pz-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); padding: 24px; }
.pz-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.pz-lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 22px; cursor: pointer; line-height: 1; }
.pz-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* 深色模式适配 */
body.puock-dark .pz-pay-gallery-locked,
html[data-bs-theme="dark"] .pz-pay-gallery-locked,
body.puock-dark .pz-pay-video-locked,
html[data-bs-theme="dark"] .pz-pay-video-locked { background: #2a2b2c; }
body.puock-dark .pz-paid-gallery-cell,
html[data-bs-theme="dark"] .pz-paid-gallery-cell,
body.puock-dark .pz-video-iframe,
html[data-bs-theme="dark"] .pz-video-iframe { background: #2a2b2c; }
body.puock-dark .pz-video-ep,
html[data-bs-theme="dark"] .pz-video-ep { background: #3a3b3c; color: var(--pk-c-font, #dee2e6); }
body.puock-dark .pz-video-ep span,
html[data-bs-theme="dark"] .pz-video-ep span { background: rgba(255,255,255,.12); }

/* 移动端：图库/视频锁定预览不要隐藏（区别于普通左图） */
@media (max-width: 640px) {
    .pz-pay-card-gallery .pz-pay-gallery-locked,
    .pz-pay-card-video .pz-pay-video-locked { display: block; }
    .pz-paid-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .pz-pay-gallery-grid { grid-template-columns: repeat(2, 1fr); height: 160px; }
}

body.puock-dark .pz-pay-card,
html[data-bs-theme="dark"] .pz-pay-card { background: var(--pk-bg-card, #343a40); border-color: var(--pk-c-border, #495057); color: var(--pk-c-font, #dee2e6); }
body.puock-dark .pz-pay-card-title,
html[data-bs-theme="dark"] .pz-pay-card-title { color: var(--pk-c-font, #dee2e6); }
body.puock-dark .pz-pay-card-subtitle,
body.puock-dark .pz-pay-card-sales,
body.puock-dark .pz-pay-card-hint,
html[data-bs-theme="dark"] .pz-pay-card-subtitle,
html[data-bs-theme="dark"] .pz-pay-card-sales,
html[data-bs-theme="dark"] .pz-pay-card-hint { color: var(--pk-c-sub, #b0b3b8); }
body.puock-dark .pz-pay-card-vip-tag,
html[data-bs-theme="dark"] .pz-pay-card-vip-tag { color: var(--pk-c-font, #dee2e6); background: #3a3b3c; border-color: transparent; }
body.puock-dark .pz-pay-card-media,
html[data-bs-theme="dark"] .pz-pay-card-media { background: #3a3b3c; }
@media (max-width: 640px) {
    .pz-pay-card { flex-direction: column; gap: 16px; padding: 16px; }
    /* 移动端隐藏左侧文章图片 */
    .pz-pay-card-media { display: none; }
    /* 移动端图片已隐藏，角标改为流式置于标题上方，避免绝对定位遮挡标题 */
    .pz-pay-card-badge-top {
        position: static; align-self: flex-start;
        margin-bottom: 10px;
    }
    /* 价格区（标题/价格/VIP 标签）整体居中 */
    .pz-pay-card-hd { text-align: center; }
    .pz-pay-card-price-row,
    .pz-pay-card-vip-row { justify-content: center; }
    .pz-pay-card-price { font-size: 30px; }
    .pz-pay-card-footer { flex-direction: column; align-items: stretch; text-align: center; }
    .pz-pay-card-buy { width: 100%; }
    /* 无图卡片在移动端同样按钮全宽 */
    .pz-pay-card-no-media .pz-pay-card-footer { align-items: stretch; }
    .pz-pay-card-no-media .pz-pay-card-buy { width: 100%; }
}

/* ============================================================
   弹窗基础布局（修复：此前 .pz-modal 完全没有定位样式，
   导致 pz_open_modal 置 display:flex 后弹窗沉入文档流、不可见，
   表现为「点支付无反应」/ 充值 / 买积分弹窗同样打不开）
   ============================================================ */
.pz-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pz-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 1;
}
/* 扫码弹窗置顶：必须高于 .pz-pay-modal-overlay(9999) 的「选支付方式」弹窗，
   否则两者 z-index 同级，DOM 靠后的选方式弹窗会覆盖扫码弹窗（用户报告「点支付被遮挡」） */
.pz-pay-modal { z-index: 10001; }
/* ---- 站内二维码支付弹窗：1:1 移植子比主题 zibpay 经典样式 ----
   桌面双栏（左侧手机演示图 + 右侧二维码卡片），移动端隐藏演示图变单栏 */
.pz-pay-dialog {
    position: relative;
    z-index: 2;
    width: 800px;
    max-width: 100%;
}
.pz-modal-pay-body {
    display: flex;
    justify-content: center;
    align-items: center;
}
.pz-pay-row-5 {
    width: 265px;
    text-align: center;
    position: relative;
}
/* 左侧手机演示图列：桌面显示并留 80px 间距（子比 .row-5.hide-sm） */
.pz-pay-row-5.pz-hide-sm { margin-right: 80px; }
.pz-pay-sys { max-width: 100%; display: inline-block; }
/* 演示图交叉显隐（与子比一致）：wechat 模式显示微信扫码界面(t-alipay)、alipay 显示支付宝界面(t-wechat) */
.pz-pay-payment.wechat .pz-t-wechat,
.pz-pay-payment.alipay .pz-t-alipay { display: none; }

/* 二维码卡片（子比 .pay-qrcon：8px 圆角、overflow hidden、无内边距由 .qrcon 提供） */
.pz-pay-qrcon {
    position: relative;
    background: var(--pk-bg-card, #fff);
    color: var(--pk-c-font, #333);
    border-radius: 8px;
    line-height: 1.5;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.pz-pay-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    transition: all .2s;
}
.pz-pay-close:hover { background: rgba(0, 0, 0, .12); color: #333; }
.pz-qrcon { padding: 20px; position: relative; }
.pz-pay-logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 35px;
}
/* logo 35×35 品牌图（子比 .pay-logo，随支付方式切换背景图） */
.pz-pay-logo {
    width: 35px;
    height: 35px;
    display: inline-block;
    max-width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
}
.pz-pay-payment.wechat .pz-pay-logo { background-image: url('../img/pay-wechat-logo.svg'); }
.pz-pay-payment.alipay .pz-pay-logo { background-image: url('../img/pay-alipay-logo.svg'); }
.pz-pay-logo-name {
    display: none;
    vertical-align: middle;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pk-c-font, #333);
}
/* 跟随子比反直觉语义：wechat 模式显示「微信支付」文字(t-alipay)、alipay 模式显示「支付宝」文字(t-wechat) */
.pz-pay-payment.wechat .pz-t-alipay { display: inline; }
.pz-pay-payment.alipay .pz-t-wechat { display: inline; }
/* 二维码 140×140（子比 .pay-qrcode：无边框白底直接展示） */
.pz-pay-qrcode {
    width: 140px;
    height: 140px;
    margin: 10px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pz-pay-qrcode img { max-width: 100%; max-height: 100%; }
/* 加载态：二维码到达前显示转圈，消除“点击后弹窗空白等待”的卡顿感 */
.pz-pay-qrcode.pz-pay-loading img { opacity: .25; }
.pz-pay-qrcode .pz-qr-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #999;
    z-index: 2;
}
.pz-pay-qrcode .pz-qr-spinner .fa-spin { color: var(--pk-color-primary, #2d8cf0); }
.pz-pay-qrcode.pz-pay-over::after {
    content: '二维码已失效';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .88);
    color: #e74c3c;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 切换其他支付方式（子比 .pay-switch：负 margin 上叠于状态条） */
.pz-pay-switch {
    padding: 0 30px;
    font-size: 13px;
    margin-top: -12px;
    margin-bottom: 5px;
}
.pz-pay-switch .pz-btn { margin: 5px 0; }
/* 底部状态条（子比 .pay-notice：白字色块，随支付方式/状态变色） */
.pz-pay-notice { color: #fff; font-size: 13px; }
.pz-pay-notice .notice {
    padding: 17px 5px;
    transition: .5s;
    background: #f8a53d;
    color: #fff;
    border-radius: 0;
}
.pz-pay-payment.wechat .pz-pay-notice .notice { background: #0fb90d; }
.pz-pay-payment.alipay .pz-pay-notice .notice { background: #15acff; }
.pz-pay-notice .notice.load,
.pz-pay-notice .notice.warning { background: #f8a53d; }
.pz-pay-notice .notice.danger { background: #f85342; }
.pz-pay-notice .notice.success { background: rgba(55, 193, 255, .15); color: #03a0ff; }
.pz-pay-over-time {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    padding-left: 10px;
}
.pz-pay-over-time .pz-countdown { color: #e74c3c; }
/* 移动端：隐藏左侧演示图，单栏卡片 */
@media (max-width: 767.98px) {
    .pz-pay-row-5.pz-hide-sm { display: none; }
    .pz-pay-dialog { max-width: 100%; }
    .pz-pay-qrcode { width: 170px; height: 170px; }
    .pz-pay-qrcon { border-radius: 12px; }
}
/* 深色模式：卡片背景/文字由父主题 body.puock-dark 的 --pk-bg-card/--pk-c-font 自动适配 */
body.puock-dark .pz-pay-close { background: rgba(255, 255, 255, .1); color: #aaa; }
body.puock-dark .pz-pay-close:hover { background: rgba(255, 255, 255, .18); color: #fff; }
body.puock-dark .pz-pay-over-time,
body.puock-dark .pz-pay-over-time .pz-countdown { color: #ff7a7a; }

.pz-btn-vip {
    background: linear-gradient(135deg, #f5a623, #f7b733); color: #fff; border: none;
    font-weight: 600; box-shadow: 0 4px 12px rgba(245,166,35,.35);
}
.pz-btn-vip:hover { opacity: .92; color: #fff; }
.pz-pay-methods { display: none; flex-wrap: wrap; gap: 10px; }
.pz-pay-methods .pz-btn {
    flex: 1 1 130px; justify-content: center;
    padding: 10px 16px; font-size: 14px; border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}
.pz-pay-buy-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: auto; padding: 8px 22px; margin-left: 12px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, #ff5b5b, #fb2d2d);
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s;
}
.pz-pay-buy-toggle:hover { opacity: .92; transform: translateY(-1px); }
@media (max-width: 480px) {
    .pz-pay-buy-toggle { flex: 1 1 100%; margin-left: 0; margin-top: 6px; }
}
/* 付费区：点击「立即购买」弹出「子比同款」收银台弹窗（自建，主题无关） */
.pz-pay-modal-overlay {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.pz-pay-modal-overlay.pz-show { display: flex; animation: pzPayModalFade .18s ease; }
@keyframes pzPayModalFade { from { opacity: 0; } to { opacity: 1; } }
.pz-pay-modal-box {
    position: relative; width: 100%; max-width: 360px;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
    animation: pzPayModalPop .2s ease;
}
@keyframes pzPayModalPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 头部：子比「touch border-title」标题栏 + 右上角关闭 */
.pz-pay-modal-header {
    position: relative; padding: 15px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center; font-size: 16px; font-weight: 700; color: #2b2b2b;
}
.pz-pay-modal-close {
    position: absolute; top: 12px; right: 14px;
    border: none; background: none; padding: 0;
    color: #b0b0b0; font-size: 20px; line-height: 1; cursor: pointer; transition: .2s;
}
.pz-pay-modal-close:hover { color: #555; }
.pz-pay-modal-body { padding: 18px 16px 20px; }
.pz-pay-modal-body .pz-pay-methods { display: block !important; }
/* 支付金额（子比「合计」红字） */
.pz-pay-modal-amount {
    display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
}
.pz-pay-modal-amount-label { font-size: 13px; color: #999; }
.pz-pay-modal-amount-value { font-size: 24px; font-weight: 700; color: #fb2d2d; }
.pz-pay-modal-amount-value::first-letter { font-size: 16px; margin-right: 1px; }
.pz-pay-modal-methods-hint { font-size: 12px; color: #999; margin-bottom: 8px; }
/* 支付方式卡片（子比 hollow-radio） */
.pz-pay-modal-methods { display: flex; gap: 10px; margin-bottom: 18px; }
.pz-pay-method {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 8px; border: 1px solid #ebedf0; border-radius: 8px;
    font-size: 14px; color: #555; cursor: pointer; transition: .15s; user-select: none;
}
.pz-pay-method i { font-size: 22px; }
.pz-pay-method.active {
    border-color: var(--pz-primary, #2d8cf0);
    background: rgba(45, 140, 240, .06);
    color: var(--pz-primary, #2d8cf0); font-weight: 600;
}
/* 立即支付按钮（子比 jb-red 橙红渐变） */
.pz-pay-confirm-btn {
    width: 100%; border: none; border-radius: 8px; padding: 12px 16px;
    background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
    color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s;
}
.pz-pay-confirm-btn:hover { opacity: .92; }
.pz-pay-confirm-price { font-size: 14px; font-weight: 600; opacity: .95; }
body.pz-pay-modal-lock { overflow: hidden; }
/* 深色模式适配 */
body.puock-dark .pz-pay-modal-box,
html.pz-dark .pz-pay-modal-box { background: #1f2530; }
body.puock-dark .pz-pay-modal-header,
html.pz-dark .pz-pay-modal-header { color: #eee; border-bottom-color: #2b3446; }
body.puock-dark .pz-pay-modal-close,
html.pz-dark .pz-pay-modal-close { color: #777; }
body.puock-dark .pz-pay-modal-close:hover,
html.pz-dark .pz-pay-modal-close:hover { color: #ccc; }
body.puock-dark .pz-pay-modal-amount-label,
html.pz-dark .pz-pay-modal-amount-label { color: #888; }
body.puock-dark .pz-pay-modal-amount-value,
html.pz-dark .pz-pay-modal-amount-value { color: #ff6b5e; }
body.puock-dark .pz-pay-method,
html.pz-dark .pz-pay-method { border-color: #2b3446; color: #bbb; background: transparent; }
body.puock-dark .pz-pay-method.active,
html.pz-dark .pz-pay-method.active {
    border-color: var(--pz-primary, #2d8cf0);
    background: rgba(45, 140, 240, .12); color: #6db3ff;
}
/* 方案 B：付费区内支付按钮改用品牌渐变，强化转化感（仅作用于付费区，不影响全局按钮） */
.pz-pay-block .pz-btn-wxpay { background: linear-gradient(135deg, #07c160, #06ad56); }
.pz-pay-block .pz-btn-alipay { background: linear-gradient(135deg, #1677ff, #0a5fe0); }
.pz-pay-block .pz-btn-balance { background: linear-gradient(135deg, #ffa940, #fa8c16); }
.pz-pay-block .pz-btn-points { background: linear-gradient(135deg, #9c5cf5, #7b3ff0); }
.pz-pay-block .pz-btn-demo { background: linear-gradient(135deg, #2d8cf0, #1a73e8); box-shadow: 0 4px 12px rgba(45, 140, 240, .25); }
.pz-pay-vip-guide {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 12px 14px;
    background: var(--pk-bg-card, #fff);
    border: 1px solid var(--pk-c-border, #ffe7ba);
    border-radius: 12px;
    color: var(--pk-c-font, #333);
}
.pz-pay-vip-guide-ic { color: #f5a623; font-size: 22px; flex: none; }
.pz-pay-vip-guide-tx { flex: 1; min-width: 0; }
.pz-pay-vip-guide-t { font-size: 13px; font-weight: 600; color: var(--pk-c-font, #614700); }
.pz-pay-vip-guide-s { font-size: 12px; color: var(--pk-c-sub, #ad6800); margin-top: 2px; }
body.puock-dark .pz-pay-vip-guide,
html[data-bs-theme="dark"] .pz-pay-vip-guide { background: var(--pk-bg-card, #343a40); border-color: #4a3b12; color: var(--pk-c-font, #dee2e6); }
body.puock-dark .pz-pay-vip-guide-t,
html[data-bs-theme="dark"] .pz-pay-vip-guide-t { color: #f0c060; }
body.puock-dark .pz-pay-vip-guide-s,
html[data-bs-theme="dark"] .pz-pay-vip-guide-s { color: #d9a94e; }
.pz-btn-vip-guide {
    flex: none; background: linear-gradient(135deg, #f5a623, #f7b733);
    color: #fff; border: none; border-radius: 18px; padding: 6px 16px;
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pz-btn-vip-guide:hover { opacity: .9; color: #fff; }
.pz-pay-content-show {
    border-left: 3px solid var(--pz-primary);
    padding: 10px 14px;
    margin: 16px 0;
    background: var(--pz-bg-soft);
    border-radius: 0 8px 8px 0;
}

/* 已购买虚线框（隐藏内容购买后包裹，对标子比 paid-box 语义色） */
.pz-paid-box {
    position: relative;
    border: 2px dashed #07c160;
    border-radius: 10px;
    padding: 16px 14px 8px;
    margin: 20px 0;
    background: rgba(7, 193, 96, .05);
}
.pz-paid-box .pz-pay-content-show {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}
/* 绿色已购买条与隐藏框上下相邻时的间距 */
.pz-paid-order-bar + .pz-paid-box { margin-top: 12px; }
.pz-paid-tag {
    position: absolute;
    top: -12px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #07c160;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 5px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(7, 193, 96, .35);
}
.pz-paid-tag i { font-size: 11px; }
body.puock-dark .pz-paid-box { background: rgba(7, 193, 96, .12); }

/* 已购买文章顶部订单信息条（对截图绿色横条） */
.pz-paid-order-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #07c160;
    color: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 0 0 16px;
    box-shadow: 0 2px 10px rgba(7, 193, 96, .25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.pz-paid-order-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding-right: 16px;
}
.pz-paid-order-left i {
    font-size: 28px;
    margin-bottom: 4px;
    opacity: .95;
}
.pz-paid-order-left span {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}
.pz-paid-order-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, .35);
    margin: 4px 0;
}
.pz-paid-order-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.4;
}
.pz-paid-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pz-paid-order-label {
    opacity: .9;
    margin-right: 12px;
}
.pz-paid-order-value {
    font-weight: 600;
    opacity: 1;
    text-align: right;
}
.pz-paid-order-value bdo { font-weight: 600; }
.pz-paid-order-info time { white-space: nowrap; }

@media (max-width: 640px) {
    .pz-paid-order-bar {
        padding: 10px 14px;
    }
    .pz-paid-order-left {
        min-width: 72px;
        padding-right: 12px;
    }
    .pz-paid-order-left i {
        font-size: 22px;
    }
    .pz-paid-order-left span {
        font-size: 14px;
    }
    .pz-paid-order-info {
        padding-left: 12px;
        font-size: 12px;
    }
    .pz-paid-order-row {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2px 0;
    }
    .pz-paid-order-label {
        margin-right: 8px;
    }
}

/* 付费区「资源详情」与「额外隐藏内容」—— 与子比 .pay-details 同级，独立块（不并入主正文） */
.pz-pay-details,
.pz-pay-extra-hide {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--pz-bg-soft);
    border: 1px solid var(--pz-border);
    border-radius: var(--pz-radius, 8px);
    font-size: 0.92em;
    color: var(--pz-text-2, #666);
    line-height: 1.8;
}
.pz-pay-details > :first-child,
.pz-pay-extra-hide > :first-child { margin-top: 0; }
.pz-pay-details > :last-child,
.pz-pay-extra-hide > :last-child { margin-bottom: 0; }
.pz-pay-extra-hide {
    border-style: dashed;
    border-color: var(--pz-primary, #07c160);
}
body.puock-dark .pz-pay-details,
body.puock-dark .pz-pay-extra-hide {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
    color: var(--pz-text-2, #aaa);
}

/* ========================================
   隐藏内容短代码 [hidecontent] —— 1:1 还原子比(Zibll) .hidden-box 结构
   原版：zibll/css/main.css 行 10683-10717（.hidden-box/.hidden-text/.hidden-box.show/.hidden-pass-img）
        及 行 12713-12720（@media max-width:640px 的 .hidden-box.flex / .hidden-pass-img 变体）
   说明：子比用 --focus-color / --main-radius / --muted-3-color，
        此处对齐为 Puock-Zi 的 --pz-primary / --pz-radius / --pz-border，
        保持「虚线框 + 顶部角标 + 居中提示」的视觉与交互完全一致。
   ======================================== */
.hidden-box {
    padding: 10px;
    margin: 20px 0;
    border: 1px dashed var(--pz-primary);
    border-radius: var(--pz-radius);
    position: relative;
}
.hidden-text {
    color: var(--pz-primary);
    padding: 10px;
    text-align: center;
    display: block;
}
.hidden-box.show {
    padding-top: 35px;
}
.hidden-box.show .hidden-text {
    padding: 3px 10px;
    font-size: 13px;
    top: 0;
    border-radius: 0 0 8px 0;
    line-height: 1.4;
    z-index: 1;
    left: 0;
    position: absolute;
    border-bottom: 1px dashed var(--pz-primary);
    border-right: 1px dashed var(--pz-primary);
}

/* 统一「管理员可见」样式：红色虚线框 + 红色角标，覆盖所有管理员以特权查看的内容 */
/* 1) 短代码隐藏内容框 */
.pz-admin-visible.hidden-box {
    border-color: #f04142;
}
.pz-admin-visible .hidden-text {
    color: #f04142;
}
.pz-admin-visible.hidden-box.show .hidden-text {
    color: #f04142;
    border-bottom-color: #f04142;
    border-right-color: #f04142;
}
/* 2) 付费正文框（pay_content 元字段，管理员查看时复用同一红色语言） */
.pz-paid-box.pz-admin-visible {
    border-color: #f04142;
    background: rgba(240, 65, 66, .05);
}
.pz-paid-box.pz-admin-visible .pz-paid-tag {
    background: #f04142;
    box-shadow: 0 2px 8px rgba(240, 65, 66, .35);
}
/* 3) 付费区块卡片（管理员以特权查看时） */
.pz-pay-block.pz-admin-visible .pz-pay-card {
    border-color: #f04142;
    box-shadow: 0 4px 16px rgba(240, 65, 66, .12);
}
/* 深色模式下的红色微调 */
body.puock-dark .pz-paid-box.pz-admin-visible { background: rgba(240, 65, 66, .12); }
body.puock-dark .pz-pay-block.pz-admin-visible .pz-pay-card { box-shadow: 0 4px 16px rgba(240, 65, 66, .25); }

.hidden-pass-img {
    width: 180px;
}
/* 密码模式表单容器（与 .hidden-box.flex 配合居中） */
.hidden-box.flex {
    align-items: center;
    line-height: 1.4;
}
.hidden-box.flex form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hidden-box.flex form .form-control {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--pz-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.hidden-box.flex .but {
    flex: 0 0 auto;
    border: none;
    background: var(--pz-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
/* 窄屏：密码图缩小，与子比一致（原版 @media max-width:640px） */
@media (max-width: 640px) {
    .hidden-pass-img {
        width: 100px;
    }
    .hidden-box.flex form {
        flex-wrap: wrap;
    }
}

/* 下载列表（子比 pay_download 组结构）—— 现代卡片式 */

/* === 下载区会员权益信息条 (v1.4.52) === */
.pz-dl-member-bar { margin: 0 0 16px; }

/* 已登录用户卡 */
.pz-dlmb-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "user stats";
    gap: 18px;
    align-items: center;
    overflow: hidden;
}
.pz-dlmb-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(59,130,246,.05), transparent 60%);
    pointer-events: none;
}
.pz-dlmb-user { grid-area: user; display: flex; align-items: center; gap: 14px; }
.pz-dlmb-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.pz-dlmb-userinfo { display: flex; flex-direction: column; gap: 4px; }
.pz-dlmb-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #0f172a; }
.pz-dlmb-vip {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 2px 6px rgba(245,158,11,.35);
}
.pz-dlmb-vip-1 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.pz-dlmb-vip-2 { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 2px 6px rgba(139,92,246,.35); }
.pz-dlmb-vip-3 { background: linear-gradient(135deg, #ec4899, #f43f5e); box-shadow: 0 2px 6px rgba(236,72,153,.35); }
.pz-dlmb-vip-4 { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 2px 6px rgba(6,182,212,.35); }
.pz-dlmb-vip-5 { background: linear-gradient(135deg, #1e293b, #475569); }
.pz-dlmb-vip .pz-svg-icon,
.pz-dlmb-vip i { width: 12px; height: 12px; fill: #fff; }
.pz-dlmb-vip-none {
    font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
    background: #f1f5f9; color: #64748b;
}
.pz-dlmb-exp { font-size: 12px; color: #64748b; }

.pz-dlmb-stats {
    grid-area: stats;
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.pz-dlmb-stats li {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 6px;
    background: rgba(255,255,255,.65);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.pz-dlmb-stats-label { font-size: 11px; color: #64748b; }
.pz-dlmb-stats-value { font-size: 16px; font-weight: 700; color: #0f172a; }
.pz-dlmb-stats-value em { font-style: normal; font-size: 11px; font-weight: 500; color: #64748b; margin-left: 3px; }

.pz-dlmb-progress {
    grid-column: 1 / -1;
    margin-top: 4px;
}
.pz-dlmb-progress-text { font-size: 11px; color: #64748b; margin-bottom: 6px; }
.pz-dlmb-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}
.pz-dlmb-progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: inherit;
    transition: width .4s ease;
}

/* 移动端 */
@media (max-width: 768px) {
    .pz-dlmb-card { grid-template-columns: 1fr; grid-template-areas: "user" "stats" "progress"; padding: 14px; }
    .pz-dlmb-stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .pz-dlmb-stats-value { font-size: 14px; }
}

.pz-download-list { margin: 18px 0; }
.pz-download-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "info actions"
        "more more";
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
    margin-bottom: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pz-download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
}
.pz-dl-info {
    grid-area: info;
    display: flex; align-items: center; gap: 12px;
    color: #1e293b; font-weight: 700; font-size: 15px;
}
.pz-dl-info i {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pz-primary), #5cadff);
    color: #fff; font-size: 16px;
    flex-shrink: 0;
}
.pz-dl-name { word-break: break-all; }
.pz-dl-actions {
    grid-area: actions;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.pz-dl-actions .pz-btn { border: none; outline: none; cursor: pointer; text-decoration: none; line-height: 1; }
.pz-dl-actions .pz-btn-sm { padding: 7px 14px; font-size: 13px; }
/* 顺序锁定：下载按钮在左（第一位），提取码按钮在右（第二位） */
.pz-dl-actions .pz-btn-primary { order: 1; }
.pz-dl-actions .pz-dl-copy    { order: 2; margin-left: auto; }
/* 复制/提取码按钮：标签式浅色 */
.pz-dl-actions .pz-dl-copy {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 8px;
    background: #fff; color: #475569;
    border: 1px solid #e2e8f0; font-size: 13px; font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.pz-dl-actions .pz-dl-copy:hover {
    border-color: var(--pz-primary); color: var(--pz-primary); background: #eff6ff;
}
/* 下载主按钮：渐变 + 阴影 */
.pz-dl-actions .pz-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    background: linear-gradient(135deg, var(--pz-primary), #4a90e2);
    color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 4px 12px rgba(45,140,240,.25);
}
.pz-dl-actions .pz-btn-primary:hover {
    background: linear-gradient(135deg, #1a73e8, var(--pz-primary));
    box-shadow: 0 6px 16px rgba(45,140,240,.35);
}
.pz-dl-more {
    grid-area: more;
    font-size: 13px; color: #64748b; line-height: 1.6;
    background: rgba(255,255,255,.7); border: 1px dashed #cbd5e1;
    padding: 10px 14px; border-radius: 8px;
}
@media (max-width: 576px) {
    .pz-download-item { grid-template-columns: 1fr; grid-template-areas: "info" "actions" "more"; }
    .pz-dl-actions { justify-content: flex-start; width: 100%; }
    .pz-dl-actions .pz-btn-primary { flex: 1; justify-content: center; }
}

/* ========================================
   付费 MetaBox（子比 posts_zibpay 字段）
   ======================================== */
.pz-zb-box .pz-zb-radio { margin-right: 14px; display: inline-flex; align-items: center; gap: 4px; }
.pz-zb-tip { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--pz-text-soft); font-weight: 400; }
.pz-zb-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.pz-zb-row {
    border: 1px solid var(--pz-border); border-radius: 10px; padding: 14px;
    background: var(--pz-bg-soft); display: flex; flex-direction: column; gap: 6px;
}
.pz-zb-row label { font-size: 13px; font-weight: 600; color: var(--pz-text); }
.pz-zb-row textarea, .pz-zb-row input[type="text"], .pz-zb-row input[type="url"], .pz-zb-row input[type="number"] { width: 100%; }
.pz-zb-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pz-zb-row-title { font-weight: 700; color: var(--pz-primary); }
.pz-zb-row-del {
    border: none; background: transparent; color: var(--pz-danger); cursor: pointer;
    font-size: 14px; padding: 2px 6px; border-radius: 6px;
}
.pz-zb-row-del:hover { background: color-mix(in srgb, var(--pz-danger) 12%, #fff); }
.pz-zb-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-zb-row-inline { flex-direction: row; align-items: center; gap: 8px; background: #fff; }
.pz-zb-row-inline input { flex: 1; min-width: 0; }
.pz-zb-add {
    border: 1px dashed var(--pz-primary); background: #fff; color: var(--pz-primary);
    padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.pz-zb-add:hover { background: color-mix(in srgb, var(--pz-primary) 8%, #fff); }

/* ========================================
   付费标签
   ======================================== */
.pz-pay-tag { color: var(--pz-danger); font-weight: 600; font-size: 12px; }
.pz-vip-tag { color: #fff; background: var(--pz-vip-gold); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* ========================================
   用户中心
   ======================================== */
.pz-uc-page { max-width: 1100px; margin: 0 auto; }
.pz-uc-wrap {
    display: flex; gap: 20px; max-width: 1100px; margin: 18px auto 30px; padding: 0 15px;
}

/* ---------- 头部个人名片（对齐子比 author-header） ---------- */
.pz-uc-hero {
    margin: 22px 15px 0; border-radius: 12px; overflow: hidden;
    background: var(--pk-bg-card, #fff); border: 1px solid var(--pz-border);
}
.pz-uc-hero-cover {
    position: relative; height: 150px; background-size: cover; background-position: center;
    background-image: linear-gradient(120deg, var(--pz-primary), #8e7bff 55%, #ff9ec4);
}
.pz-uc-hero-mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); }
.pz-uc-hero-cover-actions { position: absolute; right: 12px; top: 12px; }
.pz-uc-hero-cover-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px;
    background: rgba(0,0,0,.35); color: #fff; font-size: 12px; text-decoration: none;
}
@supports (backdrop-filter: blur(4px)) { .pz-uc-hero-cover-btn { backdrop-filter: blur(4px); } }
.pz-uc-hero-cover-btn:hover { background: rgba(0,0,0,.55); color: #fff; }
.pz-uc-hero-body { display: flex; align-items: center; gap: 16px; padding: 0 20px 18px; }
.pz-uc-hero-avatar { flex: 0 0 auto; margin-top: -42px; position: relative; }
.pz-uc-hero-avatar img {
    width: 84px; height: 84px; border-radius: 50%; display: block; object-fit: cover;
    border: 3px solid var(--pk-bg-card, #fff); background: var(--pk-bg-card, #fff);
}
.pz-uc-hero-avatar-edit {
    position: absolute; right: 0; bottom: 2px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--pz-primary); color: #fff; border: 2px solid var(--pk-bg-card, #fff);
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.pz-uc-hero-info { flex: 1; min-width: 0; padding-top: 10px; }
.pz-uc-hero-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pz-uc-hero-level {
    font-size: 12px; font-weight: 500; color: var(--pz-text-soft);
    border: 1px solid var(--pz-border); border-radius: 10px; padding: 1px 8px;
}
.pz-uc-hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pz-uc-hero-chip {
    display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 10px;
    font-size: 12px; color: var(--pz-text-soft); background: var(--pz-bg-soft);
    border: 1px solid transparent; border-radius: 14px; cursor: pointer;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pz-uc-hero-chip:hover { border-color: var(--pz-primary); color: var(--pz-primary); }
.pz-uc-hero-chip-vip {
    cursor: default; color: var(--pz-vip-accent, #ff6b6b);
    background: color-mix(in srgb, var(--pz-vip-accent, #ff6b6b) 12%, transparent);
}
.pz-uc-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.pz-uc-hero-btn {
    position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    font-size: 13px; border-radius: 20px; border: 1px solid var(--pz-border);
    background: var(--pk-bg-card, #fff); color: var(--pz-text); text-decoration: none; cursor: pointer;
}
.pz-uc-hero-btn:hover { border-color: var(--pz-primary); color: var(--pz-primary); }
.pz-uc-hero-btn[disabled] { opacity: .6; cursor: default; }
.pz-uc-hero-btn-primary { background: var(--pz-primary); border-color: var(--pz-primary); color: #fff; }
.pz-uc-hero-btn-primary:hover { opacity: .9; color: #fff; }
.pz-uc-hero-dot {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; line-height: 18px;
    padding: 0 5px; border-radius: 9px; background: var(--pz-danger); color: #fff;
    font-size: 11px; font-style: normal; text-align: center;
}
/* hero 内图标统一跟随字号（pz_icon_html 可能输出 SVG 或 FA <i>） */
.pz-uc-hero .pz-svg-icon { width: 1em; height: 1em; flex: 0 0 auto; }
.pz-uc-hero-avatar-edit .pz-svg-icon { width: 13px; height: 13px; }
.pz-uc-vip-card-icon .pz-svg-icon { width: 22px; height: 22px; }

/* ---------- 侧边栏：VIP 卡 / 资产卡 ---------- */
.pz-uc-vip-card {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
    border-radius: 10px; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #ff9a5a, var(--pz-vip-accent, #ff6b6b));
}
.pz-uc-vip-card.is-vip { background: linear-gradient(135deg, #f7c96b, #dfa03a); }
.pz-uc-vip-card-icon { font-size: 20px; display: inline-flex; flex: 0 0 auto; }
.pz-uc-vip-card-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pz-uc-vip-card-text b { font-size: 14px; }
.pz-uc-vip-card-text em { font-style: normal; font-size: 12px; opacity: .9; }
.pz-uc-vip-card-arrow { margin-left: auto; opacity: .85; }
.pz-uc-vip-card:hover { color: #fff; filter: brightness(1.05); }
.pz-uc-assets { display: flex; gap: 10px; margin-bottom: 14px; }
.pz-uc-asset {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px; border: 1px solid var(--pz-border); border-radius: 10px;
    background: var(--pz-bg-soft); color: var(--pz-text); text-decoration: none;
}
.pz-uc-asset:hover { border-color: var(--pz-primary); color: var(--pz-primary); }
.pz-uc-asset-label { font-size: 12px; color: var(--pz-text-soft); }
.pz-uc-asset-val { font-size: 16px; font-weight: 700; }

/* ---------- 分页 ---------- */
.pz-uc-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.pz-uc-page-info { font-size: 13px; color: var(--pz-text-soft); }
.pz-btn-disabled { opacity: .5; pointer-events: none; }

/* ---------- 游客登录引导卡 ---------- */
.pz-uc-guest-wrap { justify-content: center; }
.pz-uc-guest-card { text-align: center; }
.pz-uc-guest-icon { font-size: 44px; color: var(--pz-primary); margin-bottom: 10px; }
.pz-uc-guest-icon .pz-svg-icon { width: 44px; height: 44px; }
.pz-uc-guest-desc { color: var(--pz-text-soft); margin: 0 0 16px; font-size: 14px; }
.pz-uc-sidebar {
    width: 260px; flex-shrink: 0; background: var(--pk-bg-card, #fff); border: 1px solid var(--pz-border);
    border-radius: 12px; padding: 20px; position: sticky; top: 90px; height: fit-content;
}
.pz-uc-user-card { text-align: center; }
.pz-uc-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--pz-primary); }
.pz-uc-name { font-size: 16px; font-weight: 600; margin-top: 8px; }
.pz-uc-level { color: var(--pz-text-soft); font-size: 13px; margin-top: 4px; }
.pz-uc-stats-mini {
    display: flex; justify-content: space-around; margin: 16px 0; padding: 12px 0;
    border-top: 1px solid var(--pz-border); border-bottom: 1px solid var(--pz-border);
}
.pz-uc-stats-mini div, .pz-uc-stats-mini a {
    text-align: center; color: var(--pz-text); text-decoration: none;
}
.pz-uc-stats-mini a:hover { color: var(--pz-primary); }
.pz-uc-stats-mini span { display: block; font-weight: 600; color: var(--pz-primary); }
.pz-uc-stats-mini label { font-size: 12px; color: var(--pz-text-soft); }
.pz-uc-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.pz-uc-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 8px; color: var(--pz-text); text-decoration: none; transition: all .2s;
}
.pz-uc-nav-item:hover, .pz-uc-nav-item.active { background: var(--pz-bg-soft); color: var(--pz-primary); }
.pz-uc-nav-item.active { background: color-mix(in srgb, var(--pz-primary) 10%, transparent); font-weight: 600; }
.pz-uc-nav-admin { color: var(--pz-primary); border-top: 1px solid var(--pz-border); margin-top: 8px; padding-top: 12px; font-weight: 600; }
.pz-uc-nav-group { margin-top: 12px; margin-bottom: 4px; }
.pz-uc-nav-group:first-child { margin-top: 0; }
.pz-uc-nav-group-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--pz-text-light, #999);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0 14px; opacity: 0.8; cursor: pointer; user-select: none;
}
.pz-uc-nav-group-title:hover { opacity: 1; }
.pz-uc-nav-group-title .pz-svg-icon { font-size: 12px; }
.pz-uc-nav-group-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; transition: transform .2s;
}
.pz-uc-nav-group-arrow i { font-size: 9px; }
.pz-uc-nav-group.active .pz-uc-nav-group-title { opacity: 1; color: var(--pz-primary); }
.pz-uc-nav-group-items { display: flex; flex-direction: column; gap: 4px; }
.pz-uc-badge {
    margin-left: auto; background: var(--pz-danger); color: #fff; font-size: 11px;
    padding: 1px 6px; border-radius: 10px; font-style: normal;
}
.pz-uc-logout { margin-top: 14px; }
.pz-uc-main { flex: 1; min-width: 0; }
.pz-uc-panel { background: var(--pk-bg-card, #fff); border: 1px solid var(--pz-border); border-radius: 12px; padding: 24px; }
.pz-uc-panel-title { margin: 0 0 18px; font-size: 17px; font-weight: 600; }
.pz-uc-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pz-stat-card {
    text-align: center; padding: 18px 10px; border: 1px solid var(--pz-border);
    border-radius: 10px; background: var(--pz-bg-soft);
}
.pz-stat-card i { font-size: 22px; color: var(--pz-primary); }
.pz-stat-val { font-size: 20px; font-weight: 700; margin: 6px 0; }
.pz-stat-label { color: var(--pz-text-soft); font-size: 13px; }
.pz-uc-checkin-bar { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.pz-checkin-streak { color: var(--pz-text-soft); }
.pz-uc-empty { text-align: center; padding: 50px 0; color: var(--pz-text-soft); }
.pz-uc-empty i { font-size: 40px; margin-bottom: 10px; display: block; }

/* 文章列表 */
.pz-uc-post-list { display: flex; flex-direction: column; gap: 10px; }
.pz-uc-post-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px; border: 1px solid var(--pz-border); border-radius: 8px;
}
.pz-uc-post-title { font-weight: 600; color: var(--pz-text); text-decoration: none; }
.pz-uc-post-meta { font-size: 12px; color: var(--pz-text-soft); display: flex; gap: 12px; margin-top: 4px; }
.pz-post-status-publish { color: var(--pz-success); }
.pz-post-status-pending { color: var(--pz-warning); }
.pz-post-status-draft { color: var(--pz-text-soft); }

/* 表格 */
.pz-uc-table { width: 100%; border-collapse: collapse; }
.pz-uc-table th, .pz-uc-table td { padding: 10px; border-bottom: 1px solid var(--pz-border); text-align: left; font-size: 13px; }
.pz-uc-table th { color: var(--pz-text-soft); font-weight: 500; }
.pz-order-status-1 { color: var(--pz-success); }
.pz-order-status-0 { color: var(--pz-warning); }
.pz-order-status--1 { color: var(--pz-text-soft); text-decoration: line-through; }
.pz-order-op-na { color: var(--pz-text-soft); }

/* 余额/积分 */
.pz-uc-balance-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px; background: linear-gradient(135deg, var(--pz-primary), #5cadff);
    border-radius: 12px; margin-bottom: 20px; color: #fff;
}
.pz-balance-amount { font-size: 26px; font-weight: 700; }
.pz-uc-log-list { display: flex; flex-direction: column; gap: 8px; }
.pz-uc-log-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px; border-bottom: 1px solid var(--pz-border);
}
.pz-log-type { font-weight: 600; display: block; }
.pz-log-desc { font-size: 12px; color: var(--pz-text-soft); }
.pz-log-val { font-weight: 600; }
.pz-log-val.pos { color: var(--pz-success); }
.pz-log-val.neg { color: var(--pz-danger); }
.pz-log-time { font-size: 12px; color: var(--pz-text-soft); margin-left: 12px; }

/* VIP 配色固定为珊瑚橙红 #ff6b6b（与会员中心预览效果图一致） */
body { --pz-vip-accent: #ff6b6b; }

/* VIP */
/* ---------- 会员中心 Hero ---------- */
.pz-title-crown { color: var(--pz-vip-accent); margin-right: 6px; }
.pz-vip-hero {
    position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 24px;
    border: 1px solid color-mix(in srgb, var(--pz-vip-accent) 30%, #fff);
    background: linear-gradient(120deg, color-mix(in srgb, var(--pz-vip-accent) 14%, #fff), color-mix(in srgb, var(--pz-vip-accent) 26%, #fff));
}
.pz-vip-hero-bg {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background:
        radial-gradient(420px 200px at 88% -20%, color-mix(in srgb, var(--pz-vip-accent) 55%, transparent), transparent 70%),
        radial-gradient(360px 200px at 0% 120%, color-mix(in srgb, var(--pz-vip-accent) 38%, transparent), transparent 70%);
}
.pz-vip-hero-inner {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 26px 28px; flex-wrap: wrap;
}
.pz-vip-hero-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pz-vip-hero-badge {
    flex: none; width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 30px; color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pz-vip-accent) 72%, #fff), var(--pz-vip-accent));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--pz-vip-accent) 40%, transparent);
    overflow: hidden;
}
.pz-vip-hero-badge > .pz-svg-icon { width: 30px; height: 30px; }
.pz-vip-hero-text { min-width: 0; }
.pz-vip-hero-name { font-size: 20px; font-weight: 800; color: var(--pz-vip-accent); display: flex; align-items: center; gap: 8px; }
.pz-vip-hero-tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--pz-success); padding: 2px 9px; border-radius: 10px; }
.pz-vip-hero-exp { font-size: 13px; color: color-mix(in srgb, var(--pz-vip-accent) 55%, #666); margin-top: 5px; }
.pz-vip-hero-exp b { color: var(--pz-vip-accent); }
.pz-vip-hero-link {
    flex: none; font-size: 13px; color: var(--pz-vip-accent); text-decoration: none;
    background: #fff; border: 1px solid color-mix(in srgb, var(--pz-vip-accent) 32%, #fff); padding: 9px 16px; border-radius: 22px; transition: .2s; font-weight: 600;
}
.pz-vip-hero-link:hover { background: color-mix(in srgb, var(--pz-vip-accent) 10%, #fff); transform: translateY(-1px); }
.pz-vip-hero-cta {
    flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-size: 15px; font-weight: 700; color: #fff; padding: 12px 26px; border-radius: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pz-vip-accent) 82%, #000), var(--pz-vip-accent));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--pz-vip-accent) 36%, transparent); transition: .2s;
}
.pz-vip-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--pz-vip-accent) 46%, transparent); color: #fff; }
.pz-vip-hero-guest { background: linear-gradient(120deg, color-mix(in srgb, var(--pz-vip-accent) 10%, #fff), color-mix(in srgb, var(--pz-vip-accent) 18%, #fff)); border-color: color-mix(in srgb, var(--pz-vip-accent) 24%, #fff); }
.pz-vip-hero-guest .pz-vip-hero-badge { background: linear-gradient(135deg, color-mix(in srgb, var(--pz-vip-accent) 70%, #fff), var(--pz-vip-accent)); }
.pz-vip-hero-guest .pz-vip-hero-name { color: var(--pz-vip-accent); }
.pz-vip-hero-guest .pz-vip-hero-exp { color: color-mix(in srgb, var(--pz-vip-accent) 52%, #666); }

/* ---------- 等级套餐卡片（卡片式） ---------- */
.pz-vip-cards {
    display: grid; gap: 18px; margin-bottom: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
}
.pz-vip-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--pz-border); border-radius: 16px;
    padding: 26px 22px 22px; box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .2s, box-shadow .2s;
}
.pz-vip-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .10); }
.pz-vip-card-featured {
    border: 2px solid var(--pz-vip-accent);
    background: linear-gradient(170deg, color-mix(in srgb, var(--pz-vip-accent) 8%, #fff), #fff);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--pz-vip-accent) 22%, transparent);
}
.pz-vip-card-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pz-vip-accent) 82%, #000), var(--pz-vip-accent));
    color: #fff; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 12px;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--pz-vip-accent) 30%, transparent);
}
.pz-vip-card-name { font-size: 19px; font-weight: 800; color: var(--pz-text); text-align: center; }
.pz-vip-card-desc { font-size: 12px; color: var(--pz-muted, #8a90a2); text-align: center; margin-top: 4px; min-height: 18px; }
.pz-vip-card-price { text-align: center; margin-top: 14px; color: var(--pz-vip-accent); }
.pz-vip-card-price i { font-style: normal; font-size: 15px; }
.pz-vip-card-price b { font-size: 34px; font-weight: 800; }
.pz-vip-card-meta { text-align: center; margin-top: 6px; font-size: 12px; color: var(--pz-muted, #8a90a2); display: flex; flex-direction: column; gap: 2px; }
.pz-vip-card-permonth { color: var(--pz-vip-accent); font-weight: 600; }
.pz-vip-card-equity {
    list-style: none; margin: 18px 0; padding: 16px 0; flex: 1;
    border-top: 1px dashed var(--pz-border); border-bottom: 1px dashed var(--pz-border);
}
.pz-vip-card-equity li { font-size: 13px; color: var(--pz-text); padding: 5px 0; }
.pz-cmp-check { color: var(--pz-success); font-weight: 800; margin-right: 6px; }
.pz-vip-card .pz-vip-buy {
    width: 100%; margin-top: auto; border: none; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pz-vip-accent) 82%, #000), var(--pz-vip-accent));
}
.pz-vip-card .pz-vip-buy:hover { opacity: .92; box-shadow: 0 8px 18px color-mix(in srgb, var(--pz-vip-accent) 34%, transparent); }

/* ---------- 会员权益 ---------- */
.pz-vip-equity { margin-top: 26px; padding: 22px 24px; background: var(--pz-bg-soft);
    border-radius: 16px; border: 1px solid var(--pz-border); }
.pz-vip-equity-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--pz-vip-accent); }
.pz-vip-equity-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pz-vip-equity-list > :last-child { margin-bottom: 0; }
.pz-vip-equity-list ul { margin: 0; padding-left: 18px; }
.pz-vip-equity-list li { margin: 4px 0; color: var(--pz-text); }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
    .pz-vip-hero-inner { padding: 20px; }
    .pz-vip-hero-actions { width: 100%; }
    .pz-vip-hero-cta { width: 100%; justify-content: center; }
    .pz-vip-cards { grid-template-columns: 1fr; gap: 14px; }
    .pz-vip-card { padding: 22px 18px 18px; }
    .pz-vip-card-name { font-size: 17px; }
    .pz-vip-card-price b { font-size: 30px; }
}

/* ========================================
   用户中心 · 移动端适配（≤768px，对齐子主题移动断点）
   桌面为「左侧边栏 + 右侧内容」，移动端改为：侧边栏整块置顶，导航转为横向滑动 Tab
   ======================================== */
@media (max-width: 768px) {
    .pz-uc-wrap {
        flex-direction: column;
        gap: 14px;
        margin: 16px auto;
        padding: 0 12px;
    }
    .pz-uc-sidebar {
        width: 100%;
        position: static;          /* 取消桌面 sticky，避免移动端吸顶挤压内容 */
        top: auto;
        padding: 16px;
    }
    /* 用户卡片在移动端改为横向排版，更紧凑 */
    .pz-uc-user-card { display: flex; align-items: center; text-align: left; gap: 12px; }
    .pz-uc-avatar { flex: 0 0 auto; }
    .pz-uc-avatar img { width: 56px; height: 56px; margin: 0; }
    .pz-uc-user-info { text-align: left; }
    .pz-uc-name { margin-top: 0; }
    .pz-uc-stats-mini { margin: 14px 0; }
    /* 导航转为横向滑动 Tab */
    .pz-uc-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        margin-top: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pz-uc-nav::-webkit-scrollbar { display: none; }
    .pz-uc-nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 14px;
    }
    .pz-uc-nav-item .pz-svg-icon { margin-right: 6px; }
    .pz-uc-badge { margin-left: 6px; }
    .pz-uc-nav-admin { border-top: none; margin-top: 0; padding-top: 8px; }
    .pz-uc-logout { margin-top: 12px; }
    /* 内容面板内边距收窄 */
    .pz-uc-panel { padding: 16px; }
    .pz-uc-panel-title { font-size: 16px; margin-bottom: 14px; }
    /* 概览统计卡 3 列保持，间距收紧 */
    .pz-uc-stats-grid { gap: 8px; }
    .pz-stat-card { padding: 14px 6px; }
    /* 订单表格：容器已有 .pz-uc-table-wrap，开启横向滚动 */
    .pz-uc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pz-uc-table { min-width: 620px; }
    .pz-uc-table th, .pz-uc-table td { padding: 8px; font-size: 12px; }
    /* 余额/积分卡在移动端纵向排列 */
    .pz-uc-balance-card { flex-direction: column; gap: 12px; align-items: flex-start; padding: 18px; }
    .pz-balance-amount { font-size: 22px; }
    /* 表单在移动端占满 */
    .pz-uc-form { max-width: 100%; }
    /* 文章列表项纵向排列，操作按钮占满 */
    .pz-uc-post-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pz-uc-post-actions { width: 100%; }
    .pz-uc-post-actions .pz-btn { width: 100%; }

    /* 头部个人名片：头像+按钮同行，昵称信息换行 */
    .pz-uc-hero { margin: 12px 12px 0; }
    .pz-uc-hero-cover { height: 110px; }
    .pz-uc-hero-body { flex-wrap: wrap; gap: 10px; padding: 0 14px 14px; }
    .pz-uc-hero-avatar { margin-top: -32px; order: 1; }
    .pz-uc-hero-avatar img { width: 64px; height: 64px; }
    .pz-uc-hero-avatar-edit { width: 22px; height: 22px; font-size: 11px; }
    .pz-uc-hero-actions { order: 2; margin-left: auto; padding-top: 0; }
    .pz-uc-hero-info { order: 3; flex: 1 1 100%; padding-top: 0; }
    .pz-uc-hero-name { font-size: 16px; }
    .pz-uc-hero-btn { padding: 6px 12px; font-size: 12px; }
    .pz-uc-stats-mini { margin: 14px 0; }
}

/* 消息 */
.pz-uc-msg-list { display: flex; flex-direction: column; gap: 10px; }
.pz-uc-msg-item {
    padding: 14px; border: 1px solid var(--pz-border); border-radius: 8px; background: var(--pz-bg-soft);
}
.pz-uc-msg-item.unread { border-color: var(--pz-primary); background: color-mix(in srgb, var(--pz-primary) 5%, transparent); }
.pz-msg-title { font-weight: 600; margin-bottom: 4px; }
.pz-msg-content { color: var(--pz-text-soft); font-size: 13px; }
.pz-msg-time { font-size: 12px; color: var(--pz-text-soft); margin-top: 6px; }

/* 表单 */
.pz-uc-form { max-width: 500px; }
.pz-form-row { margin-bottom: 16px; }
.pz-form-row label { display: block; margin-bottom: 6px; font-weight: 500; }
.pz-form-row input[type=text], .pz-form-row input[type=email],
.pz-form-row input[type=number], .pz-form-row input[type=password],
.pz-form-row select, .pz-form-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--pz-border);
    border-radius: 8px; font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.pz-form-row input:focus, .pz-form-row select:focus, .pz-form-row textarea:focus {
    outline: none; border-color: var(--pz-primary);
}
.pz-form-inline { display: flex; align-items: center; justify-content: space-between; }
.pz-link { color: var(--pz-primary); text-decoration: none; }
.pz-input-group { display: flex; gap: 8px; }
.pz-input-group input { flex: 1; }
.pz-send-code {
    white-space: nowrap; padding: 0 14px; border: 1px solid var(--pz-primary);
    background: #fff; color: var(--pz-primary); border-radius: 8px; cursor: pointer; font-size: 13px;
}
.pz-pwd-toggle { background: none; border: none; cursor: pointer; color: var(--pz-text-soft); }

/* ========================================
   前台发布文章页（方案 A · 简约纯净）
   作用域限制在 .pz-publish-*，不影响用户中心等其它表单
   ======================================== */
.pz-publish-wrap { max-width: 760px; margin: 30px auto 50px; padding: 0 15px; }
.pz-publish-header { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--pz-primary); }
.pz-publish-header h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .5px; color: var(--pz-text); }

.pz-publish-form { display: flex; flex-direction: column; gap: 18px; }
.pz-publish-form .pz-form-row { margin-bottom: 0; }
.pz-publish-form .pz-form-row label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #555; }
.pz-publish-form .pz-form-row label em { color: var(--pz-danger); font-style: normal; }
.pz-publish-form .pz-form-row input[type=text],
.pz-publish-form .pz-form-row input[type=email],
.pz-publish-form .pz-form-row input[type=number],
.pz-publish-form .pz-form-row input[type=password],
.pz-publish-form .pz-form-row select,
.pz-publish-form .pz-form-row textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #e3e6ea; border-radius: 9px;
    font-size: 14px; background: #fff; transition: .18s; font-family: inherit; color: var(--pz-text);
}
.pz-publish-form .pz-form-row input:focus,
.pz-publish-form .pz-form-row select:focus,
.pz-publish-form .pz-form-row textarea:focus {
    outline: none; border-color: var(--pz-primary); box-shadow: 0 0 0 3px rgba(45, 140, 240, .10);
}

/* 编辑器（富文本工具栏） */
.pz-editor-box { border: 1px solid #e3e6ea; border-radius: 10px; overflow: hidden; }
.pz-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; background: #f3f4f6; border-bottom: 1px solid #e3e6ea; }
.pz-et-group { display: flex; gap: 4px; }
.pz-et-btn {
    width: 34px; height: 34px; border: 1px solid #e3e6ea; background: #fff; border-radius: 8px;
    cursor: pointer; color: #555; transition: .15s;
    display: inline-flex; align-items: center; justify-content: center;
}
.pz-et-btn:hover { background: var(--pz-primary); color: #fff; border-color: var(--pz-primary); }
.pz-et-sep { width: 1px; height: 24px; background: #dcdfe4; margin: 5px 6px; }
.pz-editor-box .wp-editor-area,
.pz-editor-box textarea { display: block; min-height: 200px; padding: 14px; border: none; width: 100%; font-size: 14px; line-height: 1.7; font-family: inherit; resize: vertical; }

/* 封面图 */
.pz-cover-upload { display: flex; align-items: center; gap: 14px; }
.pz-cover-img { width: 120px; height: 80px; object-fit: cover; border: 1px solid #e3e6ea; border-radius: 8px; }

/* 付费设置块 */
.pz-publish-pay-settings { border: 1px solid #eef0f3; border-radius: 12px; background: #fbfcfd; padding: 18px 20px; margin-top: 4px; }
.pz-publish-pay-settings h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; padding-left: 11px; border-left: 3px solid var(--pz-primary); color: var(--pz-text); }
.pz-publish-pay-settings .pz-meta-table { width: 100%; border-collapse: collapse; }
.pz-publish-pay-settings .pz-meta-table th { text-align: left; width: 130px; font-weight: 600; font-size: 13px; color: #555; padding: 10px 12px; vertical-align: top; }
.pz-publish-pay-settings .pz-meta-table td { padding: 10px 4px; }
.pz-publish-pay-settings .pz-zb-box input[type=number],
.pz-publish-pay-settings .pz-zb-box input[type=text] { padding: 8px 10px; border: 1px solid #e3e6ea; border-radius: 8px; }

/* 提交按钮区 */
.pz-publish-submit { display: flex; gap: 12px; padding-top: 4px; }
.pz-publish-submit .pz-btn { border: none; border-radius: 9px; padding: 11px 26px; font-size: 15px; font-weight: 600; cursor: pointer; }
.pz-publish-submit .pz-btn-primary { background: var(--pz-primary); color: #fff; }
.pz-publish-submit .pz-btn-primary:hover { opacity: .9; }
.pz-publish-submit .pz-btn-outline { background: #fff; color: var(--pz-primary); border: 1px solid var(--pz-primary); }
.pz-publish-submit .pz-btn-outline:hover { background: var(--pz-primary); color: #fff; }

/* 空状态（未开启 / 无权限） */
.pz-empty-page { text-align: center; padding: 60px 20px; color: var(--pz-text-soft); }
.pz-empty-page .pz-btn { margin-top: 16px; }

/* ---------- 深色模式 ---------- */
body.puock-dark .pz-publish-header,
html.pz-dark .pz-publish-header,
html[data-bs-theme="dark"] .pz-publish-header { border-bottom-color: var(--pz-primary); }
body.puock-dark .pz-publish-header h2,
html.pz-dark .pz-publish-header h2,
html[data-bs-theme="dark"] .pz-publish-header h2 { color: #e6e6e6; }

body.puock-dark .pz-publish-form .pz-form-row label,
html.pz-dark .pz-publish-form .pz-form-row label,
html[data-bs-theme="dark"] .pz-publish-form .pz-form-row label { color: #bbb; }
body.puock-dark .pz-publish-form .pz-form-row input,
body.puock-dark .pz-publish-form .pz-form-row select,
body.puock-dark .pz-publish-form .pz-form-row textarea,
html.pz-dark .pz-publish-form .pz-form-row input,
html.pz-dark .pz-publish-form .pz-form-row select,
html.pz-dark .pz-publish-form .pz-form-row textarea,
html[data-bs-theme="dark"] .pz-publish-form .pz-form-row input,
html[data-bs-theme="dark"] .pz-publish-form .pz-form-row select,
html[data-bs-theme="dark"] .pz-publish-form .pz-form-row textarea { background: #1e2430; border-color: #333b49; color: #e6e6e6; }

body.puock-dark .pz-editor-box,
html.pz-dark .pz-editor-box,
html[data-bs-theme="dark"] .pz-editor-box { border-color: #333b49; }
body.puock-dark .pz-editor-toolbar,
html.pz-dark .pz-editor-toolbar,
html[data-bs-theme="dark"] .pz-editor-toolbar { background: #232a36; border-bottom-color: #333b49; }
body.puock-dark .pz-et-btn,
html.pz-dark .pz-et-btn,
html[data-bs-theme="dark"] .pz-et-btn { background: #2b3340; border-color: #3a4350; color: #cdd3df; }
body.puock-dark .pz-et-btn:hover,
html.pz-dark .pz-et-btn:hover,
html[data-bs-theme="dark"] .pz-et-btn:hover { background: var(--pz-primary); color: #fff; border-color: var(--pz-primary); }
body.puock-dark .pz-et-sep,
html.pz-dark .pz-et-sep,
html[data-bs-theme="dark"] .pz-et-sep { background: #3a4350; }
body.puock-dark .pz-editor-box .wp-editor-area,
body.puock-dark .pz-editor-box textarea,
html.pz-dark .pz-editor-box .wp-editor-area,
html.pz-dark .pz-editor-box textarea,
html[data-bs-theme="dark"] .pz-editor-box .wp-editor-area,
html[data-bs-theme="dark"] .pz-editor-box textarea { background: #1e2430; color: #e6e6e6; }
body.puock-dark .pz-cover-img,
html.pz-dark .pz-cover-img,
html[data-bs-theme="dark"] .pz-cover-img { border-color: #333b49; }
body.puock-dark .pz-publish-pay-settings,
html.pz-dark .pz-publish-pay-settings,
html[data-bs-theme="dark"] .pz-publish-pay-settings { background: #1a2029; border-color: #2a323d; }
body.puock-dark .pz-publish-pay-settings h3,
html.pz-dark .pz-publish-pay-settings h3,
html[data-bs-theme="dark"] .pz-publish-pay-settings h3 { color: #e6e6e6; }
body.puock-dark .pz-publish-pay-settings .pz-meta-table th,
html.pz-dark .pz-publish-pay-settings .pz-meta-table th,
html[data-bs-theme="dark"] .pz-publish-pay-settings .pz-meta-table th { color: #bbb; }
body.puock-dark .pz-publish-pay-settings .pz-zb-box input,
html.pz-dark .pz-publish-pay-settings .pz-zb-box input,
html[data-bs-theme="dark"] .pz-publish-pay-settings .pz-zb-box input { background: #1e2430; border-color: #333b49; color: #e6e6e6; }
body.puock-dark .pz-publish-submit .pz-btn-outline,
html.pz-dark .pz-publish-submit .pz-btn-outline,
html[data-bs-theme="dark"] .pz-publish-submit .pz-btn-outline { background: transparent; color: var(--pz-primary); border-color: var(--pz-primary); }
body.puock-dark .pz-publish-submit .pz-btn-outline:hover,
html.pz-dark .pz-publish-submit .pz-btn-outline:hover,
html[data-bs-theme="dark"] .pz-publish-submit .pz-btn-outline:hover { background: var(--pz-primary); color: #fff; }

/* 第三方登录绑定（图标按钮模式；图标与配色提取自 Zibll zib_get_social_type_data：QQ=fa-qq/c-blue、微信=fa-weixin/c-green） */
.pz-oauth-list { display: flex; flex-wrap: wrap; gap: 10px; }
/* 与登录弹窗一致：纯圆形图标、无文字、无卡片 */
.pz-oauth-item {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: none; background: none; min-width: 0;
}
.pz-oauth-item .pz-oauth-icon {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: #e5e7eb; color: #fff; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pz-oauth-item .pz-oauth-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.pz-oauth-item .pz-oauth-icon i { font-size: 20px; line-height: 1; }
/* 品牌色（对应 Zibll c-blue / c-green 语义） */
.pz-oauth-item[data-type="qq"] .pz-oauth-icon { background: #12b7f5; }
.pz-oauth-item[data-type="weixin"] .pz-oauth-icon,
.pz-oauth-item[data-type="weixingzh"] .pz-oauth-icon { background: #07c160; }
.pz-oauth-item[data-type="weibo"] .pz-oauth-icon { background: #e6162d; }
.pz-oauth-item[data-type="github"] .pz-oauth-icon { background: #24292f; }
.pz-oauth-item[data-type="gitee"] .pz-oauth-icon { background: #c71d23; }
.pz-oauth-item[data-type="baidu"] .pz-oauth-icon { background: #2932e1; }
.pz-oauth-item[data-type="alipay"] .pz-oauth-icon { background: #1677ff; }
.pz-oauth-item[data-type="google"] .pz-oauth-icon { background: #4285f4; }
.pz-oauth-item[data-type="microsoft"] .pz-oauth-icon { background: #00a4ef; }
.pz-oauth-item[data-type="facebook"] .pz-oauth-icon { background: #1877f2; }
.pz-oauth-item[data-type="twitter"] .pz-oauth-icon { background: #1da1f2; }
.pz-oauth-item[data-type="apple"] .pz-oauth-icon { background: #333; }
.pz-oauth-item .pz-oauth-name { display: none; }
.pz-oauth-item .pz-bound {
    position: absolute; right: -6px; top: -6px; font-style: normal;
    background: var(--pz-success, #16a34a); color: #fff; font-size: 10px;
    line-height: 1; padding: 3px 6px; border-radius: 8px; white-space: nowrap;
}
.pz-oauth-item.bound .pz-oauth-icon { box-shadow: 0 0 0 2px var(--pz-success, #16a34a); }

/* ============================================================
   Puock 父主题「移动端侧边栏」兼容修复（不修改父主题文件）
   症状：点击浮动按钮只出现一层遮罩，侧边栏面板始终不显示。
   根因：父主题 CSS 中 .mobile-sidebar 在所有断点均为 display:none，
         .active 仅改变 right 位置、并未改为 display:block，
         因此面板永远无法显示，只剩遮罩层。
   修复：在子主题中强制 .active 时显示面板，并锁定面板在遮罩之上。
   守护：仅在「子主题移动端 UI 未接管」时生效，避免与增强样式冲突。
   零额外请求、不影响页面加载速度。
   ============================================================ */
body:not(.pz-mobile-ui) .mobile-sidebar.active { display: block !important; }
body:not(.pz-mobile-ui) .mobile-sidebar .mobile-sidebar-overlay { z-index: 1; }
body:not(.pz-mobile-ui) .mobile-sidebar .mobile-sidebar-content { position: relative; z-index: 2; }

/* ============================================================
   文章底部操作栏（喜欢/收藏/打赏）— 居中 + 胶囊美化
   位于付费区（优先级 20）之后的 the_content 优先级 30
   ============================================================ */
.pz-post-actions {
    display: flex;
    align-items: center;
    justify-content: center;   /* 居中 */
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px auto 8px;
    padding: 4px 0 18px;
}
.pz-post-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border: 1px solid var(--pz-border, #eaeaea);
    border-radius: 24px;
    background: var(--pk-bg-card, #fff);
    color: var(--pz-text-soft, #888);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.pz-post-action b { font-weight: 600; }
.pz-post-action i { font-size: 15px; }
.pz-post-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(45, 140, 240, .16);
    border-color: var(--pz-primary, #2d8cf0);
    color: var(--pz-primary, #2d8cf0);
}
.pz-post-action:active { transform: translateY(0) scale(.97); }
/* 已喜欢：红色实心 */
.pz-like-btn.active {
    color: #fb403f;
    border-color: rgba(251, 64, 63, .45);
    background: rgba(251, 64, 63, .06);
}
.pz-like-btn.active i { color: #fb403f; }
/* 已收藏：金色实心 */
.pz-fav-btn.active {
    color: var(--pz-vip-gold, #f5a623);
    border-color: rgba(245, 166, 35, .5);
    background: rgba(245, 166, 35, .1);
}
.pz-fav-btn.active i { color: var(--pz-vip-gold, #f5a623); }
/* 打赏：图标金色 */
.pz-reward-btn i { color: var(--pz-vip-gold, #f5a623); }
.pz-reward-btn:hover { border-color: var(--pz-vip-gold, #f5a623); color: var(--pz-vip-gold, #f5a623); box-shadow: 0 5px 14px rgba(245, 166, 35, .18); }
/* 关注作者：已关注蓝色实心 */
.pz-follow-btn.active {
    color: var(--pz-primary, #2d8cf0);
    border-color: rgba(45, 140, 240, .45);
    background: rgba(45, 140, 240, .06);
}
.pz-follow-btn.active i { color: var(--pz-primary, #2d8cf0); }
a.pz-follow-btn { text-decoration: none; }
/* 深色模式 */
body.puock-dark .pz-post-actions { border-color: transparent; }
body.puock-dark .pz-post-action {
    background: #1c2330;
    border-color: #2a3444;
    color: #9aa5b5;
    box-shadow: none;
}
body.puock-dark .pz-post-action:hover {
    border-color: var(--pz-primary, #2d8cf0);
    color: var(--pz-primary, #2d8cf0);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .35);
}
body.puock-dark .pz-like-btn.active { background: rgba(251, 64, 63, .14); color: #fb403f; border-color: rgba(251, 64, 63, .5); }
body.puock-dark .pz-fav-btn.active { background: rgba(245, 166, 35, .16); color: var(--pz-vip-gold, #f5a623); border-color: rgba(245, 166, 35, .55); }

/* 前台发布：付费高级设置折叠开关 */
.pz-pay-advanced-toggle { margin-top: 12px; }
.pz-pay-advanced-toggle .pz-btn { font-size: 13px; }
.pz-pay-advanced-toggle .pz-btn i { transition: transform .2s ease; }
.pz-pay-advanced-toggle.open .pz-btn i { transform: rotate(180deg); }

/* ============================================================
   前台发布页 响应式适配（平板 / 手机）
   原样式仅按桌面设计、无断点；窄屏下：付费表 th 固定 130px 挤压、
   提交按钮横向拥挤、输入框 14px 触发 iOS Safari 聚焦时整页放大。
   以下按断点重排，不破坏桌面布局。
   ============================================================ */
@media (max-width: 768px) {
    .pz-publish-wrap { margin: 22px auto 40px; }
    .pz-publish-header { margin-bottom: 14px; }
    .pz-publish-header h2 { font-size: 18px; }
    .pz-publish-form { gap: 14px; }
    /* 输入框字号 >=16px，避免 iOS Safari 聚焦时整页放大 */
    .pz-publish-form .pz-form-row input[type=text],
    .pz-publish-form .pz-form-row input[type=email],
    .pz-publish-form .pz-form-row input[type=number],
    .pz-publish-form .pz-form-row input[type=password],
    .pz-publish-form .pz-form-row select,
    .pz-publish-form .pz-form-row textarea,
    .pz-publish-pay-settings .pz-zb-box input[type=number],
    .pz-publish-pay-settings .pz-zb-box input[type=text] {
        font-size: 16px; padding: 11px 12px;
    }
    .pz-publish-submit .pz-btn { padding: 12px 20px; font-size: 15px; }
    .pz-editor-toolbar { padding: 7px; gap: 3px; }
    .pz-et-btn { width: 32px; height: 32px; }
}

@media (max-width: 600px) {
    .pz-publish-wrap { padding: 0 12px; }
    .pz-publish-pay-settings { padding: 14px 14px; }
    /* 付费设置表：窄屏堆叠为单列，th/td 不再并排挤压 */
    .pz-publish-pay-settings .pz-meta-table,
    .pz-publish-pay-settings .pz-meta-table tbody,
    .pz-publish-pay-settings .pz-meta-table tr,
    .pz-publish-pay-settings .pz-meta-table th,
    .pz-publish-pay-settings .pz-meta-table td {
        display: block; width: 100% !important; box-sizing: border-box;
    }
    .pz-publish-pay-settings .pz-meta-table tr {
        padding: 8px 0; border-bottom: 1px solid var(--pz-border, #eef0f3);
    }
    .pz-publish-pay-settings .pz-meta-table tr:last-child { border-bottom: none; }
    .pz-publish-pay-settings .pz-meta-table th {
        width: auto !important; padding: 8px 0 2px; font-size: 13px;
    }
    .pz-publish-pay-settings .pz-meta-table td { padding: 0 0 8px; }
    /* 提交按钮：纵向堆叠、全宽 */
    .pz-publish-submit { flex-direction: column; gap: 10px; }
    .pz-publish-submit .pz-btn { width: 100%; padding: 13px; }
    /* 封面区：图片与按钮换行 */
    .pz-cover-upload { flex-wrap: wrap; gap: 10px; }
    /* 高级折叠开关全宽 */
    .pz-pay-advanced-toggle .pz-btn { width: 100%; }
    .pz-pay-advanced-toggle { margin-top: 10px; }
    /* 深色模式：付费表堆叠后分隔线随主题 */
    body.puock-dark .pz-publish-pay-settings .pz-meta-table tr,
    html.pz-dark .pz-publish-pay-settings .pz-meta-table tr,
    html[data-bs-theme="dark"] .pz-publish-pay-settings .pz-meta-table tr {
        border-bottom-color: #2a323d;
    }
}

/* ============ 子比(Zibll) SVG 图标（统一替换 FontAwesome，走 currentColor 跟随主题） ============ */
.pz-svg-icon { fill: currentColor; display: inline-block; vertical-align: middle; width: 1em; height: 1em; flex-shrink: 0; }

/* 用户中心导航 */
.pz-uc-nav-item .pz-svg-icon { width: 18px; height: 18px; margin-right: 10px; flex: 0 0 auto; color: inherit; }
/* 用户中心概览统计卡 */
.pz-stat-card .pz-svg-icon { width: 26px; height: 26px; color: var(--pz-primary); }
/* 用户中心空状态 */
.pz-uc-empty .pz-svg-icon { width: 46px; height: 46px; margin-bottom: 10px; display: block; }
/* VIP 面板标题皇冠 */
.pz-title-crown.pz-svg-icon { width: 22px; height: 22px; vertical-align: -3px; }

/* ============ 文章卡片/列表短代码（对齐子比 [postsbox]/[postslists]） ============ */
.pz-postsbox,
.pz-postslists { margin: 10px 0; }

/* 付费区块锚点（隐藏内容 [payshow]/[hidecontent type=payshow] 跳转目标） */
.pz-pay-block { scroll-margin-top: 90px; }

.posts-mini {
    display: flex;
    align-items: stretch;
    padding: 10px;
    background: rgba(0, 0, 0, .02);
    border-radius: var(--pz-radius);
    transition: background .2s;
}
.posts-mini:hover { background: rgba(0, 0, 0, .05); }
.posts-item { position: relative; }

.item-thumbnail {
    display: block;
    width: 90px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: var(--pz-radius);
    overflow: hidden;
    background: #f0f0f0;
}
.item-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.posts-mini-con {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
}
.item-heading {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}
.item-heading a { color: var(--pz-text); text-decoration: none; }
.item-heading a:hover { color: var(--pz-primary); }
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.muted-color { color: var(--pz-text-soft); }

/* 文本列表样式 */
.pz-postslists.text .posts-line {
    padding: 8px 0;
    border-bottom: 1px dashed var(--pz-border);
}
.pz-postslists.text .posts-line a {
    color: var(--pz-text);
    text-decoration: none;
    font-size: 14px;
}
.pz-postslists.text .posts-line a:hover { color: var(--pz-primary); }

/* 深色模式 */
body.puock-dark .posts-mini,
html.pz-dark .posts-mini,
html[data-bs-theme="dark"] .posts-mini {
    background: rgba(255, 255, 255, .05);
}
body.puock-dark .posts-mini:hover,
html.pz-dark .posts-mini:hover,
html[data-bs-theme="dark"] .posts-mini:hover {
    background: rgba(255, 255, 255, .09);
}
body.puock-dark .item-heading a,
html.pz-dark .item-heading a,
html[data-bs-theme="dark"] .item-heading a {
    color: #e6e6e6;
}
body.puock-dark .pz-postslists.text .posts-line a,
html.pz-dark .pz-postslists.text .posts-line a,
html[data-bs-theme="dark"] .pz-postslists.text .posts-line a {
    color: #d0d0d0;
}

/* 虚拟数据：后缀/单位文案 */
.pz-vstat-suffix {
    margin-left: 3px;
    font-weight: 400;
}

/* 兜底隐藏父主题底部 "Theme by Puock" 版权行（主方案见 pz-hooks.php 的过滤器从 DOM 剥离） */
#footer .info div:has(a[href*="wordpress-theme-puock"]) {
    display: none !important;
}

/* ===== 会员免费 VIP 横条（精确复刻子比 payvip-icon / vipbg-v{level}） ===== */
.pz-vip-free-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 0 0 16px;
    position: relative;
    overflow: hidden;
    border: none;
    text-shadow: none;
    font-weight: normal;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 4px;
}
/* VIP2 默认（子比 payvip-icon 深灰渐变） */
.pz-vip-free-bar-v2 {
    background: linear-gradient(300deg, #4c4d51, #2a2a31 15%, #85858a 40%, #393a3c 60%, #393838 80%, #5e5f62 100%);
    color: #ece0e0;
    --this-color: #ece0e0;
}
/* VIP1（子比 vipbg-v1 金色渐变） */
.pz-vip-free-bar-v1 {
    background: linear-gradient(60deg, #f0bf81 0, #fdefd6 30%, #f2deb9 40%, #fdc277 80%, #f9e1b7 100%);
    color: #8c5728;
    --this-color: #8c5728;
}
/* 水印（子比 payvip-icon:before）：VIP2 默认 \f219，em 相对单位定位 */
.pz-vip-free-bar::before {
    content: '\f219';
    font-family: 'FontAwesome';
    font-weight: normal;
    font-size: 3.5em;
    line-height: 1;
    position: absolute;
    right: -0.2em;
    top: 80%;
    opacity: 0.06;
    pointer-events: none;
}
/* VIP1 水印覆盖（子比 vipbg-v1:before: \f006 star-o） */
.pz-vip-free-bar-v1::before {
    content: '\f006';
}
/* 左侧价格区域（对齐子比 price-box > px13） */
.pz-vip-free-price-box {
    position: relative;
    z-index: 1;
}
.pz-vip-free-price {
    padding: 0 13px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}
/* 价格大字（对齐子比 em3x，颜色继承容器） */
.pz-vip-free-price-amount {
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}
/* 货币符号（对齐子比 pay-mark） */
.pz-vip-free-price-mark {
    font-size: 12px;
    margin-right: 3px;
}
/* 划线原价（对齐子比 original-price，::before 旋转8度划线） */
.pz-vip-free-price-original {
    padding-left: 1px;
    padding-right: 2px;
    position: relative;
    font-size: 14px;
    display: inline-flex;
    align-items: baseline;
    margin-left: 8px;
}
.pz-vip-free-price-original::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--this-color, currentColor);
    top: 50%;
    left: 0;
    transform: rotate(8deg);
    transform-origin: center;
}
/* 右侧 VIP 免费标识（对齐子比 flex0 > b.em12） */
.pz-vip-free-label {
    flex: none;
    position: relative;
    z-index: 1;
}
.pz-vip-free-label-text {
    font-size: 1.2em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
.pz-vip-free-label-icon {
    margin-right: 10px;
    font-size: 1.2em;
}
/* 深色模式适配 */
html[data-bs-theme="dark"] .pz-vip-free-bar-v1 {
    background: linear-gradient(60deg, #6b5a3e 0, #4a3f2e 30%, #5a4a35 40%, #6b5535 80%, #5a4a35 100%);
    color: #e8d5b0;
    --this-color: #e8d5b0;
}
/* 移动端适配 */
@media (max-width: 640px) {
    .pz-vip-free-bar {
        padding: 12px;
    }
    .pz-vip-free-price-amount {
        font-size: 2.2em;
    }
    .pz-vip-free-label-text {
        font-size: 1em;
    }
}

/* ===== 会员免费/已购买内容统一卡片容器（对齐子比 pay-box：横条+正文+下载同框） ===== */
.pz-pay-view-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 16px;
}
/* 容器内 VIP 横条：去掉独立 margin 和圆角，与容器顶部融合 */
.pz-pay-view-box .pz-vip-free-bar {
    margin: 0;
    border-radius: 0;
}
/* 容器内付费正文框：去掉独立 margin 和左右上边框，与容器融合 */
.pz-pay-view-box .pz-paid-box {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
/* 容器内会员权益信息条：去掉独立 margin */
.pz-pay-view-box .pz-dl-member-bar {
    margin: 0;
}
.pz-pay-view-box .pz-dlmb-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
/* 容器内下载列表：去掉独立 margin */
.pz-pay-view-box .pz-download-list {
    margin: 0;
}
.pz-pay-view-box .pz-download-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}
.pz-pay-view-box .pz-download-item:first-child {
    border-top: none;
}
.pz-pay-view-box .pz-download-item:last-child {
    border-bottom: none;
}
/* 容器内资源详情/额外隐藏：去掉独立 margin */
.pz-pay-view-box .pz-pay-details,
.pz-pay-view-box .pz-pay-extra-hide {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}
/* 深色模式适配 */
html[data-bs-theme="dark"] .pz-pay-view-box {
    background: #1e1e1e;
    border-color: #333;
}
/* 移动端适配 */
@media (max-width: 640px) {
    .pz-pay-view-box {
        border-radius: 6px;
    }
}

/* ============================================================
   Puock-Zi 小工具美化（覆盖父主题全部12个小工具）
   仅通过子主题CSS实现，父主题升级不受影响
   ============================================================ */

/* --- 通用小工具卡片 --- */
.pk-widget.p-block {
    border-radius: 14px !important;
    padding: 18px 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: box-shadow .3s ease, transform .3s ease;
    margin-bottom: 18px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
}
.pk-widget.p-block:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1) !important;
}

/* --- 小工具标题 --- */
.pk-widget.p-block > div:first-child > span.t-lg {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding-bottom: 10px !important;
    border-bottom-width: 2px !important;
    display: inline-flex !important;
    align-items: center;
    letter-spacing: .3px;
}
.pk-widget.p-block > div:first-child > span.t-lg i {
    font-size: 15px;
    margin-right: 6px;
    opacity: .85;
}

/* --- 文章列表（普通风格：缩略图+标题+摘要） --- */
.widget-common-media-post {
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
    transition: background .2s ease;
}
.widget-common-media-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget-common-media-post:first-child {
    padding-top: 0;
}
.widget-common-media-post .img.ww {
    flex: 0 0 120px;
    width: 120px !important;
    height: 80px !important;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}
.widget-common-media-post .img.ww img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .4s ease;
}
.widget-common-media-post:hover .img.ww img {
    transform: scale(1.06);
}
.widget-common-media-post .info {
    flex: 1;
    min-width: 0;
}
.widget-common-media-post .info h2 {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 600;
}
.widget-common-media-post .info h2 a {
    transition: color .2s ease;
}
.widget-common-media-post .info h2 a:hover {
    color: var(--puock-primary, #409eff) !important;
}
.widget-common-media-post .info .description {
    font-size: 12px !important;
    line-height: 1.6 !important;
    opacity: .7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 文章列表（简洁风格：仅标题） --- */
.pk-widget.p-block .media-link {
    padding: 9px 0 !important;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
    margin-top: 0 !important;
}
.pk-widget.p-block .media-link:last-child {
    border-bottom: none;
}
.pk-widget.p-block .media-link h2 {
    margin: 0 !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
}
.pk-widget.p-block .media-link h2 i {
    color: var(--puock-primary, #409eff);
    opacity: .6;
    font-size: 12px;
}
.pk-widget.p-block .media-link h2 a {
    transition: color .2s ease, padding-left .2s ease;
}
.pk-widget.p-block .media-link:hover h2 a {
    color: var(--puock-primary, #409eff) !important;
    padding-left: 4px;
}

/* --- 搜索框小工具 --- */
.p-block .global-search-form .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.p-block .global-search-form .form-control {
    border-radius: 10px 0 0 10px !important;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.p-block .global-search-form .form-control:focus {
    border-color: var(--puock-primary, #409eff);
    box-shadow: 0 0 0 3px rgba(64,158,255,0.12);
    outline: none;
}

/* --- 关于博主小工具 --- */
.widget-puock-author {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    margin-bottom: 18px !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
}
.widget-puock-author .header {
    position: relative;
    height: 100px;
    background-size: cover;
    background-position: center;
}
.widget-puock-author .header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
}
.widget-puock-author .header img {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
    object-fit: cover;
}
.widget-puock-author .content {
    padding: 36px 16px 16px !important;
}
.widget-puock-author .content .t-lg {
    font-weight: 700 !important;
    font-size: 16px !important;
}
.widget-puock-author .content .t-sm {
    opacity: .7;
    line-height: 1.6;
}
.widget-puock-author .content .row > div {
    padding: 8px 4px !important;
}
.widget-puock-author .content .row > div > div:first-child {
    font-size: 11px !important;
    opacity: .6;
    margin-bottom: 2px;
}
.widget-puock-author .content .row > div > div:last-child {
    font-size: 18px !important;
    font-weight: 700;
}

/* --- 分类目录小工具 --- */
.pk-widget.p-block .row.t-md {
    margin: 0 -4px !important;
}
.pk-widget.p-block .row.t-md > .col {
    padding: 4px !important;
}
.pk-widget.p-block .row.t-md a.puock-bg {
    border-radius: 10px !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: all .25s ease;
    border: 1px solid transparent;
    display: block !important;
    text-align: center;
}
.pk-widget.p-block .row.t-md a.puock-bg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #fff !important;
}

/* --- 标签云小工具 --- */
.widget-puock-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.widget-puock-tag-cloud .badge {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500;
    border-radius: 20px !important;
    transition: all .25s ease;
    border: 1px solid transparent;
}
.widget-puock-tag-cloud .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    color: #fff !important;
}

/* --- 一言小工具 --- */
.widget-puock-hitokoto {
    position: relative;
    padding: 16px 14px 14px 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(64,158,255,0.06), rgba(155,89,182,0.06));
    border-left: 3px solid var(--puock-primary, #409eff);
}
.widget-puock-hitokoto::before {
    content: '\201C';
    position: absolute;
    left: 10px;
    top: 4px;
    font-size: 32px;
    font-family: Georgia, serif;
    color: var(--puock-primary, #409eff);
    opacity: .3;
    line-height: 1;
}
.widget-puock-hitokoto .t {
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-style: italic;
}
.widget-puock-hitokoto .fb {
    margin-top: 10px;
    font-size: 12px;
    opacity: .6;
    text-align: right;
}

/* --- HTML文本小工具 --- */
.pk-widget.p-block .puock-text.t-md {
    line-height: 1.8;
    font-size: 14px;
}

/* --- 最新评论小工具（独特结构） --- */
.pk-widget.p-block .puock-comment-item {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.pk-widget.p-block .puock-comment-item:last-child {
    border-bottom: none;
}
.pk-widget.p-block .puock-comment-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- 深色模式适配 --- */
@media (prefers-color-scheme: dark) {
    .pk-widget.p-block,
    .widget-puock-author {
        background: #1e1e2e !important;
        border-color: rgba(255,255,255,0.06) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
    }
    .widget-common-media-post,
    .pk-widget.p-block .media-link {
        border-bottom-color: rgba(255,255,255,0.06);
    }
    .widget-puock-author .header img {
        border-color: #1e1e2e;
    }
    .widget-puock-hitokoto {
        background: linear-gradient(135deg, rgba(64,158,255,0.1), rgba(155,89,182,0.1));
    }
}
/* 父主题深色模式 class 适配 */
body.puock-dark .pk-widget.p-block,
body.puock-dark .widget-puock-author {
    background: #1e1e2e !important;
    border-color: rgba(255,255,255,0.06) !important;
}
body.puock-dark .widget-common-media-post,
body.puock-dark .pk-widget.p-block .media-link {
    border-bottom-color: rgba(255,255,255,0.06);
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .pk-widget.p-block {
        padding: 14px 16px !important;
        border-radius: 12px !important;
    }
    .widget-common-media-post .img.ww {
        flex: 0 0 96px;
        width: 96px !important;
        height: 68px !important;
    }
    .widget-common-media-post .info h2 {
        font-size: 13px !important;
    }
    .widget-puock-author .header {
        height: 80px;
    }
    .widget-puock-author .header img {
        width: 56px !important;
        height: 56px !important;
        bottom: -24px;
    }
    .widget-puock-author .content {
        padding: 30px 12px 12px !important;
    }
    .pk-widget.p-block .row.t-md > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ============================================================
   热门文章小工具序列号样式（Puock-Zi 增强）
   ============================================================ */

/* 普通风格：缩略图左上角数字排名标签（美化版） */
.pk-widget.p-block .widget-common-media-post .img.ww {
    position: relative;
}
.pz-rank-thumb-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-family: 'Georgia', serif;
}
/* 第1名 金色渐变 + 光晕 */
.pz-rank-thumb-badge.pz-rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
    box-shadow: 0 3px 12px rgba(255,165,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
/* 第2名 银色渐变 */
.pz-rank-thumb-badge.pz-rank-2 {
    background: linear-gradient(135deg, #e8e8e8 0%, #b8b8b8 50%, #909090 100%);
    box-shadow: 0 3px 10px rgba(160,160,160,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
/* 第3名 铜色渐变 */
.pz-rank-thumb-badge.pz-rank-3 {
    background: linear-gradient(135deg, #e8a860 0%, #cd7f32 50%, #a0522d 100%);
    box-shadow: 0 3px 10px rgba(205,127,50,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
/* 第4名+ 深灰渐变 */
.pz-rank-thumb-badge.pz-rank-other {
    background: linear-gradient(135deg, #7f8c8d 0%, #5d6d6e 50%, #4a5556 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* 简洁风格：标题前数字序号徽章（美化版） */
.pk-widget.p-block .media-link.pz-rank-item h2 {
    align-items: center;
}
.pz-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    border-radius: 50%;
    line-height: 1;
    font-family: 'Georgia', serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.pz-rank-badge.pz-rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
    box-shadow: 0 2px 8px rgba(255,165,0,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.pz-rank-badge.pz-rank-2 {
    background: linear-gradient(135deg, #e8e8e8 0%, #b8b8b8 50%, #909090 100%);
}
.pz-rank-badge.pz-rank-3 {
    background: linear-gradient(135deg, #e8a860 0%, #cd7f32 50%, #a0522d 100%);
}
.pz-rank-badge.pz-rank-other {
    background: linear-gradient(135deg, #7f8c8d 0%, #5d6d6e 100%);
    width: 18px;
    height: 18px;
    font-size: 10px;
}
/* ===== 今日下载达上限提示块（v1.4.74） ===== */
.pz-dl-limit-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin: 16px 0;
    border-radius: var(--pk-bg-radius, 12px);
    background: var(--pk-bg-box, #fff);
    border: 1px dashed rgba(255, 111, 6, .35);
}
.pz-dl-limit-ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 111, 6, .12);
    color: #ff6f06;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.pz-dl-limit-tx { flex: 1; min-width: 0; }
.pz-dl-limit-t { font-size: 15px; font-weight: 600; color: var(--pk-font-color, #222); line-height: 1.5; }
.pz-dl-limit-s { font-size: 12.5px; color: var(--pk-font-secondary-color, #999); margin-top: 4px; line-height: 1.6; }

/* ===== 暂无可下载资源提示（付费下载未配置下载地址时）===== */
.pz-dl-empty-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin: 16px 0;
    border-radius: var(--pk-bg-radius, 12px);
    background: var(--pk-bg-box, #fff);
    border: 1px dashed rgba(136, 136, 136, .38);
}
.pz-dl-empty-ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(136, 136, 136, .12);
    color: var(--pk-font-secondary-color, #888);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.pz-dl-empty-tx { flex: 1; min-width: 0; }
.pz-dl-empty-t { font-size: 15px; font-weight: 600; color: var(--pk-font-color, #222); line-height: 1.5; }
.pz-dl-empty-s { font-size: 12.5px; color: var(--pk-font-secondary-color, #999); margin-top: 4px; line-height: 1.6; }
.pz-dl-empty-btn { flex-shrink: 0; white-space: nowrap; }
/* 深色模式：跟随主题变量，图标底色略提亮保证对比度 */
body.puock-dark .pz-dl-empty-ico,
html[data-bs-theme="dark"] .pz-dl-empty-ico {
    background: rgba(255, 255, 255, .08);
    color: var(--pk-font-secondary-color, #aaa);
}
@media (max-width: 640px) {
    .pz-dl-empty-notice { flex-wrap: wrap; gap: 10px; padding: 15px 16px; }
    .pz-dl-empty-btn { width: 100%; justify-content: center; }
}

/* ===== 下载区深色模式适配（v1.7.16）===== */
body.puock-dark .pz-dlmb-card,
html[data-bs-theme="dark"] .pz-dlmb-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
body.puock-dark .pz-dlmb-card::before,
html[data-bs-theme="dark"] .pz-dlmb-card::before {
    background: radial-gradient(circle at 0% 0%, rgba(59,130,246,.1), transparent 60%);
}
body.puock-dark .pz-dlmb-name,
html[data-bs-theme="dark"] .pz-dlmb-name { color: #f1f5f9; }
body.puock-dark .pz-dlmb-vip-none,
html[data-bs-theme="dark"] .pz-dlmb-vip-none { background: #334155; color: #94a3b8; }
body.puock-dark .pz-dlmb-exp,
html[data-bs-theme="dark"] .pz-dlmb-exp { color: #94a3b8; }
body.puock-dark .pz-dlmb-stats li,
html[data-bs-theme="dark"] .pz-dlmb-stats li {
    background: rgba(30,41,59,.65);
    border-color: #334155;
}
body.puock-dark .pz-dlmb-stats-label,
html[data-bs-theme="dark"] .pz-dlmb-stats-label { color: #94a3b8; }
body.puock-dark .pz-dlmb-stats-value,
html[data-bs-theme="dark"] .pz-dlmb-stats-value { color: #f1f5f9; }
body.puock-dark .pz-dlmb-stats-value em,
html[data-bs-theme="dark"] .pz-dlmb-stats-value em { color: #94a3b8; }
body.puock-dark .pz-dlmb-progress-text,
html[data-bs-theme="dark"] .pz-dlmb-progress-text { color: #94a3b8; }
body.puock-dark .pz-dlmb-progress-bar,
html[data-bs-theme="dark"] .pz-dlmb-progress-bar { background: #334155; }
body.puock-dark .pz-download-item,
html[data-bs-theme="dark"] .pz-download-item {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
}
body.puock-dark .pz-download-item:hover,
html[data-bs-theme="dark"] .pz-download-item:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
body.puock-dark .pz-dl-info,
html[data-bs-theme="dark"] .pz-dl-info { color: #f1f5f9; }
body.puock-dark .pz-dl-actions .pz-dl-copy,
html[data-bs-theme="dark"] .pz-dl-actions .pz-dl-copy {
    background: #1e293b; color: #cbd5e1; border-color: #334155;
}
body.puock-dark .pz-dl-actions .pz-dl-copy:hover,
html[data-bs-theme="dark"] .pz-dl-actions .pz-dl-copy:hover {
    background: rgba(59,130,246,.15); border-color: var(--pz-primary);
}
body.puock-dark .pz-dl-more,
html[data-bs-theme="dark"] .pz-dl-more {
    color: #94a3b8; background: rgba(30,41,59,.7); border-color: #475569;
}

/* ===== 用户信息卡头像：真实头像图片适配（v1.7.17）===== */
.pz-dlmb-avatar-has-img {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    overflow: hidden;
}
.pz-dlmb-avatar img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    border: none;
}

/* ---------- 内容区域宽度：跟随后台「页面宽度」设置 ----------
   原为硬编码 1080px，会连同父主题 1240px 一起把分类页/文章页压得比导航栏还窄，
   且 !important 会盖掉后台设置。现改为读取 --pz-content-max 变量（由 pz_head_output 输出），
   未输出变量时回退 1080px 保持旧观感。 */
body.category .container.mt15,
body.archive .container.mt15,
body.search .container.mt15,
body.single #post.container,
body.page .container.mt15 {
    max-width: var(--pz-content-max, 1080px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* 分类页顶部信息也跟随缩窄 */
body.category .cat-top-info .container {
    max-width: var(--pz-content-max, 1080px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==================================================================
   子比（Zibll）风格底部 / 页脚（v1.9.13）
   三栏：站点标识+简介 / 快捷链接+联系方式 / 二维码；下方版权条
   ================================================================== */
.pz-footer-main {
    padding: 38px 0 26px;
}
.pz-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
}
.pz-footer-col {
    flex: 1 1 260px;
    min-width: 0;
}
.pz-footer-col-about {
    flex: 1 1 300px;
    max-width: 380px;
}
.pz-footer-col-links {
    flex: 1 1 280px;
}
.pz-footer-col-qr {
    flex: 0 0 auto;
    text-align: center;
}

.pz-footer-logo {
    display: inline-block;
    text-decoration: none;
}
.pz-footer-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.pz-footer-col-title {
    font-size: 15px;
    font-weight: 500;
    margin: 16px 0 8px;
    color: var(--pk-c-font, #343a40);
}
.pz-footer-muted {
    font-size: 13px;
    line-height: 1.8;
    color: var(--pk-c-sub, #808695);
}

.pz-footer-links {
    font-size: 13px;
    line-height: 2.1;
    margin: 0;
}
.pz-footer-links a {
    color: var(--pk-c-font, #343a40);
    text-decoration: none;
}
.pz-footer-links a:hover {
    color: var(--pk-c-primary, #1c60f3);
}
.pz-footer-link-sep {
    margin: 0 8px;
    color: var(--pk-c-border, #ddd);
}

.pz-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.pz-footer-contact-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pk-bg-grey, #f5f6f7);
    color: var(--pk-c-sub, #808695);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.pz-footer-contact-item:hover {
    background: var(--pk-c-primary, #1c60f3);
    color: #fff;
}
.pz-footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.pz-footer-contact-item i {
    font-size: 15px;
    font-style: normal;
}

/* 微信二维码：鼠标悬停弹出 */
.pz-footer-wechat {
    cursor: pointer;
}
.pz-footer-wechat-pop {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    z-index: 10;
}
.pz-footer-wechat:hover .pz-footer-wechat-pop {
    display: block;
}
.pz-footer-wechat-pop img {
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 4px;
}

.pz-footer-qr-title {
    font-size: 13px;
    margin: 0 0 8px;
    color: var(--pk-c-sub, #808695);
}
.pz-footer-qr-img {
    width: 112px;
    height: 112px;
    padding: 4px;
    background: #fff;
    border-radius: 8px;
}

/* 版权条 */
.pz-footer-bottom {
    margin-top: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--pk-c-border, #eee);
}
.pz-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--pk-c-sub, #808695);
    text-align: center;
}
.pz-footer-bottom-inner a {
    color: inherit;
    text-decoration: none;
}
.pz-footer-bottom-inner a:hover {
    color: var(--pk-c-primary, #1c60f3);
}
.pz-footer-extra img {
    max-height: 20px;
    vertical-align: middle;
}

/* 移动端：三栏堆叠居中 */
@media (max-width: 768px) {
    .pz-footer-main {
        padding: 26px 0 16px;
    }
    .pz-footer-grid {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }
    .pz-footer-col-about {
        max-width: 100%;
    }
    .pz-footer-logo img,
    .pz-footer-qr-img {
        margin: 0 auto;
    }
    .pz-footer-contact {
        justify-content: center;
    }
}

/* 深色模式 */
body.puock-dark .pz-footer-col-title {
    color: #e8e8e8;
}
body.puock-dark .pz-footer-muted,
body.puock-dark .pz-footer-qr-title {
    color: #999;
}
body.puock-dark .pz-footer-links a {
    color: #ccc;
}
body.puock-dark .pz-footer-contact-item {
    background: #2b2b2b;
    color: #bbb;
}
body.puock-dark .pz-footer-contact-item:hover {
    background: var(--pk-c-primary, #1c60f3);
    color: #fff;
}
body.puock-dark .pz-footer-bottom {
    border-top-color: #333;
}
body.puock-dark .pz-footer-bottom-inner {
    color: #999;
}
