:root {
    --screen: min(100vw, 500px);
    font-size: calc((var(--screen) / 460) * 10);
    --app-height: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, "Microsoft YaHei", 微软雅黑, sans-serif;
    height: 100dvh;
    height: var(--app-height);
    width: 100%;
    background: #12142c;
    box-sizing: border-box;
    overflow: hidden;
}



a {
    text-decoration: none;
    transition: 0.2s;
}

p {
    margin: 0;
}

img {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
}

div {
    /* box-sizing: border-box; */
}

.w750 {
    width: min(100%, 750px);
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.container {
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: min(95vw, 700px);
    width: 100%;
    bottom: 0%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: min(3.5vw, 50px);
}

/* 影片 */
.banner {
    width: 100%;
    max-height: 100vh;
    height: 100dvh;
    /* height: var(--app-height); */
    overflow: hidden;
    object-fit: cover;
}

.banner video {
    width: 100%;
    pointer-events: none;
    display: block;
    object-fit: cover;
    object-position: 50% 0%;
    margin: 0 auto;
    height: 100%;
    position: absolute;
    top: 0;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        margin-top: -20px;
    }

    100% {
        opacity: 1;
        margin-top: 0;
    }
}

/* logo */
.logoBox {
    position: absolute;
    z-index: 1;
    top: 28%;
    width: 100%;
}

.logo {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.logo img {
    width: min(48vw, 354px);
}


.sub01,
.sub02 {
    color: #fff;
    text-transform: uppercase;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, .8);
}

