/* 全局樣式 */
:root {
    --primary-bg: #F5F2EE;
    --secondary-bg: #4A3C36;
    --accent-color: #D4AF37;
    --text-color: #333333;
    --light-text: #666666;
    --chair-gray: #8C8C8C;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
}

/* 導航欄 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(74, 60, 54, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-bg);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 英雄區域 */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-top: 60px; /* 為導覽列預留空間 */
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgb(64 57 20 / 90%);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgb(64 57 20 / 90%);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #B89B30;
}

/* 背景紋路 */
.pattern-bg {
    position: relative;
    overflow: hidden;
}

.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* 食物區塊的點狀紋路 - 模仿燈光點點效果 */
.pattern-dots::before {
    background-image: radial-gradient(
        var(--secondary-bg) 1.5px,
        transparent 1.5px
    );
    background-size: 30px 30px;
    opacity: 0.03;
}

/* 關於我們區塊的拱形紋路 - 呼應餐廳拱門設計 */
.pattern-diagonal::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 A 30 30 0 0 1 60 30' stroke='%234A3C36' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.06;
}

/* 聯絡我們區塊的木質紋路 - 呼應餐廳木質元素 */
.pattern-grid::before {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0V0zm20 20h40v40H20V20z' fill='%234A3C36' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.07;
}

/* 修改各區塊背景 */
#food {
    padding: 5rem 5%;
    background-color: var(--white);
    position: relative;
    z-index: 1;
}

#food h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-bg);
}

.about-section {
    position: relative;
    background: url('images/b1.png') center/cover fixed;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.about-section > * {
    position: relative;
    z-index: 2;
}

.contact-section {
    position: relative;
    background: url('images/b2.png') center/cover fixed;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.94);
    z-index: 1;
}

.contact-section > * {
    position: relative;
    z-index: 2;
}

/* 修改區塊間隔線 */
.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color) 50%,
        transparent
    );
    opacity: 0.15;
    margin: 0;
    border: none;
    position: relative;
    z-index: 3;
}

/* 優化標題樣式 */
.about-section h2,
.contact-section h2 {
    color: var(--secondary-bg);
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.about-section h2::after,
.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    .about-section,
    .contact-section {
        background-attachment: scroll;
    }

    .about-section::before,
    .contact-section::before {
        background-color: rgba(255, 255, 255, 0.95);
    }

    #food {
        padding: 3rem 5%;
    }

    #food h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero {
        height: 70vh;
        margin-top: 60px; /* 為導覽列預留空間 */
    }
}


/* 餐點區域 */
#food .food-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

#food .main-slide {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    background-color: #f8f8f8;
    perspective: 1000px;
}

#food .main-slide img {
    width: 60%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    transform: scale(1.1) translateX(-20px);
    filter: blur(2px);
}

#food .main-slide img.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1) translateX(0);
    filter: blur(0);
}

/* 無文字版本的樣式 */
#food .main-slide img[data-no-text="true"] {
    width: 100%;
    position: relative;
    transform: none;
    opacity: 1;
    filter: none;
}

#food .main-slide.no-text {
    background-color: transparent;
}

#food .main-slide.no-text img {
    width: 100%;
    position: relative;
    transform: none;
    opacity: 1;
    filter: none;
}

#food .food-description:empty {
    display: none;
}

#food .food-description {
    width: 40%;
    height: 100%;
    padding: 30px;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    right: 0;
    opacity: 0;
    z-index: 2;
    transform: translateX(20px) rotateY(10deg);
    backface-visibility: hidden;
}

#food .food-description.active {
    opacity: 1;
    transform: translateX(0) rotateY(0);
}

#food .food-description h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-bg);
    width: 100%;
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#food .food-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-text);
    width: 100%;
    max-width: 400px;
    height: calc(1.6em * 8); /* 4行文字的高度 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}

#food .thumbnail-container {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    margin-top: 20px;
    position: relative;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

#food .thumbnail-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

#food .thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.6;
    background-color: #f8f8f8;
    transform: translateY(0);
}

#food .thumbnail.active {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#food .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
}

#food .thumbnail:hover img {
    transform: scale(1.1);
}

#food .thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

#food .slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#food .slide-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

#food .food-container:hover .slide-btn {
    opacity: 1;
    visibility: visible;
}

#food .slide-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#food .prev-btn {
    left: 10px;
}

#food .next-btn {
    right: 10px;
}

/* 移除按鈕圓圈背景 */
#food .slide-btn::before {
    display: none;
}

