/* 基礎重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 固定導覽列 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;          /* 新增：讓 LOGO 和選單列並排 */
    justify-content: space-between; /* 新增：左右對齊 */
    align-items: center;    /* 新增：垂直居中 */
    padding: 0 20px;       /* 新增：左右內邊距 */
}

/* LOGO 樣式 */
.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family:'Times New Roman', Times, serif
}

/* 主選單布局 */
.nav-list {
    display: flex;
    list-style: none;
}

.nav-list > li {
    margin: 0 15px;        /* 調整間距 */
    position: relative;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
}

/* 懸停效果 */
.nav-list a:hover {
    background-color: #555;
}

/* 子選單樣式 */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 180px;
    list-style: none;
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 12px 15px;
    font-size: 14px;
}

/* 顯示子選單 */
.dropdown:hover .submenu {
    display: block;
}

/* 內容區域 */
.content {
    padding: 100px 20px 20px; /* 避免導覽列遮擋 */
}

/* ------------------- 響應式設計 ------------------- */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* 手機版選單 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #333;
        text-align: center;
    }

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

    .nav-list li {
        margin: 0;
        width: 100%;
    }

    .nav-list a {
        padding: 15px;
        display: block;
        width: 100%;
    }

    /* 手機版子選單 */
    .submenu {
        position: static;
        display: none;
        background-color: #555;
    }

    .dropdown.active .submenu {
        display: block;
    }
}




/*頁尾*/
/* 頁尾 Footer*/
img{
    width: 5%;
    margin-top: 2%;
    margin-left: 10%;
    margin-right: 2%;
}

footer {
    background-color: #333;
    color: white;
    padding: 30px 10%;
    padding-top: 5%;
    text-align: center;
}

/* Footer 主要區塊*/
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* 聯絡資訊 & 社群媒體*/
.footer-contact, .footer-social {
    flex: 1;
    min-width: 250px;
}

/*LINE IG*/
.footer-social img{
    width: 10%;
    margin-top: 2%;
    margin-left: 2%;
}

/*QRCODE*/
/* 彈出視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    width: 200px; /* 控制 QR Code 大小 */
    height: auto;
}

/* 關閉按鈕 */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/*營業時間*/
.footer-container .time{
    margin: 5%;
    padding-left: 15%;

}

/* 標題樣式*/
.footer-contact h3, .footer-social h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 文字樣式 */
.footer-contact p, .footer-social p {
    font-size: 16px;
    margin: 5px 0;
}

/* 版權宣告 */
.footer-copyright {
    border-top: 1px solid #555;
    padding-top: 10px;
    font-size: 14px;
}

/* 響應式設計*/
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }
}
