/* The original banners have baked-in copy. Sample the clean strip of the same
   photograph directly beneath the old count so the updated count stays editable.
   Positions below are measured in the original artwork's pixels. */
.customer-banner {
    --photo: url("/resource/images/7e9196568e224c29afe64536c6708253_6.jpg");
    --photo-width: 1920;
    --photo-height: 970;
    --count-x: 1305;
    --count-y: 691;
    --count-width: 219;
    --count-height: 73;
    --sample-y: 765;
    --sample-height: 10;
    --type-size: 3.45;
    display: block;
    position: relative;
    container-type: inline-size;
}

.customer-banner-mobile {
    --photo: url("/mobile/resource/images/7e9196568e224c29afe64536c6708253_10.jpg");
    --photo-width: 750;
    --photo-height: 1000;
    --count-x: 349;
    --count-y: 774;
    --count-width: 182;
    --count-height: 62;
    --sample-y: 837;
    --sample-height: 7;
    --type-size: 7.1;
}

.customer-banner-count {
    position: absolute;
    left: calc(100% * var(--count-x) / var(--photo-width));
    top: calc(100% * var(--count-y) / var(--photo-height));
    width: calc(100% * var(--count-width) / var(--photo-width));
    height: calc(100% * var(--count-height) / var(--photo-height));
    display: grid;
    place-items: center;
    background-image: var(--photo);
    background-size: calc(100% * var(--photo-width) / var(--count-width)) calc(100% * var(--photo-height) / var(--sample-height));
    background-position: calc(100% * var(--count-x) / (var(--photo-width) - var(--count-width))) calc(100% * var(--sample-y) / (var(--photo-height) - var(--sample-height)));
    color: white;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: calc(var(--type-size) * 1vw);
    font-size: calc(var(--type-size) * 1cqw);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
    white-space: nowrap;
}
