/* === 桌機限定側邊滑出選單 === */
.desktop-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 2000;
    overflow-y: auto;
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
    padding: 20px 0; /* 上下留白避免圖片太貼邊 */
}

    .desktop-side-menu.open {
        transform: translateX(0);
    }

/* 半透明遮罩 */
.desktop-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1900;
}

    .desktop-menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

/* 關閉按鈕 */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

/* 三個圖片區塊 */
.menu-section {
    position: relative;
    width: calc(100% - 40px); /* 保留左右邊距 */
    margin: 0 auto 20px auto; /* 底部留出間距 */
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 10px; /* 稍微圓角更美觀 */
}

    .menu-section:hover {
        transform: scale(1.02);
    }

    /* 圖片暗化遮罩 */
    .menu-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1;
        transition: background 0.3s ease;
    }

    .menu-section:hover::before {
        background: rgba(0, 0, 0, 0.55);
    }

/* 圖片上文字 */
.overlay-text {
    position: relative;
    color: #fff;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

    .overlay-text h2 {
        font-size: 1.6rem;
        color: #fff; /* ✅ 強制白色文字 */
        margin: 0;
    }

    .overlay-text p {
        margin: 5px 0 0;
        font-size: 1rem;
        color: #fff; /* 小字也白色 */
        opacity: 0.9;
    }

/* 背景圖（請換成你的實際圖片） */
.section-1 {
    background-image: url('https://zaizaicat.com/img/pics/f779c1d4-6fe5-4cb9-a196-0e5da9f5a237.jpg');
}

.section-2 {
    background-image: url('https://via.placeholder.com/600x400?text=Food');
}

.section-3 {
    background-image: url('https://zaizaicat.com/img/pics/66f998cf-bed8-493f-b12a-ced3afb1e276.jpg');
}

/* 開啟按鈕 */
.desktop-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
}

/* 響應式寬度調整 */
@media (max-width: 1600px) {
    .desktop-side-menu {
        width: 300px;
    }
}

@media (max-width: 1366px) {
    .desktop-side-menu {
        width: 260px;
    }

    .overlay-text h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 1180px) {
    .desktop-side-menu {
        width: 240px;
    }

    .overlay-text h2 {
        font-size: 1.2rem;
    }
}

/* 1024px 以下隱藏（保持桌機限定） */
@media (max-width: 1024px) {
    .desktop-side-menu,
    .desktop-menu-toggle,
    .desktop-menu-overlay {
        display: none;
    }
}