.sub01 {
    font-weight: bold;
    font-size: min(4vw, 32px);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sub02 {
    font-size: min(2.0vw, 15px);
    letter-spacing: -0.2px;
}

/* 選單 */
.menuBox {
    width: min(95vw, 100%);
    width: 100%;
    border-radius: min(2.8vw, 45px);
    padding: min(3vw, 30px) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu {
    color: #a6a7c5;
    width: min(calc(100% / 2 - 1.6rem), 315px);
    height: min(6vw, 70px);
    height: 6rem;
    background: #080a23;
    border: 2px solid #15579a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: min(1.5vw, 1.3rem);
    font-size: 1.65rem;
    transition: 0s;
    position: relative;
    cursor: pointer;
    margin: .4rem;
    font-weight: 600;
}

.menu_flex {
    display: grid;
    align-items: center;
    grid-template-columns: 70px auto;
    width: 90%;
    justify-items: center;
}

.menuIcon_h {
    display: none;
}

.menuText01 {
    color: #a6a7c5;
}

.menu:hover {
    color: #fff;
    border: 2px solid #00a2ff;
    box-shadow: inset 1px 1px 5px #378eff, inset -1px -1px 5px #378eff, -1px -1px 8px #378eff, 1px 1px 8px #378eff;
    background: linear-gradient(#225b98, #080a23);
}

.menu:hover .menuText01 {
    color: #fff;
}

.menu:hover .menuIcon {
    filter: initial;
}

.menuPop {
    /* display: none; */
    border: 2px solid #15579a;
    border-radius: 1.5rem;
    padding: min(1.5rem, 20px);
    background: rgba(0, 0, 0, .9);
    position: absolute;
    bottom: 135%;
    margin-bottom: -15px;
    pointer-events: none;
    opacity: 0;
    width: auto;
    z-index: 5;
}

.menuPop01 {
    /* display: block; */
    width: min(95vw, 500px);
    left: 0;
    box-sizing: border-box;
}

.menuPop:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    bottom: -24px;
    background: url(../img/popArrow.png) 50% 0% no-repeat;
    background-size: 24px auto;
}

/* .menu:hover .menuPop, */
.menuPop.active {
    opacity: 1;
    transition: .2s;
    margin-bottom: 0;
    pointer-events: initial;
}

/* @media screen and (min-width: 750px) {
    .menu:hover .menuPop {
        opacity: 1;
        transition: .2s;
        margin-bottom: 0;
        pointer-events: initial;
    }
} */


.menuPop.active {
    opacity: 1;
    transition: .2s;
    margin-bottom: 0;
    pointer-events: initial;
}


/* menu彈窗01_跳轉彈窗 */

.webTitle {
    font-weight: normal;
    font-size: 1rem;
    text-align: center;
    display: block;
}

.webTitleImg {
    margin: 8px 0;
    width: min(37vw, 509px);
}

.webBox {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: grid;
    grid-template-columns: 15% 65% 20%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.webBox:nth-last-of-type(1),
.subMenu:nth-last-of-type(1) {
    margin-bottom: 0;
}

.ms {
    border: 1px solid #15579a;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: min(3.5vw, 1.1rem);
    font-size: 1.4rem;
    font-weight: normal;
}

.sign {
    width: min(1.5vw, 7px);
    height: min(1.5vw, 7px);
    border-radius: 50px;
    background: #6bf63a;
    margin-right: 2px;

}

.webArrow {
    margin-right: 18px;
}

.webArrow img {
    width: min(4vw, 19px);
}

.website {
    background: linear-gradient(#173669, #0a0c26, #132c54);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: normal;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
}

.webBtn {
    color: #a6a7c5;
    background: linear-gradient(#204369, #080a23, #204369);
    box-shadow: inset 1px 1px 5px #378eff, inset -1px -5px 8px #3366a8;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    /* font-size: min(3.8vw, 1.1rem); */
    font-size: 1.4rem;
}

.webBtn:hover {
    color: #fff;
    background: linear-gradient(#356eff, #002acc, #356eff);
    box-shadow: inset 1px 1px 5px #378eff, inset -1px -1px 5px #378eff;
}


/* menu彈窗03_跳轉彈窗 */
.subMenu {
    color: #a6a7c5;
    background: #1c1f3b;
    padding: min(.9rem, 9px) min(1.8rem, 18px);
    border-radius: 8px;
    width: 100%;
    text-align: center;
    font-size: min(3.5vw, 1.6rem);
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #00a2ff00;
    margin-bottom: 8px;
    display: grid;
    align-items: center;
    grid-template-columns: 40px auto;
    width: 100%;
    justify-items: center;
    box-sizing: border-box;
}

.subMenu:hover {
    color: #fff;
    border: 1px solid #00a2ff;
    box-shadow: inset 1px 0px 4px #378eff, inset -1px 0px 4px #378eff, -1px -1px 5px #378eff, 1px 1px 5px #378eff;
    background: linear-gradient(#225b98, #080a23);
}

.subMenu:hover img {
    filter: brightness(2) contrast(2);
}

.subMenu img {
    height: 2.3rem;
    margin-right: 5px;
}

.subMenu img.menu04-2 {
    height: 2.3rem;
}

.QR {
    width: min(45vw, 200px);
}

.download {
    display: inline-block;
}

.download img {
    width: min(95vw, 100%);
    margin: 0 auto;
    display: inline-block;
}

@media screen and (max-height: 900px) {
    .w750 {
        width: 500px;
    }

    .logo img {
        width: min(25vh, 354px);
    }

    .banner video {
        top: -50px;
    }

    .container {
        padding: 12px;
    }

    .sub01 {
        font-weight: bold;
        font-size: min(2.1vh, 32px);
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .sub02 {
        font-size: min(1.08vh, 15px);
        letter-spacing: -0.2px;
    }

    .menu {
        font-size: 15px;
        height: 7vh;
    }

    .menu_flex {
        grid-template-columns: 50px auto;
    }

    #menu01 .menuIcon,
    #menu02 .menuIcon,
    #menu01 .menuIcon_h,
    #menu02 .menuIcon_h {
        width: 2.4rem;
    }

    #menu03 .menuIcon,
    #menu03 .menuIcon_h,
    #menu04 .menuIcon,
    #menu04 .menuIcon_h {
        height: 2.5rem;
    }

    .subMenu {
        font-size: 15px;
    }
}

@media screen and (max-height: 812px) and (max-width: 375px) {
    .banner video {
        height: 90%;
    }

}

@media screen and (max-width: 460px) {
    .w750 {
        width: min(100%, 750px);
    }

    .logo {
        top: 28%;
    }

    .banner video {
        top: 0;
    }

    #menu01 .menuIcon,
    #menu02 .menuIcon,
    #menu01 .menuIcon_h,
    #menu02 .menuIcon_h {
        width: 2.7rem;
    }

    #menu03 .menuIcon,
    #menu03 .menuIcon_h,
    #menu04 .menuIcon,
    #menu04 .menuIcon_h {
        height: 3rem;
    }

    .menuText01 {
        font-size: 1.5rem;
        letter-spacing: -0.7px;
    }

    .menu_flex {
        width: 95%;
        grid-template-columns: 4.5rem auto;
    }

    .menuPop01 {
        width: 90vw;
    }

    #menu01 .menuPop:before,
    #menu03 .menuPop:before {
        background-position: 20% 0;
    }

    #menu02 .menuPop:before,
    #menu04 .menuPop:before {
        background-position: 80% 0;
    }

    #menu02 .menuPop,
    #menu04 .menuPop {
        right: 0;
    }

    /* .menu:hover .menuPop {
      
    } */
}