.logo{
    background-image: url(../img/logo.png);
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    width: 220px;
    height: 65px;
}
.nav-item{
    padding: 0px 2rem;
}
.nav-link{
    color: white;
    font-size: 30px;
}
.hero-top{
    background: black;
}
.bg{
    background-image: url(../img/logobanner.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 10%;
    width: 100%;
}
.banner{
	width:100%;
	height:100%;
	overflow:hidden;
	position:relative;
}
.hero{
	width:100%;
	height:100%;
	position:relative;
	overflow:hidden;  /*超出部分隱藏*/
}
.banner-slide{
	width:100%;
	height:100%;
	background-repeat:no-repeat;
	float:left;
	display:none;
}
.slide-active{
	display:block;
}
.slide1{
    background-image:url(../img/bg/1.jpg);
    background-position: 50% 50%;
    background-size: cover;
    padding-bottom: 32%;
}
.slide2{
	background-image:url(../img/bg/ISO9001.jpg);
    background-position: 50% 50%;
    background-size: cover;
    padding-bottom: 32%;
}
.slide3{
	background-image:url(../img/bg/2.jpg);
    background-position: 50% 50%;
    background-size: cover;
    padding-bottom: 32%;
}
.slide4{
	background-image:url(../img/bg/3.jpg);
    background-position: 50% 50%;
    background-size: cover;
    padding-bottom: 32%;
}
.slide5{
	background-image:url(../img/bg/4.jpg);
    background-position: 50% 50%;
    background-size: cover;
    padding-bottom: 32%;
}
.button{
    position: absolute;
    transform:rotate(180deg);
    top: 50%;
    left: 244px;
    height: 80px;
    width: 40px;
    margin-top:-40px;
    background:url(../img/arrow.png) center center no-repeat;
}
.button:hover{
	/*background:#333;這樣不行，背景顏色會覆蓋上面的背景圖片，要寫下面的背景顏色*/
	background-color:#333;
	opacity: 0.8;
	/* filter:alpha(opacity=80); */
}
.banner-text{
    position: absolute;
    top: 40%;
    left: 5%;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 10;
}
.dots {
	position: absolute;
	bottom: 20px;
	right: 0;
	text-align: right;
	padding-right: 24px;
	line-height: 12px;
}
.dots span {
	display: inline-block;
	width: 50px;
	height: 10px;
	border-radius: 10%;
	margin-left: 8px;
	background-color: rgba(7, 17, 27, 0.4);
	cursor: pointer;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) inset;
}
.dots span.active{
	box-shadow: 0 0 0 2px rgba(7, 17, 27, 0.4) inset;
	background-color: #fff;
}
.d5{
    font-size: 40px;
    margin-right: 10px;
    border-radius: 5rem;
    font-weight: 600;
}
a{
    text-decoration: none;
    color: red;
}
a:hover{
    color: blue;
}
.d5-lg{
    font-size: 55px;
    font-weight: bold;
}
.intro-img{
    background-image: url(../img/vedio-img2.jpg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 61%;
}
.card-concent{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.card-title{
    font-weight: 600;
}
/* .certificate{
    margin-top: 90px;
    background-color: transparent;
} */
/* .certificate_title{
    margin-top: 25px;
    font-weight: 700;
    color: black;
    letter-spacing: .1em;
    margin-bottom: 5px;
    width: fit-content;
    width: max-content;
    border-bottom: 1px solid red;
    text-align: center;
} */
.carousel-gallery {
    margin: 15px 0;
    padding: 0 30px;
  }
  .carousel-gallery .swiper-slide a {
    display: block;
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    -webkit-box-shadow: 3px 2px 20px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 3px 2px 20px 0px rgba(0, 0, 0, 0.2);
  }
  .carousel-gallery .swiper-slide a:hover .image .overlay {
    opacity: 1;
  }
  .carousel-gallery .swiper-slide a .image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
  }
  .carousel-gallery .swiper-slide a .image .overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.8);
    text-align: center;
    opacity: 0;
    -webkit-transition: all .2s linear;
    transition: all .2s linear;
  }
  .carousel-gallery .swiper-slide a .image .overlay em {
    color: #fff;
    font-size: 26px;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    display: inline-block;
  }
  .carousel-gallery .swiper-pagination {
    position: relative;
    bottom: auto;
    text-align: center;
    margin-top: 25px;
  }
  .carousel-gallery .swiper-pagination .swiper-pagination-bullet {
    -webkit-transition: all .2s linear;
    transition: all .2s linear;
  }
  .carousel-gallery .swiper-pagination .swiper-pagination-bullet:hover {
    opacity: .7;
  }
  .carousel-gallery .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #d63031;
    -webkit-transform: scale(1.1, 1.1);
            transform: scale(1.1, 1.1);
  }
  .carousel-gallery .swiper-pagination{
    margin-top: 10px;
  }
.contact-img{
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgb(38 38 38 / 20%);
}
.card-body{
    padding: 0.3rem;
}
.card{
    box-shadow: 0 10px 30px rgb(38 38 38 / 20%);
}
.mobile-br{
    display: none;
}
.title{
    background: linear-gradient(to bottom,gray 0%,#f6f6f6 47%,#d9d9d9 100%);
    padding: 1rem;
    display: inline-block;
    text-align: center;
    align-items: flex-start;
    border-radius: 10% / 50%;
}
.link{
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid gray;
    background-color: #fff;
    margin: 0 auto;
}
.link:hover{
    opacity: 0.5;
}
.img-span{
    font-size: 18px;
    font-weight: 600;
}
.sr{
    color: red;
}

.top{
    display: none; 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    opacity:1; 
    cursor: pointer; 
    z-index: 2;
}
.top:hover img{
    opacity: 0.5;
}

.service-box{
    margin: 0 auto;
    height: 100%;
    width: 100%;
}

.QR{
    position: relative;
    margin: 0 auto;
    width: 15%;
}

.index-p{
    font-size: 50px;
    position: relative;
    color: #ADADAD;
  }
  .index-p:before{
    content: attr(data-text);
    position: absolute;
    top: -5px;
    overflow: hidden;
    max-width: 8.5em;
    white-space: nowrap;
    color: red;
    animation: loading 4s linear;
    animation-iteration-count: infinite;
  }
  @keyframes loading {
    0% {
        max-width: 0;
    }
  }

@media(max-width:1025px){
    .fixed-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    .hero-top{
        margin-top: 90px;
    }
    .dots {
        bottom: 10px;
    }
    .d5{
        font-size: 30px;    
    }
    .d5-lg{
        font-size: 40px;
        font-weight: bold;
    }
}
@media(max-width:767px){
    .navbar-brand{
        width: 75%;
    }
    .hero-top{
        margin-top: 90px;
    }
    .dots {
        display: none;
    }
    .d5{
        font-size: 28px;
        margin-right: 0;
    }
    .mobile{
        margin-top: 15px;
    }
    .mobile-br{
        display: block;
    }
    .QR{
        width: 50%;
    }
    .index-p{
        font-size: 30px;
        position: relative;
    }
    .index-p:before{
        top: -4px;
    }
}
