.fullscreen-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 30px;
}

.nav-logo {
    height: 40px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    padding: 10px;
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.menu-item {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-group {
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.menu-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.submenu-group {
    margin-bottom: 20px;
}

.submenu-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.submenu-item {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background-color: #e9ecef;
    color: #333;
}

/* 動畫效果 */
.fullscreen-nav.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 控制導覽列顯示 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

.mobile-nav {
    display: none;
}

/* 大螢幕樣式 */
@media (min-width: 769px) {
    .header-content {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        width: 100%;
    }

    .header-content img {
        max-height: 40px;
        margin: 0;
    }

    .menu-toggle {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .mobile-nav {
        display: none;
    }
}

/* 小螢幕樣式 */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        width: 100%;
    }

    .header-content img {
        max-height: 40px;
        margin: 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        padding: 10px;
        z-index: 1001;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .menu-group {
        padding: 15px;
    }

    .menu-title {
        font-size: 18px;
    }

    .submenu-title {
        font-size: 15px;
    }

    .submenu-item {
        padding: 10px;
    }

    .nested-submenu-content {
        display: none;
    }

    .nested-submenu-title.expanded + .nested-submenu-content {
        display: block;
    }
}

/* 滾動條樣式 */
.fullscreen-nav::-webkit-scrollbar {
    width: 8px;
}

.fullscreen-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.fullscreen-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.fullscreen-nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 巢狀選單樣式 */
.nested-submenu {
    margin: 5px 0;
}

.nested-submenu-title {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nested-submenu-title:hover {
    background-color: #f8f9fa;
}

.nested-submenu-content {
    padding-left: 20px;
    margin-top: 5px;
}

.nested-submenu-item {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nested-submenu-item:hover {
    background-color: #e9ecef;
    color: #333;
}

/* 全螢幕導覽列樣式 */
.fullscreen-nav .nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    position: relative;
}

.fullscreen-nav .nav-logo {
    max-height: 40px;
    margin-right: 60px;
}

/* 移除 .close-menu 相關樣式 */

.fullscreen-nav.show {
    display: block !important;
    animation: fadeIn 0.3s ease;
} 