/* 商品浏览体验，颜色沿用当前模板调色板。 */
.t5-product-image-frame { display: block; overflow: hidden; border-radius: inherit; }
.t5-product-image-frame img { display: block; transition: transform .35s ease; transform-origin: center; }
html:not(.t5-touch-input) .t5-product-image-frame:hover img { transform: scale(1.12); }
html:not(.t5-touch-input) .store-products > .item:hover,
html:not(.t5-touch-input) .store-catalog-products > ul > li:hover,
html:not(.t5-touch-input) .aui-link-list > a[href*="find_chanpingbyid"]:hover {
    position: relative;
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(25,65,30,.16);
    z-index: 2;
}
.store-products > .item, .store-catalog-products > ul > li,
.aui-link-list > a[href*="find_chanpingbyid"] {
    transition: transform .24s ease, box-shadow .24s ease;
}
.t5-filter-tabs { position: relative; }
.t5-filter-marker {
    position: absolute;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--theme-primary);
    pointer-events: none;
    transition: left .28s ease, top .28s ease;
}
.t5-filter-tabs .orders-tab.is-active:after { display: none; }
.t5-category-marker { width: 3px; height: 20px; left: 1px; bottom: auto; }
.t5-results-enter { animation: t5-results-enter .3s ease-out; }
@keyframes t5-results-enter { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.t5-top-button {
    position: fixed;
    right: max(16px, calc((100vw - 520px) / 2 + 16px));
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--theme-primary-border);
    border-radius: 50%;
    background: var(--theme-primary);
    color: var(--theme-on-primary);
    box-shadow: 0 5px 16px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    cursor: pointer;
}
.t5-top-button.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.t5-top-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
    .t5-product-image-frame img, .t5-filter-marker, .t5-top-button { transition: none; }
    html .t5-product-image-frame:hover img { transform: none; }
    .t5-results-enter { animation: none; }
    html .store-products > .item:hover, html .store-catalog-products > ul > li:hover,
    html .aui-link-list > a[href*="find_chanpingbyid"]:hover { transform: none; }
}

.store-products .examine img { height: auto; }

/* 直接匹配原有图片容器，即使增强脚本未执行也能触发图片缩放。 */
html body .store-products .examine,
html body .store-catalog-products .leftli a,
html body .aui-link-img,
html body .list_litpic {
    display: block;
    overflow: hidden;
}
html body .store-products .examine img,
html body .store-catalog-products .leftli img,
html body .aui-link-img img,
html body .list_litpic img,
html body .t5-product-image-frame img {
    transition: transform .35s ease;
    transform-origin: center;
}
html:not(.t5-touch-input) body .store-products .examine:hover img,
html:not(.t5-touch-input) body .store-catalog-products .leftli a:hover img,
html:not(.t5-touch-input) body .aui-link-img:hover img,
html:not(.t5-touch-input) body .list_litpic:hover img,
html:not(.t5-touch-input) body .t5-product-image-frame:hover img {
    transform: scale(1.12) !important;
}
@media (prefers-reduced-motion: reduce) {
    html body .t5-product-image-frame img,
    html body .store-products .examine img,
    html body .store-catalog-products .leftli img,
    html body .aui-link-img img, html body .list_litpic img { transition: none; }
}
