.product-gallery { min-width:0; width:100%; overflow:hidden; align-self:start; color:#22352c; border:1px solid #e0e7e3; border-radius:14px; background:#fff; box-shadow:0 6px 24px #19362908; }
.product-gallery * { box-sizing:border-box; }
.product-gallery [hidden] { display:none !important; }
.product-gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border-bottom:1px solid #eaf0ec; }
.product-gallery-brand { display:flex; align-items:center; min-width:0; gap:10px; }
.product-gallery-brand > img,.product-gallery-brand > video { flex:none; width:30px; height:30px; object-fit:contain; border-radius:6px; padding:0; margin:0; border:0; background:transparent; box-shadow:none; }
.product-gallery-brand > span { display:grid; gap:2px; min-width:0; }
.product-gallery-brand strong { font-size:13px; font-weight:650; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-gallery-brand small { color:#6a7971; font-size:11px; }
.product-gallery button { font:inherit; color:inherit; cursor:pointer; border:1px solid #dce5df; background:#fff; border-radius:6px; box-shadow:none; }
.product-gallery button:hover { background:#eef5f1; border-color:#9cbdac; }
.product-gallery button:focus-visible,.product-gallery a:focus-visible,.product-gallery-stage:focus-visible { outline:3px solid #2f8065; outline-offset:3px; }
.product-gallery button:disabled { cursor:default; opacity:.5; }
.product-gallery .product-gallery-enlarge { flex:none; min-height:34px; padding:6px 10px; font-size:12px; color:#32664f; }
.product-gallery-stage { position:relative; width:100%; aspect-ratio:16/10; max-height:440px; background:#f4f6f8; display:grid; place-items:center; overflow:hidden; touch-action:pan-y; }
.product-gallery-slide { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; margin:0; padding:12px; }
.product-gallery-slide:not([data-gallery-loaded])::before { content:'图片加载中…'; position:absolute; color:#677970; font-size:12px; }
.product-gallery-slide > img,.product-gallery-slide > video { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; object-position:center; border-radius:3px; padding:0; border:0; background:transparent; box-shadow:none; filter:none; }
.product-gallery-slide > img { cursor:zoom-in; }
.product-gallery-caption { min-height:45px; padding:10px 16px; display:flex; align-items:baseline; justify-content:space-between; gap:14px; font-size:12px; line-height:1.6; border-top:1px solid #eaf0ec; }
.product-gallery-caption > span { min-width:0; color:#52655a; }
.product-gallery-caption > a { flex:none; font-size:11px; text-decoration:none; color:#48715c; }
.product-gallery-caption > a:hover { text-decoration:underline; }
.product-gallery-navigation { display:flex; align-items:center; gap:8px; padding:0 14px 14px; }
.product-gallery-navigation > button { flex:none; width:32px; height:38px; padding:0; font-size:22px; }
.product-gallery-thumbnails { position:relative; display:flex; flex:1; min-width:0; gap:7px; overflow:auto; scrollbar-width:thin; padding:3px; }
.product-gallery .product-gallery-thumbnail { flex:none; width:82px; height:54px; padding:3px; position:relative; border:1px solid #dfe7e2; border-radius:6px; overflow:hidden; }
.product-gallery-thumbnail img { display:block; width:100%; height:100%; object-fit:contain; background:#f4f6f8; border-radius:2px; }
.product-gallery-thumbnail > span { position:absolute; right:3px; bottom:3px; padding:0 4px; font-size:10px; line-height:15px; background:#fff; border-radius:3px; color:#506056; }
.product-gallery .product-gallery-thumbnail[aria-current="true"] { border:2px solid #30785d; padding:2px; background:#edf5f0; }
.product-gallery-navigation > .product-gallery-play { width:auto; min-width:42px; padding:0 7px; font-size:11px; }
.product-gallery-status { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.product-gallery-stage.product-gallery-unavailable { min-height:0; height:0; aspect-ratio:auto; }
.product-gallery-dialog { width:min(1440px,96vw); height:min(960px,94dvh); max-width:96vw; max-height:94dvh; padding:0; border:1px solid #dce3df; border-radius:12px; background:#f3f5f7; color:#22352c; overflow:hidden; box-shadow:0 20px 100px #0005; }
.product-gallery-dialog::backdrop { background:#14221cce; backdrop-filter:blur(4px); }
.product-gallery-dialog[open] { display:flex; flex-direction:column; }
.product-gallery-dialog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; background:#fff; border-bottom:1px solid #dce5df; }
.product-gallery-dialog-toolbar > strong { font-size:13px; font-weight:600; line-height:1.5; }
.product-gallery-dialog-toolbar > div { flex:none; display:flex; align-items:center; gap:8px; }
.product-gallery-dialog-toolbar button { min-width:36px; min-height:36px; padding:5px 10px; font-size:13px; }
.product-gallery-dialog-toolbar [data-gallery-counter] { font-size:12px; color:#617068; }
.product-gallery-dialog-media { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:16px; overflow:auto; }
.product-gallery-dialog-media img,.product-gallery-dialog-media video { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; padding:0; border:0; border-radius:0; box-shadow:none; }
.product-gallery-zoomed .product-gallery-dialog-media { display:block; overflow:auto; overscroll-behavior:contain; }
.product-gallery-zoomed .product-gallery-dialog-media img { max-width:none; max-height:none; cursor:zoom-out; }
.hero-detail:has(> .meta-after-carousel:only-child) { grid-template-columns:1fr; }
.hero-detail:has(> .product-gallery) { align-items:start; }
.embedded-detail-body > .product-gallery { width:min(100%,980px); margin-inline:auto; }
@media (max-width:640px) {
  .product-gallery-heading { padding:10px 12px; gap:8px; }
  .product-gallery .product-gallery-enlarge { min-height:40px; font-size:11px; }
  .product-gallery-slide { padding:6px; }
  .product-gallery-caption { padding:9px 12px; font-size:11px; gap:8px; }
  .product-gallery-caption > a { font-size:10px; }
  .product-gallery-navigation { gap:5px; padding:0 8px 9px; }
  .product-gallery-navigation > button { width:36px; min-height:44px; }
  .product-gallery .product-gallery-thumbnail { width:64px; height:46px; }
  .product-gallery-dialog { width:98vw; max-width:98vw; height:94dvh; }
  .product-gallery-dialog-toolbar { align-items:flex-start; flex-wrap:wrap; padding:10px; gap:8px; }
  .product-gallery-dialog-toolbar > strong { font-size:12px; }
  .product-gallery-dialog-toolbar > div { gap:3px; }
  .product-gallery-dialog-toolbar button { min-width:34px; min-height:40px; padding:5px; }
  .product-gallery-dialog-media { padding:6px; }
}
