@import "reset.css";

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    opacity: 1;
    width: 35px; /* 調整按鈕的寬度 */
    height: 60px;
    margin-right:3px; /* 調整按鈕與輸入框的間距 */
    background: url("/images/common/arrow.png") no-repeat center; /* 設置按鈕的背景顏色 */
    background-size: cover;
    border: none; /* 去掉按鈕的邊框 */
    cursor: pointer; /* 將鼠標指針設置為手型 */
    border-radius: 5px; /* 按鈕圓角*/
}

.container{
    position: relative;
    width: 1160px;
    margin: auto;
    display: flex;
    flex-direction: column
}
a{
    color: white;
    padding: 0 15px;
}
input{
    border: none;
}
/*nav*/
.nav{
    background: #161A1D;
}
.nav .container{
    flex-direction: row;
    justify-content: space-between;
}
.nav-logo{
    padding: 8px 0;
}
.nav-menu{
    width:600px ;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 18px;
}
.menu-item:hover{
    color: #00b4f1 ;
}
.menu-item:active{
    color: #CF1F1F;
}
.nav-contact-link{
    color: #ffffff;
    background: #CF1F1F;
    padding: 11px 53px;
    border-radius: 5px;
}
.nav-contact-link:hover{
    color: #000000;
    background: #ffffff;
}
.nav-contact-link:active{
    color: #CF1F1F;
    background: #ffffff;
}

.icon-bar { display: block; width: 51px; height: 3px; border-radius: 5px;
    background-color: #4bd8ff; margin: 17px;
    -webkit-transition: background-color .35s,-webkit-transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);
    transition: background-color .35s,transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);
    -webkit-transform: translateY(0)translateZ(0);
    transform: translateY(0)translateZ(0);}
.root_menu_closed .icon-bar:first-child {
    -webkit-transform: translateY(9px)rotate(45deg);
    -ms-transform: translateY(9px)rotate(45deg);
    transform: translateY(19px)rotate(45deg);
}
.root_menu_closed .icon-bar:nth-child(2) {opacity: 0;}
.root_menu_closed .icon-bar:last-child {
    -webkit-transform: translateY(-9px)rotate(-45deg);
    -ms-transform: translateY(-9px)rotate(-45deg);
    transform: translateY(-21px)rotate(-45deg);
}
.top_menu { 
    top: 2.8%;
    left: 5%;
    display: none;
    position: fixed;
    z-index: 201;
    cursor: pointer;
    font-size: 12px;
    background-color:rgba(0, 0, 0, 0.8);
    padding:3px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
/*footer*/
.footer{
    background: #ffffff url("/images/common/footbg.png") top center no-repeat;
}
.footer .contact{
    border-radius: 52px;
    display: flex;
    width: auto;
    align-items: center;
    margin: 291px auto 47px ;
    padding: 13px 40px 13px 40px;
    font-size: 24px;
    font-weight: bold;
    background: #CF1F1F;
    position: relative;
}
.footer .contact:hover{
    color: #000;
}
.footer .contact:active{
    background: #000;
    color: #fff;
}
.footer .contact img{
    padding: 0 9px 0 0 ;
}
.footer .copy-right{
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1.5;
    background: #161A1D;
}

.footer .footer-bottom{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: #161A1D;
}

.footer .footer-mail{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #161A1D;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1.5;
    position: absolute;
    bottom: 15px;
    right: 30px;
}

.footer .footer-mail img{
    display: block;
    width: 20px;
}

.pc-swiper{
    display: block !important;
}

.mobile-swiper{
    display: none !important;
}

@media only screen and (max-width: 992px){
    .pc-swiper{
        display: none !important;
    }
    .mobile-swiper{
        display: block !important;
    }
    .nav .container{
        /* height: 18vw; */
    }
    .container{
        width: 100vw;
        /* min-width: 780px; */
    }
    .nav-logo{
        margin: auto;
    }
    .nav-logo a{
        display: block;
        height: auto
    }
    .nav-logo img {
        display: block;
        width: 40vw;
        margin: auto;
    }
    .nav-menu{
        display: none;
    }
    .icon-bar{
        width: 6vw;
        height: 2px;
        margin: 1.5vw;
    }
    .root_menu_closed .icon-bar:first-child {
        transform: translateY(2vw) rotate(45deg);
    }
    .root_menu_closed .icon-bar:last-child {
        transform: translateY(-2vw) rotate(-45deg);
    }
    .menu_open{
        width: 100vw;
        height: 100vh;
        position: fixed;
        display: block;
        z-index: 9;
        background: #0000007F;
    }
    .gap-layer{
        width: 60vw;
        position: fixed;
        background: #000000cc;
        z-index: 10;
        top: 18vw;
        left: 5vw;
    }
    .menu_open .menu-item{
        width: 50vw;
        font-size: 5vw;
        display: block;
        box-sizing: border-box;
        margin: 2vw auto ;
        padding: 5vw 5vw ;
        text-align: left;
        border-radius: 2vw;
    }
    .top_menu { 
        display:block;
        top: 2.2vw;
        left: 3vw;
    }

    .footer .copy-right{
        font-size: 3vw ;
        line-height: 1.5;
        letter-spacing: 0.2vw;
    }

    .footer .container{
        position: relative;
        height: 50vw;
    }

    .footer{
        background: #ffffff url("/images/common/footbgmobile.png") top center no-repeat;
        background-size: 100% auto;
    }

    .footer .contact{
        width: 55vw;
        font-size: 4vw;
        padding: 2vw 5vw;
        box-sizing: border-box;
        background: #CF1F1F;
        position: absolute;
        top: 85%;
        left: 50%;
        transform: translate(-50%,-50%);
        margin: 0;
    }

    .footer .footer-bottom{
        padding: 2vw 0;
    }
    .footer .footer-mail{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1vw;
        background: #161A1D;
        color: #ffffff;
        font-size: 3vw ;
        line-height: 1.5;
        letter-spacing: 0.2vw;
        position: relative;
        bottom: auto;
        right: auto;
        padding: 1vw 0;
    }
    .footer .footer-mail img{
        display: block;
        width: 5vw;
    }

}