@media (max-width: 768px) {
    .logo {
        height: 40px;
    }

    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        background: rgba(0,0,0,0.3);
        margin: 0;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    #food .main-slide {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    #food .main-slide img {
        width: 100%;
        height: auto;
        position: relative;
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    
    #food .main-slide.no-text img {
        aspect-ratio: 16/9;
    }
    
    #food .food-description {
        width: 100%;
        position: relative;
        transform: none;
        opacity: 1;
        height: auto;
        min-height: 200px;
        padding: 20px;
        background-color: var(--white);
    }
    
    #food .food-description h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        height: auto;
        min-height: 1.8em;
        max-height: 3.6em; /* 允許最多兩行 */
        -webkit-line-clamp: 2;
        word-break: break-word;
        white-space: pre-wrap;
    }
    
    #food .food-description p {
        font-size: 1rem;
        line-height: 1.5;
        height: auto;
        max-height: calc(1.5em * 3); /* 3行文字的最大高度 */
        -webkit-line-clamp: 3;
        word-break: break-word;
    }
    
    #food .thumbnail-container {
        position: relative;
        padding: 10px 40px;
        margin: 20px 0;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #food .thumbnail-container::-webkit-scrollbar {
        display: none;
    }

    #food .thumbnail {
        flex: 0 0 80px;
        height: 60px;
        margin-right: 10px;
    }

    #food .thumbnail.active {
        transform: translateY(-5px) scale(1.1);
    }

    #food .slide-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        opacity: 1;
        visibility: visible;
    }

    #food .prev-btn {
        left: 5px;
    }

    #food .next-btn {
        right: 5px;
    }

    #food {
        padding: 3rem 5%;
    }
    
    #food h2 {
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    #food .food-container {
        padding: 0;
        width: 100%;
    }

    #food .main-slide {
        border-radius: 0;
        margin-bottom: 0;
        box-shadow: none;
        width: 100%;
    }

    #food .main-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    #food .thumbnail-container {
        padding: 10px 40px;
        margin: 20px 0;
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    #food {
        padding: 3rem 0;
        width: 100%;
        overflow-x: hidden; /* 防止水平滾動 */
    }

    #food .food-container {
        padding: 0;
        margin: 0;
        width: 100vw;
        max-width: none;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    #food .main-slide {
        width: 100vw;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #food .main-slide img {
        width: 100vw;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    #food h2 {
        padding: 0 20px;
        margin-bottom: 2rem;
    }

    #food .thumbnail-container {
        width: 100%;
        padding: 10px 20px;
        margin: 20px 0;
        box-sizing: border-box;
    }

    #food .main-slide.no-text img {
        aspect-ratio: 16/9;
    }
    
    #food .food-description {
        min-height: 150px;
    }
    
    #food .thumbnail {
        flex: 0 0 80px;
        height: 60px;
    }
}

/* 確保根元素和body沒有多餘的margin和padding */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 修正container的基本樣式 */
.container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 關於我們區域 */
.about-section {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--white);
}

.about-section h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--secondary-bg);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-container a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-container a:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 5%;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.8rem;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-text p {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* 訂位區域 */
.reservation-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.reservation-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.reservation-form input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-button {
    padding: 1rem;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #c0392b;
}

/* 聯絡我們區域 */
.contact-section {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--primary-bg);
}

.contact-section h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.contact-info {
    flex: 1;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.map-container {
    flex: 1.5;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-media {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.social-media a {
    color: var(--secondary-bg);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--accent-color);
}

/* 聯絡我們區域 RWD */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info,
    .map-container {
        width: 100%;
    }

    .map-container {
        height: 300px;
    }

    .info-item {
        margin-bottom: 15px;
    }

    .info-item i {
        font-size: 1.3rem;
    }

    .info-item p {
        font-size: 1rem;
    }

    .social-media {
        margin-top: 15px;
    }

    .social-media a {
        font-size: 1.5rem;
    }
}

/* 頁尾 */
footer {
    background-color: var(--secondary-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Menu Section */
#menu {
    padding: 80px 0;
    background-color: #f5f5f5;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f5f5"/><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="%23e8e8e8" fill-opacity="0.5"/></svg>');
    background-repeat: repeat;
    position: relative;
}

#menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(210, 180, 140, 0.1), rgba(210, 180, 140, 0.05));
    pointer-events: none;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.menu-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: scale(1.05);
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 菜單燈箱樣式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(74, 60, 54, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

#flipbook {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#flipbook .page {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-nav.prev-btn {
    left: 20px;
}

.menu-nav.next-btn {
    right: 20px;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

@media (max-width: 768px) {
    .lightbox-content {
        padding: 0;
    }

    #flipbook {
        width: 100vw;
        height: 100vh;
    }

    #flipbook .page {
        width: 100vw !important;
        height: 100vh !important;
    }

    .menu-nav {
        width: 36px;
        height: 36px;
    }

    .menu-nav.prev-btn {
        left: 10px;
    }

    .menu-nav.next-btn {
        right: 10px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* 漢堡選單按鈕 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-bg);
    transition: all 0.3s ease;
}

/* 導航欄 RWD */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(245, 242, 238, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* 漢堡選單開啟時的動畫 */
    .menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* 其他區域 RWD */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

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

    .about-section,
    .reservation-section,
    .contact-section {
        padding: 3rem 5%;
    }

    .about-section h2,
    .reservation-section h2,
    .contact-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .reservation-form {
        grid-template-columns: 1fr;
    }

    .social-media {
        gap: 1.5rem;
    }
}

/* 更小螢幕的調整 */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    #food .main-slide img {
        height: 250px;
    }

    #food .thumbnail {
        width: 70px;
        height: 50px;
    }

    .about-section h2,
    .reservation-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
}

/* 蓋板廣告 */
.overlay-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ad-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.ad-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-ad {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.close-ad:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .ad-content {
        width: 90%;
    }
    
    .close-ad {
        top: -45px;
        right: -5px;
    }
}

.ad-options {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.dont-show-again input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dont-show-again span {
    user-select: none;
}

/* 修正食物區塊縮圖滾動問題 */
#food .thumbnail-container {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    margin-top: 20px;
    position: relative;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

#food .thumbnail-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

#food .thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.6;
    background-color: #f8f8f8;
    transform: translateY(0);
}

#food .thumbnail.active {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#food .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
}

#food .thumbnail:hover img {
    transform: scale(1.1);
}

#food .thumbnail:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

#food .slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#food .slide-btn i {
    font-size: 1.2rem;
    line-height: 1;
}

#food .food-container:hover .slide-btn {
    opacity: 1;
    visibility: visible;
}

#food .slide-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#food .prev-btn {
    left: 10px;
}

#food .next-btn {
    right: 10px;
}

/* 移除按鈕圓圈背景 */
#food .slide-btn::before {
    display: none;
}

@media (max-width: 768px) {
    #food .thumbnail-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    #food .thumbnail {
        scroll-snap-align: start;
        flex: 0 0 auto;
        width: 80px;
        height: 60px;
    }
} 