/* --- Reset --- */
body {
    margin: 0;

}

/* --- 彩色漢堡按鈕 --- */
#menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease;
}

#menu-toggle:hover {
    transform: scale(1.05);
}

/* --- 主選單容器 --- */
#menu {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem;

    border-radius: 12px;
    position: fixed;
    top: 1rem;
    right: 1rem;

    z-index: 999;
    transition: all 0.3s ease;
}

/* --- Menu Link 樣式 --- */
#menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;

}

#menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* --- 漢堡展開樣式 (RWD) --- */
@media (max-width: 767px) {
    #menu-toggle {
        display: block;
    }

    #menu a:hover {
        background-color: #ffb6c1;
        /* hover 加深粉紅 */
        color: #000000;
        /* 保持黑字 */
    }

    #menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
        max-width: 80vw;

        backdrop-filter: blur(12px);
        border-radius: 16px;
        top: 4rem;
        right: 1rem;
        padding: 1.2rem 1.5rem;
    }

    #menu.open {
        display: flex;
        animation: slideIn 0.3s ease-out;
    }

    #menu a {
        background-color: #ffe3ec;
        /* 淺粉紅底 */
        color: #000000;
        /* 黑色文字 */
        font-size: 1rem;
        width: 100%;
        text-align: left;
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
}

/* --- 動畫效果 --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}