 /* 导航栏样式 */
 .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: box-shadow: 0px 2px 5px rgba(14, 10, 23, 0.25);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar-item{
    cursor: pointer;
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 48px;
}

.navbar-logo {
    display: block;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: var(--spacing-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-link {
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: var(--color-primary);
}

.navbar-link .material-icons {
    font-size: 17px;
    /* margin-left: 4px; */
    vertical-align: middle;
}

/* 聯絡我們按鈕 */
.contact-btn {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.contact-btn:hover {
    background-color: var(--color-light-gray);
    color: var(--color-primary) !important;
}

/* mb菜单按钮 */
.navbar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-2);
    display: none;  /* 默認隱藏 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    min-height: 40px;
    /* z-index: 1001;  確保按鈕在選單上方 */
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-700);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 叉叉動畫效果 */
.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: fixed;
        top: 60px;
        right: 0; /* 改為右側 */
        width: 188px;
        padding: 0 0 0 10px;
        flex-direction: column;
        align-items: flex-end; /* 右對齊 */
        justify-content: flex-start;
        gap: 0; /* 移除間距 */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: -2px 0px 4px rgba(0, 0, 0, 0.25); /* 添加陰影 */
        background-color: #fff;
        height: calc(100vh - 60px);
        margin-left: 10px;
    }

    .navbar-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .navbar-item {
        width: 188px;  /* 確保寬度一致 */
        width: 92%;
        border-bottom: 1px solid #CACACA;
        padding: 15px 17px 6px 0;
        box-sizing: border-box;
        cursor: pointer;  /* 添加這行 */

    }

    .navbar-link {
        display: flex;
        align-items: center;
        justify-content: flex-end; /* 右對齊 */
        font-size: 16px;
        color: #0E0A17;
        font-family: Roboto;
        padding: 0;

    }

    /* 添加箭頭圖標的樣式 */
    .navbar-link.has-children::after {
        content: '';
        width: 11px;
        height: 11px;
        background-image: url('Vector.svg');
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* 其他現有的響應式樣式保持不變 */
    .navbar-wrapper {
        padding: 10px 20px 0;
    }

    .navbar-logo img {
        height: 34px;
    }

    .navbar-toggle {
        display: flex;
    }

    /* 手機版聯絡我們按鈕樣式統一 */
    .contact-btn {
        width: 111%;  /* 確保寬度一致 */
        padding: 0px 16px 5px 0;  /* 使用和其他項目一樣的 padding */
        margin: 0;
        background-color: transparent;
        color: var(--color-black) !important;
        border-radius: 0;
        font-weight: 500;
        border-bottom: 1px solid #CACACA;
        box-sizing: border-box;
        font-size: 16px;
        font-family: Roboto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        text-decoration: none;
    }

    .contact-btn:hover {
        background-color: transparent;
        color: #0E0A17 !important;
    }

    /* 移除最後一個項目的重複邊框 */
    .navbar-item:last-child {
        border-bottom: none;
    }
}

