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;
}

a {
    text-decoration: none;
    transition: 0.2s;
}

p {
    margin: 0;
}

img {
    line-height: 0;
    font-size: 0;
    margin: 0;
    padding: 0;
}

.container {
    margin: 0 0 0 auto;
    max-width: 1400px;
    width: 1400px;
    height: calc(100% - 100px);
    position: relative;
    padding: 70px 0 0 0;
    /* transition: 1s; */
}

/* 視覺 */
.main {
    background: #eee;
    display: inline-block;
    float: left;
    background: url(../img/main.png) 0% 20px no-repeat;
    background-size: 100% auto;
    max-width: 942px;
    width: 942px;
    height: 100%;
    /* width: 49vw; */
    transition: .5s;
    position: relative;
}


/* menu */
.menu {
    text-align: center;
    display: inline-block;
    position: absolute;
    right: 200px;
    transition: .4s;
}

.logo {
    margin: 0 0 25px 0;
    height: 160px;
}

.logo_m {
    display: none;
    transition: .2s;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu ul li a {
    width: 309px;
    height: 66px;
    display: inline-block;
    margin: 9px 0;
}

.menu ul li:nth-of-type(1) a {
    background: url(../img/menu01.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(1) a:hover {
    background: url(../img/menu01_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: 100% auto;
}

.menu ul li:nth-of-type(2) a:hover {
    background: url(../img/menu03_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(3) a {
    background: url(../img/menu04.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(3) a:hover {
    background: url(../img/menu04_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(4) a {
    background: url(../img/menu05.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(4) a:hover {
    background: url(../img/menu05_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(5) a {
    background: url(../img/menu06.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(5) a:hover {
    background: url(../img/menu06_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(6) a {
    background: url(https://dh4005.com/img/menu07.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.menu ul li:nth-of-type(6) a:hover {
    background: url(https://dh4005.com/img/menu07_h.png) 50% 50% no-repeat;
    background-size: 100% auto;
}

.website {
    margin-top: 20px;
}

footer {
    text-align: center;
    color: #a4acb4;
    line-height: 50px;
    font-size: .85rem;
    /* letter-spacing: .2px; */
    width: 100%;
    height: 50px;
    background: #353f4b;
    position: absolute;
    bottom: 0;
}


/* 導航彈窗 */
.guid_box {
    display: none;
    text-align: center;
    position: fixed;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
    z-index: 5;
}

.close {
    position: absolute;
    right: 12%;
    top: 5%;
}

.close img {
    width: 6vw;
}

.guid {
    width: 80%;
}

/* 公告 */
.pop_box{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn .5s  ease forwards;
    opacity: 0;
    transition: 2s;
}
@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.pop_container{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 750px;
    transform: translate(-50%,-50%);
}
.pop{
    position: relative;
    border: 1px solid #fff;
    width: 100%;
}
.pop_close{
    position: absolute;
    top: -35px;
    right: -35px;
}
.pop_bg{
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
}

/* RWD */

@media screen and (min-width: 1650px) {
    .container {
        margin: 0 auto;
    }
    .menu {
        text-align: center;
        display: inline-block;
        position: absolute;
        right: 160px;
        transition: .4s;
    }
}

@media screen and (max-width: 1500px) {
    .container {
        width: 85%;
        margin: 0 auto;
    }

    .main {
        margin: 0 0 0 25px;
        /* width: 67.2%; */
        width: 66vw;
    }

    .menu {
        right: 3vw;
        transform: scale(.92);
        transform-origin: 50% 0%;
    }
}
@media screen and (max-width: 1400px){
    .menu{
        right: 4vw;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        width: 90%;
        padding: 50px 0 0 0;
    }

    .menu {
        transform: scale(.85);
    }
}



@media screen and (max-height: 800px) {
    .container {
        width: 85%;
        padding: 30px 0 0 0;
        height: calc(100% - 30px);
    }

    .main {
        width: 62vw;
    }

    .menu {
        /* right: 0; */
        transform: scale(.85);
    }
}

@media screen and (max-width: 1024px) {

    html,
    body {
        height: auto;
        background-position: 85% 50%;
    }

    .container {
        text-align: center;
        padding: 30px 0 0 0;
    }

    .logo_m {
        display: block;
        margin: 0 auto;
        height: 80px;
    }

    .main {
        width: 100%;
        height: 50vw;
        max-height: 450px;
        margin: 0 auto;
        background: url(../img/main_m.png) 50% 0 no-repeat;
        background-size: contain;
    }

    .logo {
        display: none;
    }

    .menu {
        position: initial;
        transform: scale(.8);
        transition: 0s;
        margin: 0 0 -30px 0;
    }

    /* footer {
        position: initial;
    } */
}
@media screen and (max-width: 900px){
    .pop_container{
        width: 85%;
    }
}
@media screen and (max-width: 750px){
    .main {
        max-height: 371px;
    }
}
@media screen and (min-height: 800px) {

    html,
    body {
        height: 100%;
    }
}

@media screen and (max-width: 450px) {

    html,
    body {
        background: url(../img/BG_m.png) 50% 50% no-repeat;
        background-size: cover;
        position: relative;
    }

    .logo_m {
        height: 65px;
        transition: 0s;
    }

    .container {
        width: 100%;
        padding: 20px 0 0 0;
        transition: 0s;
        overflow: hidden;
        height: calc(100% - 30px);
    }

    .main {
        display: block;
        width: 100%;
        height: auto;
        padding-top: 54%;
        transition: 0s;
    }

    .menu {
        margin: 0px 0 -65px 0;
        height: auto;
        overflow: hidden;
        transform: scale(.7);

    }

    footer {
        font-size: .8rem;
        position: initial;
    }
    .pop_box{
        bottom: 0;
    }
    .pop_container{
        width: 90%;
        transform: translate(-50%,-80%);
    }
    .pop_close{
        top: -40px;
        right: -10px;
    }

}

@media screen and (max-width: 375px) {
    .menu {
        transform: scale(.75);
    }
}

@media screen and (max-width: 340px) {
    .logo_m {
        height: 60px;
    }

    .container {
        height: auto;
    }

    .menu {
        transform: scale(.7);
    }

    footer {
        font-size: .75rem;
    }
}

@media screen and (max-width: 320px) {
    .menu {
        transform: scale(.6);
    }
}















.menu .navi > li .jsBox {
    width: 152%;
    position: absolute;
    right: 100%;
    top: 83%;
    display: none;
    box-sizing: border-box;
    border: 3px solid rgb(83, 188, 244);
    background:#fff;
    background-origin: border-box;
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%); z-index:999999;
	border-radius: 10px;
}
.menu .navi > li:hover .jsBox {
    display: block;
}


.popup-content:before {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 25%;
    transform: translateX(-50%);
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid white;
    z-index: 1;
}



.menu .navi > li .jsBox ul {
    padding:20px; padding-bottom:0;
}
.menu .navi > li .jsBox li {
    margin-bottom:20px;
    overflow: hidden;
    zoom: 1;
}
.menu .navi > li .jsBox li .ms1 {
    display: block;
    float: left;
    color: #000;
    border: 1px solid #99ccff;
    font-size: 16px;
    line-height:45px;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
	border-radius: 3px; font-weight:bold;
}
.menu .navi > li .jsBox li .url {
    display: block;
    float: left;
    color: #000;
    border: 1px solid #99ccff;
    font-size:16px;
    line-height:45px;
    text-align: center;
    background: #fff;
    box-sizing: border-box;
    border-radius: 3px; font-weight:bold;
}
.menu .navi > li .jsBox li .ms1 {
    width:80px;
}
.menu .navi > li .jsBox li img {
    margin: 20px 10px 0 10px;
    width:30px;
    display: block;
    float: left;
	
}
.menu .navi > li .jsBox li .url {
    width: 220px;
    height:45px;
}
.menu .navi > li .jsBox li a {
    width:120px;
    display: block;
    float: right;
    color: #fff;
    border-image-source: linear-gradient(to bottom, #7e331e, #7e331e);
    border-image-slice: 1;
    background-image: linear-gradient(to bottom, #5AC0FF, #56B2F3 50%, #3C9AF1 97%), linear-gradient(to bottom, #fff, #3C9AF1);
    background-origin: border-box;
    font-weight: bold;
    font-size:16px; margin:0px;
    line-height:45px; height:45px;
    text-align: center;
    border-radius: 3px;
}
.menu .navi > li .jsBox .arrow {
  
    width:11px;
    position: absolute;
    right:-12px;
    top:20px;
}
