﻿.query-title {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    color: #484848;
}
.active > .page-link, .page-link.active {
    background-color: #ac010a;
    border-color: #ac010a;
} 

/* product grid loader */
#productDataGrid {
    position: relative; /* 确保 overlay 定位正确 */
    min-height: 120px; /* 根据你的卡片高度可调整，避免太短看不到 spinner */
}

    #productDataGrid .loader-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.75);
        z-index: 9999;
        pointer-events: auto;
    }

        #productDataGrid .loader-overlay .spinner {
            width: 48px;
            height: 48px;
            border: 5px solid rgba(0,0,0,0.12);
            border-top-color: #ac010a; /* 你指定的颜色 */
            border-radius: 50%;
            animation: loader-spin 1s linear infinite;
        }

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

#productDataGrid .loader-overlay .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}




.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* <- 改你想要的比例 */
    background: #f5f5f7; /* 占位背景色 */
    position: relative;
    overflow: hidden;
    display: block;
}
    /* 图片默认填充，保持好看的裁切 */
    .image-wrapper img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* 正常图片按 cover 显示 */
        transition: opacity .25s ease, transform .25s ease;
    }

        /* 当使用 fallback （加载失败）时，显示完整图片 */
        .image-wrapper img.fallback {
            object-fit: contain!important; /* 保证完整显示，不裁切 */
            padding: 6px; /* 给默认图一点内边距，避免贴边（可选） */
            background: #fff;
        }

.img-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #ac010a; /* 红色小圈圈 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.fade-img {
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

    .fade-img.loaded {
        opacity: 1;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
