
/* ========== 二级菜单：移动端 dropdown，PC 保持横排 tab ========== */
.subnav-mobile {
    display: none;
}

.subnav-desktop {
    display: flex;
}

@media (max-width: 1023px) {
    .subnav-mobile {
        display: block;
    }

    .subnav-desktop {
        display: none;
    }
}

.subnav-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.subnav-dropdown.is-open {
    max-height: 400px;
    opacity: 1;
}

.subnav-trigger .arrow {
    transition: transform 0.3s ease;
    transform: translateY(-50%);
    top: 50%;
}

.subnav-trigger[aria-expanded="true"] .arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ========== 视频巨幕：移动端流式 16:9，PC 与原版一致 600x337（由 GSAP 接管放大） ========== */
#factory-video-wrapper {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
    #factory-video-wrapper {
        width: 600px;
        height: 337px;
        max-width: none;
        aspect-ratio: auto;
    }
}

/* ========== 地图弹窗：移动端左移回收进屏；轮播激活态需带 translate（style.css 的 .map-pin-active 会覆盖 transform） ========== */
@media (max-width: 1023px) {
    .map-pin-active>div>div {
        transform: translateX(-68%) scale(1) !important;
    }
}