/* 首页搜索/热门区等样式已迁移至 __base/css/global-search.css（layout 全站引入）。 */

/* H1标签 - SEO优化 */
.home-wrap .page-title-h1 {
    font-size: 1rem;
    color: #fe628e;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.home-featured-carousel {
    position: relative;
    max-width: none;
    margin: 1.1rem 0 1.35rem;
    margin-left: calc((100% - min(calc(100% + 4rem), calc(100vw - 1.5rem))) / 2);
    overflow: visible;
}

.home-featured-carousel__viewport {
    width: 100%;
    max-width: none;
    overflow: visible;
}

.home-featured-carousel__slide {
    height: auto;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease;
    opacity: 0.72;
    transform: scale(0.955);
    filter: saturate(0.82);
}

.home-featured-carousel__slide.swiper-slide-active,
.home-featured-carousel__slide.swiper-slide-next,
.home-featured-carousel__slide.swiper-slide-next + .home-featured-carousel__slide,
.home-featured-carousel__slide.swiper-slide-prev {
    opacity: 0.92;
    transform: scale(0.975);
    filter: saturate(0.92);
}

.home-featured-carousel__slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
}

.home-featured-carousel__card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 0.25rem;
    text-decoration: none;
}

.home-featured-carousel__poster {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover !important;
    border-radius: 0.25rem;
    background: #23252d;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    transition: transform 0.45s ease;
}

.home-featured-carousel__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 46px;
    padding: 0 16px 8px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(180.8839deg, rgba(0, 0, 0, 0) 6.8629%, rgba(0, 0, 0, 0.76) 31.418%);
    transform: translateY(8px);
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
}

.home-featured-carousel__caption-text {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-featured-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
    transform: translateY(-50%);
    transition:
        background-color 0.25s ease,
        opacity 0.25s ease;
}

.home-featured-carousel__nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.home-featured-carousel__nav--prev {
    left: 1rem;
}

.home-featured-carousel__nav--next {
    right: 1rem;
}

.home-featured-carousel.is-static .home-featured-carousel__nav {
    opacity: 0;
    pointer-events: none;
}

.home-featured-carousel.is-static .swiper-wrapper {
    justify-content: center;
}

.home-featured-carousel.is-static .home-featured-carousel__slide {
    opacity: 1;
    transform: none;
    filter: none;
}

.home-featured-carousel.is-static .home-featured-carousel__caption {
    opacity: 1;
    transform: translateY(0);
}

.home-featured-carousel:not(.is-static) .home-featured-carousel__card:hover .home-featured-carousel__poster {
    transform: scale(1.05);
}

@media (max-width: 959px) {
    .home-featured-carousel {
        margin: 0.85rem 0 1.15rem;
        margin-left: calc((100% - min(calc(100% + 2rem), calc(100vw - 0.25rem))) / 2);
    }
    .home-featured-carousel.is-static .swiper-wrapper {
        justify-content: normal;
    }

    .home-featured-carousel__slide {
        opacity: 0.82;
        transform: scale(0.965);
        width: min(67vw, 13.5rem);
    }

    .home-featured-carousel__slide.swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }

    .home-featured-carousel__slide.swiper-slide-active .home-featured-carousel__caption {
        opacity: 1;
        transform: translateY(0);
    }

    .home-featured-carousel__caption {
        padding-right: 12px;
        padding-bottom: 7px;
        padding-left: 12px;
    }

    .home-featured-carousel__caption-text {
        font-size: 12px;
    }

    .home-featured-carousel__nav {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 0.78rem;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .home-featured-carousel__nav--prev {
        left: 0.35rem;
    }

    .home-featured-carousel__nav--next {
        right: 0.35rem;
    }
}

@media (min-width: 960px) {
    .home-featured-carousel {
        margin: 1.2rem 0 1.45rem;
    }

    .home-featured-carousel__slide {
        width: 22.5rem;
    }

    .home-featured-carousel__slide.swiper-slide-active .home-featured-carousel__poster {
        box-shadow:
            0 22px 48px rgba(0, 0, 0, 0.34),
            0 0 0 1px rgba(255, 255, 255, 0.08);
    }
}

