:root {
    --jbj-blue: #0071e3;
    --jbj-text: #1d1d1f;
    --jbj-muted: #86868b;
    --jbj-orange: #ff7b34;
    --jbj-button: #ff6540;
    --jbj-button-start: #ff884f;
    --jbj-button-dark: #e64d28;
    --jbj-accent: #18b985;
    --jbj-page: #f2f3f5;
    --jbj-line: rgba(0, 0, 0, .06);
    --jbj-shadow: 0 8px 24px rgba(20, 44, 78, .08);
}

.jbj-body {
    min-width: 320px;
    margin: 0;
    color: var(--jbj-text);
    background: var(--jbj-page);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.jbj-body *,
.jbj-body *::before,
.jbj-body *::after {
    box-sizing: border-box;
}

.jbj-body a {
    text-decoration: none;
}

.jbj-body:not(.jubijia-mobile-body) button,
.jbj-body:not(.jubijia-mobile-body) input,
.jubijia-mobile-body .jbj-mobile-search button,
.jubijia-mobile-body .jbj-mobile-search input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jbj-header {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin-left: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.jbj-body .main-footer {
    display: none;
}

.jbj-float-help {
    position: fixed;
    top: var(--jbj-float-help-top, 60%);
    right: max(16px, calc((100vw - 1400px) / 2 - 68px));
    z-index: 90;
    display: block;
    width: 50px;
    min-width: 44px;
    min-height: 44px;
    transform: translateY(-50%);
}

.jbj-float-help img {
    display: block;
    width: 100%;
    height: auto;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .jbj-float-help {
        transition: transform .2s ease;
    }

    .jbj-float-help:hover {
        transform: translateY(-50%) scale(1.08);
    }
}

.jbj-desktop-footer {
    margin-top: 32px;
    color: #a3a7ad;
    background: #252525;
}

.jbj-footer-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

.jbj-footer-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 34px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    gap: 28px;
}

.jbj-footer-feature {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.jbj-footer-feature > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #f1f3f5;
    border: 1px solid rgba(241, 243, 245, .78);
    border-radius: 50%;
    font-size: 19px;
}

.jbj-footer-feature h2,
.jbj-footer-column h2,
.jbj-footer-follow h2 {
    margin: 0;
    color: #f4f5f6;
    font-size: 14px;
    font-weight: 600;
}

.jbj-footer-feature p,
.jbj-footer-column p {
    margin: 6px 0 0;
    color: #777d85;
    font-size: 12px;
    line-height: 1.7;
}

.jbj-footer-content {
    display: flex;
    justify-content: space-between;
    padding: 38px 0;
    gap: 64px;
}

.jbj-footer-columns {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 48px;
}

.jbj-footer-links {
    display: grid;
    padding: 0;
    margin: 6px 0 0;
    list-style: none;
    gap: 5px;
}

.jbj-footer-links li,
.jbj-footer-links a,
.jbj-footer-links span {
    color: #777d85;
    font-size: 12px;
    line-height: 1.7;
}

.jbj-footer-links a:hover,
.jbj-footer-links a:focus-visible {
    color: #71acf9;
}

.jbj-footer-follow {
    flex: 0 0 auto;
    min-width: 190px;
}

.jbj-footer-follow h2 {
    margin-bottom: 14px;
}

.jbj-footer-qr-list {
    display: flex;
    gap: 12px;
}

.jbj-footer-qr-list figure {
    margin: 0;
    text-align: center;
}

.jbj-footer-qr-list img {
    display: block;
    width: 74px;
    height: 74px;
    padding: 3px;
    background: #fff;
    object-fit: cover;
}

.jbj-footer-qr-list figcaption {
    margin-top: 6px;
    color: #777d85;
    font-size: 12px;
}

.jbj-footer-legal {
    padding: 16px 0;
    color: #70757d;
    background: #1d1d1d;
    font-size: 12px;
}

.jbj-footer-legal .jbj-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.jbj-footer-legal a {
    color: inherit;
}

.jbj-footer-icp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jbj-footer-icp img {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    object-fit: contain;
}

/* ========== v3.21 页脚聚比价三段式（品牌信息 + 链接列 / 资质徽章 / 备案 legal） ========== */
.jbj-footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(132px, 1fr));
    padding: 40px 0 34px;
    gap: 30px 34px;
}

.jbj-footer-brand { min-width: 0; }

.jbj-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
}

.jbj-footer-logo img {
    display: block;
    width: auto;
    max-width: 168px;
    max-height: 46px;
    object-fit: contain;
}

.jbj-footer-brand-name {
    margin: 0;
    color: #f4f5f6;
    font-size: 16px;
    font-weight: 600;
}

.jbj-footer-brand-desc {
    margin: 9px 0 0;
    max-width: 330px;
    color: #777d85;
    font-size: 12px;
    line-height: 1.8;
}

/* v3.22 底部 IP 形象（透明底电电喵，悬浮动效） */
.jbj-footer-ip {
    display: inline-block;
    margin-bottom: 12px;
    animation: jbjFooterFloat 3.2s ease-in-out infinite;
}
.jbj-footer-ip img {
    display: block;
    width: 72px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .38));
}
@keyframes jbjFooterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
    .jbj-footer-ip { animation: none; }
}

.jbj-footer-brand-tags {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
    gap: 8px;
}

.jbj-footer-brand-tags li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    color: #b9bec6;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    font-size: 12px;
}

.jbj-footer-brand-tags li i { color: #71acf9; }

.jbj-footer-column { min-width: 0; }

.jbj-footer-column h2 { margin-bottom: 12px; }

.jbj-footer-badges { border-top: 1px solid rgba(255, 255, 255, .08); }

.jbj-footer-badges .jbj-footer-inner {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 22px;
}

.jbj-footer-badges-label {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    color: #b9bec6;
    font-size: 13px;
    white-space: nowrap;
}

.jbj-footer-badges-label i { color: #f1c96b; font-size: 16px; }

.jbj-footer-badges-row {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jbj-footer-badges-row::-webkit-scrollbar { display: none; }

.jbj-footer-badge {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .94);
    border-radius: 8px;
    gap: 8px;
    transition: transform .22s ease;
}

.jbj-footer-badge:hover { transform: translateY(-2px); }

.jbj-footer-badge img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 64px;
    object-fit: contain;
}

.jbj-footer-badge figcaption {
    color: #46505f;
    font-size: 12px;
    white-space: nowrap;
}

.jbj-footer-legal .jbj-footer-inner { align-items: center; }

.jbj-footer-gongan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jbj-footer-gongan i { font-size: 13px; }

.jbj-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    height: 64px;
    padding: 0 32px;
    margin: 0 auto;
    gap: 12px;
}

.jbj-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    isolation: isolate;
}

.jbj-logo img {
    display: block;
    width: auto;
    height: 35.2px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .jbj-logo {
        padding: 5px 9px;
        margin: -5px -9px;
        overflow: hidden;
        border-radius: 12px;
    }

    .jbj-logo::before,
    .jbj-logo::after {
        position: absolute;
        content: "";
        pointer-events: none;
    }

    .jbj-logo::before {
        right: 14%;
        bottom: 1px;
        left: 14%;
        z-index: -1;
        height: 8px;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(50, 180, 255, .3) 0%, rgba(55, 213, 173, .16) 42%, transparent 74%);
        filter: blur(5px);
        opacity: .16;
        transform: translateY(5px) scaleX(.74);
        animation: jbj-logo-ambient-breathe 5.8s ease-in-out infinite;
        transition: opacity .36s ease, transform .46s cubic-bezier(.2, .75, .25, 1);
    }

    .jbj-logo::after {
        top: -32%;
        bottom: -32%;
        left: 0;
        z-index: 1;
        width: 30%;
        background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, .04) 33%, rgba(255, 255, 255, .76) 48%, rgba(136, 219, 255, .5) 55%, transparent 74%);
        mix-blend-mode: screen;
        opacity: 0;
        transform: translate3d(-190%, 0, 0) skewX(-18deg);
        animation: jbj-logo-gloss-idle 5.8s cubic-bezier(.18, .72, .24, 1) infinite;
    }

    .jbj-logo img {
        position: relative;
        z-index: 0;
        transition: transform .42s cubic-bezier(.2, .75, .25, 1), filter .42s ease;
    }

    .jbj-logo:hover::before {
        opacity: 1;
        transform: translateY(0) scaleX(1);
    }

    .jbj-logo:hover::after {
        animation: jbj-logo-gloss-sweep .82s cubic-bezier(.18, .72, .24, 1) both;
    }

    .jbj-logo:hover img {
        filter: brightness(1.045) contrast(1.02) drop-shadow(0 5px 8px rgba(37, 140, 255, .24));
        transform: translateY(-1px) scale(1.018);
    }
}

@keyframes jbj-logo-gloss-sweep {
    0% {
        opacity: 0;
        transform: translate3d(-190%, 0, 0) skewX(-18deg);
    }

    10% {
        opacity: 1;
    }

    88%,
    100% {
        opacity: 0;
        transform: translate3d(480%, 0, 0) skewX(-18deg);
    }
}

@keyframes jbj-logo-gloss-idle {
    0%,
    68% {
        opacity: 0;
        transform: translate3d(-190%, 0, 0) skewX(-18deg);
    }

    72% {
        opacity: 1;
    }

    86%,
    100% {
        opacity: 0;
        transform: translate3d(480%, 0, 0) skewX(-18deg);
    }
}

