body { background-color:#dfefef; font-size:16px; text-align: center; font-family: "Arial","微軟正黑體","Microsoft JhengHei", serif; }
img { width:100%; }
html * { max-height: 9999999px; }
a,button{transition: all .3s;}

/* 圖片cover */
.gbox { overflow: hidden; }
.gbox .wh { height:100% !important; width:auto !important; }
.gbox .ww { width:100% !important; height:auto !important; }

/* 正方形區塊 */
.SquareBase { position: relative; width:100%; padding-top:100%; }
.SquareBase .SquareArea { position: absolute; top:0px; left:0px; bottom:0px; right:0px; overflow: hidden; } 

.mtop { height:100px; }

/* topnb */
.topnb { position:fixed; top:0px; height:100px; background-color:#ffffff; width:100%; z-index:10; transition: top 0.3s; }
.topnb .logo { position: absolute; height:64px; top:18px; left:15px; z-index:100; }
.topnb .logo img {  max-height:64px; width:auto; }
/* .topnb .menu { position: relative; } */

.topnb > .container-fluid { padding:0; }
.topnb .menu { position: relative; }
.topnb .menu .navbar { }
.topnb .menu .nb { width:100%; }
.topnb .menu .nav-item { font-size:20px; font-weight:bold; }
.topnb .menu .nav-item a { color:#008ca4; text-decoration: none; }
.topnb .menu .nav-item a .sub,.top .topmenu .subject .content ul .submenu .sub{ font-size:0.875rem; }
.topnb .menu .nav-item a:hover { color:#cc9d58; }

.topnb .mbtns { position: absolute; top:0px; right:0px; }
.topnb .mbtns .mbtn { border:none; background-color:transparent; width:60px; height:80px;  color:#fff; }
.topnb .mbtns .mbtn:hover { }
.topnb .mbtns #topbtn.active { background-color:#008ca4; }


/* footer */
.footer { background-color:#fff; color:#474747; padding:20px 0px; }
.footer .container { max-width:1520px; }
.footer .cont { display:flex; font-size:0.9rem; }
.footer .cont > div { flex:1; }
.footer .cont a { color:#303030; text-decoration: none; }
.footer .cont .notice { text-align: left; }
.footer .cont .notice a:hover { border-bottom:1px solid #000; }
.footer .cont .design { text-align: right; }
.footer .cont .design a:hover { border-bottom:1px solid #000; }

.fill { background-color: #166678; }

/* sidebar */
.sidebar { position:fixed; right:0px; bottom:15%; background-color: #f0e34e; color:#1b1b1b; z-index:2; transition: right 0.3s; }
.sidebar > div { width:80px; transition: all .3s; }
.sidebar > div:hover { cursor: pointer; }
.sidebar .icon { font-size:1.5rem; }
.sidebar .icon img { width:auto; }
.sidebar .member { padding:10px 0px; }
.sidebar .member .name { font-size:0.75rem; }
.sidebar .totop { padding:28px 0px; }
.sidebar .totop { background-color:#289db1; color:#ffffff; }

/* bottombar */
.ctlbar { transition: bottom .3s; /*transition-delay: .5s;*/ }
.bottombar { position:fixed; bottom:0px; width:100%; display:flex; z-index:2; }
.bottombar > button { flex:1; padding:10px 0px 6px 0px; border:none; color:#1b1b1b; background-color: rgba(234,227,59,0.8); }
.bottombar .name { font-size:0.8rem; }
.bottombar .icon { font-size:1rem; }
.bottombar .icon img { width:auto; }
.bottombar .totop { background-color:rgb(25,151,173); opacity: 0.9; color:#fff; }
.bottombar > button:hover { cursor: pointer; }

/* modal */
.clickable { cursor: pointer; }
#searchModal .close { position: absolute; right:0px; top:-50px; color:#ffffff; text-shadow:none; opacity: 1; }
#searchModal .modal-dialog { margin:8rem auto; max-width:730px; }
#searchModal .modal-content { border-radius: 0; text-align: left; }
/* .modal .modal-body { padding:14px; } */
#searchModal .modal-body input { border:none; width:calc(100% - 40px); border-right:1px solid #c6c6c6; }
#searchModal .modal-body .fa-search { color:#554d46; width:30px; text-align: right; border:none; background-color:transparent; padding:0px; }
#searchModal .modal-body .fa-search:hover { color:#cc9d58; width:30px; text-align: right; border:none; background-color:transparent; padding:0px; }

/* buy car modal */
#buyCarModal .modal-dialog { width:300px; position: absolute; right:0; height:100%; margin:0; border-radius: 0; }
#buyCarModal .modal-header { background-color: #166678; border-top-left-radius: 0; border-top-right-radius: 0; }
#buyCarModal .modal-header .mTitle { margin:0 auto; color:#ffffff; }
#buyCarModal .closebc { position: absolute; left:-50px; color:#ffffff; border:none; background-color:transparent; font-size:0.8rem; }
#buyCarModal .closebc span { font-size:1.3rem; }
#buyCarModal .modal-content { height:100%; border-radius: 0; }
#buyCarModal .modal-body { position: relative; overflow-y:auto; }
#buyCarModal .bclist { padding:20px 0px; border-bottom:1px solid #f7f0e7; }
#buyCarModal .bcimg { height:100%; float:left; }
#buyCarModal .bcimg img { height:64px; width:64px; }
#buyCarModal .bcdes { float:right; width:calc(100% - 64px); padding-left:10px; text-align: left; }
#buyCarModal .bcdes .pType { color:#aeaeae; font-size:0.9rem; padding-top:15px; }
#buyCarModal .bcdes .pSum { font-size:0.8rem; line-height:24px; padding-top:20px; font-family: "Helvetica"; }
#buyCarModal .pPrice { color:#166678; font-size:0.8rem; font-family: "Helvetica";  }
#buyCarModal .num { font-size:1rem; }
#buyCarModal .total { text-align:left; padding-top:20px; color:#898989; }
#buyCarModal .modal-footer { border-top:none; }
#buyCarModal .nolist { padding-top:20px; }
button.send { width:100%; border:none; border-radius: 5px; background-color:#166678; color:#ffffff; padding:10px 0px; }
button.send:hover { background-color:#3996ac; }

::-webkit-input-placeholder{ color:#777777; }
/* scrollbar */
.topnb .menu *::-webkit-scrollbar{ display:none; }
.top .topmenu .subject::-webkit-scrollbar { display:none; }

/* product */
.product .pd a { display: block; overflow: hidden; }
.product .pd a img { transition: all .2s ease-out; }
.product .pd a:hover img { transform: scale(1.1);  }



@media (min-width:1200px){
    .bottombar { display: none; }

    .topnb .menu .navbarItems .dp_menu { display: none; }
    .topnb .menu .nav-item a { display:flex; align-items:center; justify-content:center; height:100px; padding:0 18px; }
    .topnb .menu .nav-item a:hover { color:#fff; background-color:#008ca4; } 
}

@media (max-width:1199.98px){
    .mtop { height:60px; }
    .sidebar { display: none; }

    /* .topnb .menu .topbtn { width:60px; height:60px; background-color:#000000; border-radius: 0px; } */


    .topnb { height:60px; }
    .topnb .logo { left:20px; top:50%; transform:translate(0,-50%); height:60px; }
    .topnb .logo img {  height:40px; margin-top:10px; }
    .topnb .container-fluid { max-width:100%; }
    .topnb .menu .navbarItems { position: absolute; width:100%; top:60px; background-color:#ededed; transition:all .3s ease-out; }
    .topnb .menu .navbarItems ul { list-style-type: none; position: absolute; padding:0px; width:100%; transition: all .3s ease-out; }
    .topnb .menu .navbarItems .nav-item,
    .topnb .menu .navbarItems .bk { padding:15px 0px; margin:0px 60px; font-size:1.25rem; border-top:1px solid #dddddd; list-style-type: none; text-align:left; }
    .topnb .menu .navbarItems .bk { border-top:none; }

    .topnb .menu .navbarItems > div { padding:60px 0px; height:calc(100vh - 60px); }
    .topnb .menu .navbarItems a { color:#023241; text-decoration: none; }
    .topnb .menu .navbarItems .icon { float:right; padding:2px 0px; padding-right:15px; font-size:2rem; color:#fff; }

    .topnb .menu .nav-item a { padding:0px; }
    .topnb .menu .nav-item .name { color:#008ca4; font-size:1.5rem; padding-bottom: 4px; }
    .topnb .menu .nav-item .date { color:#5c5c5c; font-size:1.25rem; }

    .topnb .menu .dp_menu { display:none; position: absolute; top:0px; width:100%; transition: all .3s ease-out; }
    .topnb .menu .dp_menu .bk a { color:#ababab; }

    .topnb .mbtns .mbtn { width:60px; height:60px; background-color:#008ca4; color:#fff; border-radius: 0px; }
    
}

@media (min-width:992px) and (max-width:1199.98px){
    /* .topnb .logo img {  max-height:54px; margin:3px 0px; } */
}

@media (min-width:768px) and (max-width:991.98px){

}

@media (min-width:768px){
    

    /* .footer .content .design { display:none; } */
    .footer .content .design { text-align: right; margin-right:60px; }
}

@media (max-width:767.98px){
    
    .topnb .menu .navbarItems .nav-item,
    .topnb .menu .navbarItems .bk { padding:15px 0px; margin:0px 30px; font-size:1.25rem; }
    .topnb .menu .navbarItems .icon { font-size:1.5rem; padding:3px 0px; padding-right:15px; }

    .topnb .menu .nav-item .name { font-size:1rem; }
    .topnb .menu .nav-item .date { font-size:1rem; }

    .bottombar > div { padding:15px 0px; }
    .bottombar .icon { font-size:1rem; }
    .bottombar .name { font-size:0.7rem; }
    .bottombar .totop { padding:12px 0px; }
    .bottombar .buycar .num { top:-8px; right:-8px; width:16px; height:16px; line-height:16px; font-size:0.6rem; }

    .footer { padding:30px 0px; }
    .footer .cont { display:block; }
    .footer .cont .notice,
    .footer .cont .design { text-align: center; }
    .footer .cont > div:not(:last-child) { margin-bottom:5px; }

    .modal .modal-dialog { margin:8rem auto; max-width:540px; width:90%; }
    
}