.jg-art { padding: .32rem .32rem calc(.6rem + env(safe-area-inset-bottom)); }
/* 平台筛选一行：圆角白色胶囊（全部 / 收藏 / 平台标识），右侧圆形搜索按钮 */
.jg-art-bar { display:flex; align-items:center; gap:.21333rem; padding:.16rem 0 .26667rem; }
.jg-art-filters { position:relative; display:flex; flex:1; gap:.21333rem; min-width:0; overflow-x:auto; padding:.05333rem .02667rem; scrollbar-width:none; }
.jg-art-filters::-webkit-scrollbar { display:none; }
.jg-art-filters.has-right { -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - .53333rem),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - .53333rem),transparent); }
.jg-art-filters.has-left { -webkit-mask-image:linear-gradient(90deg,transparent,#000 .53333rem); mask-image:linear-gradient(90deg,transparent,#000 .53333rem); }
.jg-art-filters.has-left.has-right { -webkit-mask-image:linear-gradient(90deg,transparent,#000 .53333rem,#000 calc(100% - .53333rem),transparent); mask-image:linear-gradient(90deg,transparent,#000 .53333rem,#000 calc(100% - .53333rem),transparent); }
@media (hover:hover) and (pointer:fine) { .jg-art-filters { cursor:grab; } .jg-art-filters.is-dragging { cursor:grabbing; user-select:none; } .jg-art-filters.is-dragging button { pointer-events:none; } }
.jg-art-filters button { flex:none; display:grid; place-items:center; min-width:2.13333rem; height:.98667rem; padding:0 .26667rem; border:1px solid #ffffffd9; border-radius:.26667rem; background:linear-gradient(180deg,#ffffff 0%,#f3f7fd 100%); box-shadow:0 .05333rem .16rem -.05333rem #1d4f9a2e; color:var(--jb-ink-2) !important; font-size:.32rem !important; font-weight:600 !important; cursor:pointer; }
.jg-art-filters button[aria-pressed=true] { color:var(--jb-brand) !important; background:linear-gradient(180deg,#eef5ff 0%,#dfeeff 100%); border-color:#9cc4ff; box-shadow:0 0 0 1px #2f86ff33 inset, 0 .05333rem .16rem -.05333rem #1560d44d; }
.jg-art-filters button svg { width:.53333rem; height:.53333rem; }
.jg-art-filters button[data-vendor=""] svg rect { fill:currentColor; }
.jg-art-filters button[data-vendor="__fav"] svg path { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.jg-art-filters button[data-vendor="__fav"][aria-pressed=true] svg path { fill:#ff4d6d; stroke:#ff4d6d; }
.jg-art-filters button[data-vendor="PG"] { --filter-image:url('/jg-skin/partner-pg.webp'); }
.jg-art-filters button[data-vendor="PP"] { --filter-image:url('/jg-skin/partner-pp.webp'); }
.jg-art-filters button[data-vendor="CQ9"] { --filter-image:url('/jg-skin/partner-cq9.webp'); }
.jg-art-filters button[data-vendor="JILI"] { --filter-image:url('/jg-skin/partner-jili.webp'); }
.jg-art-filters button[data-vendor="Hacksaw"] { --filter-image:url('/jg-skin/partner-hacksaw.webp'); }
.jg-art-filters button[data-vendor="NoLimit"] { --filter-image:url('/jg-skin/partner-nolimit.webp'); }
.jg-art-filters button[data-vendor="FC"] { --filter-image:url('/jg-skin/partner-fc.webp'); }
.jg-art-filters button[data-vendor="索来尔"] { --filter-image:url('/jg-skin/partner-sle.webp'); }
.jg-art-filters button[data-vendor="DB"] { --filter-image:url('/jg-skin/partner-db.webp'); }
/* 有标识图的平台只显示标识（文字留给读屏）；没有标识图的平台照常显示文字 */
.jg-art-filters button:is([data-vendor="PG"],[data-vendor="PP"],[data-vendor="CQ9"],[data-vendor="JILI"],[data-vendor="Hacksaw"],[data-vendor="NoLimit"],[data-vendor="FC"],[data-vendor="索来尔"],[data-vendor="DB"]) { font-size:0 !important; }
.jg-art-filters button:is([data-vendor="PG"],[data-vendor="PP"],[data-vendor="CQ9"],[data-vendor="JILI"],[data-vendor="Hacksaw"],[data-vendor="NoLimit"],[data-vendor="FC"],[data-vendor="索来尔"],[data-vendor="DB"])::before { content:''; width:1.49333rem; height:.58667rem; background:currentColor; mask:var(--filter-image) center / contain no-repeat; -webkit-mask:var(--filter-image) center / contain no-repeat; }
.jg-art-find { flex:none; display:grid; place-items:center; width:.98667rem; height:.98667rem; padding:0; border:1px solid #ffffffd9; border-radius:50%; background:#fff; box-shadow:0 .05333rem .21333rem -.05333rem #1d4f9a3d; color:var(--jb-ink) !important; cursor:pointer; }
.jg-art-find svg { width:.53333rem; height:.53333rem; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.jg-art-find[aria-expanded=true] { color:#fff !important; background:var(--jb-fill); border-color:transparent; }
.jg-art-search { display:block; width:100%; min-height:.93333rem; margin:0 0 .26667rem; border:1px solid var(--jb-line); border-radius:.46667rem; background:var(--jb-card); color:var(--jb-ink); padding:.16rem .37333rem; font-size:.34rem; box-sizing:border-box; }
.jg-art-search[hidden] { display:none; }
/* 数量只在加载、为空、出错时显示 */
.jg-art-count { margin:.4rem 0; font-size:.32rem; color:var(--jb-vice); text-align:center; }
.jg-art-count[data-state=count] { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* 游戏卡片：完整封面、独立游戏名，右上角收藏 */
.jg-art-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.26667rem .21333rem; }
.jg-art-card { position:relative; min-width:0; }
.jg-art-open { display:block; width:100%; padding:0; margin:0; border:0; border-radius:.37333rem; overflow:hidden; background:none; color:var(--jb-ink) !important; text-align:left; }
button.jg-art-open { cursor:pointer; }
.jg-art-media { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:3/4; overflow:hidden; border-radius:.37333rem; background:var(--jb-soft); box-shadow:0 .08rem .21333rem -.08rem #0f235040; }
.jg-art-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.jg-art-media small { font-size:.26667rem; color:var(--jb-vice); }
.jg-art-open > strong { display:block; padding:.12rem .05333rem .05333rem; font-size:clamp(12px,.32rem,16px); line-height:1.35; text-align:center; white-space:normal; overflow-wrap:anywhere; }
.jg-art-open > small { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.jg-art-tag { position:absolute; left:.13333rem; bottom:.13333rem; padding:.02667rem .13333rem; border-radius:.21333rem; background:#0f2350a6; color:#fff; font-size:.24rem; font-style:normal; }
.jg-art-fav { position:absolute; top:.13333rem; right:.13333rem; z-index:1; display:grid; place-items:center; width:.69333rem; height:.69333rem; padding:0; border:0; border-radius:50%; background:#00000033; backdrop-filter:blur(4px); cursor:pointer; }
.jg-art-fav svg { width:.42667rem; height:.42667rem; fill:none; stroke:#fff; stroke-width:2; stroke-linejoin:round; }
.jg-art-fav[aria-pressed=true] svg { fill:#ff4d6d; stroke:#ff4d6d; }
.jg-art-fav[aria-pressed=true] { background:#ffffffe6; }
.jg-art-open:focus-visible,.jg-art-fav:focus-visible,.jg-art-find:focus-visible,.jg-art-filters button:focus-visible,.jg-art-more:focus-visible { outline:2px solid #278df0; outline-offset:2px; }
.jg-art-more { display:block; min-height:.82667rem; margin:.37333rem auto; padding:0 .53333rem; border:1px solid var(--jb-line); border-radius:.41333rem; background:var(--jb-card); color:var(--jb-ink-2) !important; font-size:.32rem !important; cursor:pointer; }
.jg-art-more[hidden] { display:none!important; }
.jg-art-sentry { display:block; height:1px; }