@keyframes jbj-logo-ambient-breathe {
    0%,
    67%,
    100% {
        opacity: .16;
        transform: translateY(5px) scaleX(.74);
    }

    76% {
        opacity: .52;
        transform: translateY(1px) scaleX(1);
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .jbj-logo {
        padding: 4px 7px;
        margin: -4px -7px;
        overflow: hidden;
        border-radius: 10px;
    }

    .jbj-logo::after {
        position: absolute;
        top: -32%;
        bottom: -32%;
        left: 0;
        z-index: 1;
        width: 30%;
        background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, .04) 33%, rgba(255, 255, 255, .76) 48%, rgba(136, 219, 255, .5) 55%, transparent 74%);
        content: "";
        pointer-events: none;
        mix-blend-mode: screen;
        opacity: 0;
        transform: translate3d(-190%, 0, 0) skewX(-18deg);
        animation: jbj-logo-gloss-idle 5.8s cubic-bezier(.18, .72, .24, 1) infinite;
    }

    .jbj-logo::before,
    .jbj-logo:hover::before {
        opacity: 0;
        transform: translateY(5px) scaleX(.74);
        animation: none;
    }

    .jbj-logo img,
    .jbj-logo:hover img {
        filter: none;
        transform: none;
    }

    .jbj-logo:hover::after {
        animation: jbj-logo-gloss-idle 5.8s cubic-bezier(.18, .72, .24, 1) infinite;
    }
}

.jbj-desktop-nav {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    height: 100%;
    transform: translateX(-50%);
}

.jbj-desktop-nav a,
.jbj-desktop-nav button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 100%;
    padding: 0 16px;
    color: #303744;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: .3px;
    white-space: nowrap;
    transition: color .2s ease;
}

/* v2.09 顶部导航角标（模板可自定义角标文字，留空不显示）；v2.13 改红色气泡造型，悬浮于文字右上，不遮挡 */
.jbj-nav-badge {
    position: absolute;
    top: 4px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 8px;
    border-radius: 999px 999px 4px 999px;
    background: linear-gradient(135deg, #ff5a3c, #e6271e);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .2px;
    box-shadow: 0 2px 6px rgba(230, 55, 30, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
    pointer-events: none;
    white-space: nowrap;
}

/* 气泡小尾巴：贴在气泡右下角，指向下方，恒落在导航项右侧空白区，不遮挡文字 */
.jbj-nav-badge::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: -4px;
    width: 7px;
    height: 7px;
    background: #e6271e;
    border-radius: 2px 1px 7px 2px;
    transform: rotate(-14deg);
    box-shadow: 0 2px 4px rgba(230, 55, 30, .22);
}

.jbj-desktop-nav a:hover .jbj-nav-badge {
    filter: brightness(1.07);
    transform: scale(1.06);
}

[data-theme="dark"] .jbj-nav-badge {
    box-shadow: 0 2px 8px rgba(230, 55, 30, .48), inset 0 1px 0 rgba(255, 255, 255, .24);
}

@media (max-width: 1180px) {
    .jbj-desktop-nav a,
    .jbj-desktop-nav button {
        font-size: 14px;
        min-width: 72px;
        padding: 0 12px;
    }
    .jbj-nav-badge { top: 2px; right: -6px; height: 16px; padding: 0 7px; }
    .jbj-nav-badge::after { left: 6px; bottom: -3px; width: 6px; height: 6px; }
}

.jbj-body:not(.jubijia-mobile-body) .jbj-desktop-nav a,
.jbj-body:not(.jubijia-mobile-body) .jbj-desktop-nav button {
    font-size: 15px;
}

.jbj-desktop-nav a > i {
    display: none;
}

.jbj-desktop-nav a:hover,
.jbj-desktop-nav button:hover,
.jbj-desktop-nav a:focus-visible,
.jbj-desktop-nav button:focus-visible {
    color: var(--jbj-blue);
}

.jbj-desktop-nav .is-current {
    color: var(--jbj-blue);
    font-weight: 700;
}

.jbj-search,
.jbj-mobile-search {
    display: flex;
    align-items: center;
    flex: 0 0 200px;
    width: 200px;
    height: 38px;
    padding: 3px 4px 3px 12px;
    margin-left: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(0, 113, 227, .14);
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(20, 44, 78, .06);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.jbj-search:focus-within,
.jbj-mobile-search:focus-within {
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 44, 78, .1);
}

.jbj-search input,
.jbj-mobile-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0;
    color: #333;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
}

.jbj-body:not(.jubijia-mobile-body) .jbj-search input,
.jubijia-mobile-body .jbj-mobile-search input {
    font-size: 16px;
}

.jbj-search-icon,
.jbj-mobile-search-icon {
    flex: 0 0 auto;
    margin-right: 7px;
    color: #8391a3;
    font-size: 14px;
}

.jbj-search input::placeholder,
.jbj-mobile-search input::placeholder {
    color: #9aa3ad;
    font-size: 12px;
}

.jbj-search button,
.jbj-mobile-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    min-width: 52px;
    height: 32px;
    padding: 0 11px;
    color: #fff;
    background: var(--jbj-blue);
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.jbj-mobile-search {
    display: none;
}

.jbj-header .jbj-register,
.jbj-header .jbj-register:visited,
.jbj-header .jbj-register:hover,
.jbj-header .jbj-register:focus-visible,
.jbj-drawer .jbj-drawer-register,
.jbj-drawer .jbj-drawer-register:visited,
.jbj-drawer .jbj-drawer-register:hover,
.jbj-drawer .jbj-drawer-register:focus-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 7.2px 17.6px;
    color: #fff;
    background: var(--jbj-blue);
    border-radius: 18px;
    box-shadow: 0 5px 14px rgba(0, 113, 227, .2);
    font-size: 13.12px;
    white-space: nowrap;
}

.jbj-menu-trigger {
    display: none;
    width: 25px;
    height: 50px;
    margin-left: auto;
    color: #111;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 25px;
}

.jbj-unavailable {
    position: fixed;
    top: 72px;
    left: 50%;
    z-index: 240;
    max-width: min(90vw, 520px);
    padding: 10px 16px;
    color: #fff;
    background: rgba(29, 29, 31, .92);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transform: translateX(-50%);
    font-size: 14px;
}

.jbj-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(0, 0, 0, .32);
}

.jbj-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 199;
    width: min(72vw, 288px);
    height: 100vh;
    padding: 70px 18px 24px;
    background: rgba(255, 255, 255, .98);
    box-shadow: -12px 0 34px rgba(0, 0, 0, .16);
}

.jbj-drawer-close {
    position: absolute;
    top: 12px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.jbj-drawer-close > i {
    font-size: 20px;
    line-height: 1;
}

.jbj-drawer nav {
    display: grid;
    gap: 4px;
}

.jbj-drawer nav a,
.jbj-drawer nav button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    color: #222;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eceef1;
    cursor: pointer;
    font-size: 15px;
    text-align: left;
}

.jbj-drawer nav a > i,
.jbj-drawer nav button > i {
    flex: 0 0 18px;
    width: 18px;
    margin-right: 10px;
    text-align: center;
}

.jbj-drawer nav .is-current {
    color: var(--jbj-blue);
    background: rgba(64, 158, 255, .08);
    font-weight: 700;
}

.jbj-drawer-register {
    width: 100%;
    margin-top: 22px;
}

.jbj-drawer-open {
    overflow: hidden;
}

.source_mian.jbj-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--jbj-page);
}

.source_mian.jbj-page::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 592px;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M81.28 88H68.413l19.298 19.298L81.28 88zm2.107 0h13.226L90 107.838 83.387 88zm15.334 0h12.866l-19.298 19.298L98.72 88zm-32.927-2.207L73.586 78h32.827l.5.5 7.294 7.293L115.414 87l-24.707 24.707-.707.707L64.586 87l1.207-1.207zm2.62.207L74 80.414 79.586 86H68.414zm16 0L90 80.414 95.586 86H84.414zm16 0L106 80.414 111.586 86h-11.172zm-8-6h11.173L98 85.586 92.414 80zM82 85.586L87.586 80H76.414L82 85.586zM17.414 0L.707 16.707 0 17.414V0h17.414zM4.28 0L0 12.838V0h4.28zm10.306 0L2.288 12.298 6.388 0h8.198zM180 17.414L162.586 0H180v17.414zM165.414 0l12.298 12.298L173.612 0h-8.198zM180 12.838L175.72 0H180v12.838zM0 163h16.413l.5.5 7.294 7.293L25.414 172l-8 8H0v-17zm0 10h6.613l-2.334 7H0v-7zm14.586 7l7-7H8.72l-2.333 7h8.2zM0 165.414L5.586 171H0v-5.586zM10.414 171L16 165.414 21.586 171H10.414zm-8-6h11.172L8 170.586 2.414 165zM180 163h-16.413l-7.794 7.793-1.207 1.207 8 8H180v-17zm-14.586 17l-7-7h12.865l2.333 7h-8.2zM180 173h-6.613l2.334 7H180v-7zm-21.586-2l5.586-5.586 5.586 5.586h-11.172zM180 165.414L174.414 171H180v-5.586zm-8 5.172l5.586-5.586h-11.172l5.586 5.586zM152.933 25.653l1.414 1.414-33.94 33.942-1.416-1.416 33.943-33.94zm1.414 127.28l-1.414 1.414-33.942-33.94 1.416-1.416 33.94 33.943zm-127.28 1.414l-1.414-1.414 33.94-33.942 1.416 1.416-33.943 33.94zm-1.414-127.28l1.414-1.414 33.942 33.94-1.416 1.416-33.94-33.943zM0 85c2.21 0 4 1.79 4 4s-1.79 4-4 4v-8zm180 0c-2.21 0-4 1.79-4 4s1.79 4 4 4v-8zM94 0c0 2.21-1.79 4-4 4s-4-1.79-4-4h8zm0 180c0-2.21-1.79-4-4-4s-4 1.79-4 4h8z' fill='%23c4c6c8' fill-opacity='0.8' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    content: "";
    opacity: .74;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .9) 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .9) 72%, transparent 100%);
}

