header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 100px;
    flex-wrap: wrap;
}

.logo img {
    width: 300px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: all 0.3s;
}

/* 滑鼠滑過或點選主選單 */
.nav-link:hover,
.nav-link:active {
    color: #ef8b1e;;
}

.nav-link:hover .dropdown-toggle-icon,
.nav-link:active .dropdown-toggle-icon {
    color: #ef8b1e;;
}

/* 當前頁面：加上 active 時改變文字與箭頭顏色 */
.nav-link.active {
    color: #fff;
    background-color: #ef8b1e;
    border-radius: 10px;
    /* 可自訂強調色 */
    font-weight: bold;
}

.nav-link.active .dropdown-toggle-icon {
    color: #ef8b1e;;
}

.dropdown-toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.dropdown-toggle-icon {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: color 0.3s;
}

/* 下拉選單動畫 */
.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin-top: 8px;
    z-index: 1000;
    min-width: 10em;
    /* 防止文字換行 */
    white-space: nowrap;
}

.dropdown-menu.show {
    /* 給一個足夠大的值即可 */
    max-height: 500px;
    opacity: 1;
}

.dropdown-menu li a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
    color: #ef8b1e;;
}

/* 底部的控制點 */
div.carouselSlide .carousel-indicators button {
    display: none;
    /* width: 10px;
    height: 10px;
    border-radius: 50%; */
}

/* 左右箭頭 */
div.carouselSlide .carousel-control-prev-icon,
div.carouselSlide .carousel-control-next-icon {
    display: none;
    /* background-color: #dfdfdf;
    color: #FFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center; */
}

/* --- 小於 992px：手機版樣式 --- */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
}

/* --- 小於 400px：手機版樣式 --- */
@media (max-width: 400px) {

    .logo img {
        width: 200px;
    }
}