/* nineGridAd */

.nine-grid-ad {
    align-self: stretch;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    display: flex;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nine-grid-ad::-webkit-scrollbar {
    display: none;
}

.nine-grid-ad-item {
    width: 80px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.nine-grid-ad-cover {
    width: 80px;
    height: 80px;
    position: relative;
    background: #DCDCDC;
    overflow: hidden;
    border-radius: 12px;
    outline: 1px solid rgba(255, 255, 255, 0.30);
    outline-offset: -1px;
}

.nine-grid-ad-cover-img {
    width: 80px;
    height: 80px;
    left: 0;
    top: 0;
    position: absolute;
    object-fit: cover;
    display: block;
}

.nine-grid-ad-title {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.90);
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .nine-grid-ad {
        align-self: stretch;
        gap: 10px;
        align-items: center;
    }

    .nine-grid-ad-item {
        width: auto;
        min-width: 56px;
        gap: 6px;
    }

    .nine-grid-ad-cover {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .nine-grid-ad-cover-img {
        width: 56px;
        height: 56px;
    }

    .nine-grid-ad-title {
        font-size: 12px;
        line-height: 18px;
        max-width: 56px;
    }
}
