﻿/* ============================================================
 * 壁纸下载模块 — 前台样式（白色模式）
 * 路径: b2child/Center/Wallpaper/Css/wallpaper.css
 * 所有选择器带 jitheme-wp- 前缀，避免与 B2 原生样式冲突
 * ============================================================ */

:root {
}

/* ---------- 外层容器 ---------- */
.jitheme-wp-wrap {
    padding: 20px 0px;
    color: var(--text-primary, #1e293b);
    box-sizing: border-box;
}

/* ---------- 页头（标题 + 数量 + 分类筛选） ---------- */
.jitheme-wp-header {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e8edf3);
    border-radius: var(--b2radius, 12px);
    padding: 26px 30px;
    margin-bottom: 24px;
    box-shadow: none;
}
.jitheme-wp-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text-primary, #1e293b);
    display: flex;
    align-items: center;
    gap: 12px;
}
.jitheme-wp-count {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-primary, #4f6ef7);
    background: rgba(79, 110, 247, 0.08);
    padding: 3px 10px;
    

}
.jitheme-wp-desc {
    color: var(--text-primary, #64748b);
    font-size: var(--fs-base);
    line-height: 1.7;
    margin: 0 0 14px;
}
.jitheme-wp-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jitheme-wp-cat {display: inline-flex; align-items: center; padding: 5px 14px; font-size: var(--fs-xs); border: 1px solid var(
    --border-color, #e8edf3); color: var(
    --text-primary, #64748b); text-decoration: none; transition: all 0.2s; background: var(--bg-card-gray, rgba(128,128,128,0.08))}
.jitheme-wp-cat:hover {
    color: var(--text-primary, #4f6ef7);
    border-color: rgba(79, 110, 247, 0.4);
    background: rgba(79, 110, 247, 0.06);
}
.jitheme-wp-cat.current {
    color: var(--text-primary, #4f6ef7);
    border-color: rgba(79, 110, 247, 0.4);
    background: rgba(79, 110, 247, 0.06);
}

/* ---------- 卡片网格 ---------- */
.jitheme-wp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.jitheme-wp-card {
    display: block;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e4e9f2);
    border-radius: var(--b2radius, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.jitheme-wp-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.jitheme-wp-card-thumb {position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-card-gray, rgba(128,128,128,0.08)); border-radius: var(--b2radius, 12px); border-bottom-left-radius: 0; border-bottom-right-radius: 0}
.jitheme-wp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.jitheme-wp-card:hover .jitheme-wp-card-img {
    transform: scale(1.02);
}
/* 幻灯片（多图） */
.jitheme-wp-card-slides {
    position: absolute;
    inset: 0;
}
.jitheme-wp-card-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.jitheme-wp-card-slide.active {
    opacity: 1;
    transform: scale(1.02);
}
/* 底部小图条（多图排版） */
.jitheme-wp-card-strip {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
}
.jitheme-wp-card-strip-item {
    width: 36px;
    height: 23px;
    

    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: none;
    transition:
        border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.jitheme-wp-card-strip-item:hover {
    border-color: #fff;
    transform: translateY(-3px) scale(1.12);
    box-shadow: none;
}
.jitheme-wp-card-strip-item.active {
    border-color: var(--text-primary, #4f6ef7);
    transform: scale(1.1);
    box-shadow: none;
}
.jitheme-wp-card-strip-more {
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    

    font-size: var(--fs-xs);
    font-weight: 600;
    color: #fff;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    cursor: default;
    box-shadow: none;
}
.jitheme-wp-card-placeholder {width: 100%; height: 100%; background: linear-gradient(135deg, var(--border-color, #e8edf3), var(--bg-card-gray, #f5f7fa))}
.jitheme-wp-card-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    padding: 3px 9px;
    

    letter-spacing: 0.3px;
}

.jitheme-wp-card-info {
    padding: 14px 16px 15px;
}
.jitheme-wp-card-title {
    font-size: var(--fs-base);
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jitheme-wp-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.jitheme-wp-card-cats {
    display: flex;
    gap: 6px;
    overflow: hidden;
}
.jitheme-wp-card-cat {
    border: 1px solid var(--border-color, #e8edf3);
    background: var(--bg-card, #fff);
    color: var(--text-primary, #1e293b);
    padding: 2px 8px;
    white-space: nowrap;
    font-size: var(--fs-xs);
    border-radius: var(--b2radius);
}
.jitheme-wp-card-size {
    font-size: var(--fs-xs);
    color: var(--text-primary, #64748b);
    white-space: nowrap;
}
.jitheme-wp-card-dl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-primary, #64748b);
}
.jitheme-wp-card-dl b {
    color: var(--text-secondary);
    font-weight: 600;
}

.jitheme-wp-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-primary, #64748b);
    padding: 60px 0;
}

/* 分页样式已全站化：见 Render/Css/style.css「全站统一分页」(.jitheme-wp-pagination) */

/* ============================================================
 * 单页：拟物显示器 + 信息面板
 * ============================================================ */
.jitheme-wp-breadcrumb {
    font-size: var(--fs-sm);
    color: var(--text-primary, #64748b);
    margin-bottom: 18px;
}
.jitheme-wp-breadcrumb a {
    color: var(--text-primary, #64748b);
    text-decoration: none;
}
.jitheme-wp-breadcrumb a:hover {
    color: var(--text-primary, #4f6ef7);
}
.jitheme-wp-breadcrumb .jitheme-wp-bc-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.jitheme-wp-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

/* ---- 拟物显示器 ---- */
.jitheme-wp-screen-side {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e8edf3);
    border-radius: var(--b2radius, 12px);
    

    padding: 30px 26px 22px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jitheme-wp-screen {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 显示器下方缩略图条：点击切换大图，超出区域左右箭头滑动 */
.jitheme-wp-screen-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
    max-width: 700px;
}
.jitheme-wp-screen-strip-inner {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    gap: 12px;
}
.jitheme-wp-screen-strip-inner::-webkit-scrollbar { display: none; }
.jitheme-wp-strip-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--overlay);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, opacity 0.3s;
}
.jitheme-wp-strip-arrow svg { width: 16px; height: 16px; fill: currentColor; }
.jitheme-wp-strip-arrow:hover:not(.is-disabled) { background: var(--overlay-deep); }
.jitheme-wp-strip-arrow:active:not(.is-disabled) { transform: scale(0.92); }
.jitheme-wp-strip-arrow.is-disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.jitheme-wp-screen-strip-item {
    flex: 0 0 auto;
    width: 108px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    filter: saturate(0.7);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.jitheme-wp-screen-strip-item:hover {
    opacity: 1;
    filter: saturate(1);
    transform: scale(1.08);
    box-shadow: none;
    z-index: 2;
}
.jitheme-wp-screen-strip-item.active {
    opacity: 1;
    filter: saturate(1);
    border-color: var(--primary);
    box-shadow: none;
}
.jitheme-wp-screen-bezel {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, #2b2f36, #101318);
    padding: 2.2% 2.6% 3.2%;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 6px;
}
.jitheme-wp-screen-webcam {
    position: absolute;
    top: 1.6%;
    left: 50%;
    transform: translateX(-50%);
    width: 5%;
    height: 4%;
    border-radius: 50%;
    background: #0b0e12;
    box-shadow: none;
}
.jitheme-wp-screen-panel {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f1115;
    

    overflow: hidden;
    position: relative;
}
.jitheme-wp-screen-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.jitheme-wp-screen-img-next {
    opacity: 0;
}
.jitheme-wp-screen-img.switching {
    transform: scale(1.03);
}
.jitheme-wp-screen-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 38%, transparent 62%, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}
.jitheme-wp-screen-stand {
    width: 18%;
    height: 34px;
    background: linear-gradient(180deg, #3a3f46, #171a1f);
    border-radius: 0 0 8px 8px;
    margin-top: -2px;
}
.jitheme-wp-screen-base {
    width: 38%;
    height: 12px;
    background: #20242a;
    border-radius: 50%;
    margin-top: -3px;
    box-shadow: none;
}
.jitheme-wp-screen-tip {
    margin-top: 18px;
    font-size: var(--fs-xs);
    color: var(--text-primary, #64748b);
    text-align: center;
}

/* ---- 信息面板 ---- */
.jitheme-wp-info {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e8edf3);
    border-radius: var(--b2radius, 12px);
    

    padding: 26px 26px 24px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
.jitheme-wp-detail-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.4;
    color: var(--text-primary, #1e293b);
}
.jitheme-wp-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 20px;
}
.jitheme-wp-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.jitheme-wp-detail-meta b {
    color: var(--text-muted);
    font-weight: 600;
}
.jitheme-wp-detail-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

/* 分辨率下拉 */
.jitheme-wp-select-row {
    margin-bottom: 16px;
}
.jitheme-wp-select-label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-primary, #64748b);
    margin-bottom: 8px;
}
.jitheme-wp-select-box {position: relative; border: 1px solid var(--border-color, #e8edf3); border-radius: var(--b2radius, 12px); transition: border-color 0.2s; background: var(--bg-body)}
.jitheme-wp-select-box:focus-within {
    border-color: var(--text-primary, #4f6ef7);
}
.jitheme-wp-select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    padding: 12px 38px 12px 14px;
    cursor: pointer;
}
.jitheme-wp-select-box::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--text-primary, #64748b);
    border-bottom: 1px solid var(--text-primary, #64748b);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* 规格联动 */
.jitheme-wp-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.jitheme-wp-spec {border: 1px solid var(--border-color, #e8edf3); border-radius: var(--b2radius, 12px); padding: 10px 12px; background: var(--bg-body)}
.jitheme-wp-spec-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: 4px;
}
.jitheme-wp-spec-value {
    font-size: var(--fs-base);
    color: var(--text-primary, #1e293b);
}
@keyframes jitheme-wp-flash {
    0%   { opacity: 0.3; transform: translateY(-3px); }
    100% { opacity: 1;   transform: translateY(0); }
}
.jitheme-wp-spec-value.updated {
    animation: jitheme-wp-flash 0.35s ease;
}

/* 下载按钮 */
.jitheme-wp-download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    

    padding: 15px 18px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--text-primary, #4f6ef7), var(--text-primary, #b24eff));
    /* box-shadow: none; */
    /* transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; */
}
.jitheme-wp-download-btn:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: none; */
}
.jitheme-wp-download-btn:active {
    transform: translateY(0);
}
.jitheme-wp-download-icon {
    font-size: var(--fs-lg);
    line-height: 1;
}
.jitheme-wp-download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}
.jitheme-wp-download-text b {
    font-size: var(--fs-base);
    font-weight: 700;
}
.jitheme-wp-download-text i {
    font-style: normal;
    font-size: var(--fs-xs);
    opacity: 0.85;
}
.jitheme-wp-download-btn.is-locked {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
}
.jitheme-wp-download-btn.is-disabled {
    background: linear-gradient(135deg, #c3cde0, #94a3b8);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.75;
}
.jitheme-wp-download-btn.is-disabled:hover {
    transform: none;
    box-shadow: none;
}
.jitheme-wp-download-btn.is-pay {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    box-shadow: none;
}
.jitheme-wp-download-btn.is-pay:hover {
    box-shadow: none;
}
.jitheme-wp-download-btn.is-free {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: none;
}
.jitheme-wp-download-btn.is-free:hover {
    box-shadow: none;
}

/* 下载权限卡（对齐幻灯片素材显示模式） */
.jitheme-wp-perm {margin-top: 12px; border: 1px solid var(--border-color); border-radius: var(--b2radius, 12px); padding: 10px 12px; background: var(--bg-card, #fff); border-color: var(--border-color, #e4e9f2)}
.jitheme-wp-perm-row.selected {
    border-color: var(--text-primary, #4f6ef7);
    box-shadow: none;
}
.jitheme-wp-perm-badge.rec {
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: none;
}
.jitheme-wp-perm-badge.adv {
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
}
/* 满足但非最优（不建议）的行弱化，避免与推荐行抢视觉 */
.jitheme-wp-perm-row.state-ok:not(.selected) {
    opacity: 0.82;
}
.jitheme-wp-perm-row.state-ok .jitheme-wp-perm-badge.adv {
    opacity: 1;
}

.jitheme-wp-guest-tip {margin: 14px 0 0; font-size: var(--fs-sm); color: var(--text-primary, #64748b); padding: 9px 12px; line-height: 1.6; background: var(--bg-card-gray, #f1f5fb)}

/* 描述 */

/* 来源说明（内联于元信息行，跟随「浏览次数」） */
.jitheme-wp-source {
    display: inline;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.jitheme-wp-source-link,
.jitheme-wp-source-name {font-weight: 500; text-decoration: none; transition: color 0.2s; color: var(--text-muted)}
.jitheme-wp-source-link:hover { color: var(--primary); text-decoration: underline; }
.jitheme-wp-source-link i {
    font-style: normal;
    font-size: var(--fs-xs);
    margin-left: 3px;
    opacity: 0.7;
}
.jitheme-wp-source-default {
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- 相关推荐 ---- */
.jitheme-wp-related {
    margin-top: 34px;
}
.jitheme-wp-related-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-primary, #1e293b);
}

/* ---- 桌面层（Win10 风格排版 + SVG 图标，显示器内） ---- */
.jitheme-wp-desktop {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
/* 桌面图标（左上竖排） */
.jitheme-wp-desktop-icons {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 2;
}
.jitheme-wp-desktop-icon {
    width: 40px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 2px 2px 1px;
    

    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
    position: relative;
}
.jitheme-wp-desktop-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}
.jitheme-wp-desktop-icon.selected {
    background: rgba(96, 165, 250, 0.28);
    border-color: rgba(96, 165, 250, 0.55);
}
.jitheme-wp-icon-visual {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s ease;
}
.jitheme-wp-desktop-icon:hover .jitheme-wp-icon-visual { transform: translateY(-1px); }
.jitheme-wp-icon-visual svg { width: 100%; height: 100%; display: block; }
.jitheme-wp-icon-label {
    font-size: 0.47rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    max-width: 100%;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
}

/* Win10 任务栏（底部全宽） */
.jitheme-wp-taskbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    background: rgba(15, 19, 26, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}
.jitheme-wp-taskbar-start {
    width: 14px;
    height: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}
.jitheme-wp-taskbar-start i {
    background: var(--bg-card);
    

}
.jitheme-wp-taskbar-app {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f8ff7, #1e4fd8);
}
.jitheme-wp-taskbar-clock {
    margin-left: auto;
    font-size: var(--fs-xs);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

/* 隐藏图标状态 */
.jitheme-wp-screen-panel.icons-hidden .jitheme-wp-desktop {
    display: none;
}
/* 显隐切换按钮（位于屏幕右上角） */
.jitheme-wp-screen-icon-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 200;
    border: none;
    cursor: pointer;
    font-size: var(--fs-xs);
    color: #fff;
    background: rgba(15, 19, 26, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    

    padding: 3px 9px;
    line-height: 1.4;
    transition: background 0.2s;
}
.jitheme-wp-screen-icon-toggle:hover {
    background: rgba(15, 19, 26, 0.8);
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 960px) {
    .jitheme-wp-detail {
        grid-template-columns: 1fr;
    }
    .jitheme-wp-screen-side {
        padding: 22px 18px 18px;
    }
    .jitheme-wp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jitheme-wp-wrap {
        padding: 16px 12px 36px;
    }
    .jitheme-wp-header {
        padding: 20px 18px;
    }
    .jitheme-wp-title {
        font-size: var(--fs-lg);
    }
    .jitheme-wp-specs {
        grid-template-columns: repeat(3, 1fr);
    }
    .jitheme-wp-related-grid {
        grid-template-columns: 1fr;
    }
    .jitheme-wp-desktop-icon {
        width: 48px;
        height: 34px;
    }
    .jitheme-wp-icon-visual {
        width: 20px;
        height: 20px;
    }
    .jitheme-wp-taskbar {
        height: 25px;
        gap: 5px;
    }
    .jitheme-wp-taskbar-start {
        width: 13px;
        height: 13px;
    }
    .jitheme-wp-taskbar-app {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }
}

/* ============================================================
 * 壁纸详情页：下载权限卡（严格对齐幻灯片详情页样式）
 * ============================================================ */
.jitheme-wp-single .jitheme-wp-perm-card {border: 1px solid #f0e6d0; background-color: #fffdf9; border-radius: var(--b2radius, 12px); padding: 15px; margin: 14px 0 8px; background: var(--bg-card, #fff); border-color: var(--border-color, #e8edf3)}
.jitheme-wp-single .jitheme-wp-perm-card .perm-header {display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #f0e6d0; border-bottom-color: var(--border-color, #e8edf3)}
.jitheme-wp-single .jitheme-wp-perm-card .perm-title {
    font-size: var(--fs-base);
    margin-right: 10px;
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-link {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-link:hover {
    color: var(--b2color, #1a73e8);
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-link i {
    font-size: var(--fs-sm);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-link:hover i {
    transform: rotate(180deg);
    color: var(--b2color, #1a73e8);
}
.jitheme-wp-single .jitheme-wp-perm-card .jsp-me-label {padding: 2px 8px; font-size: var(--fs-sm); margin: 0; display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; color: var(--text-primary, #333)}
.jitheme-wp-single .jitheme-wp-perm-card .jsp-me-label .lv-icon {
    vertical-align: middle;
}
.jitheme-wp-single .jitheme-wp-perm-card .jsp-perms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--b2radius, 8px);
    font-size: var(--fs-base);
    transition: all .2s;
    cursor: pointer;
    margin-bottom: 0;
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-option:last-child {
    margin-bottom: 0;
}

.jitheme-wp-single .jitheme-wp-perm-card .perm-option.selected .perm-price::before,
.jitheme-wp-single .jitheme-wp-perm-card .perm-option.selected .perm-price-free::before {
    content: '✔';
    margin-right: 6px;
}
.jitheme-wp-single .jitheme-wp-perm-card .perm-name {color: var(--text-primary, #555)}
.jitheme-wp-single .jitheme-wp-perm-card .perm-badge-green {
    background: #e6fffb;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 2px 8px;
    border-radius: var(--b2radius, 6px);
    font-size: var(--fs-xs);
    margin-left: 8px;
}
.jitheme-wp-single .jitheme-wp-perm-card .jitheme-all-perms {
    margin-top: 12px;
}

/* 壁纸详情页不输出 B2 原生下载框（download-box） */
.jitheme-wp-single .download-box {
    display: none !important;
}

/* ===== 选择分辨率下载弹窗（对齐幻灯片下载地址列表） ===== */
.jitheme-wp-dl-popup {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jitheme-wp-dl-popup[hidden] { display: none; }
.jitheme-wp-dl-mask {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: jitheme-wp-dl-fade 0.2s ease;
}
@keyframes jitheme-wp-dl-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.jitheme-wp-dl-box {position: relative; width: 520px; max-width: calc(100vw - 32px); max-height: min(72vh, 560px); box-shadow: none; display: flex; flex-direction: column; overflow: hidden; animation: jitheme-wp-dl-pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2); background: var(--bg-card, #fff)}
@keyframes jitheme-wp-dl-pop {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.jitheme-wp-dl-head {display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; border-bottom-color: var(--border-color, #f0f0f0)}
.jitheme-wp-dl-title {font-size: var(--fs-base); font-weight: 600; color: var(--text-primary, #222)}
.jitheme-wp-dl-close {
    border: none;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: var(--fs-md);
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.jitheme-wp-dl-close:hover {background: var(--bg-card-gray, #f5f5f5); color: var(--text-primary, #333)}
.jitheme-wp-dl-tip {
    padding: 8px 18px 0;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}
.jitheme-wp-dl-list {
    overflow-y: auto;
    padding: 10px 12px 14px;
    flex: 1;
    min-height: 0;
}
.jitheme-wp-dl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    

    cursor: pointer;
    transition: background 0.14s ease, box-shadow 0.14s ease;
    border: 1px solid transparent;
}
.jitheme-wp-dl-item:hover {background: var(--bg-card-gray, #f6f8fb); box-shadow: none}
.jitheme-wp-dl-px {font-size: var(--fs-sm); font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary, #1f2937)}
.jitheme-wp-dl-star { color: var(--gold); }
.jitheme-wp-dl-meta {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    flex-shrink: 0;
}
.jitheme-wp-dl-go {font-size: var(--fs-xs); font-weight: 600; color: var(--primary); padding: 4px 10px; flex-shrink: 0; transition: background 0.15s, color 0.15s; background: var(--bg-card-gray, #eef4ff)}
.jitheme-wp-dl-item:hover .jitheme-wp-dl-go {
    background: var(--primary);
    color: #fff;
}
.jitheme-wp-dl-item.locked .jitheme-wp-dl-px,
.jitheme-wp-dl-item.locked .jitheme-wp-dl-meta { color: var(--text-muted); }
.jitheme-wp-dl-item.locked .jitheme-wp-dl-go {color: #9aa1ad; background: var(--bg-card-gray, #f2f3f5)}
.jitheme-wp-dl-item.locked:hover { background: transparent; box-shadow: none; cursor: not-allowed; }
body.jitheme-wp-dl-open { overflow: hidden; }
@media (max-width: 560px) {
    .jitheme-wp-dl-box { width: 100%; max-width: none; margin: 0 12px; }
    .jitheme-wp-dl-item { flex-wrap: wrap; }
    .jitheme-wp-dl-meta { width: 100%; }
}

/* ============================================================
 * 批量打包下载（详情页「选择分辨率下载」弹窗：复选框 / 批量条 / 进度弹窗）
 * ============================================================ */
/* 弹窗批量条（全选 / 已选数 / 打包下载按钮） */
.jitheme-wp-dl-batch {display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 12px; border: 1px dashed #c3cde0; background: var(--bg-card-gray, #f4f6fa); border-color: var(--border-color, #c3cde0)}
.jitheme-wp-dl-batch-all {display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); cursor: pointer; user-select: none; white-space: nowrap; color: var(--text-primary, #5a6b8c)}
.jitheme-wp-dl-batch-all input {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    accent-color: #ef4444;
}
.jitheme-wp-dl-batch-count {
    flex: 1;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}
.jitheme-wp-dl-batch-count b { color: #ef4444; }
.jitheme-wp-dl-batch-go {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, var(--orange));
    font-weight: 600;
    

    padding: 7px 16px;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.jitheme-wp-dl-batch-go:hover { opacity: 0.92; }
.jitheme-wp-dl-batch-go:disabled {background: #c3cde0 !important; color: #f1f5fb !important; opacity: 1 !important; cursor: not-allowed}

/* 每个分辨率行前的复选框 */
.jitheme-wp-dl-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    cursor: pointer;
    flex: 0 0 auto;
}
.jitheme-wp-dl-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #ef4444;
}
.jitheme-wp-dl-item.locked .jitheme-wp-dl-check { cursor: not-allowed; }
.jitheme-wp-dl-item.locked .jitheme-wp-dl-check input { cursor: not-allowed; }

/* 打包进度弹窗 */
.jitheme-wp-zip-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}
.jitheme-wp-zip-modal[hidden] { display: none; }
.jitheme-wp-zip-dialog {width: min(420px, 92vw); padding: 22px 24px 18px; box-shadow: none; background: var(--bg-card, #fff)}
.jitheme-wp-zip-head {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 14px;
}
.jitheme-wp-zip-progress {height: 10px; overflow: hidden; margin-bottom: 14px; background: var(--bg-card-gray, #eef1f6)}
.jitheme-wp-zip-bar {
    height: 100%;
    width: 0;
    

    background: linear-gradient(90deg, var(--text-primary, #4f6ef7), var(--text-primary, #b24eff));
    transition: width 0.45s ease;
}
.jitheme-wp-zip-text {
    font-size: var(--fs-base);
    color: var(--text-primary, #1e293b);
    margin: 0 0 6px;
}
.jitheme-wp-zip-sub {
    font-size: var(--fs-xs);
    color: var(--text-primary, #64748b);
    margin: 0 0 14px;
}
.jitheme-wp-zip-close {display: block; margin: 6px 0 0 auto; border: 1px solid var(--border-color, #e8edf3); padding: 7px 18px; font-size: var(--fs-sm); cursor: pointer; background: var(--bg-card-gray, #fafbfd); border-color: var(--border-color, #e8edf3); color: var(--text-primary, #1e293b)}
.jitheme-wp-zip-close:hover {
    color: var(--text-primary, #4f6ef7);
    border-color: rgba(79, 110, 247, 0.4);
}
body.jitheme-wp-zip-open { overflow: hidden; }
@media (max-width: 560px) {
    .jitheme-wp-zip-dialog { padding: 18px 16px 14px; }
}

/* ============================================================
   列表页批量多选打包（archive / taxonomy）
   ============================================================ */

/* 卡片外层 wrapper（picking 模式才有） */
.jitheme-wp-pick-item {
    position: relative;
    display: flex;
    flex-direction: column;
}
.jitheme-wp-pick-item > .jitheme-wp-card {
    flex: 1;
}

/* 左上角圆形 checkbox overlay */
/* 进入 picking 模式后 checkbox 才可见 */

/* picking 模式：卡片光标 + 选中态描边 */
.jitheme-wp-grid-pick.is-picking .jitheme-wp-card {
    cursor: pointer;
}
.jitheme-wp-pick-item.is-picked .jitheme-wp-card {
    border-color: var(--text-primary, #4f6ef7);
    box-shadow: none;
}
.jitheme-wp-grid-pick.is-picking .jitheme-wp-card:hover {
    transform: none; /* picking 模式下不浮起，避免视觉跳动 */
}

/* 顶部固定工具条 */

@media (max-width: 560px) {
    .jitheme-wp-pick-bar { flex-wrap: wrap; gap: 10px; }
    .jitheme-wp-pick-go { margin-left: 0; }
}
