main.xy-explore-page {
    overflow-x: hidden;
    /* 与 hero-visual-viewport.js 同步：优先使用真实可视高度，回退 100svh */
    --xy-frame1-cap: var(--xy-visual-vh, 100svh);
    /* page-explore-hero-fit.js 写入：视口内 hero 顶至底部的可用高度 */
    --xy-explore-hero-block-h: var(--xy-explore-hero-fit-h, var(--xy-frame1-cap));
}

body.xy-hero-underlay-chrome main.xy-explore-page .xy-explore-hero__container {
    padding-top: calc(var(--xy-chrome-stack, 128px) + 40px);
}

body.admin-bar.xy-hero-underlay-chrome main.xy-explore-page .xy-explore-hero__container {
    padding-top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--xy-underlay-header-h, 64px) + var(--xy-underlay-breadcrumb-h, 64px) + 40px);
}

@media screen and (max-width: 782px) {
    body.admin-bar.xy-hero-underlay-chrome main.xy-explore-page .xy-explore-hero__container {
        padding-top: calc(46px + var(--xy-underlay-header-h, 64px) + var(--xy-underlay-breadcrumb-h, 64px) + 40px);
    }
}

.xy-explore-hero-shell {
    width: calc(100% - 32px);
    max-width: 1296px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.xy-explore-hero {
    position: relative;
    overflow: hidden;
    background: #003B90;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    min-height: var(--xy-explore-hero-block-h);
    max-height: var(--xy-explore-hero-block-h);
    height: var(--xy-explore-hero-block-h);
}

.xy-explore-hero__slider {
    position: absolute;
    inset: 0;
}

.xy-explore-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.xy-explore-hero__slide.is-active {
    opacity: 1;
}

.xy-explore-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xy-explore-hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.75) 100%);
}

.xy-explore-hero__container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-sizing: border-box;
}

.xy-explore-hero__content {
    max-width: 760px;
    color: #EDEDED;
    margin-bottom: 40px;
}

.xy-explore-hero__title {
    font-family: "Zalando Sans Expanded", sans-serif;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 12px;
    opacity: 0;
    transform: translatey(30px);
    font-size: 22px;
}

.xy-explore-hero__desc {
    font-family: "Archivo", sans-serif;
    font-weight: 100;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 920px;
    opacity: 0;
    transform: translatey(30px);
    font-size: 14px;
}

.xy-explore-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: "Zalando Sans Expanded", sans-serif;
    font-weight: 500;
    line-height: 1;
    color: #EDEDED;
    opacity: 0;
    transform: translatey(30px);
    transition: gap 0.3s ease;
    font-size: 14px;
}

.xy-explore-hero__btn:hover {
    gap: 20px;
}

.xy-explore-hero__slide.is-active .xy-explore-hero__title {
    animation: xyExploreFadeUp 0.8s forwards 0.2s;
}

.xy-explore-hero__slide.is-active .xy-explore-hero__desc {
    animation: xyExploreFadeUp 0.8s forwards 0.4s;
}

.xy-explore-hero__slide.is-active .xy-explore-hero__btn {
    animation: xyExploreFadeUp 0.8s forwards 0.6s;
}

.xy-explore-hero__progress {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 40px;
    z-index: 3;
    display: flex;
    gap: 0;
}

.xy-explore-hero__progress-item {
    flex: 1;
    height: 2px;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #D9D9D933;
}

.xy-explore-hero__progress-item.is-active {
    background: #FFF;
}

.xy-explore-hero__progress-fill {
    display: none;
}

@keyframes xyExploreFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .xy-explore-hero {
        background: #FFF;
        border-top: 1px solid rgba(228, 228, 228, 0.5);
    }
}

.xy-explore-news.v21-news-section {
    max-width: 1296px;
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    border-left: none;
    border-right: none;
}

