/* ========================================
   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;
}

/* ========================================
   全局提示（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(--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(--pz-border);
}
.pz-pay-attrs-list li:last-child { border-bottom: none; }
.pz-pay-attrs-k { flex: 0 0 88px; color: var(--pz-text-soft); }
.pz-pay-attrs-v { flex: 1; color: 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: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    color: #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;
}
.pz-pay-card-media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.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: #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: #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: #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: #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: #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); }

/* 站内二维码支付弹窗：金额居中、突出显示 */
.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; }
@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: #fff;
    border: 1px solid #ffe7ba;
    border-radius: 12px;
    color: #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: #614700; }
.pz-pay-vip-guide-s { font-size: 12px; color: #ad6800; margin-top: 2px; }
.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 组结构） */
.pz-download-list { margin: 14px 0; }
.pz-download-item {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px; border: 1px solid var(--pz-border); border-radius: 10px;
    margin-bottom: 10px; background: #fff;
}
.pz-dl-info { display: flex; align-items: center; gap: 10px; color: var(--pz-text); font-weight: 600; }
.pz-dl-info i { color: var(--pz-primary); }
.pz-dl-name { word-break: break-all; }
.pz-dl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-dl-copy { background: var(--pz-bg-soft); color: var(--pz-text); border-color: var(--pz-border); }
.pz-dl-copy:hover { background: color-mix(in srgb, var(--pz-primary) 10%, #fff); color: var(--pz-primary); }
.pz-dl-more {
    font-size: 12px; color: var(--pz-text-soft);
    background: var(--pz-bg-soft); border: 1px dashed var(--pz-border);
    padding: 6px 10px; border-radius: 6px; line-height: 1.6;
}

/* ========================================
   付费 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-wrap {
    display: flex; gap: 20px; max-width: 1100px; margin: 30px auto; padding: 0 15px;
}
.pz-uc-sidebar {
    width: 260px; flex-shrink: 0; background: #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 { text-align: center; }
.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-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: #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);
}
.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-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; }

/* 第三方登录绑定 */
.pz-oauth-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pz-oauth-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    border: 1px solid var(--pz-border); border-radius: 8px; min-width: 140px;
}
.pz-oauth-item.bound { background: var(--pz-bg-soft); }
.pz-oauth-item i { font-size: 18px; }
.pz-bound { color: var(--pz-success); font-size: 12px; margin-left: auto; }
.pz-bind-btn { margin-left: auto; color: var(--pz-primary); text-decoration: none; }

/* ============================================================
   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); }
/* 深色模式 */
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; }

/* 用户中心导航 */
.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;
}

