/* Minimal local layout patch for the local lottery tabs. */
.home .block-lottery .platform-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .06rem .04rem !important;
    width: 100% !important;
    justify-content: stretch !important;
    overflow: visible !important;
}

.home .block-lottery .platform-list li {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
}

.home .block-lottery .platform-list li .item-body {
    width: 100% !important;
    margin-right: 0 !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(1):last-child) {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list[data-lottery-count="1"],
.home .block-lottery .platform-list.lottery-count-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list[data-lottery-count="2"],
.home .block-lottery .platform-list.lottery-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list[data-lottery-count="3"],
.home .block-lottery .platform-list.lottery-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list[data-lottery-count="4"],
.home .block-lottery .platform-list.lottery-count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(5):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list[data-lottery-count="5"],
.home .block-lottery .platform-list.lottery-count-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(5):last-child) > li,
.home .block-lottery .platform-list[data-lottery-count="5"] > li,
.home .block-lottery .platform-list.lottery-count-5 > li {
    grid-column: span 2 !important;
}

.home .block-lottery .platform-list:has(> li:nth-child(5):last-child) > li:nth-last-child(-n+2),
.home .block-lottery .platform-list[data-lottery-count="5"] > li:nth-last-child(-n+2),
.home .block-lottery .platform-list.lottery-count-5 > li:nth-last-child(-n+2) {
    grid-column: span 3 !important;
}

.home .block-lottery .platform-list li .item-body .title {
    white-space: nowrap;
}

.home .block-lottery .platform-list li .item-body .time {
    white-space: nowrap;
}

.home .block-lottery .border-ws {
    margin-top: 0;
}


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

.local-gallery-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    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;
}


.local-gallery-brand-icon {
    width: .68rem;
    height: .68rem;
    margin-right: .12rem;
    border-radius: .12rem;
    object-fit: cover;
    flex: none;
}

.local-gallery-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}
