/* 首页搜索/热门区等样式已迁移至 __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 */


/* 最新地址保存弹窗 start */
.save-addr-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.save-addr-popup[hidden] {
    display: none;
}
.save-addr-popup * {
    box-sizing: border-box;
}
.save-addr-popup__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}
.save-addr-popup__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 692px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    padding: 28px;
    overflow-y: auto;
    background: #181920;
    border: 1px solid #303240;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.save-addr-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.save-addr-popup__title {
    margin: 0;
    color: #f5f5f7;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}
.save-addr-popup__close {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #a6a7af;
    cursor: pointer;
    background: #252732;
    border: 0;
    border-radius: 8px;
}
.save-addr-popup__close:hover {
    color: #f5f5f7;
}
.save-addr-popup__close svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* 官方地址保存卡 */
.save-addr-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    padding: 24px;
    background: linear-gradient(135deg, #28202c 0%, #1d1d27 100%);
    border: 1px solid #62404f;
    border-radius: 12px;
}
.save-addr-card__content {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
}
.save-addr-card__brand {
    display: flex;
    flex: 0 0 220px;
    flex-direction: column;
    gap: 20px;
    width: 220px;
}
.save-addr-card__brand-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}
.save-addr-card__logo {
    display: block;
    flex: 0 0 auto;
    width: 82px;
    height: 28px;
}
.save-addr-card__badge {
    padding: 5px 10px;
    color: #e9a0b7;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
    background: rgba(255, 72, 134, 0.07);
    border: 1px solid rgba(233, 160, 183, 0.19);
    border-radius: 9999px;
}
.save-addr-card__slogan {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.save-addr-card__headline {
    margin: 0;
    color: #f5f5f7;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
}
.save-addr-card__mark {
    display: block;
    width: 24px;
    height: 3px;
    background: #ff4a7c;
    border-radius: 2px;
}
.save-addr-card__contacts {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    background: #171820;
    border: 1px solid #252732;
    border-radius: 8px;
}
.save-addr-card__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid #252732;
}
.save-addr-card__row:last-child {
    border-bottom: 0;
}
.save-addr-card__label {
    color: #a6a7af;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}
.save-addr-card__value {
    color: #ff4a7c;
    font-family: Inter, "SF Pro Display", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    word-break: break-all;
}
.save-addr-card__note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #62404f;
}
.save-addr-card__note-main {
    color: #d7d8dd;
    font-size: 12px;
    line-height: 20px;
}
.save-addr-card__note-sub {
    color: #a6a7af;
    font-size: 10px;
    line-height: 16px;
    text-align: right;
}

/* 保存操作 */
.save-addr-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.save-addr-popup__save {
    height: 48px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
    background: #ff4a7c;
    border: 0;
    border-radius: 8px;
    transition: background 0.2s;
}
.save-addr-popup__save:hover {
    background: #ff3b70;
}
.save-addr-popup__save:disabled {
    cursor: default;
    opacity: 0.6;
}
.save-addr-popup__tip {
    margin: 0;
    color: #a6a7af;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* H5 长按保存：卡片整体换成等尺寸位图，交给浏览器原生长按菜单 */
.save-addr-card__poster {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* 长按存图需要原生菜单，这里把可能存在的禁选/禁呼出放开 */
    -webkit-touch-callout: default;
    -webkit-user-select: auto;
    user-select: auto;
}
.save-addr-card__poster[hidden] {
    display: none;
}
/* 位图自带内边距与描边，卡片自身的内边距/背景要让位 */
.save-addr-card.is-poster {
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
}
.save-addr-card.is-poster > .save-addr-card__content,
.save-addr-card.is-poster > .save-addr-card__note {
    display: none;
}

/* 轻提示：下载被浏览器拦截时提示长按保存，不弹二级层 */
.save-addr-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    z-index: 3;
    max-width: calc(100vw - 48px);
    padding: 10px 18px;
    color: #f5f5f7;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    word-break: break-word;
    pointer-events: none;
    background: rgba(24, 25, 32, 0.94);
    border: 1px solid #303240;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.save-addr-toast[hidden] {
    display: none;
}
.save-addr-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* H5：单列布局，弹窗铺满可用宽度 */
@media (max-width: 767.98px) {
    .save-addr-popup {
        padding: 16px;
    }
    .save-addr-popup__dialog {
        gap: 12px;
        width: 100%;
        max-height: calc(100vh - 32px);
        padding: 16px 20px;
    }
    .save-addr-card {
        gap: 20px;
        padding: 20px;
    }
    .save-addr-card__content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .save-addr-card__brand {
        flex: 0 0 auto;
        width: 100%;
    }
    .save-addr-card__headline {
        line-height: 34px;
    }
    /* 设计稿 H5 版（357:22486）主旨下没有品牌标记，只有 PC 版有 */
    .save-addr-card__mark {
        display: none;
    }
    .save-addr-card__row {
        padding: 12px 16px;
    }
    .save-addr-card__value {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
    }
    .save-addr-card__note {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .save-addr-card__note-sub {
        text-align: left;
    }
}
/* 最新地址保存弹窗 end */
