html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Microsoft YaHei", 微软雅黑, sans-serif;
    height: 100%;
    /* max-height: 100%; */
    width: 100%;
    background: url(../img/BG.png) 80% 50% no-repeat;
    background-size: cover;
    box-sizing: border-box;
}
* {
    box-sizing: border-box;
}
a {
    text-decoration: none;
    transition: 0.2s;
}

p {
    margin: 0;
}

img {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
}

.container {
    margin: 0 auto;
    max-width: 1400px;
    width: 90%;
    height: calc(100% - 100px);
    /* display: grid;
    grid-template-columns: 946px auto; */
    position: relative;
    padding: 85px 0 0 0;
    /* transition: 1s; */
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 30px;
}
/* 視覺 */
.main {
    background: #eee;
    display: block;
    background: url(../img/main.png) center center no-repeat;
    background-size: contain;
    max-width: 865px;
    width: 60%;
    height: 100%;
    /* width: 49vw; */
    transition: 0.5s;
    position: relative;
}

/* menu */
.menu {
    text-align: center;
    transition: 0.4s;
    /* margin-top: 15px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
}
.logo {
    width: 100%;
    max-width: 318px;
}
.logo_m {
    display: none;
    transition: 0.2s;
}
.menu > ul {
    list-style: none;
    padding: 0;
    height: 60%;
    width: 318px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu > ul > li {
    aspect-ratio: 53/12;
    height: 72px;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.menu > ul > li > a {
    width: 100%;
    height: 100%;
    display: block;
}
.menu ul li:nth-of-type(1) a {
    background: url(../img/menu01.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(1) a:hover {
    background: url(../img/menu01_h.png) 50% 50% no-repeat;
    background-size: contain;
}
/*.menu ul li:nth-of-type(2) a {
    background: url(../img/menu02.png) 50% 50% no-repeat;
    background-size: 100% auto;
}
.menu ul li:nth-of-type(2) a:hover {
    background: url(../img/menu02_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}*/
.menu ul li:nth-of-type(2) a {
    background: url(../img/menu03.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(2) a:hover {
    background: url(../img/menu03_h.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(3) a {
    background: url(../img/menu04.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(3) a:hover {
    background: url(../img/menu04_h.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(4) a {
    background: url(../img/menu05.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(4) a:hover {
    background: url(../img/menu05_h.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(5) a {
    background: url(../img/menu06.png) 50% 50% no-repeat;
    background-size: contain;
}
.menu ul li:nth-of-type(5) a:hover {
    background: url(../img/menu06_h.png) 50% 50% no-repeat;
    background-size: contain;
}

li {
    position: relative;
}

li:nth-child(2) .jsBox2 .sub::after {
    width: 6px;
    height: 8px;
    position: absolute;
    right: -8px;
    top: 158px;
    background: url(../img/arrow.png) no-repeat;
    content: "";
}

li:nth-child(3) .jsBox2 .sub::after {
    width: 6px;
    height: 8px;
    position: absolute;
    right: -8px;
    top: 75px;
    background: url(../img/arrow.png) no-repeat;
    content: "";
}

li:nth-child(4) .jsBox2 .sub::after {
    width: 6px;
    height: 8px;
    position: absolute;
    right: -8px;
    top: 75px;
    background: url(../img/arrow.png) no-repeat;
    content: "";
}

.jsBox2::after {
    content: "";
    display: block;
    width: 50px;
    height: 100%;
    position: absolute;
    right: -50px;
    top: 0px;
}
li:hover .jsBox2,
.jsBox2:hover {
    display: block;
}

li:nth-child(2) .jsBox2 {
    top: -128px;
}

li:nth-child(3) .jsBox2 {
    top: -45px;
}

li:nth-child(4) .jsBox2 {
    top: -45px;
}

li .jsBox2 {
    position: absolute;
    width: 161px;
    margin-left: -156%;
    top: 0px;
    display: none;
    box-sizing: border-box;
}
.jsBox2 .sub {
    padding: 4%;
    position: relative;
    border: 2px solid #5abcf8;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
}
.jsBox2 .linkUl {
    width: 100%;
    padding: 0;
}
.jsBox2 .linkUl li {
    width: 100%;
    margin-top: 5px;
    zoom: 1;
    display: flex;
    flex-direction: column;
}

.jsBox2 .linkUl li:first-child {
    margin-top: 0px;
}

.jsBox2 .linkUl li img {
    /* margin: 12px 9px 0 0; */
    display: block;
    /* float: left; */
    width: 100%;
}

.jsBox2 .linkUl li .qr_title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    margin-top: 5px;
    color: #43cbfd;
}

.jsBox2 .linkUl li .qr_title img {
    display: inline-block;
    width: 16px;
    margin-right: 5px;
}

.website {
    display: block;
}

footer {
    text-align: center;
    color: #353f4b99;
    font-size: 0.85rem;
    /* letter-spacing: .2px; */
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
    padding: 5px;
}

/* RWD */

@media screen and (min-width: 1650px) {
    .container {
        margin: 0 auto;
    }
}

@media screen and (max-width: 1500px) {
    .container {
        width: 85%;
        margin: 0 auto;
    }
    .main {
        margin: 0 0 0 25px;
        /* width: 67.2%; */
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    html,
    body {
        /* height: auto; */
        background-position: 85% 50%;
        background-color: #cbe6ff;
    }
    .container {
        padding: 3% 0 0 0;
        flex-direction: column;
        aspect-ratio: 1 / 23;
        height: 94%;
        display: flex;
        width: 100%;
    }
    .logo_m {
        display: block;
        margin: 0 auto;
        height: 10%;
    }
    .main {
        height: 30%;
        max-height: 352px;
        margin: 0 auto;
        background: url(../img/main_m.png) center center no-repeat;
        background-size: contain;
    }
    .logo {
        display: none;
    }
    .menu {
        position: relative;
        transition: 0s;
        height: 60%;
        width: 100%;
    }
    .menu > ul {
        /* width: 60%; */
        height: 80%;
        padding: 0px;
        margin: 2%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .menu > img {
        height: 20%;
    }
    .menu > ul > li {
        width: 70%;
        height: 100%;
        margin-bottom: 3%;
    }
    li .jsBox2 {
        display: none;
    }

    li:hover .jsBox2 {
        display: none;
    }
    footer {
        height: 4%;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin: 0;
        padding: 0;
    }
    .website {
        /* width: 60%; */
        height: 13%;
        max-width: 100%;
        max-height: 100%;
    }
    .website img {
        height: 100%;
    }
}
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) or (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    .menu > ul {
        width: 55%;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    .menu > ul {
        width: 55%;
    }
}
