.nav {
    display: flex;
    height: var(--nav-height);
    background: #fff;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
    position: relative;
    z-index: 1000;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav .logo {
    display: flex;
    align-items: end;
    height: 60%;
}

.nav .logo img {
    height: 100%;
    width: auto;
}

.nav .site-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    transition: all 0.3s ease;
}

/* 桌面版預設為 flex */
@media (min-width: 1024px) {
    .nav .site-menu {
        display: flex !important;
    }
    
    .nav .site-menu li {
        padding: 0 1rem;
    }
    
    .nav .site-menu li a {
        display: block;
        color: #000;
        text-decoration: none;
        padding: 0.5rem 0;
        transition: color 0.2s ease;
    }
    
    .nav .site-menu li a:hover {
        color: #ff0000;
    }
}

/* 手機版選單樣式 */
@media (max-width: 1023px) {
    .nav .site-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
        display: flex;
    }
    
    .nav .site-menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav .site-menu li {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav .site-menu li:last-child {
        border-bottom: none;
    }
    
    .nav .site-menu li a {
        display: block;
        padding: 1rem 5vw;
        font-size: 1.1rem;
        border-left: 3px solid transparent;
    }
    
    .nav .site-menu li a:hover {
        background-color: #f8f9fa;
        border-left-color: #ff0000;
    }
}

/* 手機選單按鈕樣式 */
#mobile-menu-toggle {
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}



/* 桌面版隱藏手機選單按鈕 */
@media (min-width: 1024px) {
    #mobile-menu-toggle {
        display: none !important;
    }
}