@media screen and (max-width:599px){
    #gotop {
        display: none!important;
    }
}
p {
    font-size: 14px;
    color: rgb(117, 145, 155);
    line-height: 1.8em;
}
.btn {
    display: inline-block;
    margin-top: 40px;
    padding: 2px 25px;
    background-color: rgb(167, 208, 223);
    color: rgb(78, 67, 67);
    text-decoration: none;
}
.fixed-width {
    width: 100%;
}
[class*="col"] {
    width: 100%;
    padding: 15px;
}
/* ↑選擇html裡面，頭一個字有"col"的字樣的類別更改其樣式 */

/* NAV */
nav {
    line-height: 50px;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
}
nav .logo {
    color: rgb(205, 205, 205);
    padding-left: 30px;
}
nav .menu {
    display: none;
}
nav li {
    border-bottom: 1px solid #000;
}
nav a {
    color: rgb(201, 200, 200);
    text-decoration: none;
    display: block;
    padding: 0 20px;
}
nav .search {
    display: none;
}
nav .toggler {
    float: right;
    width: 50px;
    height: 50px;
    position: relative;
}
nav .toggler span {
    display: block;
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: rgb(176, 176, 176);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}
nav .toggler span::before {
    content: "";
    display: block;
    position: absolute;
    width: 34px;
    height: 2px;
    background-color: rgb(176, 176, 176);
    top: 0;
    right: 0;
    bottom: 20px;
    left: -6px;
    margin: auto;
    transition: all .3s;
}
nav .toggler span::after {
    content: "";
    display: block;
    position: absolute;
    width: 13px;
    height: 2px;
    background-color: rgb(176, 176, 176);
    top: 0;
    right: 0;
    bottom: -20px;
    left: 0px;
    margin: auto;
    transition: all .3s;
}
nav .togglerX span {
    display: block;
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: rgb(176, 176, 176);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}
nav .togglerX span::before {
    width: 13px;
    left: 0px;
}
nav .togglerX span::after {
    width: 34px;
    left: -5px;
}
/* HEADER */
header {
    height: 600px;
    background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)),
    url(../images/bg1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: table;
}
header h1 {
    font-size: 1.5em;
    color: rgb(252, 250, 250);
    letter-spacing: 2px;
}
header p {
    color: rgb(252, 250, 250,0.8);
    font-size: 0.5em;
    margin-bottom: 30px;
}
header .fixed-width {
    display: table-cell;
    vertical-align: middle;
    text-align:center;
}
/* SERVICE */
#service {
    padding-top:100px;
    padding-bottom: 100px;
}
#service h2 {
    text-align: center;
}
#service i {
    display: block;
    background-color: rgb(33, 179, 233);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius:20%;          /* 將矩形變成圓形 */
    color: rgb(255, 255, 255);
    margin: auto;
}
#service h3 {
    margin-bottom: 13px;
}
#service .col-4 {
    margin-top: 10px;
    margin-bottom: 40px;
    text-align: center;
}
/* HISTORY */
#history {
    padding-top: 150px;
    padding-bottom: 150px;
    background-color: rgba(204, 204, 204, 0.555);
}
#history h2 {
    margin-bottom: 10px;
}
#history h3 {
    margin-bottom: 10px;
}
#history p {
    margin-bottom: 30px;
}
@media screen and (max-width:600px) {
         /* ↑加這行是讓這個CSS 只給手機板讀 */
     #history .btn {
         display: block;    /*本來是inline-block*/
         text-align: center;
     }
}
/* PRODUCT */
#product {
    z-index: 998;
}
#product .col-3 {            
    position: relative;
    height: 360px;
    overflow: hidden;
}
#product .col-3::before {
    content: "";
    display: block;
    width: 100%;
    height: 360px;
    background-color: rgba(7, 0, 0, 0.493);
    position: absolute;
    z-index: 2;
}
#product .col-3 img {
    position: absolute;
    /* height: 360px; */
    width: auto;
    z-index: 1;
}
#product .col-3 h4 {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    line-height: 360px;
    color: rgb(228, 224, 224);
    letter-spacing: 3px;
    z-index: 3;
    font-size: 1.5em;  /*這是手機版才加大*/
}
/* NEWS */
#news {
    padding-bottom: 100px;
    padding-top: 100px;
}
@media screen and (max-width:600px) {
        /* ↑加這行是讓這個CSS 只給手機板讀 */
    #news .col-4 {
        text-align: center;
    }
    #news .btn {
        display: block;
    }
}
#news h2 {
    text-align: center;
}
#news h3 {
    margin-bottom: 20px;
}
#news .news-info {
    margin-bottom: 20px;
}
#news .news-date {
    color: rgb(118, 193, 223);
    margin-right: 10px;
}
#news .col-12:nth-of-type(5) {
    text-align: center;
   /* 他的意思是 col-12 同一個層級的，不是一模一樣的 */
}

/* FOOTER */
footer {
    background-color:  rgb(117, 145, 155);
    /* height:450px; */
    padding-top:80px;
    color:rgb(255, 255, 255,0.8);
    text-align: center;
}
footer h3 {
    padding-bottom: 20px;
    font-size: 1.5em;
    color: rgb(48, 47, 47);
}
footer p {
    color: rgb(230, 227, 227);
}
footer a {
    color:   rgb(230, 227, 227);
    text-decoration: none;
}
@media screen and (max-width:600px) {
    /* ↑加這行是讓這個CSS 只給手機板讀 */
    [class*="col"]{
        float: left;
    }
    footer .col-2 {
        width: calc(100% / 12 * 2);
    }
    footer .col-10 {
        width: calc(100% / 12 * 10);
    }
    /* ↑這邊是讓icon 跟 文字 並排 */
    /* footer .col-2 {
        text-align: center;
    }
    footer .col-10 {
        text-align: center;
    } */
    /* ↑這邊是 換行置中 */
}
/* COPYRIGHT */
#copyright {
    background-color: rgb(20, 19, 19);
    color: rgb(252, 250, 250);
    font-size: 14px;
}
#copyright .col-4 {
    letter-spacing: 5px;
    text-align: center;
    padding: 5px;
}
#copyright .col-8{
    text-align: center;
    padding: 5px;
}
#copyright .col-8 a {
    padding-left: 10px;
    padding-right: 10px;
    color: #fff;
    text-decoration: none;
}