.en-products {
    margin: 80px auto;
    width: calc(100% - 64px);
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.en-products__subtitle {
    margin: 8px 0 32px 0;
}

.en-products__bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.en-products__tab {
    flex: 1;
    box-sizing: border-box;
    padding: 6px 0;
    gap: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6a6a73;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.en-products__tab:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background-color: #ebeef5;
}

.en-products__tab.is-active {
    color: #7366ff;
}

.en-products__tab.is-active .en-products__icon {
    filter: grayscale(0%);
    opacity: 1;
}

.en-products__icon {
    width: 24px;
    height: 24px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.en-products__stage {
    width: 100%;
    position: relative;
    border-radius: 8px;
}

.en-products__scene {
    aspect-ratio: 2 / 1;
    padding: 6% 8%;
    display: grid;
    grid-template-columns: 2fr 5fr;
    gap: 8px;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    /* background: linear-gradient(120deg, #FFEEDE, #3B2F5C, #f6e7ff); */
    background: linear-gradient(120deg, #FFEEDE, #f3e9ff, #eddeff);
    background-size: 300% 300%;
    animation: enProductGradientFlow 20s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.en-products__scene.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    border-radius: 8px;
}

.en-products__scene.is-active .en-products__layer-wrap {
    animation: enProductFadeUp 0.5s ease forwards;
}

@keyframes enProductGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes enProductFadeUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.en-products__media {
    position: relative;
    will-change: transform;
    aspect-ratio: 8 / 5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.en-products__layer-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.en-products__layer {
    position: absolute;
    width: 100%;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    pointer-events: none;
}

/* 底层长图滚动，顶层固定 UI 蒙版（勿对调图片 id） */
#eln-scroll {
    z-index: 0;
    background-image: url("../images/home-showcase/home-eln-scroll.png");
    animation: enProductSlowScrollBg linear 20s infinite;
}

#eln-fix {
    z-index: 1;
    background-image: url("../images/home-showcase/home-eln-fix.png");
}

@keyframes enProductSlowScrollBg {
    from {
        background-position: center 0%;
    }

    to {
        background-position: center 100%;
    }
}

#ai-fix {
    background-image: url("../images/home-showcase/home-ai.png");
}

#ai-chat {
    background-image: url("../images/home-showcase/home-ai-chat.png");
    left: 100%;
    transition: left ease 0.3s;
}

.en-products__scene.is-active .en-products__media .en-products__layer-wrap #ai-chat {
    left: 0;
}

#draw-fix {
    background-image: url("../images/home-showcase/home-indraw.gif");
}

#cms-fix {
    background-image: url("../images/home-showcase/home-cms.png");
}

#proj-fix {
    background-image: url("../images/home-showcase/home-proj-en.png");
}

#wms-fix {
    background-image: url("../images/home-showcase/home-wms.png");
}

#paper-fix {
    background-image: url("../images/home-showcase/home-paper.png");
}

#paper-pop {
    position: relative;
    left: 10%;
    top: 25%;
    transform: scale(0);
    transform-origin: left;
    background-image: url("../images/home-showcase/home-paper-pop.png");
    width: 30%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transition: transform ease 0.3s;
}

.en-products__scene.is-active .en-products__media .en-products__layer-wrap #paper-pop {
    transform: scale(1);
}

#sequence-fix {
    background-image: url("../images/home-showcase/home-seq.png");
}

#sequence-rotate {
    position: relative;
    left: 54%;
    top: 16%;
    width: 46%;
    aspect-ratio: 1 / 1;
    background-image: url("../images/home-showcase/home-seq-rotate.png");
    opacity: 0;
    transform: rotate(-90deg);
    transition: all ease 1s;
}

.en-products__scene.is-active .en-products__media .en-products__layer-wrap #sequence-rotate {
    opacity: 1;
    transform: rotate(0deg);
}

#pms-fix {
    background-image: url("../images/home-showcase/home-pms.png");
    animation: enProductSlowScrollBg linear 20s infinite;
}

.en-products__content {
    min-width: 240px;
    position: relative;
    z-index: 2;
}

.en-products__content h3 {
    color: #3B2F5C;
}

.en-products__content h5 {
    
}

.en-products__content p {
    margin: 16px 0;
    color: #5a4f73;
}

@media (max-width: 1023px) {
    .en-products__tab {
        flex: 0 0 20%;
    }
}

@media (max-width: 799px) {
    /* 居中对齐副标题 */
    .en-products__subtitle {
       text-align: center;
    }
    .en-products {
        margin: 48px 16px;
        width: calc(100% - 32px);
        gap: 20px;
    }

    .en-products__tab {
        flex: 0 0 33.33%;
    }

    .en-products__scene {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .en-products__content p {
        margin-bottom: 16px;
    }
    .en-mobile-btn {
        width: 88px;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .en-products__scene {
        animation: none;
    }

    #eln-scroll {
        animation: none;
    }
}

.button-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
}

.platform-downloads {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.online {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
}

.online:hover,
.online:focus,
.online:active {
    color: #303033;
    text-decoration: none;
}

.button-group {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.primary-btn {
    background-color: #7366FF;
    color: #fff;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.platform-download-btn {
    gap: 8px;
    height: 48px;
    width: 100%;
}

.button-tip {
    font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #7366FF;
    min-height: 18px;
}

.default-btn {
    border: 1px solid #DCDFE6;
    border-radius: 8px;
    color: #303033;
    background-color: #fff;
    cursor: pointer;
}
