/* ============================================================
 * 幻灯片文章（post-style-6）弹窗样式
 * 灰透明遮罩 + 左右结构（A3 幻灯片 / 文章信息 + 下载）
 * ============================================================ */

/* ---------- 遮罩层 ---------- */
.jitheme-slide-mask {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    padding: 24px 16px;
}
.jitheme-slide-mask.show {
    opacity: 1;
    visibility: visible;
}
.jitheme-slide-mask.show .jitheme-slide-popup {
    transform: translateY(0) scale(1);
}

/* ---------- 关闭按钮 ---------- */
.jitheme-slide-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: var(--b2-bg, #fff);
    color: var(--b2color, #333);
    font-size: var(--fs-md);
    cursor: pointer;
    box-shadow: none;
    transition: all .2s;
}
.jitheme-slide-close:hover {
    background: var(--b2lightcolor, #f3f3f3);
    transform: rotate(90deg);
}

/* ---------- 左栏：幻灯片 ---------- */
.jsp-left {
    width: 55%;
    flex-shrink: 0;
    background: var(--bg-card-hover);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.jsp-stage {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: transparent;
}
.jsp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 12px;
    background: var(--b2-bg, #fff);
    max-height: 420px;
    max-width: 600px;
}
.jsp-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    box-shadow: none;
}

/* ---------- 左右箭头 ---------- */
.jsp-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    z-index: 3;
    user-select: none;
    transition: all .2s;
    border: 1px solid var(--border-color);
}
.jsp-arrow:hover {
    background: var(--bg-card);
    color: var(--b2color, #1a73e8);
}
.jsp-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.jsp-prev {
    left: 10px;
}
.jsp-next {
    right: 10px;
}

/* ---------- 缩略图行 ---------- */
.jsp-thumbs {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--border-color);
    justify-content: center;
}
.jsp-thumbs::-webkit-scrollbar {
    display: none;
}
.jsp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.6;
    transition: all .2s;
}
.jsp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jsp-thumb a.ji-lb {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}
.jsp-thumb a.ji-lb img {
    cursor: zoom-in;
}
.jsp-thumb.active,
.jsp-thumb:hover {
    opacity: 1;
    border-color: var(--b2color, #fc3c2d);
}

/* ---------- 广告位 ---------- */
.jsp-ad {
    display: none;
    border-radius: var(--b2radius);
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid var(--border-color);
}
.jsp-ad img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    display: block;
}
.jsp-ad.no-img::before {
    content: '广告位招租';
    color: var(--b2color, #999);
    font-size: var(--fs-sm);
    opacity: 0.6;
}

/* ---------- 右栏：信息 ---------- */
.jsp-right {
    width: 45%;
    flex-shrink: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--b2-bg, #fff);
}
.jsp-title {
    display: block !important;
    height: auto !important;
    font-size: var(--fs-lg);
    line-height: 1.35;
    margin: 0 0 12px;
    padding-right: 40px;
    color: var(--b2color, #222);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jsp-id {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 20px;
}
.jsp-id-label,
.jsp-id-val {
    color: var(--text-muted);
}
.jsp-copy {
    border: 1px solid var(--border-color);
    background: var(--b2lightcolor, #f9f9f9);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
}
.jsp-copy:hover {
    opacity: 0.8;
    background: var(--b2lightcolor-hover, #eee);
}

/* ---------- 价格横幅 ---------- */
.jsp-price {
    display: none !important;
    background: var(--b2lightcolor, #f5f6f8);
    border-radius: var(--b2radius);
    padding: 16px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}
.jsp-price-left {
    display: flex;
    align-items: baseline;
}
.jsp-price-now {
    font-size: var(--fs-lg);
    color: var(--b2color, #333);
    margin-right: 4px;
}
.jsp-price-ori {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}
.jsp-price-unit {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    margin-right: 12px;
}
.jsp-price-tag {
    margin-left: auto;
    font-size: var(--fs-xs);
    color: #d9001b;
    background: #fff0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ---------- 参数网格 ---------- */
.jsp-params {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}
.jsp-param-cell {
    background: var(--b2-bg, #fff);
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
}
.jsp-param-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.jsp-param-value {
    font-size: var(--fs-xs);
    color: var(--b2color, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 立即下载按钮 ---------- */
.jsp-download {
    width: 100%;
    margin-top: auto;
    border: none;
    border-radius: var(--b2radius);
    padding: 12px;
    font-size: var(--fs-base);
    color: #fff;
    background: linear-gradient(135deg, var(--b2color, #fc3c2d), var(--b2color, #ff6b5e));
    cursor: pointer;
    transition: all .2s;
    box-shadow: none;
    display: block;
    margin-bottom: 8px;
}
.jsp-download:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    background: #333;
}
.jsp-download.disabled {
    background: #aaa;
    color: var(--b2color, #999);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.jsp-download-hint {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    text-align: center;
    min-height: 14px;
}

/* ---------- 列表卡片（幻灯片样式） ---------- */
.post-list-item.slide-post-card .item-in {
    cursor: pointer;
}
.post-list-item.slide-post-card .item-in:hover {
    box-shadow: none;
}

/* ============================================================
 * post-7 / post-8 大图列表：flex 换行布局
 * li 宽度由后台 post_row_count 通过 PHP 输出 width:% 计算，CSS 不写死列数
 * ============================================================ */

.post-7.post-list ul.b2_gap > li,
.post-8.post-list ul.b2_gap > li {
    margin: 0;
    min-width: 0;
}

/* ============================================================
 * post-9 幻灯片列表（弹窗文章）卡片
 * ============================================================ */
.jitheme-post9-box .post-list-item {
    width: 100%;
}
.post-9.post-list ul.b2_gap {
    display: grid;
    /* 列数由 PHP 动态输出（后台"每行显示数量"），此处不写死 grid-template-columns */
    gap: 24px;
    margin: 0;
    padding: 0;
    width: 100%;
}
.post-9.post-list ul.b2_gap > li {
    width: auto;
    margin: 0;
    min-width: 0;
}
.jitheme-post9 .item-in {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    background: var(--b2-bg, #fff);
    transition: box-shadow .25s ease, transform .25s ease;
}
.jitheme-post9 .item-in:hover {
    box-shadow: none;
    transform: translateY(-4px);
}
.jitheme-post9 .post-module-thumb {
    position: relative;
    overflow: hidden;
    background: var(--b2lightcolor, #f5f6f7);
    aspect-ratio: 4 / 3;
    height: auto !important;
    padding-top: 0 !important;
}
.jitheme-post9 .post-module-thumb .post-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.jitheme-post9 .thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* hover 预览遮罩 */
.jitheme-post9-preview i 
.jitheme-post9 .post-module-thumb:hover .jitheme-post9-preview {
    opacity: 1;
    transform: translateY(0);
}

/* 幻灯片角标 */
.jitheme-post9-slide-tag i 

/* 卡片内图片计数 */
.jitheme-post9-count .b2font {
    font-size: var(--fs-xs);
}

/* 卡片内容 */
.jitheme-post9 .card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.jitheme-post9 .card-title {
    font-size: var(--fs-md);
    line-height: 1.4;
    color: var(--b2color, #222);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jitheme-post9 .card-title a {
    color: inherit;
}
.jitheme-post9 .card-desc {
    font-size: var(--fs-sm);
    color: var(--b2color, #666);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.jitheme-post9 .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-xs);
    color: var(--b2color, #999);
    margin: 0 0 12px;
    gap: 8px;
}
.jitheme-post9 .meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.jitheme-post9 .meta-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.jitheme-post9 .meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}
.jitheme-post9 .meta-item i {
    font-style: normal;
}
.jitheme-post9 .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}
.jitheme-post9 .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--b2color, #555);
    min-width: 0;
}
.jitheme-post9 .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.jitheme-post9 .author-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jitheme-post9 .post-date {
    font-size: var(--fs-sm);
    color: var(--b2color, #999);
    flex-shrink: 0;
}

/* ---------- 卡片内幻灯片 ---------- */
.jitheme-post9-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}
.jitheme-post9-slider:active {
    cursor: grabbing;
}
.jitheme-post9-slider .slider-track {
    display: flex;
    height: 100%;
}
.jitheme-post9-slider .slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    -webkit-user-drag: none;
    display: block;
}
.jitheme-post9-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--overlay);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}
.jitheme-post9-arrow:hover {
    background: var(--overlay-deep);
}
.jitheme-post9-arrow.prev {
    left: 8px;
}
.jitheme-post9-arrow.next {
    right: 8px;
}
.jitheme-post9-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity .2s;
}
.jitheme-post9-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    cursor: pointer;
    transition: all .3s;
}
.jitheme-post9-dots .dot.active {
    width: 14px;
    background: var(--bg-card);
}
.item-in:hover .jitheme-post9-arrow,
.item-in:hover .jitheme-post9-dots,
.jitheme-post9-slider:hover .jitheme-post9-arrow,
.jitheme-post9-slider:hover .jitheme-post9-dots {
    opacity: 1;
}

/* ============================================================
 * 幻灯片文章弹窗 V2（参考稿风格）
 * 1400px 左右结构 + 权限卡片 + 支付方式选择弹窗
 * ============================================================ */
.jsp-permission-card {
    border: 1px dashed #fadb14;
    background: #fffdf0;
    border-radius: var(--b2radius);
    padding: 16px;
    margin-bottom: 14px;
    font-size: var(--fs-base);
}
.jsp-perms {
    display: flex;
    gap: 15px;
    flex-direction: column;
}
.jitheme-all-perms {
    margin-top: 15px;
}
.jsp-perm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e6b8;
    margin-bottom: 12px;
}
.jsp-perm-title {
    color: var(--b2color, #333);
    font-size: var(--fs-base);
}
.jsp-perm-link {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    text-decoration: none;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.jsp-perm-link:hover {
    color: var(--b2color, #1a73e8);
}
.jsp-perm-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 3px;
    font-size: var(--fs-sm);
}
.jsp-perm-option:hover {
    background: var(--b2lightcolor, #f7f7f7);
}
.jsp-perm-option.active {
    background: #fff3b0;
    border: 1px solid #fadb14;
    padding: 7px 9px;
}
.jsp-perm-name {
    color: var(--text-secondary);
}
.jsp-perm-option.active .jsp-perm-name {
    color: #d9001b;
}
.jsp-perm-price,
.jsp-perm-price-free {
    color: var(--text-secondary);
}
.jsp-perm-option.active .jsp-perm-price {
    color: #d9001b;
    font-size: var(--fs-md);
}
.jsp-perm-option.active .jsp-perm-price-free {
    color: #d9001b;
}
.jsp-action-area {
    margin-top: auto;
    text-align: center;
}
/* 信息/说明面板内的操作区：贴面板底部，上下分布均衡 */
.jitheme-slide-detail .detail-popup .action-area {
    margin-top: auto;
    padding-top: 16px;
}

/* 当前身份标签 */
.jsp-me-label {
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 查看全部权限：箭头图标 + hover 旋转 */
.perm-header .perm-link {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.perm-header .perm-link:hover {
    color: var(--b2color, #1a73e8);
}
.perm-link i {
    font-size: var(--fs-base);
    margin-left: 2px;
    vertical-align: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.perm-link:hover i {
    transform: rotate(180deg);
    color: var(--b2color, #1a73e8);
}

/* 全部权限列表 */
.jitheme-all-perms .all-perm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    font-size: var(--fs-sm);
    border-bottom: 1px dashed var(--border-color);
}
.jitheme-all-perms .all-perm-row:last-child {
    border-bottom: none;
}
.jitheme-all-perms .all-perm-name {
    color: var(--b2color, #333);
}
.jitheme-all-perms .all-perm-val {
    color: var(--b2color, #888);
}
.jitheme-all-perms .perm-option {
    padding: 8px 10px;
    margin-bottom: 15px;
    font-size: var(--fs-sm);
    cursor: default;
}
.jitheme-all-perms .perm-option:last-child {
    margin-bottom: 0;
}

/* ============================================================
 * 支付方式选择弹窗
 * ============================================================ */
.jitheme-pay-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 100;
}
.jitheme-pay-overlay.show {
    opacity: 1;
    visibility: visible;
}
.jitheme-pay-dialog {
    background: var(--b2-bg, #fff);
    width: 400px;
    max-width: 92vw;
    border-radius: var(--b2radius);
    padding: 24px;
    box-shadow: none;
    transform: translateY(20px) scale(0.95);
    transition: all .3s ease;
}
.jitheme-pay-overlay.show .jitheme-pay-dialog {
    transform: translateY(0) scale(1);
}
.jsp-pay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.jsp-pay-title {
    font-size: var(--fs-lg);
    color: var(--b2color, #333);
}
.jsp-pay-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all .2s;
}
.jsp-pay-option:hover {
    border-color: var(--b2color, #1a73e8);
    background: var(--bg-primary-soft);
}
.jsp-pay-option-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jsp-pay-option-title {
    font-size: var(--fs-base);
    color: var(--b2color, #333);
}
.jsp-pay-option-desc {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.jsp-pay-option-right {
    font-size: var(--fs-md);
    color: #d9001b;
}
.jsp-pay-option-right.points {
    color: #f5a623;
}
.jsp-pay-option-right.free {
    color: #52c41a;
}
.jsp-pay-none {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--fs-base);
    padding: 12px 0;
}
.jsp-pay-none-tip {
    color: #d9001b;
    margin-top: 6px;
    font-size: var(--fs-sm);
}

/* ============================================================
 * 下载方式选择弹窗
 * ============================================================ */
.jitheme-dl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 1000;
}
.jitheme-dl-overlay.show {
    opacity: 1;
    visibility: visible;
}
.jitheme-dl-dialog {
    background: var(--bg-card);
    width: 380px;
    max-width: 92%;
    border-radius: var(--b2radius);
    padding: 24px;
    box-shadow: none;
    transform: translateY(20px) scale(.95);
    transition: all .3s ease;
}
.jitheme-dl-overlay.show .jitheme-dl-dialog {
    transform: translateY(0) scale(1);
}
.jsp-dl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jsp-dl-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    cursor: pointer;
    transition: all .2s;
}
.jsp-dl-option:hover {
    border-color: var(--b2color, #1a73e8);
    background: var(--bg-primary-soft);
}
.jsp-dl-name {
    font-size: var(--fs-base);
    color: var(--text-primary);
}
.jsp-dl-go {
    font-size: var(--fs-sm);
    color: var(--b2color, #1a73e8);
    display: flex;
    align-items: center;
    gap: 4px;
}
.jsp-dl-go i {
    font-size: var(--fs-md);
}

/* ============================================================
 * 下载确认弹窗
 * ============================================================ */
.jitheme-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 1100;
}
.jitheme-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}
.jitheme-confirm-dialog {
    background: var(--bg-card);
    width: 340px;
    max-width: 88%;
    border-radius: var(--b2radius);
    padding: 28px 24px 20px;
    box-shadow: none;
    transform: translateY(16px) scale(.96);
    transition: all .25s ease;
    text-align: center;
}
.jitheme-confirm-overlay.show .jitheme-confirm-dialog {
    transform: translateY(0) scale(1);
}
.jsp-confirm-title {
    font-size: var(--fs-base);
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 24px;
    word-break: break-all;
}
.jsp-confirm-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.jsp-confirm-ok,
.jsp-confirm-cancel {
    border: none;
    border-radius: var(--b2radius);
    padding: 10px 26px;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: all .2s;
}
.jsp-confirm-ok {
    background: var(--b2color, #1a73e8);
    color: #fff;
    border: 1px solid var(--b2color, #1a73e8);
}
.jsp-confirm-ok:hover {
    background: #1663c4;
}
.jsp-confirm-cancel {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.jsp-confirm-cancel:hover {
    background: var(--bg-input);
}

/* ============================================================
 * 弹窗关闭按钮：圆形
 * ============================================================ */
.jsp-pay-close,
.payment-close,
.jsp-dl-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #4caf50;
    font-size: var(--fs-md);
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .2s, color .2s;
    border: none;
    padding: 0;
    text-decoration: none;
    flex-shrink: 0;
}
.jsp-pay-close:hover,
.payment-close:hover,
.jsp-dl-close:hover {
    background: #c8e6c9;
    color: #388e3c;
}

/* ============================================================
 * 详情页复刻弹窗（detail-popup 覆盖弹窗定位样式）
 * ============================================================ */
.jitheme-slide-detail {
    margin-bottom: 24px;
}
/* 幻灯片详情页面包屑（与壁纸详情页一致：内容区外独立行，首页 › 分类 › 标题） */
/* .b2-single-content 为 flex nowrap（内容区+侧栏并排）：面包屑绝对定位到容器顶部，
   不参与 flex 流，内容区/侧栏保持 B2 默认并排布局（不侵入其他单页布局） */
/*body.single.ji-slide-single .b2-single-content {*/
/*    position: relative;*/
/*    padding-top: 40px;*/
/*}*/
/* B2 默认会给单页内容区 max-width: calc(100% - 300px) 以与侧栏并排（由 JS 计算），
   幻灯片页未命中该逻辑，这里补齐，保证内容区与 300px 侧栏并排不溢出 */
/*body.single.ji-slide-single .b2-single-content > .content-area {*/
/*    max-width: calc(100% - 300px);*/
/*}*/
.jitheme-slide-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    flex: none;
    width: auto;
    font-size: var(--fs-sm);
    color: var(--text-primary, #64748b);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    line-height: 1.6;
}
.jitheme-slide-breadcrumb a {
    color: var(--text-primary, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}
.jitheme-slide-breadcrumb a:hover {
    color: var(--text-primary, #4f6ef7);
}
.jitheme-slide-breadcrumb .jitheme-wp-bc-sep {
    margin: 0 8px;
    color: var(--text-muted);
}
.jitheme-slide-detail .detail-popup .jsp-thumbs img.active {
    border-color: var(--b2color, #fc3c2d);
    opacity: 1;
}

/* 隐藏详情页底部上一篇/下一篇导航 */
.ji-slide-single .post-pre-next {
    display: none !important;
}

/* 幻灯片文章单页：只显示 entry-content 内容 */
.ji-slide-single .b2-single-content h1,
.ji-slide-single .post-meta,
.ji-slide-single .download-box,
.ji-slide-single .comments-area,
.ji-slide-single .post-footer,
.ji-slide-single .single-footer,
.ji-slide-single .share-box,
.ji-slide-single .post-tags,
.ji-slide-single .single-post-header,
.ji-slide-single .post-user-info,
.ji-slide-single #post-meta,
.ji-slide-single .entry-header,
.ji-slide-single .single-button-download,
.ji-slide-single .post-meta-row {
    display: none !important;
}
.ji-slide-single .content-area {
    width: 100%;
    max-width: none;
}

/* ============================================================
 * 详情页幻灯片文章：完全按弹窗样式
 * ============================================================ */
.jitheme-slide-detail .detail-popup {
    display: flex;
    background: var(--bg-card);
    width: 100%;
    border-radius: var(--b2radius);
    padding: 32px;
}
.jitheme-slide-detail .detail-popup .gallery-section {
    width: 600px !important;
    /* max-width: 600px !important; */
    /* flex: 0 0 600px !important; */
    min-width: 0;
    flex: 0 0 600px !important;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    padding: var(--gap);
    /* border-right: 1px solid var(--border-color); */
    overflow: hidden;
}
.jitheme-slide-detail .detail-popup .details-section {
    width: auto !important;
    flex: 1 1 auto !important;
    /* 只保留左内边距（分隔左栏图集），其余方向为 0 */
    padding-left: var(--gap) !important;
    /* 固定右栏最小宽度，避免 TAB 切换（信息/说明内容宽度不同）时
       flex 压缩左栏画廊，导致幻灯片主图尺寸变化 */
    min-width: 320px !important;
}
.jitheme-slide-detail .detail-popup .main-image-wrapper {
    width: 100%;
    aspect-ratio: 1.414 / 1;
    background-color: var(--bg-card-hover);
    border-radius: var(--b2radius);
    overflow: hidden;
    position: relative;
    border: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jitheme-slide-detail .detail-popup .main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jitheme-slide-detail .detail-popup .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-body);
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: none;
    transition: all .2s;
    z-index: 2;
    text-decoration: none;
}
.jitheme-slide-detail .detail-popup .nav-btn:hover {
    background: var(--bg-input);
    color: var(--b2color, #1a73e8);
}
.jitheme-slide-detail .detail-popup .nav-btn i {
    font-size: 30px;
    line-height: 1;
    font-style: normal;
}
.jitheme-slide-detail .detail-popup .nav-btn.prev {
    left: 16px;
}
.jitheme-slide-detail .detail-popup .nav-btn.next {
    right: 16px;
}
.jitheme-slide-detail .detail-popup .thumbnail-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
    padding-top: 15px;
}
.jitheme-slide-detail .detail-popup .thumbnail-list::-webkit-scrollbar {
    display: none;
}
.jitheme-slide-detail .detail-popup .thumbnail-list img {
    width: 60px;
    height: 45px;
    border-radius: var(--b2radius);
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: .6;
    transition: all .2s;
    flex-shrink: 0;
    object-fit: cover;
    box-sizing: content-box;
    background: var(--bg-input);
}
.jitheme-slide-detail .detail-popup .thumbnail-list img:hover {
    opacity: 1;
}
.jitheme-slide-detail .detail-popup .thumbnail-list a.ji-lb {
    display: block;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}
.jitheme-slide-detail .detail-popup .thumbnail-list a.ji-lb img {
    cursor: zoom-in;
}
/* 详情页缩略图（点击切换大图，不进灯箱；缩略图为 medium 小图） */
.jitheme-slide-detail .detail-popup .thumbnail-list a.jsp-thumb-item {
    display: block;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}
.jitheme-slide-detail .detail-popup .thumbnail-list a.jsp-thumb-item img {
    cursor: pointer;
}
/* 隐藏灯箱图集：仅供主图灯箱收集多图，不占布局 */
.jsp-lb-hidden {
    display: none !important;
}
.jitheme-slide-detail .detail-popup .jsp-main-img {
    cursor: zoom-in;
}
.jitheme-slide-detail .detail-popup .jsp-main-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    text-decoration: none;
}
.jitheme-slide-detail .detail-popup .thumbnail-list img.active {
    border-color: var(--b2color, #1a73e8);
    opacity: 1;
    box-shadow: none;
}
.jitheme-slide-detail .detail-popup .ad-section {
    height: 80px;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-color);
    border-radius: var(--b2radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    overflow: hidden;
}
.jitheme-slide-detail .detail-popup .ad-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right details */
.jitheme-slide-detail .detail-popup .jsp-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}
.jitheme-slide-detail .detail-popup .jsp-title {
    display: -webkit-box !important;
    height: auto !important;
    font-size: var(--fs-lg);
    color: #222;
    line-height: 1.3;
    padding-right: 20px;
    flex: 1;
    min-width: 0;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.jitheme-slide-detail .detail-popup .id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    background: none;
}
.jitheme-slide-detail .detail-popup .copy-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all .2s;
}
.jitheme-slide-detail .detail-popup .copy-btn:hover {
    background: var(--bg-muted);
}
.jitheme-slide-detail .detail-popup .option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: var(--fs-base);
    color: var(--text-primary);
    padding: 10px 14px;
    background: linear-gradient(90deg, #eef3ff, #f6f8fc);
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
}
.jitheme-slide-detail .detail-popup .cad-badge {
    background: #000;
    color: #fff;
    font-size: var(--fs-xs);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
}
.jitheme-slide-detail .detail-popup .core-param-banner {
    display: none !important;
}

/* Params grid: 4 columns */
.jitheme-slide-detail .detail-popup .params-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.jitheme-slide-detail .detail-popup .param-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    padding: 6px 14px;
    transition: background-color .2s;
}
.jitheme-slide-detail .detail-popup .param-card:hover {
    background-color: #f5f6f8;
}
.jitheme-slide-detail .detail-popup .param-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.2;
}
.jitheme-slide-detail .detail-popup .param-value {
    font-size: var(--fs-sm);
    color: var(--box-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Permission card */
.jitheme-slide-detail .detail-popup .permission-card {
    border: 1px solid #f0e6d0;
    background-color: #fffdf9;
    border-radius: var(--b2radius);
    padding: 15px;
    margin-bottom: 20px;
}
.jitheme-slide-detail .detail-popup .perm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e6d0;
}
.jitheme-slide-detail .detail-popup .perm-title {
    font-size: var(--fs-base);
    margin-right: 10px;
}
.jitheme-slide-detail .detail-popup .perm-link {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.jitheme-slide-detail .detail-popup .perm-link:hover {
    color: var(--b2color, #1a73e8);
}
.jitheme-slide-detail .detail-popup .perm-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--b2radius);
    font-size: var(--fs-base);
    transition: all .2s;
    cursor: pointer;
}
.jitheme-slide-detail .detail-popup .perm-option:last-child {
    margin-bottom: 0;
}
.jitheme-slide-detail .detail-popup .perm-badge-green {
    background: #e6fffb;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 2px 8px;
    border-radius: var(--b2radius);
    font-size: var(--fs-xs);
    margin-left: 8px;
}
.jitheme-slide-detail .detail-popup .jsp-me-label {
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--fs-sm);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: middle;
}
.jitheme-slide-detail .detail-popup .jsp-me-label .lv-icon {
    vertical-align: middle;
}
.jitheme-slide-detail .detail-popup .perm-link i {
    font-size: var(--fs-sm);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 推荐行（selected）：对勾标记 */
.jitheme-slide-detail .detail-popup .perm-option.selected .perm-price::before,
.jitheme-slide-detail .detail-popup .perm-option.selected .perm-price-free::before {
    content: '✔';
    margin-right: 6px;
}

/* Action area */
.jitheme-slide-detail .detail-popup .download-btn {
    width: 100%;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: var(--fs-md);
    border-radius: var(--b2radius);
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 0;
}
.jitheme-slide-detail .detail-popup .download-btn:hover {
    background-color: #333;
}
.jitheme-slide-detail .detail-popup .sub-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Payment overlay（详情页内的支付弹窗） */
.jitheme-slide-detail .payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 1000;
}
.jitheme-slide-detail .payment-overlay.show {
    opacity: 1;
    visibility: visible;
}
.jitheme-slide-detail .payment-dialog {
    background: var(--bg-card);
    width: 400px;
    max-width: 92%;
    border-radius: var(--b2radius);
    padding: 24px;
    box-shadow: none;
    transform: translateY(20px) scale(.95);
    transition: all .3s ease;
}
.jitheme-slide-detail .payment-overlay.show .payment-dialog {
    transform: translateY(0) scale(1);
}
.jitheme-slide-detail .payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.jitheme-slide-detail .payment-title {
    font-size: var(--fs-lg);
    color: var(--text-primary);
}
.jitheme-slide-detail .payment-close {
    background: none;
    border: none;
    font-size: var(--fs-lg);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}
.jitheme-slide-detail .payment-close:hover {
    color: var(--text-primary);
}
.jitheme-slide-detail .pay-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all .2s;
}
.jitheme-slide-detail .pay-option:hover {
    border-color: #52c41a;
    background: #f6ffed;
}
.jitheme-slide-detail .pay-option-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jitheme-slide-detail .pay-option-title {
    font-size: var(--fs-base);
    color: var(--text-primary);
}
.jitheme-slide-detail .pay-option-desc {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.jitheme-slide-detail .pay-option-right {
    font-size: var(--fs-md);
    color: #d9001b;
}
.jitheme-slide-detail .pay-option-right.points {
    color: #f5a623;
}
.jitheme-slide-detail .pay-option-right.free {
    color: #52c41a;
}

/* ============================================================
 * 幻灯片下方正文区（标题 + 元信息 + 正文）
 * ============================================================ */
.jitheme-slide-body-content h1,
.jitheme-slide-body-content h2,
.jitheme-slide-body-content h3,
.jitheme-slide-body-content h4 {
    color: var(--b2color, #222);
    line-height: 1.4;
    margin: 28px 0 12px;
}

/* ============================================================
 * TAB：信息 / 说明（右栏参数区）
 * ============================================================ */
.jsp-tab-head {
    grid-column: 1 / -1;
    display: flex;
    padding-bottom: 10px;
}
.jsp-tab-btn {
    padding: 8px 0;
    font-size: var(--fs-base);
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
    user-select: none;
    margin-right: 17px;
}
.jsp-tab-btn:hover {
    color: var(--b2color, #1a73e8);
}
.jsp-tab-btn.active {
    color: var(--b2color, #1a73e8);
    border-bottom-color: var(--b2color, #1a73e8);
}
/* TAB 面板：grid 同格重叠占位——隐藏面板仍占空间（visibility 而非 display:none），
   切换"信息/说明"时容器高度取两者最大值，页面其他部分不随切换移动 */
.jsp-tabs {
    display: flex;
    grid-template-columns: 1fr;
    align-content: center;
    align-items: start;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
}
.jsp-tab-panel {
    grid-column: 1;
    grid-row: 2;
    visibility: hidden;
    /* 纵向布局，让操作区（立即下载）可贴底 */
    display: flex;
    flex-direction: column;
}
.jsp-tab-panel.active {
    visibility: visible;
    display: flex;
    flex-direction: column;
}

/* 信息 TAB：下载地址列表 */
.jsp-dl-info {
    margin-top: 10px;
}
.jsp-dl-title {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: 8px;
}
.jsp-dl-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jsp-dl-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    font-size: var(--fs-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: all .2s;
}
.jsp-dl-link:hover {
    border-color: var(--b2color, #1a73e8);
    color: var(--b2color, #1a73e8);
    background: var(--bg-primary-soft);
}
.jsp-dl-none {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* 说明 TAB：正文（超出滚动） */
.jsp-desc-meta {
    display: flex;
    gap: 14px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.jsp-desc-content {
    max-height: 460px;
    overflow-y: auto;
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--text-primary);
    padding-right: 6px;
}
.jsp-desc-content p { margin: 0 0 1em; }
.jsp-desc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.jsp-desc-content h1 {
    font-size: var(--fs-lg);
    line-height: 1.35;
    margin: 1.4em 0 .7em;
    color: #222;
}
.jsp-desc-content h2 {
    font-size: var(--fs-lg);
    margin: 1.3em 0 .6em;
    color: #222;
    line-height: 1.4;
}
.jsp-desc-content h3 {
    font-size: var(--fs-md);
    margin: 1.2em 0 .6em;
    color: #222;
    line-height: 1.4;
}
.jsp-desc-content h4 {
    font-size: var(--fs-base);
    margin: 1em 0 .5em;
    color: var(--text-primary);
}
.jsp-desc-content strong,
.jsp-desc-content b {
    color: #222;
}
.jsp-desc-content em,
.jsp-desc-content i {
    font-style: italic;
}
.jsp-desc-content a {
    color: var(--b2color, #1a73e8);
    text-decoration: none;
    word-break: break-all;
}
.jsp-desc-content a:hover {
    text-decoration: underline;
}
.jsp-desc-content ul {
    margin: 0 0 1em 1.8em;
    padding: 0;
    list-style: disc;
}
.jsp-desc-content ol {
    margin: 0 0 1em 1.8em;
    padding: 0;
    list-style: decimal;
}
.jsp-desc-content li {
    margin-bottom: .35em;
}
.jsp-desc-content blockquote {
    border-left: 1px solid var(--b2color, #1a73e8);
    background: var(--bg-subtle);
    padding: 10px 14px;
    margin: 1em 0;
    color: var(--text-secondary);
}
.jsp-desc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: var(--fs-sm);
}
.jsp-desc-content table th,
.jsp-desc-content table td {
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    text-align: left;
}
.jsp-desc-content table th {
    background: var(--bg-input);
    color: var(--text-primary);
}
.jsp-desc-content code {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: var(--fs-sm);
    font-family: Consolas, Monaco, monospace;
    color: #c7254e;
}
.jsp-desc-content pre {
    background: #282c34;
    color: #abb2bf;
    border-radius: var(--b2radius);
    padding: 14px 16px;
    margin: 1em 0;
    overflow-x: auto;
    font-size: var(--fs-sm);
    line-height: 1.6;
    font-family: Consolas, Monaco, monospace;
}
.jsp-desc-content pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
}
.jsp-desc-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.6em 0;
}
.jsp-desc-content .aligncenter {
    display: block;
    margin: 1em auto;
}
.jsp-desc-content .alignleft {
    float: left;
    margin: .5em 1em .5em 0;
}
.jsp-desc-content .alignright {
    float: right;
    margin: .5em 0 .5em 1em;
}

/* option-row 颜色区分（TAB 外固定显示） */
.detail-popup .option-row {
    background: linear-gradient(90deg, #eef3ff, #f6f8fc);
    border: 1px solid var(--border-color);
    border-radius: var(--b2radius);
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* ============================================================
 * 响应式
 * ============================================================ */
/* 详情页左右分栏：容器不足 1080px 时折叠为单列（600px 图集 + 320px 面板 + 侧栏
   总需求超过常见屏宽，折叠避免 flex 挤压图集导致错位/重叠） */
@media (max-width: 1080px) {
    .jitheme-slide-detail .detail-popup {
        flex-direction: column !important;
        padding: 20px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    .jitheme-slide-detail .detail-popup .gallery-section,
    .jitheme-slide-detail .detail-popup .details-section {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .jitheme-slide-detail .detail-popup .params-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .jitheme-slide-popup {
        flex-direction: column !important;
        padding: 20px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    .jsp-left,
    .jsp-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ============================================================
 * 暗夜模式
 * ============================================================ */
body.dark .jitheme-slide-mask {
    background: var(--overlay-deep);
}
body.dark .jitheme-slide-popup,
body.dark .jitheme-slide-detail .detail-popup {
    background: #1b1b1f;
    box-shadow: none;
}
body.dark .jitheme-slide-close {
    background: var(--b2-bg, #333);
    color: var(--b2color, #ddd);
}
body.dark .jsp-left,
body.dark .jsp-stage,
body.dark .jsp-main {
    background: #16161a;
}
body.dark .jsp-right {
    background: #1b1b1f;
}
body.dark .jsp-title {
    color: #eee;
}
body.dark .jsp-price,
body.dark .jsp-param-cell {
    background: #232329;
}
body.dark .jsp-price-now,
body.dark .jsp-param-value {
    color: #eee;
}
body.dark .jsp-permission-card {
    background: #242016;
    border-color: #8a7a2a;
}
body.dark .jsp-perm-header {
    border-bottom-color: #4a4220;
}
body.dark .jsp-perm-title {
    color: #eee;
}
body.dark .jsp-perm-option.active {
    background: #38301a;
    border-color: #8a7a2a;
}
body.dark .jsp-perm-name {
    color: #bbb;
}
body.dark .jsp-download {
    background: #2f2f37;
    color: #fff;
}
body.dark .jsp-download.disabled {
    background: var(--b2lightcolor, #333);
    color: var(--b2color, #999);
}
body.dark .jsp-arrow {
    background: rgba(50, 50, 50, 0.92);
    color: #eee;
}
body.dark .jsp-ad {
    background: var(--b2lightcolor, #333);
}
body.dark .jitheme-pay-dialog,
body.dark .jitheme-dl-dialog,
body.dark .jitheme-confirm-dialog {
    background: #1b1b1f;
}
body.dark .jsp-pay-option,
body.dark .jsp-dl-option {
    border-color: #2f2f37;
}
body.dark .jsp-pay-option-title,
body.dark .jsp-dl-name {
    color: #eee;
}
body.dark .jsp-pay-option:hover,
body.dark .jsp-dl-option:hover {
    background: #232329;
    border-color: var(--b2color, #1a73e8);
}
body.dark .jsp-download-hint,
body.dark .jsp-param-label,
body.dark .jsp-id-label,
body.dark .jsp-id-val {
    color: var(--text-muted);
}
body.dark .jsp-pay-close,
body.dark .payment-close,
body.dark .jsp-dl-close {
    background: #1f3b24;
    color: #66bb6a;
}
body.dark .jitheme-all-perms {
    background: var(--b2-bg, #2a2a2a);
}
body.dark .jitheme-all-perms .all-perm-row {
    border-bottom-color: #2f2f37;
}
body.dark .jitheme-slide-detail .detail-popup .permission-card {
    background: #1b1b1f;
    border-color: #6a5a2a;
}
body.dark .jitheme-slide-detail .detail-popup .jsp-me-label {
    background: #2a2a30;
    color: #ddd;
}
body.dark .jsp-tab-head {
    border-bottom-color: #2a2a30;
}
body.dark .jsp-tab-btn {
    color: var(--text-muted);
}
body.dark .jsp-tab-btn.active {
    color: #4d8df6;
    border-bottom-color: #4d8df6;
}
body.dark .jsp-dl-link {
    background: #232329;
    border-color: #2f2f37;
    color: var(--text-muted);
}
body.dark .jsp-dl-link:hover {
    border-color: #4d8df6;
    color: #4d8df6;
    background: #1f2733;
}
body.dark .jsp-desc-content {
    color: #bbb;
}
body.dark .jsp-desc-content blockquote {
    background: #232329;
    color: var(--text-muted);
    border-left-color: #4d8df6;
}
body.dark .jsp-desc-meta {
    color: var(--text-secondary);
}
body.dark .jsp-desc-content h1,
body.dark .jsp-desc-content h2,
body.dark .jsp-desc-content h3,
body.dark .jsp-desc-content h4 {
    color: #eee;
}
body.dark .jsp-desc-content strong,
body.dark .jsp-desc-content b {
    color: #fff;
}
body.dark .jsp-desc-content code {
    background: #2a2a30;
    border-color: var(--border-color);
    color: #e58a8a;
}
body.dark .jsp-desc-content pre {
    background: #1e1e24;
}
body.dark .jsp-desc-content table th {
    background: #232329;
    color: #ddd;
}
body.dark .jsp-desc-content table th,
body.dark .jsp-desc-content table td {
    border-color: var(--border-color);
}
body.dark .detail-popup .option-row {
    background: #232329;
    border-color: #2f2f37;
}
body.dark .jitheme-slide-body-title {
    color: #eee;
}
body.dark .jitheme-slide-body-content {
    color: var(--text-muted);
}
body.dark .jitheme-slide-body-content blockquote {
    background: #232329;
}
body.dark .jitheme-slide-body-content h1,
body.dark .jitheme-slide-body-content h2,
body.dark .jitheme-slide-body-content h3,
body.dark .jitheme-slide-body-content h4 {
    color: #eee;
}
body.dark .jitheme-post9 .item-in:hover {
    box-shadow: none;
}
body.dark .jitheme-post9-price {
    background: var(--b2lightcolor, #333);
}
/* ---------- GLightbox 灯箱底部缩略图条 ---------- */
.ji-lb-thumbs {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    max-width: 92vw;
    overflow-x: auto;
    background: var(--overlay-deep);
    border-radius: 10px;
    box-shadow: none;
    scrollbar-width: thin;
}
.ji-lb-thumb-item {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.55;
    transition: all 0.2s;
    line-height: 0;
}
.ji-lb-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ji-lb-thumb-item:hover {
    opacity: 1;
}
.ji-lb-thumb-item.active {
    opacity: 1;
    border-color: var(--b2color, #1a73e8);
    box-shadow: none;
}
/* ---------- 灯箱图片加载兜底 ---------- */
.glightbox-container .gslide-image img {
    background: rgba(255, 255, 255, 0.03);
}
/* ---------- 有效期倒计时 ---------- */
.jsp-cd {
    color: #16a34a;
    font-weight: 600;
    white-space: nowrap;
}
body.dark .jsp-cd {
    color: #4ade80;
}
.jsp-perm-price .jsp-cd {
    color: #16a34a;
}

/* ============================================================
 * post_9 文章列表 · 统一边框卡片（参考样式）
 * 三图网格（2fr/1fr）+ 右上圆形收藏 + 右下角标 + 分类/标题/摘要 + 作者/元信息
 * ============================================================ */
.jitheme-post9-new .jitheme-post9-card {
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%;
}
.jitheme-post9-new .jitheme-post9-card:hover {
    box-shadow: none;
    transform: translateY(-2px);
    border-color: var(--border-color);
}
/* ---------- 三图网格 ---------- */
.jitheme-post9-new .jitheme-post9-thumbs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--bg-muted);
}
/* 单图：大图占满整格 */
.jitheme-post9-new .jitheme-post9-thumbs.thumbs-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.jitheme-post9-new .jitheme-post9-thumbs.thumbs-1 .jitheme-post9-thumb-large {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
/* 双图：大图 + 1 小图（右侧单格） */
.jitheme-post9-new .jitheme-post9-thumbs.thumbs-2 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
}
.jitheme-post9-new .jitheme-post9-thumbs.thumbs-2 .jitheme-post9-thumb-large {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
.jitheme-post9-new .jitheme-post9-thumb-large {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    overflow: hidden;
    position: relative;
    background: var(--bg-muted);
    display: block;
}
.jitheme-post9-new .jitheme-post9-thumb-small {
    overflow: hidden;
    position: relative;
    background: var(--bg-muted);
    display: block;
}
.jitheme-post9-new .jitheme-post9-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.jitheme-post9-new .jitheme-post9-thumbs > a:hover img {
    transform: scale(1.06);
}
/* 图片数量角标 */
.jitheme-post9-new .jitheme-post9-thumb-count {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--overlay-deep);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 500;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
    line-height: 1.4;
    z-index: 2;
}
/* 收藏按钮 */
.jitheme-post9-new .jitheme-post9-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--fs-base);
    color: var(--text-secondary);
    z-index: 5;
    box-shadow: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.jitheme-post9-new .jitheme-post9-fav:hover {
    background: var(--bg-card);
    transform: scale(1.1);
    box-shadow: none;
}
.jitheme-post9-new .jitheme-post9-fav:active {
    transform: scale(0.95);
}
.jitheme-post9-new .jitheme-post9-fav.liked,
.jitheme-post9-new .jitheme-post9-fav.active {
    color: var(--gold);
}
/* ---------- 内容区 ---------- */
.jitheme-post9-new .jitheme-post9-content {
    padding: 0.85rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
}
.jitheme-post9-new .jitheme-post9-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: flex-start;
}
.jitheme-post9-new .jitheme-post9-cats a {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--primary);
    background: var(--bg-primary-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.jitheme-post9-new .jitheme-post9-cats a:hover {
    background: var(--bg-primary-soft);
    color: var(--primary);
}
/* 分类标签内的图标（默认分类图标等）固定 14px 高 */
.jitheme-post9-new .jitheme-post9-cats img {
    height: 14px;
    width: auto;
    vertical-align: -2px;
    margin-right: 3px;
}
.jitheme-post9-new .jitheme-post9-title {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jitheme-post9-new .jitheme-post9-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.jitheme-post9-new .jitheme-post9-title a:hover {
    color: var(--primary);
}
.jitheme-post9-new .jitheme-post9-desc {
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ---------- 底部：作者 + 元信息 ---------- */
.jitheme-post9-new .jitheme-post9-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}
.jitheme-post9-new .jitheme-post9-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    text-decoration: none;
    min-width: 0;
    transition: color 0.2s;
}
.jitheme-post9-new .jitheme-post9-author:hover {
    color: var(--text-primary);
}
.jitheme-post9-new .jitheme-post9-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-muted);
    flex-shrink: 0;
}
.jitheme-post9-new .jitheme-post9-author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9em;
}
.jitheme-post9-new .jitheme-post9-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}
.jitheme-post9-new .jitheme-post9-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.jitheme-post9-new .jitheme-post9-meta-item b {
    font-weight: 400;
}
/* 响应式 */
@media (max-width: 820px) {
    .jitheme-post9-new .jitheme-post9-thumbs { height: 200px; }
}
@media (max-width: 520px) {
    .jitheme-post9-new .jitheme-post9-thumbs { height: 220px; }
    .jitheme-post9-new .jitheme-post9-title { font-size: var(--fs-md); }
    .jitheme-post9-new .jitheme-post9-desc { font-size: var(--fs-base); }
}
/* ---------- 暗夜模式 ---------- */
body.dark .jitheme-post9-new .jitheme-post9-card {
    background: #1f2937;
    border-color: #374151;
    box-shadow: none;
}
body.dark .jitheme-post9-new .jitheme-post9-card:hover {
    border-color: #4b5563;
    box-shadow: none;
}
body.dark .jitheme-post9-new .jitheme-post9-thumbs { background: #2a2a2a; }
body.dark .jitheme-post9-new .jitheme-post9-thumb-large,
body.dark .jitheme-post9-new .jitheme-post9-thumb-small { background: #2a2a2a; }
body.dark .jitheme-post9-new .jitheme-post9-fav { background: rgba(45, 48, 56, 0.85); color: #9ca3af; }
body.dark .jitheme-post9-new .jitheme-post9-fav:hover { background: #33363f; }
body.dark .jitheme-post9-new .jitheme-post9-cats a { color: #93c5fd; background: #1e3a5f; }
body.dark .jitheme-post9-new .jitheme-post9-cats a:hover { background: #27496d; color: #b8ccff; }
body.dark .jitheme-post9-new .jitheme-post9-title { color: #e5e7eb; }
body.dark .jitheme-post9-new .jitheme-post9-title a:hover { color: #93c5fd; }
body.dark .jitheme-post9-new .jitheme-post9-desc { color: #9ca3af; }
body.dark .jitheme-post9-new .jitheme-post9-footer { border-top-color: #374151; }
body.dark .jitheme-post9-new .jitheme-post9-author { color: #9ca3af; }
body.dark .jitheme-post9-new .jitheme-post9-author:hover { color: #e5e7eb; }
body.dark .jitheme-post9-new .jitheme-post9-avatar { background: #2a2a2a; }
body.dark .jitheme-post9-new .jitheme-post9-meta { color: #6b7280; }


/* ============================================================
   content-post-style-7 相册展示（post-style-7）单页样式
   结构移植自用户参考 HTML（面包屑/统一BOX/视图切换/灯箱/右侧工具区）
   ============================================================ */
.jitheme-post7-page { margin: 0 auto; }
/* post-style-7 页：body 不作为滚动容器，CSS sticky 才能相对根滚动容器贴边 */
body.ji-p7-page { overflow: visible !important; }
/* post-style-7 无 B2 原生侧栏（右侧工具区在模板内自带），content-area 恢复全宽。
   只用 .content-area 类命中，不写 #primary-home，不借 .single .content-area 组合；作用域由 body class 限定 */
body.ji-p7-page .content-area { max-width: 100% !important; }
/* ===== 面包屑 ===== */
.jitheme-post7-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.jitheme-post7-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.jitheme-post7-breadcrumb a:hover { color: var(--primary); }
.jitheme-post7-breadcrumb .sep { color: var(--text-muted); }
.jitheme-post7-breadcrumb .current { color: var(--text-muted); }
/* ===== 主布局（三栏：左工具区 + 文章 + 右工具区） ===== */
.jitheme-post7-layout {
    display: flex;
    flex-wrap: nowrap;
    /* gap: 1.75rem; */
    align-items: flex-start;
    flex-direction: row;
}
.jitheme-post7-layout > .widget-area-left {
    flex: 0 0 300px;
    min-width: 0;
    align-self: stretch; /* 侧栏列与文章等高：sticky 跟随有空间，滚动到底部时与 layout 底对齐、不超出 */
}
.jitheme-post7-layout > .jitheme-post7-content {
    flex: 1 1 auto;
    min-width: 0;
}
.jitheme-post7-layout > .widget-area:last-child {
    flex: 0 0 320px;
    min-width: 0;
    align-self: stretch;
}
/* 侧栏固定由模板 JS（jithemeP7StickySidebar）控制：
   内容完整显示（不裁剪、不内部滚动、无滚动条）；
   滚动中部 fixed 底部固定视口下方 20px；滚到底 absolute 贴外层容器底部收住。
   aside 设 relative 作为 absolute 定位基准 */
.jitheme-post7-layout > .widget-area {
    position: relative;
}
.jitheme-post7-layout > .widget-area .sidebar {
    position: relative;
}
/* ===== 1. 文章头部 ===== */
.jitheme-post7-header { padding: 1.5rem 1.75rem 1.25rem; }
.jitheme-post7-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.jitheme-post7-tag {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--primary);
    background: var(--bg-primary-soft);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-block;
}
.jitheme-post7-date { font-size: var(--fs-xs); color: var(--text-muted); }
.jitheme-post7-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 0.85rem;
    padding: 0;
}
.jitheme-post7-author-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.jitheme-post7-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-muted);
}
.jitheme-post7-author-sep { color: var(--text-muted); }
/* ===== 2. 相册展示区 ===== */
.jitheme-post7-gallery {
    position: relative;
    padding: var(--gap);
    background: var(--bg-card-hover); /* 与文章 BOX 白底区分 */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
/* 图集区三列：左小工具（ji-p7-gallery-left）+ 视图 + 右小工具（ji-p7-gallery-right） */
.jitheme-post7-gallery-row {
    display: grid;
    /* grid-template-columns: 180px minmax(0, 1fr) 180px; */
    /* grid-template-areas:
        "left view right"; */
    align-items: start;
}
.jitheme-post7-gallery-row > .jitheme-post7-gallery-side.left { grid-area: left; }
.jitheme-post7-gallery-row > .jitheme-post7-view-container { grid-area: view; min-width: 0; }
.jitheme-post7-gallery-row > .jitheme-post7-gallery-side.right { grid-area: right; }
.jitheme-post7-gallery-side .jitheme-post7-widgets { gap: 1rem; }
/* 图集左右侧栏小工具：白底卡与相册灰底区分（覆盖 B2 widget 壳） */
.jitheme-post7-gallery-side .widget {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: none;
}
body.dark .jitheme-post7-gallery-side .widget { background: #1e1e1e; border-color: #2f2f2f; }
.jitheme-post7-view-slide { display: block; }
.jitheme-post7-view-slide.hidden { display: none; }
/* 幻灯片组件（沿用 post-style-6 幻灯片文章组件与 CSS 样式） */
.jitheme-post7-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.414 / 1;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jitheme-post7-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 完整显示，保持图片自身宽高比例，不放大不裁剪 */
    display: block;
    cursor: zoom-in;
}
.jitheme-post7-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s;
    z-index: 5;
    text-decoration: none;
    line-height: 1;
    padding: 0;
}
.jitheme-post7-nav-btn:hover {
    background: var(--bg-input);
    color: var(--b2color, #1e4fd8);
}
.jitheme-post7-nav-btn i {
    font-size: 30px;
    line-height: 1;
    font-style: normal;
}
.jitheme-post7-nav-btn.prev { left: 16px; }
.jitheme-post7-nav-btn.next { right: 16px; }
.jitheme-post7-thumb-list {
    display: flex;
    /* 左对齐：超宽时第一张可从起点看到（居中由 active 滚动逻辑实现） */
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: none;
    position: relative;
    scroll-behavior: smooth;
}
.jitheme-post7-thumb-list::-webkit-scrollbar { display: none; }
.jitheme-post7-thumb-list img {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
    object-fit: cover;
    box-sizing: content-box;
    background: var(--bg-input);
}
.jitheme-post7-thumb-list img:hover { opacity: 1; }
.jitheme-post7-thumb-list img.active { opacity: 1; border-color: var(--primary); }
/* ===== 3. 文章内容 ===== */
.jitheme-post7-body { padding: 1.5rem 1.75rem 2rem; max-width: 780px; }
.jitheme-post7-body p { font-size: var(--fs-base); line-height: 1.8; color: var(--text-primary); margin-bottom: 1.25rem; }
.jitheme-post7-body h2 {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.jitheme-post7-body h2::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--primary); }
.jitheme-post7-body h3, .jitheme-post7-body h4 {
    font-weight: 700; color: var(--text-primary); margin: 1.6rem 0 0.8rem; letter-spacing: -0.01em;
}
.jitheme-post7-body ul, .jitheme-post7-body ol {
    margin: 0 0 1.25rem 1.5rem;
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--text-primary);
}
.jitheme-post7-body li { margin-bottom: 0.4rem; }
.jitheme-post7-body strong { color: var(--text-primary); font-weight: 600; }
.jitheme-post7-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-card-hover);
    border-left: 1px solid var(--border-color);
    border-radius: 0 10px 10px 0;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}
.jitheme-post7-body figure { margin: 1.5rem 0; border-radius: 12px; overflow: hidden; background: var(--bg-muted); }
.jitheme-post7-body figure img { width: 100%; display: block; }
.jitheme-post7-body figure figcaption {
    padding: 0.6rem 1rem;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-card-hover);
}
.jitheme-post7-body img { max-width: 100%; height: auto; border-radius: 8px; }
/* 文章底部操作 */
.jitheme-post7-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--bg-card);
}
.jitheme-post7-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.jitheme-post7-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.2rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.4;
    font-family: inherit;
}
.jitheme-post7-btn-primary { background: #1e293b; color: #ffffff; box-shadow: none; }
.jitheme-post7-btn-primary:hover { background: #0f172a; transform: translateY(-1px); }
.jitheme-post7-btn-secondary { background: transparent; border: 1.5px solid #c3cde0; color: var(--text-secondary); }
.jitheme-post7-btn-secondary:hover { background: var(--bg-input); border-color: #94a3b8; color: var(--text-primary); }
.jitheme-post7-btn-bookmark { background: transparent; border: 1.5px solid #c3cde0; color: var(--text-secondary); }
.jitheme-post7-btn-bookmark:hover { background: var(--bg-input); border-color: #94a3b8; }
.jitheme-post7-btn-bookmark.bookmarked, .jitheme-post7-btn-bookmark.active {
    background: var(--gold-soft);
    border-color: #fcd34d;
    color: var(--gold-deep);
}
.jitheme-post7-stats {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* ===== 工具区（左侧 ji-sidebar-01 / 右侧 sidebar-3） ===== */
/* 仅右侧工具区贴边（同 B2 原生侧栏行为）；左侧工具区不贴边 */
.jitheme-post7-layout > .jitheme-post7-tools:last-child {
    position: sticky;
    top: 2rem;
}
/* 相关文章（右侧卡片） */
.jitheme-post7-search-clear.visible { display: flex; }
.jitheme-post7-side-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}
.jitheme-post7-side-item:last-child { border-bottom: none; }
.jitheme-post7-side-item:hover { background: var(--bg-card-hover); }
.jitheme-post7-side-item-title mark { background: #fef3c7; color: #92400e; border-radius: 2px; padding: 0 1px; }
.jitheme-post7-side-item:hover .jitheme-post7-side-thumb img { transform: scale(1.08); }
.jitheme-post7-side-item-title {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.jitheme-post7-side-item:hover .jitheme-post7-side-item-title { color: var(--primary); }
.jitheme-post7-search-empty.visible { display: block; }
.jitheme-post7-search-result-info.visible { display: block; }
/* ===== 灯箱 ===== */
.jitheme-post7-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
    padding: 2rem;
}
.jitheme-post7-lightbox.active { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s 0s; }
.jitheme-post7-lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: none;
    object-fit: contain;
}
.jitheme-post7-lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: var(--fs-sm);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    max-width: 80%;
    text-align: center;
    line-height: 1.4;
    box-shadow: none;
    z-index: 9;
}
/* 灯箱标题（文件名）不显示 */
.jitheme-post7-lightbox-caption { display: none !important; }
/* 灯箱缩略图导航条 */
.jitheme-post7-lb-thumbs {
    position: absolute;
    bottom: 4.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 82%;
    overflow-x: auto;
    padding: 8px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    z-index: 10;
    scrollbar-width: none;
    box-shadow: none;
}
.jitheme-post7-lb-thumbs::-webkit-scrollbar { display: none; }
.jitheme-post7-lb-thumbs img {
    width: 52px;
    height: 39px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.55;
    border: 1px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
    display: block;
    background: #2a2a2a;
}
.jitheme-post7-lb-thumbs img:hover { opacity: 0.9; }
.jitheme-post7-lb-thumbs img.active { opacity: 1; border-color: #ffffff; }
.jitheme-post7-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    z-index: 10;
}
.jitheme-post7-lightbox-arrow:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.08); }
.jitheme-post7-lightbox-arrow.prev { left: 2rem; }
.jitheme-post7-lightbox-arrow.next { right: 2rem; }
.jitheme-post7-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    z-index: 10;
}
.jitheme-post7-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.08); }
.jitheme-post7-lightbox-counter {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: var(--fs-sm);
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
/* ===== 暗夜适配 ===== */
body.dark .jitheme-post7-title { color: #e5e7eb; }
body.dark .jitheme-post7-meta-row { color: #9ca3af; }
body.dark .jitheme-post7-tag { background: rgba(79, 70, 229, 0.18); color: #a5b4fc; }
body.dark .jitheme-post7-date { color: #6b7280; }
body.dark .jitheme-post7-author-row { color: #9ca3af; }
body.dark .jitheme-post7-avatar { background: #2a2a2a; }
body.dark .jitheme-post7-gallery { border-color: #2f2f2f; background: #242424; }
body.dark .jitheme-post7-main-image { background-color: #1a1a1a; border-color: #2f2f2f; box-shadow: none; }
body.dark .jitheme-post7-nav-btn { background: #2f2f2f; color: #d1d5db; box-shadow: none; }
body.dark .jitheme-post7-nav-btn:hover { background: #3f3f3f; color: #818cf8; }
body.dark .jitheme-post7-thumb-list img { background: #2a2a2a; }
body.dark .jitheme-post7-thumb-list img.active { border-color: #818cf8; }
body.dark .jitheme-post7-body p { color: #c7c9cc; }
body.dark .jitheme-post7-body h2, body.dark .jitheme-post7-body h3, body.dark .jitheme-post7-body h4 { color: #e5e7eb; }
body.dark .jitheme-post7-body ul, body.dark .jitheme-post7-body ol { color: #c7c9cc; }
body.dark .jitheme-post7-body strong { color: #e5e7eb; }
body.dark .jitheme-post7-body blockquote { background: #242424; color: #9ca3af; }
body.dark .jitheme-post7-body figure figcaption { background: #242424; color: #6b7280; }
body.dark .jitheme-post7-footer { border-top-color: #2f2f2f; background: #1e1e1e; }
body.dark .jitheme-post7-btn-primary { background: #334155; color: #f9fafb; }
body.dark .jitheme-post7-btn-primary:hover { background: #1e293b; }
body.dark .jitheme-post7-btn-secondary { border-color: #3f3f3f; color: #9ca3af; }
body.dark .jitheme-post7-btn-secondary:hover { background: #242424; border-color: #4b5563; color: #e5e7eb; }
body.dark .jitheme-post7-btn-bookmark { border-color: #3f3f3f; color: #9ca3af; }
body.dark .jitheme-post7-btn-bookmark:hover { background: #242424; border-color: #4b5563; }
body.dark .jitheme-post7-btn-bookmark.bookmarked, body.dark .jitheme-post7-btn-bookmark.active { background: rgba(217, 119, 6, 0.15); border-color: #b45309; color: var(--gold); }
body.dark .jitheme-post7-stats { color: #6b7280; }
body.dark .jitheme-post7-tool-card { background: #1e1e1e; border-color: #2f2f2f; }
body.dark .jitheme-post7-tool-card-header { border-bottom-color: #2f2f2f; }
body.dark .jitheme-post7-tool-card-title { color: #e5e7eb; }
body.dark .jitheme-post7-tool-card-title-icon { background: rgba(79, 70, 229, 0.18); color: #a5b4fc; }
body.dark .jitheme-post7-tool-item:hover { background: #242424; }
body.dark .jitheme-post7-tool-item-icon { background: #242424; }
body.dark .jitheme-post7-tool-item-name { color: #e5e7eb; }
body.dark .jitheme-post7-tool-item-desc { color: #6b7280; }
body.dark .jitheme-post7-search-input { background: #242424; color: #e5e7eb; border-color: #3f3f3f; }
body.dark .jitheme-post7-search-input:focus { background: #2a2a2a; border-color: #6366f1; box-shadow: none; }
body.dark .jitheme-post7-search-input::placeholder { color: #6b7280; }
body.dark .jitheme-post7-search-clear { background: #3f3f3f; color: #9ca3af; }
body.dark .jitheme-post7-search-clear:hover { background: #4b5563; color: #e5e7eb; }
body.dark .jitheme-post7-side-item { border-bottom-color: #242424; }
body.dark .jitheme-post7-side-item:hover { background: #242424; }
body.dark .jitheme-post7-side-item-title { color: #e5e7eb; }
body.dark .jitheme-post7-side-item:hover .jitheme-post7-side-item-title { color: #818cf8; }
body.dark .jitheme-post7-side-thumb { background: #2a2a2a; }
body.dark .jitheme-post7-side-item-meta { color: #6b7280; }
body.dark .jitheme-post7-search-empty-text { color: #6b7280; }
body.dark .jitheme-post7-breadcrumb a { color: #9ca3af; }
body.dark .jitheme-post7-breadcrumb a:hover { color: #818cf8; }
body.dark .jitheme-post7-breadcrumb .sep, body.dark .jitheme-post7-breadcrumb .current { color: #4b5563; }
/* ---- 幻灯片区域暗夜补充 ----
   缩略图栏容器：暗夜下给一条深色底带，与主图区/图集灰底区分；
   主图/箭头/切换按钮的 hover 态与灯箱细节统一暗色 */
body.dark .jitheme-post7-thumb-list {
    background: rgba(30, 30, 30, 0.55);
    border-radius: 12px;
    padding: 12px 10px;
    margin-top: 4px;
}
body.dark .jitheme-post7-thumb-list img { background: #2a2a2a; }
body.dark .jitheme-post7-thumb-list img:hover { border-color: #4b5563; }
body.dark .jitheme-post7-main-image:hover { border-color: #3f3f3f; box-shadow: none; }
body.dark .jitheme-post7-lb-thumbs { background: rgba(15, 23, 42, 0.85); }
body.dark .jitheme-post7-lb-thumbs img.active { border-color: #818cf8; }
body.dark .jitheme-post7-lightbox-arrow:hover, body.dark .jitheme-post7-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
/* ===== 右侧小工具区：按 B2 原生样式输出（不动 B2 的 .widget / .widget-title，让 B2 全局 CSS 生效） ===== */
.jitheme-post7-widgets {display: flex;flex-direction: column;/* gap: 1.25rem; */}
/* B2 原生每个小工具带 .mg-b（margin-bottom），flex gap 已统一间距，仅消掉重复的 mg-b */
.jitheme-post7-widgets .widget.mg-b { margin-bottom: 0; }
.jitheme-post7-widgets-empty {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    padding: 1.2rem 1.25rem;
    line-height: 1.6;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
body.dark .jitheme-post7-widgets-empty { color: #6b7280; background: #1e1e1e; border-color: #2f2f2f; }

/* ===== 响应式 ===== */
/* 图集左右侧栏：宽屏三列；窄屏移到视图下方整行（图片优先） */
@media (max-width: 1440px) {
    .jitheme-post7-gallery-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "view"
            "left"
            "right";
    }
}
/* 三栏最小宽度不够时：内容 + 右工具一行，左工具区换行整行（flex 适配） */
@media (max-width: 1280px) {
    .jitheme-post7-layout {
        flex-wrap: wrap;
    }
    .jitheme-post7-layout > .jitheme-post7-content {
        flex: 1 1 0;
        min-width: 0;
    }
    .jitheme-post7-layout > .widget-area:last-child {
        flex: 0 0 300px;
    }
    .jitheme-post7-layout > .widget-area-left {
        flex: 0 0 100%;
        order: 3;
        min-width: 0;
        max-width: none !important;
        width: auto;
    }
}
@media (max-width: 820px) {
    .jitheme-post7-layout {
        flex-direction: column;
    }
    .jitheme-post7-layout > .jitheme-post7-content {
        flex: none;
        width: 100%;
        order: 1;
    }
    .jitheme-post7-layout > .widget-area-left {
        flex: none;
        width: 100%;
        order: 2;
        max-width: none !important;
    }
    .jitheme-post7-layout > .widget-area:last-child {
        flex: none;
        width: 100%;
        order: 3;
    }
    .jitheme-post7-tools { position: static; }
    .jitheme-post7-body { padding: 1.25rem 1.25rem 1.5rem; }
    .jitheme-post7-header { padding: 1.25rem 1.25rem 1rem; }
    .jitheme-post7-title { font-size: var(--fs-lg); }
    .jitheme-post7-thumb-list { padding: 0.75rem 0 1rem; }
    .jitheme-post7-footer { padding: 1rem 1.25rem 1.25rem; }
}
@media (max-width: 520px) {
    .jitheme-post7-footer { flex-direction: column; align-items: stretch; }
    .jitheme-post7-actions { justify-content: center; }
    .jitheme-post7-stats { justify-content: center; }
    .jitheme-post7-lightbox-arrow { width: 40px; height: 40px; font-size: var(--fs-md); }
    .jitheme-post7-lightbox-arrow.prev { left: 0.75rem; }
    .jitheme-post7-lightbox-arrow.next { right: 0.75rem; }
    .jitheme-post7-lb-thumbs { bottom: 3.6rem; max-width: 92%; padding: 6px; gap: 6px; }
    .jitheme-post7-lb-thumbs img { width: 42px; height: 32px; }
    .jitheme-post7-lightbox-caption { bottom: 1.3rem; font-size: var(--fs-sm); max-width: 88%; }
}
