.result-gallery-open{position:absolute;inset:0;width:100%;border:0;background:transparent;cursor:zoom-in;text-align:left;color:white}
.result-gallery-expand{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.88);color:#183549;opacity:1;transition:opacity .2s ease}
.result-card__media:has(.result-gallery-open)>img{transition:transform .45s ease}
@media(hover:hover) and (pointer:fine){
  .result-gallery-expand{opacity:0}
  .result-gallery-open:hover .result-gallery-expand,.result-gallery-open:focus-visible .result-gallery-expand{opacity:1}
  .result-card__media:has(.result-gallery-open:hover)>img{transform:scale(1.02)}
}
@media(prefers-reduced-motion:reduce){
  .result-gallery-expand,.result-card__media:has(.result-gallery-open)>img{transition:none}
  .result-card__media:has(.result-gallery-open:hover)>img{transform:none}
}
.result-gallery-open:focus-visible{outline:3px solid #009ac7;outline-offset:-4px}
.result-image-retry{z-index:2}
.result-card__media:has(.result-gallery-open) .result-image-retry{bottom:48px}
.is-verifying .sailing-commerce{visibility:hidden;position:relative}
.is-verifying .sailing-commerce::before{content:'价格及余位核对中';visibility:visible;position:absolute;right:0;top:0;white-space:nowrap;font-size:12px;color:#697d88}
body.search-gallery-open{overflow:hidden}
.search-gallery{box-sizing:border-box;width:min(1080px,94vw);max-width:94vw;height:min(850px,92dvh);max-height:92dvh;padding:18px 20px 10px;border:0;border-radius:12px;background:#fff;color:#173149;box-shadow:0 18px 64px rgba(18,40,58,.18);overflow:hidden}
.search-gallery[open]{display:flex;flex-direction:column;gap:12px}
.search-gallery::backdrop{background:rgba(24,40,52,.32)}
.search-gallery header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.search-gallery h2{font-size:19px;font-weight:500;margin:0 0 0 12px;line-height:1.4;color:#173149}
.search-gallery button{display:flex;align-items:center;justify-content:center;cursor:pointer;color:#173149;border:0;background:transparent;border-radius:50%;min-width:44px;min-height:44px;padding:0}
.search-gallery button:hover{background:#f0f3f5}
.search-gallery button:focus-visible{outline:2px solid #0086a8;outline-offset:2px}
.search-gallery [data-close]{flex:none}
.search-gallery [hidden]{display:none!important}
.search-gallery-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:pan-y;padding:0 48px}
.search-gallery-stage>img{width:100%;height:100%;object-fit:contain}
.search-gallery-stage>img[hidden]{display:none}
.search-gallery-stage button{position:absolute;top:50%;transform:translateY(-50%)}
.search-gallery-stage [data-prev]{left:0}.search-gallery-stage [data-next]{right:0}
.search-gallery-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;flex:none;min-height:44px;padding:0 10px}
.search-gallery-count{grid-column:2;text-align:center;margin:0;font-size:12px;letter-spacing:.1em;color:#6e7b85;font-variant-numeric:tabular-nums}
.search-gallery [data-overview]{grid-column:3;justify-self:end;gap:7px;font-size:12px;border-radius:4px;padding:0 4px;white-space:nowrap}
.search-gallery [data-overview] svg{width:14px;height:14px}
.search-gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));grid-auto-rows:max-content;align-content:start;gap:12px;overflow-y:auto;overflow-x:hidden;flex:none;padding:12px 5px 5px;max-height:25dvh;box-sizing:border-box;border-top:1px solid #edf0f2}
.search-gallery-thumbs button{position:relative;width:100%;padding:0;min-height:0;aspect-ratio:3/2;border-radius:4px;overflow:hidden}
.search-gallery-thumbs button[aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 3px #536c7e}
.search-gallery-thumbs img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
@media(min-width:601px){.search-gallery{height:min(780px,92dvh)}}
@media(max-width:600px){.search-gallery{padding:10px;width:96vw;max-width:96vw;height:85dvh;gap:8px}.search-gallery h2{font-size:18px;margin-left:6px}.search-gallery-stage{padding:0 0 44px}.search-gallery-stage button{top:auto;bottom:0;transform:none}.search-gallery-stage [data-prev]{left:calc(50% - 48px)}.search-gallery-stage [data-next]{right:calc(50% - 48px)}.search-gallery-footer{grid-template-columns:auto 1fr;padding:0 6px}.search-gallery-count{grid-column:1}.search-gallery [data-overview]{grid-column:2}.search-gallery-thumbs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:22dvh}}
@media(max-width:600px){.search-gallery{height:min(480px,85dvh)}.search-gallery:has([data-overview][aria-expanded=true]){height:min(680px,85dvh)}}