.xy-explore-news .v21-news-container {
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.xy-explore-news .v21-news-pagination {
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.xy-explore-news__midline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E4E4E4;
    z-index: 1;
}

.xy-explore-news .v21-news-pagination__container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 389.98px) {
    .xy-explore-hero-shell {
        margin-left: 16px;
        margin-right: 16px;
        width: calc(100% - 32px);
    }

    .xy-explore-news.v21-news-section {
        margin-left: 16px;
        margin-right: 16px;
        width: calc(100% - 32px);
        padding-left: 0;
        padding-right: 0;
    }

    main.xy-explore-page .xy-explore-hero__progress {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    main.xy-explore-page .xy-explore-hero__container {
        padding: 20px 16px 28px;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 18px;
    }

    main.xy-explore-page .xy-explore-hero__desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

    main.xy-explore-page .xy-explore-hero__btn {
        font-size: 13px;
    }

    main.xy-explore-page .xy-explore-selectors .article-selector {
        height: auto;
        min-height: 72px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    main.xy-explore-page .xy-explore-selectors .article-selector__text {
        font-size: 12px;
    }

    main.xy-explore-page .xy-explore-news .v21-text-content {
        padding: 16px;
    }

    main.xy-explore-page .xy-explore-news .v21-item-title {
        font-size: 15px;
    }

    main.xy-explore-page .xy-explore-news .v21-item-desc {
        font-size: 13px;
    }
}

@media (min-width: 390px) and (max-width: 429.98px) {
    .xy-explore-hero-shell {
        margin-left: 18px;
        margin-right: 18px;
        width: calc(100% - 36px);
    }

    .xy-explore-news.v21-news-section {
        margin-left: 18px;
        margin-right: 18px;
        width: calc(100% - 36px);
        padding-left: 0;
        padding-right: 0;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 19px;
    }
}

@media (min-width: 430px) and (max-width: 479.98px) {
    .xy-explore-hero-shell {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }

    .xy-explore-news.v21-news-section {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
        padding-left: 0;
        padding-right: 0;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 20px;
    }
}

@media (min-width: 480px) and (max-width: 639.98px) {
    .xy-explore-hero-shell {
        margin-left: 22px;
        margin-right: 22px;
        width: calc(100% - 44px);
    }

    .xy-explore-news.v21-news-section {
        margin-left: 22px;
        margin-right: 22px;
        width: calc(100% - 44px);
        padding-left: 0;
        padding-right: 0;
    }

    main.xy-explore-page .xy-explore-hero__progress {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    main.xy-explore-page .xy-explore-hero__container {
        padding: 24px 20px 32px;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 22px;
    }

    main.xy-explore-page .xy-explore-selectors .article-selector {
        height: 88px;
        padding: 16px 0;
    }
}

@media (min-width: 640px) and (max-width: 767.98px) {
    .xy-explore-hero-shell {
        margin-left: 24px;
        margin-right: 24px;
        width: calc(100% - 48px);
    }

    .xy-explore-news.v21-news-section {
        margin-left: 24px;
        margin-right: 24px;
        width: calc(100% - 48px);
        padding-left: 0;
        padding-right: 0;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 24px;
    }

    main.xy-explore-page .xy-explore-news .v21-news-item {
        flex-direction: column-reverse;
        height: auto;
        min-height: 0;
        gap: 0;
    }

    main.xy-explore-page .xy-explore-news .v21-image-box {
        width: 100%;
        height: 200px;
    }

    main.xy-explore-page .xy-explore-news .v21-text-content {
        padding: 24px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .xy-explore-hero-shell {
        margin-left: 32px;
        margin-right: 32px;
        width: calc(100% - 64px);
    }

    .xy-explore-news.v21-news-section {
        margin-left: 32px;
        margin-right: 32px;
        width: calc(100% - 64px);
        padding-left: 0;
        padding-right: 0;
    }

    .xy-explore-news .v21-news-pagination__container {
        padding-left: 32px;
        padding-right: 32px;
    }

    main.xy-explore-page .xy-explore-hero__progress {
        left: 32px;
        right: 32px;
        bottom: 28px;
    }

    main.xy-explore-page .xy-explore-hero__container {
        padding: 28px 24px 36px;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 26px;
    }

    main.xy-explore-page .xy-explore-hero__desc {
        font-size: 14px;
    }

    main.xy-explore-page .xy-explore-selectors .article-selector {
        height: 92px;
    }

    main.xy-explore-page .xy-explore-news .v21-text-content {
        padding: 32px;
    }

    main.xy-explore-page .xy-explore-news .v21-item-title {
        font-size: 18px;
    }

    main.xy-explore-page .xy-explore-news .v21-news-item {
        min-height: 280px;
        height: auto;
    }
}

@media (min-width: 1025px) and (max-width: 1365.98px) {
    .xy-explore-hero-shell {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1296px;
        padding-inline: 60px;
    }

    .xy-explore-hero__progress {
        left: 40px;
        right: 40px;
        bottom: 32px;
    }

    .xy-explore-news.v21-news-section {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1296px;
        padding-inline: 60px;
    }

    .xy-explore-news .v21-news-pagination__container {
        padding-left: 40px;
        padding-right: 40px;
    }

    main.xy-explore-page .xy-explore-hero__container {
        padding: 36px 32px 40px;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 28px;
    }

    main.xy-explore-page .xy-explore-selectors .article-selector {
        height: 96px;
        padding: 18px 0;
    }

    main.xy-explore-page .xy-explore-news .v21-text-content {
        padding: 36px;
    }

    main.xy-explore-page .xy-explore-news .v21-item-title {
        font-size: 19px;
    }
}

@media (min-width: 1366px) {
    .xy-explore-hero-shell {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1296px;
        padding-inline: 0;
    }

    .xy-explore-news.v21-news-section {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 1296px;
        padding-inline: 0;
    }
}

@media (min-width: 1366px) and (max-width: 1512px) {
    main.xy-explore-page .xy-explore-hero__title {
        font-size: 30px;
    }

    main.xy-explore-page .xy-explore-hero__container {
        padding: 38px 36px 40px;
    }

    main.xy-explore-page .xy-explore-news .v21-item-title {
        font-size: 20px;
    }
}

@media (min-width: 1513px) and (max-width: 1599.98px) {
    main.xy-explore-page .xy-explore-hero__title {
        font-size: 31px;
    }
}

@media (min-width: 1600px) {
    main.xy-explore-page .xy-explore-hero__progress {
        left: 40px;
        right: 40px;
        bottom: 40px;
    }

    main.xy-explore-page .xy-explore-hero__container {
        padding: 40px;
    }

    main.xy-explore-page .xy-explore-hero__title {
        font-size: 32px;
    }
}

@media (hover: hover) and (pointer: fine) {
    main.xy-explore-page .xy-explore-hero__btn {
        transition: gap 0.3s ease, opacity 0.2s ease;
    }
}
