/* --- Global Styles --- */
body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #1a1a1a; /* 深炭色背景 */
    color: #f0f0f0; /* 柔和的白色文字 */
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: #e6a756; /* 金色點綴 */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2 {
    font-family: 'Poppins', 'Noto Sans TC', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e6a756;
    display: inline-block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    text-align: center;
}

/* --- Header / Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) sepia(0.2);
    z-index: -1;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* --- Intro Section --- */
.intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Gallery Grids --- */
.gallery-grid {
    display: grid;
    gap: 25px;
}

.menu-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dish-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gallery-grid img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 讓菜單圖片有可點擊的指標 */
.menu-gallery img {
    cursor: pointer;
}

/* --- Location Section --- */
.location-details {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
}

.location-details p {
    margin: 0.5rem 0;
}

.business-hours {
    list-style-type: none; /* 移除項目符號 */
    padding-left: 0; /* 移除預設的左邊內距 */
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #333;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
footer {
    padding: 30px 20px;
    margin-top: 40px;
    background-color: #111;
    color: #888;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
}

/* --- Image Lightbox --- */
.lightbox {
    display: none; /* 預設隱藏 */
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    transition: opacity 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto; /* 自動寬度以保持長寬比 */
    max-width: 95vw; /* 最大寬度為視窗寬度的 95% */
    max-height: 95vh; /* 最大高度為視窗高度的 95% */
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 讓 body 在燈箱開啟時不能滾動 */
body.lightbox-open {
    overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        height: 60vh;
    }

    .menu-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        justify-items: center; /* 在手機版將圖片置中 */
    }
}