.source.jbj-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    margin: 0 auto;
}

.jbj-hero {
    position: relative;
    display: flex;
    width: 100%;
    height: var(--jbj-hero-height, 512px);
    gap: 24px;
}

.jbj-category-rail {
    position: relative;
    z-index: 7;
    flex: 0 0 208px;
    width: 208px;
    height: var(--jbj-hero-height, 512px);
    padding: 12px;
    overflow: hidden;
    color: #fff;
    background: rgba(18, 133, 255, .85);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 99, 214, .19);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.jbj-rail-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
}

.jbj-rail-item {
    appearance: none;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    transition: background-color .2s ease, transform .2s ease;
}

.jbj-rail-item:hover,
.jbj-rail-item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .17);
    transform: translateX(2px);
}

.jbj-rail-item.is-active,
.jbj-rail-item[aria-expanded="true"] {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .38);
}

.jbj-rail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
    font-style: normal;
}

.jbj-rail-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jbj-rail-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-rail-arrow {
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
    line-height: 1;
    text-align: right;
}

.jbj-rail-all {
    display: flex;
    justify-content: center;
    min-height: 48px;
    margin-top: auto;
    background: rgba(255, 255, 255, .13);
    font-weight: 600;
}

.jbj-rail-panels {
    position: absolute;
    top: 0;
    right: 264px;
    bottom: 0;
    left: 232px;
    z-index: 6;
    pointer-events: none;
}

.jbj-hero.has-no-account .jbj-rail-panels {
    right: 0;
}

.jbj-rail-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .05);
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.jbj-rail-panel[hidden] {
    display: none;
}

.jbj-rail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eef1f5;
}

.jbj-rail-panel-header h2 {
    margin: 0;
    color: #303133;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

.jbj-rail-panel-header span {
    color: #a0a4aa;
    font-size: 12px;
}

.jbj-rail-panel-body {
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
}

.jbj-rail-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.jbj-rail-category-item {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    min-height: 100px;
    padding: 12px 8px;
    color: #606266;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    gap: 8px;
    text-align: center;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.jbj-rail-category-item:hover,
.jbj-rail-category-item:focus-visible,
.jbj-rail-category-item[aria-current="true"] {
    color: var(--jbj-blue);
    background: rgba(64, 158, 255, .07);
    border-color: rgba(64, 158, 255, .34);
    outline: none;
}

.jbj-rail-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    color: var(--jbj-blue);
    background: #f0f2f5;
    border-radius: 50%;
    font-size: 18px;
    font-style: normal;
}

.jbj-rail-category-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.jbj-rail-panel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
    color: #909399;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.jbj-hero-center {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    height: var(--jbj-hero-height, 512px);
}

.jbj-carousel {
    position: relative;
    height: 376px;
    overflow: hidden;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 16px;
    box-shadow: var(--jbj-shadow);
    touch-action: pan-y;
}

.jbj-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.jbj-carousel.is-fade .jbj-carousel-track {
    position: relative;
    display: block;
    transform: none !important;
}

.jbj-carousel.is-fade .jbj-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.jbj-carousel.is-fade .jbj-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.jbj-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.jbj-slide > a,
.jbj-sub-banner > a {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-user-drag: none;
    user-select: none;
}

.jbj-slide img,
.jbj-sub-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.jbj-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 46px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, .16);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background-color .2s ease;
    font-size: 28px;
}

.jbj-carousel:hover .jbj-carousel-control,
.jbj-carousel-control:focus-visible {
    opacity: 1;
}

.jbj-carousel-control:hover {
    background: rgba(0, 0, 0, .3);
}

.jbj-carousel-prev {
    left: 14px;
}

.jbj-carousel-next {
    right: 14px;
}

.jbj-carousel-dots {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.jbj-carousel-dot {
    position: relative;
    width: 8px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 99px;
    cursor: pointer;
    transition: width .2s ease;
}

.jbj-carousel-dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, .72);
    border-radius: 99px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
    content: "";
    transform: translate(-50%, -50%);
    transition: width .2s ease, background-color .2s ease;
}

.jbj-carousel-dot.is-active {
    width: 16px;
    background: transparent;
}

.jbj-carousel-dot.is-active::before {
    width: 16px;
    background: var(--jbj-blue);
}

.jbj-sub-banners {
    display: flex;
    height: 120px;
    margin-top: 16px;
    gap: 16px;
}

.jbj-sub-banner {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 44, 78, .08);
}

.jbj-account-card {
    display: flex;
    flex: 0 0 240px;
    flex-direction: column;
    width: 240px;
    height: 512px;
    padding: 12px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 12px;
    box-shadow: var(--jbj-shadow);
    gap: 12px;
}

.jbj-account-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 4px 0;
    text-align: center;
}

.jbj-account-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: visible;
}

.jbj-account-art {
    display: block;
    width: 76px;
    height: 76px;
    max-width: none;
    object-fit: contain;
}

.jbj-account-avatar {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: cover;
    background: #f3f6fa;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(37, 75, 115, .14);
}

.jbj-account-user strong {
    display: block;
    margin-top: 8px;
    color: #343434;
    font-size: 15px;
    font-weight: 500;
}

.jbj-account-user p {
    margin: 5px 0 0;
    color: #999;
    font-size: 11px;
}

.jbj-account-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.jbj-account-actions button,
.jbj-account-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.jbj-account-secondary {
    color: #2186dc;
    background: #fff;
    border: 1px solid #38a0ed;
}

.jbj-account-actions .jbj-account-secondary:visited,
.jbj-account-actions .jbj-account-secondary:hover,
.jbj-account-actions .jbj-account-secondary:focus-visible {
    color: #2186dc;
}

.jbj-account-primary {
    color: #fff;
    background: #1e9cf4;
    border: 1px solid #1e9cf4;
    box-shadow: 0 4px 10px rgba(30, 156, 244, .22);
}

.jbj-account-actions .jbj-account-primary,
.jbj-account-actions .jbj-account-primary:visited,
.jbj-account-actions .jbj-account-primary:hover,
.jbj-account-actions .jbj-account-primary:focus-visible {
    color: #fff;
}

.jbj-account-links {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 24px;
    border-top: 1px dashed #e3e3e3;
    gap: 12px;
    /* v1.70：入口数量可自定义（6/10 个…），超出卡片高度时内部滚动，保持三栏齐顶齐底 */
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.14) transparent;
}
.jbj-account-links::-webkit-scrollbar { width: 4px; }
.jbj-account-links::-webkit-scrollbar-thumb { background: rgba(0,0,0,.14); border-radius: 4px; }

.jbj-account-links a,
.jbj-account-links button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 79px;
    padding: 7px 3px;
    color: #444;
    background: #fff;
    border: 0;
    border-radius: 9px;
    box-shadow: 0 5px 17px rgba(37, 75, 115, .08);
    cursor: pointer;
    gap: 5px;
}

.jbj-account-links i,
.jbj-mobile-shortcuts i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    color: #28bfa7;
    background: #e9faf6;
    border-radius: 50%;
    font-size: 19px;
}

/* v1.72：快捷入口自定义图片图标（与字体图标同规格圆形） */
.jbj-account-links img.jbj-sc-img,
.jbj-mobile-shortcuts img.jbj-sc-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    background: #e9faf6;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.jbj-account-links a:nth-child(2) i,
.jbj-account-links button:nth-child(2) i,
.jbj-mobile-shortcuts a:nth-child(1) i {
    color: #fa5d61;
    background: #fff0f0;
}

.jbj-account-links a:nth-child(3) i,
.jbj-account-links button:nth-child(3) i,
.jbj-mobile-shortcuts a:nth-child(3) i {
    color: #39a9df;
    background: #ebf8ff;
}

.jbj-account-links a:nth-child(4) i,
.jbj-account-links button:nth-child(4) i,
.jbj-mobile-shortcuts a:nth-child(4) i {
    color: #55b7e9;
    background: #eef9ff;
}

.jbj-account-links span {
    font-size: 14px;
}

.jbj-account-links small {
    display: none;
}

.jbj-mobile-shortcuts {
    display: none;
}

.jbj-card {
    background: rgba(255, 255, 255, .97);
    border-radius: 8px;
    box-shadow: var(--jbj-shadow);
}

.jbj-scroll-notice {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 18px 28px;
    margin-top: 20px;
    overflow: hidden;
    color: #1d2735;
    gap: 22px;
}

.jbj-scroll-notice > i {
    flex: 0 0 auto;
    color: #ff6d6d;
    font-size: 28px;
}

.jbj-scroll-notice-content {
    min-width: 0;
    padding-left: 22px;
    overflow: hidden;
    border-left: 1px solid #dfe4ea;
    flex: 1 1 auto;
}

.jbj-scroll-notice-content span {
    display: inline-block;
    min-width: 100%;
    overflow: hidden;
    color: #202a36;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: jbj-notice-scroll 16s linear infinite;
}

