/* 自定義變數 */
:root {
    --primary-blue: #007bff;
    --light-gray: #f8f9fa;
    --dark-text: #2d3436;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--dark-text);
    scroll-behavior: smooth;
    background-color: #ffffff;
}

.py-6 { padding-top: 80px; padding-bottom: 80px; }

/* 顏色設定 */
.text-primary-blue { color: var(--primary-blue); }
.bg-primary-blue { background-color: var(--primary-blue); }
.btn-primary-blue {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
}
.btn-primary-blue:hover {
    background-color: #0056b3;
    color: white;
}

/* 標題裝飾線 */
.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
    margin-top: 15px;
    border-radius: 2px;
}

/* 導覽列優化 */
.navbar-brand { font-size: 1.5rem; letter-spacing: 1px; }
.nav-link { font-size: 1.1rem; margin-left: 20px; color: #555 !important; }
.nav-link:hover { color: var(--primary-blue) !important; }

/* Banner 樣式 */
.carousel-item {
    height: 75vh;
    background-size: cover;
    background-position: center;
}
.banner-content {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(5px);
	border-radius: 15px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* 服務卡片樣式 */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
		text-align: center;
	
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.icon-box {
    width: 60px;
    height: 60px;
    background: #e7f1ff;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 12px;
		margin-left: auto;
	margin-right: auto;
}

/* 影片區 */
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 聯絡區塊 */
.contact-item {
    transition: 0.3s;
    cursor: pointer;
}
.contact-item:hover {
    background: rgba(255,255,255,0.1);
}

/* RWD 調整 */
@media (max-width: 768px) {
    .carousel-item { height: 60vh; }
    .display-4 { font-size: 2.5rem; }
}

/* =========================================
   4. 施工實績輪播樣式
   ========================================= */
/* 實績區塊基礎樣式 */
/* 實績通用樣式 */
.portfolio-box {
    position: relative;
    overflow: hidden;
}

.portfolio-box img {
    width: 100%;
    height: 600px; /* 電腦版高度 */
    object-fit: cover;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

/* 控制按鈕樣式 */
.portfolio-ctrl {
    width: 45px;
    height: 45px;
    background-color: #fff !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    border: 1px solid #ddd;
}

/* --- 電腦版 RWD 調整 --- */
@media (min-width: 992px) {
    /* 讓按鈕移動到容器外面，不會擋到照片 */
    #desktopCarousel .carousel-control-prev { left: -60px; }
    #desktopCarousel .carousel-control-next { right: -60px; }
}

/* --- 手機版 RWD 調整 --- */
@media (max-width: 767.98px) {
    .portfolio-box img {
        height: 500px; /* 手機版高度稍微縮小更美觀 */
    }
    /* 按鈕稍微往內縮，方便手指點擊 */
    #mobileCarousel .carousel-control-prev { left: 5px; }
    #mobileCarousel .carousel-control-next { right: 5px; }
    
    .portfolio-info h5 { font-size: 1rem; }
}

.addwd01 {

	font-size:18px;
	line-height:30px;
}

.addwd02 {
	font-size:22px;
	line-height:30px;
}

.img100 {

}

.img100 img {
    width: 100%;
	height:auto;
}

.pc {
display:inline;

}
.phone {
display:none;
}



	 @media screen and (max-width : 600px) {
	 
.pc {

display:none;

}
.phone {
display:inline;
}


 
    }
	
	
	a {
	color: #fff;
	text-decoration: none;
}


.bar {
    width: 80px;
    position: fixed;
    z-index: 99;
    right: 15px;
    bottom: 75px;
}

.bar img {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 600px) {
    .bar {
        width: 70px;
        position: fixed;
        z-index: 99;
        right: 5px;
        bottom: 70px;
    }
}

