/* 全局樣式 */
:root {
    --primary-color: #2b6ca3;    /* 主色調：深藍色，給人穩重專業感 */
    --secondary-color: #4a90e2;  /* 次要色調：亮藍色，增加活力 */
    --accent-color: #ffc107;     /* 強調色：金黃色，象徵財富 */
    --text-color: #333;          /* 文字顏色：深灰色，易於閱讀 */
    --light-bg: #f8f9fa;         /* 淺色背景 */
    --border-radius: 8px;        /* 圓角大小 */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 陰影效果 */
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 導航欄樣式 */
.navbar {
	position: fixed;
	width:100%;
	z-index:1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.navbar-brand small {
    font-size: 0.7rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* 輪播圖樣式 */
#hero-slider {
    margin-bottom: 10px;
    padding-top: 100px;
}

.carousel-item {
    height: 350px;
    background-color: #000;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
    opacity: 0.8; /* 圖片暗化，增加文字可讀性 */
}

.carousel-caption {
    bottom: 20%;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.carousel-control-prev {
	top:80px;
}

.carousel-control-next {
	top:80px;
}

/* 服務圖標區樣式 */
#services {
    padding: 60px 0;
}

.service-icon-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s;
}

.service-icon-link:hover {
    transform: translateY(-10px);
    color: var(--primary-color);
}

.service-icon {
    width: 240px;
    height: 140px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*border-radius: 50%;*/
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: all 0.3s;
}

.service-icon img {
    width: 120px;
    height: 120px;
    color: var(--primary-color);
}

.service-icon-link:hover .service-icon {
    background-color: var(--primary-color);
}

.service-icon-link:hover .service-icon img {
    filter: brightness(0) invert(1); /* 圖標變白色 */
}

.service-icon-link h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
}

/* 關於我們簡介樣式 */
#about-brief {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 客戶見證樣式 */
.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-content:before {
    content: '\201C'; /* 左引號 */
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.testimonial-author p {
    margin-bottom: 0;
    color: #777;
    font-size: 0.9rem;
}

/* 聯絡資訊樣式 */
.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list li i {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.social-links {
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form .form-control {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* 頁尾樣式 */
.footer {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-link {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.8;
    color: #fff;
}

/* 響應式調整 */
@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-item {
        height: 330px;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 310px;
    }

}

@media (max-width: 576px) {
	
	.col-md-6 {
		text-align: center;
	}
	
	.col-sm-6 {
		flex: 0 0 auto;
		width: 50%;
	}
	
	.carousel-caption {
        bottom: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption h2 {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 210px;
        /*height: auto;
        width:100%;*/
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand .container {
    	padding: 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
   
    .service-icon {
        width: 150px;
        height: 110px;
    }
    
    .service-icon img {
        width: 100px;
        height: 100px;
    }
}