.jbj-scroll-notice-vticker {
    height: 24px;
    min-width: 0;
    padding-left: 10px;
    overflow: hidden;
    border-left: 1px solid #dfe4ea;
    flex: 1 1 auto;
}

.jbj-scroll-notice-track {
    transition: transform .18s ease-out;
    will-change: transform;
}

.jbj-scroll-notice-item {
    display: block;
    height: 24px;
    overflow: hidden;
    color: #202a36;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-scroll-notice:hover .jbj-scroll-notice-content span,
.jbj-scroll-notice:focus-within .jbj-scroll-notice-content span {
    animation-play-state: paused;
}

.jbj-scroll-notice > a,
.jbj-scroll-notice > button {
    flex: 0 0 auto;
    padding: 0;
    color: #aab2bc;
    background: transparent;
    border: 0;
    font-size: 14px;
    cursor: pointer;
}

@keyframes jbj-notice-scroll {
    0%, 18% { transform: translateX(0); }
    82%, 100% { transform: translateX(-18%); }
}

.jbj-hero + .jbj-categories {
    margin-top: 20px;
}

.jbj-scroll-notice + .jbj-hot {
    margin-top: 10px;
}

.jbj-scroll-notice + .jbj-categories {
    margin-top: 20px;
}

.jbj-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.jbj-section-heading h2 {
    margin: 0;
    color: #181818;
    font-size: 20px;
    line-height: 1.35;
}

.jbj-hot {
    padding: 20px;
    margin-top: 48px;
    margin-bottom: 20px;
    overflow: hidden;
}

.jbj-hot-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jbj-hot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(100deg, #ffa13c, #ff733d);
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(255, 119, 57, .2);
    font-size: 12px;
    font-weight: 600;
}

.jbj-view-all {
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: #4da1e7;
    background: transparent;
    border: 0;
    font-size: 14px;
    cursor: pointer;
    gap: 6px;
}

.jbj-hot-viewport {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
}

.jbj-hot-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: jbj-hot-marquee 34s linear infinite;
    will-change: transform;
}

.jbj-hot-viewport:hover .jbj-hot-track,
.jbj-hot-viewport:focus-within .jbj-hot-track {
    animation-play-state: paused;
}

@keyframes jbj-hot-marquee {
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

.jbj-hot-item {
    display: flex;
    flex: 0 0 200px;
    flex-direction: column;
    width: 200px;
    min-height: 265px;
    padding: 15px;
    overflow: hidden;
    color: #333;
    background: linear-gradient(180deg, #fff 0, #f2f8ff 100%);
    border: 1px solid #e5edf6;
    border-radius: 8px;
    gap: 8px;
}

.jbj-hot-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

.jbj-hot-item strong {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: #2a2a2a;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jbj-hot-price {
    display: flex;
    align-items: baseline;
    margin-top: auto;
    color: var(--jbj-orange);
    gap: 6px;
}

.jbj-hot-price small {
    font-size: 12px;
    font-weight: 600;
}

.jbj-hot-price b {
    font-size: 16px;
    font-weight: 700;
}

.jbj-categories {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    scroll-margin-top: 82px;
}

.jbj-products {
    scroll-margin-top: 82px;
}

.jbj-category-level + .jbj-category-level {
    margin-top: 20px;
}

.jbj-category-level-title {
    margin: 0 0 16px;
    color: #303133;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

.jbj-category-level-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jbj-category-more {
    display: none;
    align-items: center;
    flex: 0 0 auto;
    min-height: 36px;
    color: var(--jbj-blue);
    font-size: 12px;
    gap: 5px;
}

.jbj-category-pages {
    width: 100%;
}

.jbj-category-page {
    display: grid;
    grid-template-columns: repeat(var(--jbj-cat-cols, 10), minmax(0, 1fr));
    width: 100%;
    column-gap: 12px;
    row-gap: 16px;
}

.jbj-category-item {
    appearance: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    /* v0.47：分类按钮先于子面板排布——同级按钮按列数排满，展开的子面板独占整行排在其后，
       展开时不把排在后面的同级分类挤下去 */
    order: 1;
    color: #303133;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    gap: 8px;
    text-align: center;
    transition: color .2s ease;
}

.jbj-category-item:hover {
    color: #409eff;
}

.jbj-category-item:active {
    transform: scale(.96);
}

.jbj-category-item:focus-visible {
    outline: none;
}

.jbj-category-item.is-active .jbj-category-icon {
    border-color: #409eff;
}

.jbj-category-item.is-active .jbj-category-name {
    color: #409eff;
    font-weight: 700;
}

.jbj-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    background: #f7f9fc;
    border: 2px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.jbj-category-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jbj-category-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #5f8fc9;
    background: #edf5ff;
    font-style: normal;
    font-size: 28px;
}

.jbj-mobile-category-pages,
.jbj-mobile-category-dots {
    display: none;
}

/* v0.64：聚比价三段分类的基础态，必须先于下方移动端 @media(max-width:768px) 声明，
   否则会覆盖媒体查询内的同名规则（移动端二级/三级网格显示、层级间距收窄）。
   桌面态：二级/三级手机网格隐藏、层级间距 22px，移动端由 @media 覆盖为 14px。 */
.jbj-cat-level {
    margin-top: 22px;
}

.jbj-cat-level .jbj-category-level-title {
    margin-bottom: 14px;
    font-size: 16px;
}

.jbj-cat-mobile-grid {
    display: none;
}

.jbj-products {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 14px;
}

.jbj-product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 4px 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f3;
}

.jbj-sort-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jbj-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 35px;
    padding: 0 16px;
    color: #5f6169;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(67, 62, 105, .08);
    font-size: 14px;
    gap: 9px;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.jbj-sort-link:visited {
    color: #5f6169;
}

.jbj-sort-link:hover,
.jbj-sort-link:focus-visible {
    color: #5f6169;
    border-color: rgba(0, 113, 227, .34);
    box-shadow: 0 4px 12px rgba(67, 62, 105, .12);
}

.jbj-sort-link:active {
    transform: scale(.96);
}

.jbj-sort-link.is-active,
.jbj-sort-link.is-active:visited,
.jbj-sort-link.is-active:hover,
.jbj-sort-link.is-active:focus-visible {
    color: #fff;
    background: var(--jbj-blue);
    border-color: var(--jbj-blue);
    box-shadow: 0 5px 14px rgba(0, 113, 227, .22);
    font-weight: 700;
}

.jbj-sort-main-icon {
    font-size: 16px;
}

.jbj-sort-arrows {
    display: flex;
    flex-direction: column;
    font-size: 9px;
    line-height: 7px;
}

.jbj-sort-arrows i {
    opacity: .62;
}

.jbj-sort-link.is-asc .jbj-sort-arrows .fa-caret-up,
.jbj-sort-link.is-desc .jbj-sort-arrows .fa-caret-down {
    opacity: 1;
}

.jbj-sort-link.is-asc .jbj-sort-arrows .fa-caret-down,
.jbj-sort-link.is-desc .jbj-sort-arrows .fa-caret-up {
    opacity: .42;
}

.jbj-view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jbj-view-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #707b8c;
    background: #f4f7fb;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.jbj-view-toggle:hover,
.jbj-view-toggle:focus-visible {
    color: #409eff;
}

.jbj-view-toggle:active {
    transform: scale(.96);
}

.jbj-view-toggle.is-active {
    color: #409eff;
    background: #eaf4ff;
    border-color: rgba(64, 158, 255, .18);
}

.jbj-product-list {
    display: grid;
    gap: 18px;
}

.jbj-product {
    display: flex;
    align-items: stretch;
    min-height: 278px;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(35, 58, 88, .065);
    gap: 28px;
}

.jbj-product-cover {
    display: block;
    flex: 0 0 228px;
    width: 228px;
    height: 228px;
    overflow: hidden;
    background: #f7f8fa;
    border-radius: 16px;
}

.jbj-product-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jbj-product-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 14px 0 10px;
}

