.home .block-lottery > .platform-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .08rem;
    padding: .12rem .16rem;
    background: #fff;
    box-sizing: border-box;
}

.home .block-lottery > .platform-list > li {
    grid-column: span 2;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.home .block-lottery > .platform-list > li:nth-child(4),
.home .block-lottery > .platform-list > li:nth-child(5) {
    grid-column: span 3;
}

.home .block-lottery > .platform-list > li .item-body {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.home .block-lottery > .platform-list > li .title,
.home .block-lottery > .platform-list > li .time {
    overflow: hidden;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .block-lottery > .platform-list > li.local-active .item-body {
    border-color: #3e73fe !important;
}

/* Keep the long local lottery name visible in the home header. */
.home-nav .van-nav-bar__title {
    left: 2.35rem !important;
    right: 1.65rem !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 .04rem !important;
    font-size: .33rem !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 360px) {
    .home-nav .van-nav-bar__title {
        left: 2.2rem !important;
        right: 1.55rem !important;
        font-size: .29rem !important;
    }
}

/* The original header stores all lottery names in the title; show only the active one. */
.home-nav .van-nav-bar__title {
    position: absolute !important;
    left: 2.35rem !important;
    right: 1.65rem !important;
    width: auto !important;
    display: block !important;
}
.home-nav .new-box,
.home-nav .new-box .platform-list {
    width: 100% !important;
}
.home-nav .new-box .platform-list {
    display: block !important;
}
.home-nav .new-box .platform-list > li {
    display: none !important;
    width: 100% !important;
    padding-bottom: 0 !important;
}
.home-nav .new-box .platform-list > li:has(.item-body.act) {
    display: block !important;
}
.home-nav .new-box .platform-list .item-body.act {
    width: 100% !important;
    font-size: .34rem !important;
    white-space: nowrap !important;
}
.home-nav .new-box .platform-list .item-body.act .title {
    margin-top: 0 !important;
}
@media (max-width: 360px) {
    .home-nav .van-nav-bar__title {
        left: 2.2rem !important;
        right: 1.55rem !important;
    }
    .home-nav .new-box .platform-list .item-body.act {
        font-size: .3rem !important;
    }
}


.home-nav .van-nav-bar__left {
    min-width: 2.8rem;
    padding-left: .2rem;
}

.local-gallery-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 2.8rem;
    color: #fff;
    line-height: 1.15;
}

.local-gallery-brand strong {
    font-size: .36rem;
    white-space: nowrap;
}

.local-gallery-brand span {
    display: block;
    max-width: 2.8rem;
    margin-top: .05rem;
    overflow: hidden;
    color: #fff;
    font-size: .16rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Keep the local brand fully visible on standalone domains. */
.home-nav .van-nav-bar__left {
    left: 0 !important;
    right: auto !important;
    z-index: 2;
    width: 2.95rem !important;
    min-width: 2.95rem !important;
    max-width: 2.95rem !important;
    overflow: visible !important;
}

.home-nav .van-nav-bar__title {
    left: 2.85rem !important;
    right: 1.45rem !important;
}

.local-gallery-brand,
.local-gallery-brand span {
    max-width: 2.75rem;
}

@media (max-width: 360px) {
    .home-nav .van-nav-bar__left {
        width: 2.7rem !important;
        min-width: 2.7rem !important;
        max-width: 2.7rem !important;
    }

    .home-nav .van-nav-bar__title {
        left: 2.7rem !important;
        right: 1.2rem !important;
    }

    .local-gallery-brand,
    .local-gallery-brand span {
        max-width: 2.5rem;
    }
}

.home-top-banner.local-banner-fixed {
    position: relative !important;
    min-height: 3.7rem !important;
    background-image: linear-gradient(180deg, #3e73fe 50%, #fff 0) !important;
}

.home-top-banner .local-banner-fallback {
    position: absolute;
    z-index: 6;
    top: .2rem;
    right: .16rem;
    left: .16rem;
    height: 3.3rem;
    overflow: hidden;
    border-radius: .16rem;
    background: #fff;
}

.home-top-banner .local-banner-fallback-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .35s ease;
}

.home-top-banner .local-banner-fallback-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.home-top-banner .local-banner-fallback-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-top-banner .local-banner-fallback-dots {
    position: absolute;
    right: 0;
    bottom: .12rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: .08rem;
}

.home-top-banner .local-banner-fallback-dots i {
    width: .14rem;
    height: .14rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
}

.home-top-banner .local-banner-fallback-dots i.active {
    background: #3e73fe;
}

.body-image-bd.local-picture-fallback-on .waterfall {
    display: none !important;
}

.body-image-bd .local-picture-fallback {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .14rem .12rem;
    padding: .06rem .16rem .24rem;
    background: #f5f7fb;
}

.body-image-bd .local-picture-card {
    display: block;
    overflow: hidden;
    border-radius: .08rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 .03rem .1rem rgba(23, 50, 96, .08);
}

.body-image-bd .local-picture-card:active {
    transform: scale(.985);
}

.body-image-bd .local-picture-card img {
    display: block;
    width: 100%;
    min-height: 1.6rem;
    background: #eef2fb;
}

.body-image-bd .local-picture-title {
    overflow: hidden;
    padding: 0 .1rem;
    font-size: .26rem;
    font-weight: 500;
    line-height: .58rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .body-image-hd.ltm {
    overflow: hidden !important;
    background: #fff;
}

.home .body-image-hd.ltm .van-tabs__wrap {
    height: auto !important;
    overflow: visible !important;
}

.home .body-image-hd.ltm .van-tabs__wrap:after,
.home .body-image-hd.ltm .van-tabs__line,
.home .body-image-hd.ltm .van-tabs__content {
    display: none !important;
}

.home .body-image-hd.ltm .van-tabs__nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100% !important;
    min-width: 100% !important;
    padding: .12rem .08rem .08rem !important;
    box-sizing: border-box;
    transform: none !important;
}

.home .body-image-hd.ltm .van-tab {
    display: block !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.home .body-image-hd.ltm .van-tab__text,
.home .body-image-hd.ltm .icon-text {
    display: block !important;
    width: 100% !important;
}

.home .body-image-hd.ltm .icon-text {
    min-height: 1.1rem;
    text-align: center;
}

.home .body-image-hd.ltm .icon-bg {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.home .body-image-hd.ltm .text {
    width: 100%;
    max-width: 100%;
    padding: .08rem 0 .06rem !important;
    overflow: hidden;
    font-size: .24rem !important;
    line-height: .32rem !important;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .body-image-hd.ltm.local-series-replaced {
    display: none !important;
}

.home .local-series-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .14rem .08rem .1rem;
    background: #fff;
    border-top: .01rem solid #f0f2f5;
    box-sizing: border-box;
}

.home .local-series-item {
    min-width: 0;
    text-align: center;
    color: #333;
}

.home .local-series-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: .48rem;
    height: .48rem;
    margin: 0 auto .08rem;
    border-radius: .1rem;
    color: #fff;
    font-size: .24rem;
    font-weight: 700;
    line-height: 1;
}

.home .local-series-label {
    overflow: hidden;
    font-size: .24rem;
    line-height: .34rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .local-series-run {
    background: #ff8a2a;
}

.home .local-series-book {
    background: #a65cff;
}

.home .local-series-all {
    background: #15c487;
}

.home .local-series-more {
    background: #8f95ff;
    font-size: .28rem;
}