@media (min-width: 960px) and (hover: hover) {
    .home-featured-carousel__card:hover .home-featured-carousel__caption,
    .home-featured-carousel__card:focus-visible .home-featured-carousel__caption {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 18+提示弹窗 start */
.access-confirm-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.72);
}

.access-confirm-popup * {
    box-sizing: border-box;
}

.access-confirm-card {
    width: 400px;
    height: 460px;
    max-width: calc(100vw - 48px);
    padding: 6px 23px 24px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, #371324 0%, #18131d 100%);
    border: 1.143px solid #a95170;
    border-radius: 24px;
}

.access-confirm-hero {
    width: 131px;
    height: 119px;
    margin: 0 auto 9px;
    overflow: hidden;
    border-radius: 50%;
}

.access-confirm-hero img {
    width: 179px;
    height: 119px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transform: translateX(-24px);
}

.access-confirm-title {
    margin: 0 0 16px;
    color: transparent;
    font-size: 32px;
    font-weight: 600;
    line-height: 50px;
    background: linear-gradient(90deg, #f8ebef 0%, #fc0b7c 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.access-confirm-desc {
    width: 342px;
    max-width: 100%;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 24px;
}

.access-confirm-desc p {
    margin: 0;
}

.access-confirm-age {
    display: flex;
    align-items: center;
    width: 352px;
    max-width: 100%;
    height: 70px;
    min-height: 70px;
    margin: 0 auto 12px;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(90deg, #280f1a 0%, #230f19 100%);
    border: 1.022px solid #b14f6c;
    border-radius: 16.086px;
}

.access-confirm-age-icon {
    position: relative;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    margin-right: 13px;
    color: #fc0b7c;
    font-size: 15.43px;
    font-weight: 500;
    line-height: 39px;
    text-align: center;
}

.access-confirm-age-icon img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.access-confirm-age-icon span {
    position: relative;
}

.access-confirm-age-title {
    margin: 0;
    color: #fc0b7c;
    font-size: 16px;
    font-weight: 500;
    line-height: 22.867px;
}

.access-confirm-age-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    line-height: 22.867px;
}

.access-confirm-button {
    display: block;
    width: 100%;
    height: 58px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    background: linear-gradient(180deg, #f34f7e 0%, #c1366a 113.97%);
    border: 0;
    border-radius: 60px;
}

@media (max-width: 767.98px) {
    .access-confirm-popup {
        padding: 16px;
    }

    .access-confirm-card {
        width: 300px;
        height: 333px;
        max-width: calc(100vw - 32px);
        padding: 14px 17px 20px;
        border: 1.143px solid #a95170;
        border-radius: 12px;
    }

    .access-confirm-hero {
        width: 90px;
        height: 90px;
        margin-bottom: 4.5px;
    }

    .access-confirm-hero img {
        width: 135px;
        height: 90px;
        transform: translateX(-22.5px);
    }

    .access-confirm-title {
        margin-bottom: 7.5px;
        font-size: 24px;
        line-height: 25px;
    }

    .access-confirm-desc {
        width: 251px;
        margin-bottom: 23px;
        font-size: 12px;
        line-height: 18px;
    }

    .access-confirm-age {
        width: 265px;
        height: 49px;
        min-height: 49px;
        margin-bottom: 8px;
        padding: 8px 15px;
        border-radius: 9px;
    }

    .access-confirm-age-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        margin-right: 11.5px;
        font-size: 10.29px;
        line-height: 26px;
    }

    .access-confirm-age-title {
        font-size: 11px;
        line-height: 13px;
    }

    .access-confirm-age-subtitle {
        font-size: 9px;
        line-height: 13px;
    }

    .access-confirm-button {
        display: block;
        width: 100%;
        height: 38px;
        font-size: 14px;
    }
}
/* 18+提示弹窗 end */

