
/* 定義全域變數 */
:root {
    --primary-bg: #2c2c2c;
    --primary-color: #fff;
    --highlight-color: #C76675;
    --btn-hover-color: #ffffff;
    --line-green: #C76675;
    --line-green-hover: #ffffff;
    --font-family: '微軟正黑體', sans-serif;
    --container-width: 100%;
    --container-max-width: 1200px;
    --menu-gap: 50px;
    --logo-height: 50px;
    --content-padding: 50px;
}

/* 重置樣式 */
* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 整體背景與字型設定 */
body {
    font-family: var(--font-family);
    background: #fff;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 佈局容器 */
.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em;
}

/* --------------- 頂部選單區 --------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    padding: 15px 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img, .logo-hide {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
}

.logo img {
    width: 70px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.link-left,
.link-right,
.nav-links-hide {
    display: flex;
    gap: 30px;
}

.link-left a, 
.link-right a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    font-size: 18px;
}

.nav-links-hide a {
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    font-size: 18px;
}

.link-left a::after,
.link-right a::after,
.nav-links-hide a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.link-left a:hover::after,
.link-right a:hover::after,
.nav-links-hide a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.link-left a:hover,
.link-right a:hover,
.nav-links-hide a:hover {
    transition: color 0.3s ease-in-out;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
    color: #fff;
}

.menu-button:hover {
    transform: scale(1.1);
}

.logo-hide, .nav-links-hide {
    display: none;
}

/* 調整主要內容區域，為固定導航欄留出空間 */
.latest-posts {
    margin-top: 120px;
}

.line-btn a {
    display: inline-block;
    background-color: var(--line-green);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-size: 16px;
}

.line-btn a:hover {
    background-color: var(--line-green-hover);
    color: var(--line-green);
}

/* 響應式設計 */
@media (max-width: 1048px) {
    .nav-container {
        justify-content: center;
        padding: 0 40px;
        gap: 90px;
    }

    .menu-button,
    .logo-hide {
        display: block;
    }

    .menu-button {
        position: absolute;
        right: 50px;
        z-index: 1001;
    }

    .logo-hide {
        position: absolute;
        left: 50px;
        z-index: 1000;
    }

    .nav-links {
        display: none;
    }

    .nav-links-hide {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links-hide.active {
        max-height: 700px;
        padding: 20px;
    }

    .nav-links-hide a {
        padding: 15px 20px;
        display: block;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }

    .nav-links-hide.active a {
        transform: translateY(0);
        opacity: 1;
    }

    /* 為每個連結添加延遲動畫 */
    .nav-links-hide a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links-hide a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links-hide a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links-hide a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links-hide a:nth-child(5) { transition-delay: 0.5s; }
    .nav-links-hide a:nth-child(6) { transition-delay: 0.6s; }
    .nav-links-hide a:nth-child(7) { transition-delay: 0.7s; }
    .nav-links-hide a:nth-child(8) { transition-delay: 0.8s; }
    .nav-links-hide a:nth-child(9) { transition-delay: 0.9s; }
}

/* --------------- Reserve Section --------------- */
.reserve {
    padding: 60px 20px 80px 20px;
    text-align: center;
    background-color: #1f1f1f;
  }
  
/* 標題 */
.reserve-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    color: #fff;
}
.reserve-title span {
    color: #f5c656; /* 黃色重點 */
}

/* 卡片容器：四欄排列，自動換行 */
.reserve-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* 單張卡片 */
.reserve-card {
    flex: 1 1 260px;      /* 最小寬度 260px，可擴展 */
    max-width: 280px;     /* 最多不超過 280px */
    border: 1px solid #fff;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
}

.reserve-card.six,
.reserve-card.eight {
    transform: translateY(4%);
}

.reserve-card.seven,
.reserve-card.nine {
    transform: translateY(-4%);
}

/* Icon 區 */
.reserve-card .icon {
    margin-bottom: 16px;
    color: #fff; /* Font‑Awesome 或 SVG 的填色 */
    font-size: 50px;
}

/* 標題 */
.reserve-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

/* 內文 */
.reserve-card p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #ccc;
}

@media (max-width: 768px) {
    .reserve {
        padding: 40px 30px 60px 30px; /* 調整內邊距 */
    }

    .reserve-title {
        font-size: 2rem; /* 調整標題字型大小 */
    }

    .reserve-card {
        flex: 1 1 100%; /* 在小螢幕上，卡片佔滿整行 */
        max-width: 100%;
    }

    .reserve-card.six,
    .reserve-card.eight {
        transform: translateY(0); /* 在小螢幕上，取消變形效果 */
    }
}

/* --------------- Banner 區塊樣式 --------------- */
.banner {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.banner-phone-image {
    display: none;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.banner-content {
    position: relative;
    margin-top: 80px;
    z-index: 3;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-description {
    font-size: 18px;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {

    .banner-image {
        display: none;
    }

    .banner-phone-image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 110%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 1;
    }

    .banner-content {
        margin-top: 60px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-description {
        font-size: 16px;
        margin: 0 40px;
    }
}

/* --------------- Footer 樣式 --------------- */
.footer {
    background-color: var(--primary-bg);
    color: #fff;
    padding: 40px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.footer-content a {
    color: #b4b4b4;
    text-decoration: none;
}

.footer-content a:hover {
    color: #fff;
}

.footer-logo {
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu ul li {
    margin-bottom: 10px;
}

.footer-menu ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu ul li a:hover {
    color: #b4b4b4; /* Highlight color */
}

.footer-hours h4,
.footer-contact h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.footer-hours p,
.footer-contact p {
    margin: 5px 0;
    line-height: 2;
    color: #b4b4b4;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.footer-social i {
    font-size: 24px; /* 確保社交圖標大小一致 */
    color: #fff; /* 修正顏色 */
    transition: color 0.3s;
}

.footer-social a:hover i {
    color: var(--highlight-color); /* 滑鼠懸停時改變顏色 */
}

.fa-instagram, .fa-facebook, .fa-line {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin: 20px 300px;
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #4e4e4ed0;
    padding-top: 20px; /* 修正內邊距 */
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu {
        width: 100%;
        text-align: center;
    }

    .footer-menu ul {
        margin-bottom: 20px; /* 增加底部間距 */
    }

    .footer-hours,
    .footer-contact {
        width: 100%;
        margin-bottom: 20px; /* 增加底部間距 */
    }

    .footer-hours h4,
    .footer-contact h4 {
        font-size: 25px;
        font-weight: 500;
}

    .footer-bottom {
        margin: 20px 50px;
    }
}