.jbj-product-title {
    display: -webkit-box;
    overflow: hidden;
    color: #101828;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jbj-product-title:hover,
.jbj-product-title:focus-visible {
    color: var(--jbj-blue);
}

/* ===== v0.32 标题下三 tag 行：编号 / 库存 / 限额（插件钩子） ===== */
.jbj-id-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
    align-items: center;
}
.jbj-id-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    background: #f3f8ff;
    color: #1d6fd8;
    border: 1px solid #c8dafa;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
}
.jbj-id-tag i { font-size: 12px; line-height: 1; }
.jbj-id-tag:hover { transform: translateY(-1px); }
.jbj-id-tag-stock {
    background: #f0f9ff;
    color: #1e88c4;
    border-color: #b9e3f5;
}
.jbj-id-tag-code {
    background: #fff7ed;
    color: #c2580d;
    border-color: #ffd6a8;
}
html.dark-mode .jbj-id-tag { background: #1d2735; color: #6ea8ff; border-color: #2a4a73; }
html.dark-mode .jbj-id-tag-stock { background: #142433; color: #6cc1e6; border-color: #2a4a5d; }
html.dark-mode .jbj-id-tag-code { background: #2d2418; color: #f0a87a; border-color: #5a4022; }

/* 宫格视图更紧凑 */
.jbj-product-list.is-grid-view .jbj-id-tags {
    gap: 6px;
    margin: 8px 0 0;
}
.jbj-product-list.is-grid-view .jbj-id-tag {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 16px;
}
.jbj-product-list.is-grid-view .jbj-id-tag i { font-size: 11px; }

/* ===== balance_limit 插件限额 tag ===== */
.dc-tag-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.dc-tag-balance i { font-size: 12px; line-height: 1; }
.dc-tag-balance-unlimited {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.dc-tag-balance-limited {
    background: linear-gradient(135deg, #fff1ed 0%, #ffe4dc 100%);
    color: #c23838;
    border-color: #ffa39e;
}
html.dark-mode .dc-tag-balance-unlimited { background: #143020; color: #6cc79a; border-color: #2d5b40; }
html.dark-mode .dc-tag-balance-limited { background: linear-gradient(135deg, #3a2a2a 0%, #4a2f24 100%); color: #ff8a6b; border-color: #5a3a30; }

.jbj-product-description {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: #8b99aa;
    font-size: 16px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jbj-metrics {
    display: grid;
    width: min(100%, 560px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: auto;
    gap: 12px;
}

.jbj-metrics > span {
    display: flex;
    align-items: center;
    min-height: 90px;
    padding: 14px;
    color: #7c8ba1;
    border-radius: 14px;
    font-size: 13px;
    gap: 12px;
}

.jbj-metrics > span > i {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
}

.jbj-metrics > span > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
}

.jbj-metric-stock {
    background: linear-gradient(135deg, #f1fbef, #edf9e9);
}

.jbj-metric-stock > i {
    background: #19bf75;
}

.jbj-metric-stock.is-stock-low {
    background: linear-gradient(135deg, #fff8ea, #fff3dd);
}

.jbj-metric-stock.is-stock-low > i {
    background: #f09c33;
}

.jbj-metric-stock.is-stock-empty {
    background: linear-gradient(135deg, #fff1f1, #ffebeb);
}

.jbj-metric-stock.is-stock-empty > i {
    background: #ef5b5b;
}

.jbj-metric-speed {
    background: linear-gradient(135deg, #f1f8ff, #eef6ff);
}

.jbj-metric-speed > i {
    background: #398df3;
}

.jbj-metric-type {
    background: linear-gradient(135deg, #f8f4ff, #f5f0ff);
}

.jbj-metric-type > i {
    background: #8057ed;
}

/* v0.37 新增：商品编号 / 是否限额 两个信息框 */
.jbj-metric-code {
    background: linear-gradient(135deg, #f1f8ff, #eef6ff);
}

.jbj-metric-code > i {
    background: #398df3;
}

.jbj-metric-code b {
    color: #398df3;
}

.jbj-metric-limit {
    background: linear-gradient(135deg, #f8f4ff, #f5f0ff);
}

.jbj-metric-limit > i {
    background: #8057ed;
}

/* 插件限额 tag 落入信息框内：去胶囊化，随框内粗体值展示 */
.jbj-metric-limit .jbj-limit-value .dc-tag-balance {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    letter-spacing: inherit;
    gap: 3px;
}

.jbj-metric-limit .jbj-limit-value .dc-tag-balance-unlimited {
    color: #19b96f;
}

.jbj-metric-limit .jbj-limit-value .dc-tag-balance-limited {
    color: #e34e4e;
}

.jbj-metrics b {
    overflow: hidden;
    color: #19b96f;
    font-size: 18px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-metric-stock.is-stock-low b {
    color: #d88920;
}

.jbj-metric-stock.is-stock-empty b {
    color: #e34e4e;
}

.jbj-metric-speed b {
    color: #398df3;
}

.jbj-metric-type b {
    color: #8057ed;
}

.jbj-grid-tags {
    display: none;
}

.jbj-product-price {
    position: relative;
    display: flex;
    flex: 0 0 232px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 232px;
    min-height: 238px;
    padding: 30px 18px 18px;
    overflow: hidden;
    color: var(--jbj-orange);
    background: linear-gradient(145deg, #fffaf6 0, #fff5ed 100%);
    border: 1px solid #ffe0cd;
    border-radius: 16px;
}

.jbj-price-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 34px;
    color: #fff;
    background: linear-gradient(90deg, var(--jbj-button-start), var(--jbj-button));
    border-radius: 0 16px 0 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.jbj-price-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jbj-price-content small {
    color: var(--jbj-orange);
    font-size: 14px;
    font-weight: 700;
}

.jbj-price {
    margin: 8px 0 5px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
}

.jbj-price em {
    margin-right: 5px;
    font-style: normal;
    font-size: 17px;
}

.jbj-product-price del {
    color: #9aa6b7;
    font-size: 14px;
}

.jbj-body .jbj-buy,
.jbj-body .jbj-buy:visited,
.jbj-body .jbj-buy:hover,
.jbj-body .jbj-buy:focus-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 195px;
    height: 48px;
    margin-top: 20px;
    color: #fff;
    background: linear-gradient(90deg, var(--jbj-button-start), var(--jbj-button));
    border-radius: 24px;
    box-shadow: 0 7px 16px rgba(255, 101, 64, .24);
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

.jbj-product.is-soldout {
    opacity: .68;
}

.jbj-product.is-soldout .jbj-buy {
    background: #aeb4bc;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .jbj-product:not(.is-soldout) .jbj-buy {
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }

    .jbj-product:not(.is-soldout) .jbj-buy::before {
        position: absolute;
        top: -25%;
        bottom: -25%;
        left: 0;
        z-index: 0;
        width: 38%;
        background: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, .18) 34%, rgba(255, 255, 255, .82) 50%, rgba(255, 255, 255, .2) 66%, transparent 88%);
        content: "";
        pointer-events: none;
        transform: translate3d(-180%, 0, 0) skewX(-20deg);
        transition: transform .68s cubic-bezier(.22, .72, .24, 1);
    }

    .jbj-product:not(.is-soldout) .jbj-buy:hover::before,
    .jbj-product:not(.is-soldout) .jbj-buy:focus-visible::before {
        transform: translate3d(460%, 0, 0) skewX(-20deg);
    }
}

.jbj-product-list.is-grid-view {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
}

.jbj-product-list.is-grid-view .jbj-product {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(35, 58, 88, .07);
}

.jbj-product-list.is-grid-view .jbj-product-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 12px;
    border-radius: 8px;
}

.jbj-product-list.is-grid-view .jbj-product-main {
    display: block;
    padding: 0;
}

.jbj-product-list.is-grid-view .jbj-product-title {
    min-height: 48px;
    color: #101828;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.jbj-product-list.is-grid-view .jbj-product-description,
.jbj-product-list.is-grid-view .jbj-metrics {
    display: none;
}

.jbj-product-list.is-grid-view .jbj-grid-tags {
    display: flex;
    margin: 12px 0;
    gap: 7px;
}

.jbj-product-list.is-grid-view .jbj-grid-tags span {
    min-width: 0;
    padding: 4px 9px;
    overflow: hidden;
    color: #d88a14;
    background: #fff5dc;
    border-radius: 12px;
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-product-list.is-grid-view .jbj-grid-tags span:nth-child(2) {
    color: var(--jbj-accent);
    background: #ecf9e9;
}

.jbj-product-list.is-grid-view .jbj-grid-tags .is-stock-low {
    color: #c77a16;
    background: #fff3dc;
}

.jbj-product-list.is-grid-view .jbj-grid-tags .is-stock-empty {
    color: #d94e4e;
    background: #ffeded;
}

.jbj-product-list.is-grid-view .jbj-grid-tags span:nth-child(3) {
    color: #3a95da;
    background: #e9f6ff;
}

.jbj-product-list.is-grid-view .jbj-product-price {
    display: flex;
    width: 100%;
    min-height: 39px;
    padding: 10px 0 0;
    color: var(--jbj-orange);
    background: transparent;
    border: 0;
    border-top: 1px solid #f4ebe5;
    border-radius: 0;
}

.jbj-product-list.is-grid-view .jbj-price-ribbon,
.jbj-product-list.is-grid-view .jbj-product-price del,
.jbj-product-list.is-grid-view .jbj-buy {
    display: none;
}

.jbj-product-list.is-grid-view .jbj-price-content {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.jbj-product-list.is-grid-view .jbj-price-content small {
    font-size: 14px;
}

.jbj-product-list.is-grid-view .jbj-price {
    width: auto;
    margin: 0;
    font-size: 22px;
    line-height: 24px;
}

.jbj-product-list.is-grid-view .jbj-price em {
    display: none;
}

.jbj-empty {
    width: 100%;
    padding: 24px;
    color: #888;
    text-align: center;
}

.jbj-products-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fb;
    border-radius: 10px;
}

.jbj-products-empty img {
    width: 96px;
    height: 120px;
    object-fit: contain;
}

.jbj-body img.jbj-image-placeholder,
.jbj-body img[src*="/content/templates/zcmuban1/img/placeholder.jpg"] {
    object-fit: contain;
}

.jbj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    overflow-x: auto;
    color: #606266;
    font-size: 14px;
    gap: 4px;
}

.jbj-page-total {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0 14px 0 0 !important;
    color: #536273 !important;
    white-space: nowrap;
}

.jbj-page-jump {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: 12px;
    color: #536273;
    white-space: nowrap;
}

.jbj-page-jump label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jbj-page-jump input[type="number"] {
    width: 56px;
    height: 32px;
    padding: 0 7px;
    color: #303b48;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    font: inherit;
    text-align: center;
}

.jbj-notice-dialog[hidden] {
    display: none;
}

.jbj-dialog-open {
    overflow: hidden;
}

.jbj-notice-dialog {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 1300;
}

.jbj-notice-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 23, 34, .5);
}

.jbj-notice-dialog-panel {
    position: relative;
    width: min(620px, calc(100% - 32px));
    max-height: min(680px, calc(100vh - 48px));
    padding: 28px;
    margin: 8vh auto 0;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(11, 23, 42, .24);
}

.jbj-notice-dialog-panel h2 {
    padding-right: 28px;
    margin: 0 0 18px;
    color: #1e293b;
    font-size: 21px;
}

.jbj-notice-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    color: #778395;
    background: #f4f6f9;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.jbj-notice-dialog-content {
    color: #4d5c70;
    font-size: 15px;
    line-height: 1.8;
}

.jbj-roll-notice-list {
    padding: 0;
    margin: 0;
    color: #3e4b5e;
    list-style: none;
}

.jbj-roll-notice-list li {
    padding: 14px 4px;
    border-bottom: 1px solid #edf1f6;
    font-size: 15px;
    line-height: 1.65;
}

.jbj-roll-notice-list li:first-child {
    padding-top: 2px;
}

.jbj-roll-notice-list li:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.jbj-hot-dialog-panel {
    width: min(920px, calc(100% - 32px));
    overflow: hidden;
}

.jbj-hot-dialog-scroll {
    max-height: min(570px, calc(100vh - 155px));
    padding-right: 4px;
    overflow: auto;
    overscroll-behavior: contain;
}

.jbj-hot-dialog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.jbj-hot-dialog-item {
    display: flex;
    min-width: 0;
    padding: 10px;
    color: #263446;
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 9px;
    flex-direction: column;
    gap: 8px;
}

.jbj-hot-dialog-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 7px;
}

.jbj-hot-dialog-item strong {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 14px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jbj-hot-dialog-item > span {
    display: flex;
    align-items: baseline;
    margin-top: auto;
    color: var(--jbj-orange);
    gap: 5px;
}

.jbj-hot-dialog-item small {
    font-size: 11px;
}

.jbj-hot-dialog-item b {
    font-size: 16px;
}

.jbj-hot-dialog-state {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px;
    margin-top: 14px;
    color: #8492a6;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: center;
}

.jbj-hot-dialog-state.is-error {
    color: var(--jbj-blue);
    cursor: pointer;
}

.jbj-pagination ul,
.jbj-pagination .pagination {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 0;
}

.jbj-pagination a,
.jbj-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    color: #606266;
    background: #fff;
    border: 0;
    border-radius: 2px;
    font-size: 14px;
    transition: color .15s ease, background-color .15s ease;
}

.jbj-pagination a:hover,
.jbj-pagination a:focus-visible {
    color: #409eff;
}

.jbj-pagination .btn.ghost.active,
.jbj-pagination .active a,
.jbj-pagination .active span,
.jbj-pagination a.current,
.jbj-pagination span.current {
    color: #409eff;
    background: #fff;
    font-weight: 700;
}

.jbj-pagination em.btn.ghost {
    color: #909399;
    font-style: normal;
}

.jbj-image-failed {
    background: #f2f4f7;
}

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    .jbj-card,
    .jbj-product,
    .jbj-sub-banner,
    .jbj-account-links > a,
    .jbj-account-links > button {
        transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease, box-shadow .22s ease;
    }

    .jbj-card:hover,
    .jbj-product:hover {
        border-color: rgba(64, 158, 255, .16);
        box-shadow: 0 18px 42px rgba(26, 65, 112, .12);
        transform: translate3d(0, -4px, 0);
    }

    .jbj-sub-banner:hover,
    .jbj-account-links > a:hover,
    .jbj-account-links > button:hover {
        transform: translate3d(0, -3px, 0);
    }

    .jbj-sub-banner img,
    .jbj-product-cover img,
    .jbj-category-icon {
        transition: transform .5s cubic-bezier(.22, 1, .36, 1);
    }

    .jbj-sub-banner:hover img,
    .jbj-product:hover .jbj-product-cover img {
        transform: scale(1.035);
    }

    .jbj-category-item:hover .jbj-category-icon,
    .jbj-category-item:focus-visible .jbj-category-icon {
        transform: translate3d(0, -4px, 0) scale(1.035);
    }

    .jbj-rail-item:hover,
    .jbj-rail-item:focus-visible {
        box-shadow: 0 8px 18px rgba(0, 74, 160, .13);
    }
}

@media (max-width: 1200px) and (min-width: 960px) {
    .jbj-body:not(.jubijia-mobile-body) .jbj-desktop-nav a,
    .jbj-body:not(.jubijia-mobile-body) .jbj-desktop-nav button {
        min-width: 58px;
        padding: 0 5px;
        font-size: 12px;
    }

    .jbj-search,
    .jbj-search:focus-within {
        flex-basis: 172px;
        width: 172px;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .source.jbj-shell {
        padding: 16px;
    }

    .jbj-hero {
        height: 430px;
        gap: 16px;
    }

    .jbj-category-rail {
        flex-basis: 184px;
        width: 184px;
        height: 430px;
    }

    .jbj-rail-item {
        min-height: 39px;
        font-size: 13px;
    }

    .jbj-rail-panels {
        right: 0;
        left: 200px;
    }

    .jbj-rail-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .jbj-hero-center {
        height: 430px;
    }

    .jbj-carousel {
        height: 310px;
    }

    .jbj-sub-banners {
        height: 104px;
    }

    .jbj-account-card {
        display: none;
    }

    .jbj-category-page {
        grid-template-columns: repeat(min(var(--jbj-cat-cols, 10), 8), minmax(0, 1fr));
    }

    .jbj-category-icon {
        width: 76px;
        height: 76px;
    }

    .jbj-product-list.is-list-view .jbj-product {
        gap: 18px;
    }

    .jbj-product-list.is-list-view .jbj-product-cover {
        flex-basis: 190px;
        width: 190px;
        height: 190px;
    }

    .jbj-product-list.is-list-view .jbj-product-price {
        flex-basis: 190px;
        width: 190px;
    }

    .jbj-product-list.is-grid-view {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 959px) {
    .jbj-header {
        touch-action: manipulation;
    }

    .jbj-float-help {
        right: 14px;
        width: 45px;
    }

    .jbj-header-inner {
        height: 60px;
        padding: 0 16px;
    }

    .jbj-logo img {
        height: 30px;
    }

    .jbj-desktop-nav,
    .jbj-search,
    .jbj-header .jbj-register {
        display: none;
    }

    .jbj-menu-trigger {
        display: block;
    }

    .jbj-mobile-search {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 320px;
    }

    .jbj-mobile-search + .jbj-menu-trigger {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .jbj-goods-detail-page > .jbj-header,
    .jbj-body .main-footer,
    .jbj-desktop-footer {
        display: none;
    }

    /* v3.21 门面页（landing）手机端页脚：由 landing.css 解除 display:none 后按此布局展示 */
    .jbj-footer-inner { width: calc(100% - 32px); }
    .jbj-footer-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 24px 0 20px;
        gap: 18px;
    }
    .jbj-footer-feature > i { flex: 0 0 36px; width: 36px; height: 36px; font-size: 16px; }
    .jbj-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 28px 0 22px;
        gap: 22px 18px;
    }
    .jbj-footer-brand { grid-column: 1 / -1; }
    .jbj-footer-brand-desc { max-width: none; }
    .jbj-footer-brand-tags li { padding: 4px 9px; font-size: 11px; }
    .jbj-footer-badges .jbj-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
        gap: 12px;
    }
    .jbj-footer-badges-row { width: 100%; gap: 10px; }
    .jbj-footer-badge { padding: 4px 8px; }
    .jbj-footer-badge img { height: 32px; max-width: 54px; }
    .jbj-footer-legal { padding: 14px 0; }
    .jbj-footer-legal .jbj-footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }

    .source_mian.jbj-page::before {
        height: 680px;
        background-size: 120px 120px;
        opacity: .68;
    }

    .source.jbj-shell {
        width: 100%;
        padding: 8px;
        margin: 0;
    }

    .jbj-hero {
        display: grid;
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .jbj-category-rail,
    .jbj-rail-panels,
    .jbj-account-card,
    .jbj-sub-banners {
        display: none;
    }

    .jbj-hero-center {
        width: 100%;
        height: 172px;
    }

    .jbj-carousel {
        width: 100%;
        height: 172px;
        border-radius: 8px;
    }

    .jbj-carousel-control {
        display: none;
    }

    .jbj-carousel-dots {
        bottom: 8px;
        gap: 5px;
    }

    .jbj-carousel-dot {
        width: 12px;
        height: 28px;
    }

    .jbj-carousel-dot::before {
        width: 5px;
        height: 5px;
    }

    .jbj-carousel-dot.is-active {
        width: 18px;
    }

    .jbj-carousel-dot.is-active::before {
        width: 14px;
    }

    .jbj-mobile-shortcuts {
        display: grid;
        padding: 8px 10px;
        background: rgba(255, 255, 255, .94);
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(36, 72, 110, .06);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        /* v1.70：行数随入口数量自适应（原固定 84px 单行，6/10 个会溢出裁切） */
        grid-auto-rows: 68px;
    }

    .jbj-mobile-shortcuts a,
    .jbj-body .jbj-mobile-shortcuts button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 0;
        color: #555;
        background: transparent;
        border: 0;
        cursor: pointer;
        font-size: 12px;
        gap: 4px;
    }

    .jbj-mobile-shortcuts i {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .jbj-mobile-shortcuts img.jbj-sc-img {
        width: 34px;
        height: 34px;
    }

    .jbj-hot {
        height: 190px;
        padding: 12px;
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .jbj-scroll-notice {
        min-height: 52px;
        padding: 11px 14px;
        margin-top: 10px;
        border-radius: 8px;
        gap: 11px;
    }

    .jbj-scroll-notice > i {
        font-size: 19px;
    }

    .jbj-scroll-notice-content {
        padding-left: 11px;
    }

    .jbj-scroll-notice-content span {
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
    }

    .jbj-scroll-notice-item {
        font-size: 12px;
        font-weight: 400;
    }

    .jbj-scroll-notice > a,
    .jbj-scroll-notice > button {
        font-size: 11px;
    }

    .jbj-section-heading h2 {
        font-size: 15px;
    }

    .jbj-hot-heading {
        gap: 8px;
    }

    .jbj-hot-pill {
        height: 25px;
        padding: 0 10px;
        font-size: 10px;
    }

    .jbj-body button.jbj-view-all {
        font-size: 12px;
    }

    .jbj-hot-viewport {
        margin-top: 12px;
    }

    .jbj-hot-track {
        gap: 8px;
    }

    .jbj-hot-item {
        flex-basis: 89.6px;
        width: 89.6px;
        min-height: 126px;
        padding: 6px;
        border-radius: 5px;
        gap: 4px;
    }

    .jbj-hot-item img {
        height: 75.2px;
    }

    .jbj-hot-item strong {
        display: none;
    }

    .jbj-hot-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .jbj-hot-price small {
        font-size: 10px;
        line-height: 14px;
    }

    .jbj-hot-price b {
        font-size: 13px;
        line-height: 18px;
    }

    .jbj-categories {
        padding: 12px 12px 5px 12px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .jbj-category-level + .jbj-category-level {
        margin-top: 14px;
    }

    .jbj-category-level-title {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 22px;
    }

    .jbj-category-more {
        display: inline-flex;
        margin: -7px 0 3px;
    }

    .jbj-desktop-category-pages {
        display: none;
    }

    .jbj-mobile-category-pages {
        display: flex;
        /* v0.64：高度改为随内容自适应，一级分类不足两行时不再留出大片空白（原固定 149.6px） */
        height: auto;
        overflow-x: auto;
        overflow-y: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .jbj-mobile-category-pages::-webkit-scrollbar {
        display: none;
    }

    .jbj-mobile-category-pages .jbj-category-page {
        display: grid;
        flex: 0 0 100%;
        width: 100%;
        /* v0.64：行高自适应（grid-auto-rows），一行分类=71.2px、两行=149.6px，不再强行撑满两行 */
        height: auto;
        grid-auto-flow: row;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-auto-rows: 71.2px;
        scroll-snap-align: start;
        column-gap: 7.2px;
        row-gap: 7.2px;
    }

    /* v0.63：二级/三级分类手机端网格（5 列，图标尺寸与一级完全一致） */
    .jbj-cat-mobile-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px 7.2px;
        padding: 2px 0 4px;
    }

    .jbj-cat-mobile-grid .jbj-category-item {
        height: auto;
        padding: 2px 0;
    }

    .jbj-cat-mobile-grid .jbj-category-icon {
        width: 49.6px;
        height: 49.6px;
        border-radius: 8px;
    }

    .jbj-cat-mobile-grid .jbj-category-name {
        display: block;
        width: 100%;
        overflow: hidden;
        color: inherit;
        font-size: 12px;
        line-height: 16px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jbj-cat-level {
        margin-top: 14px;
    }

    .jbj-cat-level .jbj-category-level-title {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .jbj-mobile-category-pages .jbj-category-page.is-short-page {
        grid-auto-flow: row;
    }

    .jbj-mobile-category-pages.is-single-row,
    .jbj-mobile-category-pages.is-single-row .jbj-category-page {
        height: 71.2px;
    }

    .jbj-mobile-category-pages.is-single-row .jbj-category-page {
        grid-template-rows: 71.2px;
    }

    .jbj-category-item {
        height: 71.2px;
        gap: 3px;
    }

    .jbj-mobile-category-pages .jbj-category-name {
        display: block;
        width: 100%;
        overflow: hidden;
        color: inherit;
        font-size: 12px;
        line-height: 16px;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jbj-category-icon {
        width: 49.6px;
        height: 49.6px;
        border-radius: 8px;
    }

    .jbj-mobile-category-dots {
        display: flex;
        justify-content: center;
        min-height: 28px;
        margin-top: 2px;
        gap: 0;
    }

    .jbj-mobile-category-dots:empty {
        min-height: 0;
        margin-top: 0;
    }

    .jbj-category-dot {
        position: relative;
        width: 20px;
        height: 28px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 20px;
        cursor: pointer;
    }

    .jbj-category-dot::before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 6px;
        height: 6px;
        background: #c9cdd2;
        border-radius: 20px;
        content: "";
        transform: translate(-50%, -50%);
        transition: width .2s ease, background-color .2s ease;
    }

    .jbj-category-dot.is-active {
        width: 20px;
        background: transparent;
    }

    .jbj-category-dot.is-active::before {
        width: 16.8px;
        background: var(--jbj-blue);
    }

    .jbj-products {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .jbj-product-toolbar {
        min-height: 47px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 0;
    }

    .jbj-view-switch {
        display: none;
    }

    .jbj-sort-links {
        display: grid;
        flex: 1 1 auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .jbj-sort-link {
        min-width: 0;
        height: 32px;
        padding: 0 5px;
        font-size: 12px;
        gap: 4px;
    }

    .jbj-body .jbj-sort-link,
    .jbj-body .jbj-sort-link:visited,
    .jbj-body .jbj-sort-link:hover,
    .jbj-body .jbj-sort-link:focus-visible {
        background: #f3f4f6;
        border: 0;
        box-shadow: none;
    }

    .jbj-body .jbj-sort-link.is-active,
    .jbj-body .jbj-sort-link.is-active:visited,
    .jbj-body .jbj-sort-link.is-active:hover,
    .jbj-body .jbj-sort-link.is-active:focus-visible {
        color: #fff;
        background: var(--jbj-blue);
        border: 0;
        box-shadow: none;
    }

    .jbj-sort-main-icon {
        font-size: 12px;
    }

    .jbj-sort-arrows {
        font-size: 7px;
        line-height: 5px;
    }

    .jbj-pagination {
        justify-content: flex-start;
        margin-top: 15px;
    }

    html.jbj-mobile-autoload-ready .jbj-body .jbj-pagination {
        display: none;
    }

    .jbj-product-load-state:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        margin-top: 10px;
        color: #728097;
        background: transparent;
        border: 0;
        font-size: 13px;
    }

    .jbj-product-load-state.is-error {
        color: var(--jbj-blue);
        cursor: pointer;
    }

    .jbj-notice-dialog-panel {
        padding: 22px 18px;
        margin-top: 6vh;
    }

    .jbj-hot-dialog-panel {
        width: calc(100% - 32px);
        max-height: calc(100vh - 144px);
        max-height: calc(100dvh - 144px);
        padding: 18px 12px;
        margin-top: 72px;
        border-radius: 12px;
    }

    .jbj-hot-dialog-scroll {
        max-height: calc(100vh - 218px);
        max-height: calc(100dvh - 218px);
    }

    .jbj-hot-dialog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .jbj-hot-dialog-item {
        padding: 8px;
        gap: 6px;
    }

    .jbj-hot-dialog-item strong {
        min-height: 38px;
        font-size: 13px;
        line-height: 19px;
    }

    .jbj-hot-dialog-item b {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .jbj-header-inner {
        padding: 0 10px;
        gap: 7px;
    }

    .jbj-logo img {
        height: 27px;
    }

    .jbj-menu-trigger {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jbj-hot-track {
        animation: none;
    }

    .jbj-scroll-notice-content span {
        animation: none;
    }

    .jbj-scroll-notice-track {
        transition: none;
    }

    .jbj-carousel-track,
    .jbj-category-pages,
    .jbj-category-item,
    .jbj-rail-item,
    .jbj-rail-category-item,
    .jbj-view-toggle {
        scroll-behavior: auto;
        transition: none;
    }
}

body.jbj-body :focus,
body.jbj-body :focus-visible,
body.jbj-body :focus-within,
body.jbj-body .jubijia-mobile-page :focus,
body.jbj-body .jubijia-mobile-page :focus-visible,
body.jbj-body .jubijia-mobile-page :focus-within {
    outline: none;
    outline-offset: 0;
}

/* ===================== 商品类型徽标（卡片左上角） ===================== */
.jbj-product-cover {
    position: relative;
}
.jbj-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(31, 45, 61, .22);
    backdrop-filter: saturate(1.2);
}
.jbj-type-badge .fa {
    font-size: 12px;
    line-height: 1;
}
/* 直充：电光蓝渐变 */
.jbj-type-badge.jbj-type-chongzhi {
    background: linear-gradient(135deg, #2b7cff 0%, #00c2ff 100%);
}
/* 卡密：紫粉渐变 */
.jbj-type-badge.jbj-type-kami {
    background: linear-gradient(135deg, #7c4dff 0%, #ff5e9d 100%);
}
/* 人工：青绿 */
.jbj-type-badge.jbj-type-service {
    background: linear-gradient(135deg, #0fb98e 0%, #4cd7a5 100%);
}
/* 实物：琥珀 */
.jbj-type-badge.jbj-type-physical {
    background: linear-gradient(135deg, #ff9d2b 0%, #ff6a3d 100%);
}
.jbj-type-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 45%;
    border-radius: 999px 999px 12px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* ============================================================
   ZCSHOP 统一表单 UI 设计语言（v0.26）：填充式输入框
   默认浅灰底 → 聚焦白底+蓝描边+光环；头部搜索胶囊除外
   ============================================================ */
.jbj-body input[type="text"],
.jbj-body input[type="number"],
.jbj-body input[type="password"],
.jbj-body input[type="tel"],
.jbj-body input[type="email"],
.jbj-body input[type="url"],
.jbj-body input[type="search"],
.jbj-body input[type="date"],
.jbj-body select,
.jbj-body textarea {
    background: #f5f6f8;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.jbj-body input[type="text"]:hover,
.jbj-body input[type="number"]:hover,
.jbj-body input[type="password"]:hover,
.jbj-body input[type="tel"]:hover,
.jbj-body input[type="email"]:hover,
.jbj-body input[type="url"]:hover,
.jbj-body input[type="search"]:hover,
.jbj-body input[type="date"]:hover,
.jbj-body select:hover,
.jbj-body textarea:hover {
    background: #eef0f4;
}
.jbj-body input[type="text"]:focus,
.jbj-body input[type="number"]:focus,
.jbj-body input[type="password"]:focus,
.jbj-body input[type="tel"]:focus,
.jbj-body input[type="email"]:focus,
.jbj-body input[type="url"]:focus,
.jbj-body input[type="search"]:focus,
.jbj-body input[type="date"]:focus,
.jbj-body select:focus,
.jbj-body textarea:focus {
    background: #fff;
    border-color: #378add;
    box-shadow: 0 0 0 3px #e6f1fb;
    outline: none;
}
.jbj-body input:disabled,
.jbj-body select:disabled,
.jbj-body textarea:disabled {
    background: #f5f6f8;
    color: #99a1b3;
    opacity: .65;
    cursor: not-allowed;
}
/* 头部搜索胶囊：保持透明融入容器，不套填充式 */
.jbj-search input,
.jbj-mobile-search input,
.jbj-search input:hover,
.jbj-mobile-search input:hover,
.jbj-search input:focus,
.jbj-mobile-search input:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* ═══════════ v0.31 限时折扣角标（卡片右上角，与左上类型徽标错开） ═══════════ */
.jbj-flash-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45 0%, #ff5b5b 100%);
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(255, 91, 91, .35);
    animation: jbjFlashPulse 2.2s ease-in-out infinite;
}
.jbj-flash-badge .fa { font-size: 11px; line-height: 1; }
@keyframes jbjFlashPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 8px rgba(255, 91, 91, .35); }
    50% { transform: scale(1.05); box-shadow: 0 3px 14px rgba(255, 91, 91, .5); }
}
.jbj-product.has-flash .jbj-price { color: #ff5b5b; }
.jbj-product.has-flash .jbj-price em { color: #ff5b5b; }

/* ═══════════ v0.31 手机版限时折扣角标与划线原价 ═══════════ */
.goods-grid-item .goods-flash-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px 3px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #ff7a45 0%, #ff5b5b 100%);
    box-shadow: 0 2px 6px rgba(255, 91, 91, .35);
    animation: jbjFlashPulse 2.2s ease-in-out infinite;
}
.goods-grid-item .goods-flash-badge i { font-size: 11px; line-height: 1; }
.goods-grid-item .goods-img-box { position: relative; }
.goods-grid-item .price-current.has-flash { color: #ff5b5b; }
.goods-grid-item .price-flash-origin {
    margin-left: 6px;
    font-size: 11px;
    color: #9aa5b5;
}

/* ═══════════ v0.32 手机版商品标题下三 tag ═══════════ */
.goods-grid-item .goods-id-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 4px;
    align-items: center;
}
.goods-grid-item .goods-id-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
    background: #f3f8ff;
    color: #1d6fd8;
    border: 1px solid #c8dafa;
    white-space: nowrap;
}
.goods-grid-item .goods-id-tag i { font-size: 11px; line-height: 1; }
.goods-grid-item .goods-id-tag-stock { background: #f0f9ff; color: #1e88c4; border-color: #b9e3f5; }
.goods-grid-item .goods-id-tag-code { background: #fff7ed; color: #c2580d; border-color: #ffd6a8; }
.goods-grid-item .goods-id-tag .dc-tag-balance { font-size: 11px; padding: 3px 8px; line-height: 16px; }
.goods-grid-item .goods-id-tag .dc-tag-balance i { font-size: 11px; }

/* v0.40：编号框复制按钮 + 库存框具体数量 */
.jbj-metric-stock small {
    font-size: 11px;
    font-weight: 400;
    color: inherit;
    opacity: .75;
    line-height: 1;
}

.jbj-metric-code {
    position: relative;
}

.jbj-metric-code > span {
    flex: 1 1 auto;
    min-width: 0;
}

.jbj-metric-code .jbj-id-copy {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 0;
    color: #398df3;
    cursor: pointer;
    background: #fff;
    border: 1px solid #cfe4fb;
    border-radius: 9px;
    font-size: 14px;
    box-shadow: 0 2px 6px #398df31a;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.jbj-metric-code .jbj-id-copy:hover {
    color: #fff;
    background: #398df3;
    border-color: #398df3;
    box-shadow: 0 4px 12px #398df33d;
    transform: translateY(-1px);
}

.jbj-metric-code .jbj-id-copy:active {
    transform: translateY(0) scale(.94);
}

.jbj-metric-code .jbj-id-copy.is-copied {
    color: #fff;
    background: #19bf75;
    border-color: #19bf75;
}

/* 轻量复制提示气泡（layer 不可用时兜底） */
.jbj-copy-tip {
    position: fixed;
    left: 50%;
    bottom: 12vh;
    z-index: 99999;
    padding: 9px 18px;
    color: #fff;
    font-size: 13px;
    background: #21252b;
    border-radius: 8px;
    box-shadow: 0 6px 20px #00000033;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.jbj-copy-tip.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ================= v0.63 聚比价式三段分类：一级/二级/三级独立区块，点击向下展开 ================= */
/* 展开动画容器：grid-template-rows 0fr→1fr 丝滑下滑 */
.jbj-cat-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .34s ease;
}

.jbj-cat-collapse.is-open {
    grid-template-rows: 1fr;
}

.jbj-cat-collapse-inner {
    overflow: hidden;
    min-height: 0;
}

/* v0.64：.jbj-cat-level / .jbj-cat-mobile-grid 的基础态已上移至文件前部
   （见 .jbj-mobile-category-dots 之后）。原放在此处会覆盖上方 @media(max-width:768px)
   中的同名规则，导致移动端二级/三级分类网格被 display:none 隐藏、层级间距过大。 */

/* ================= v0.48：移动端底部导航栏（首页/分类/查单/我的）
   仅手机端显示，PC（≥769px）自动隐藏；单页购买页（order_query/help）内联隐藏
   ========================================================================== */
.jbj-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: none;
    align-items: stretch;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 -4px 16px rgba(20, 44, 78, .06);
}

.jbj-tabbar-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7a8599;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.jbj-tabbar-item i {
    font-size: 20px;
}

.jbj-tabbar-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-tabbar-item.is-active {
    color: #0071e3;
    font-weight: 600;
}

.jbj-tabbar-item.is-active i {
    transform: translateY(-1px) scale(1.06);
}

.jbj-tabbar-item:active {
    transform: scale(.94);
}

@media (max-width: 768px) {
    .jbj-tabbar {
        display: flex;
    }

    body {
        padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
    }
}

/* ================= v1.53 图片加载骨架（加载完成后图片自然覆盖灰底） ================= */
.jbj-product img,
.jbj-hot-item img,
.jbj-hot-dialog-item img,
.jbj-sub-banner img {
    background: linear-gradient(100deg, #f2f3f5 40%, #e9edf2 50%, #f2f3f5 60%);
    background-size: 200% 100%;
    animation: jbjImgSkeleton 1.4s ease infinite;
}
@keyframes jbjImgSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .jbj-product img, .jbj-hot-item img, .jbj-hot-dialog-item img, .jbj-sub-banner img { animation: none; }
}

/* ================= v1.55 主题切换按钮（亮色/暗色/跟随系统） ================= */
.jbj-theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;margin-left:10px;flex-shrink:0;
  border-radius:50%;border:1px solid rgba(20,44,78,.12);
  background:transparent;color:#1d1d1f;font-size:15px;
  cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.jbj-theme-toggle:hover{background:rgba(20,44,78,.06);}
.jbj-theme-toggle[data-mode="dark"]{color:#e8eaed;border-color:rgba(255,255,255,.18);}
.jbj-theme-toggle[data-mode="auto"]{color:#0071e3;}
html[data-theme="dark"] .jbj-theme-toggle{color:#e8eaed;border-color:rgba(255,255,255,.18);}
html[data-theme="dark"] .jbj-theme-toggle:hover{background:rgba(255,255,255,.08);}
html[data-theme="dark"] .jbj-theme-toggle[data-mode="auto"]{color:#4da3ff;}
.jbj-theme-toast{
  position:fixed;top:18px;left:50%;transform:translate(-50%,-8px);
  z-index:9999;padding:9px 20px;border-radius:999px;
  background:rgba(29,29,31,.88);color:#fff;font-size:13px;
  box-shadow:0 8px 24px rgba(20,44,78,.18);
  opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;
}
.jbj-theme-toast.is-show{opacity:1;transform:translate(-50%,0);}
@media (max-width:768px){
  .jbj-theme-toggle{width:30px;height:30px;margin-left:6px;font-size:13px;}
}
@media (prefers-reduced-motion: reduce){
  .jbj-theme-toast{transition:none;}
}
