/*
 * TheOne Homepage Styles
 * Created for template-homepage.php
 */

/* ==========================================
   GLOBAL STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 確保 Hero section 和上方背景一致 */
body {
    font-family: 'Source Han Serif TC', 'Source Han Serif SC', 'Source Han Serif', 'Source Han Serif K', 'Noto Serif TC', serif;
    background: linear-gradient(135deg, #313632 0%, #3e443f 100%); /* 改為與 Hero 一致的漸層背景 */
    color: #fff; /* 改為白色文字 */
    overflow-x: hidden;
}

/* 確保 Hero section 文字是白色 */
.hero-section {
    color: #fff;
}

.welcome-title,
.welcome-subtitle,
.suggestion-title,
.suggestion-description {
    color: #fff !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #313632 0%, #3e443f 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(49,54,50);stop-opacity:0.8" /><stop offset="100%" style="stop-color:rgb(62,68,63);stop-opacity:0.9" /></linearGradient></defs><rect width="1920" height="1080" fill="url(%23grad)"/></svg>');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Background Media */
.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media video {
    pointer-events: none;
}

/* Background Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* ==========================================
   HEADER - 移除衝突樣式，使用header.php結構
   ========================================== */

.fullscreen-menu-close {
        position: fixed !important;
        top: 50px !important;
        right: 80px !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 999999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }

/* Homepage專用Header修復 - 高優先級覆蓋 */
.homepage .main-header {
    top: 32px !important;
    position: fixed !important;
    z-index: 1000 !important;
}

.homepage .header-container {
    padding: 15px 60px !important;
    max-width: 1600px !important;
    min-height: 70px !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.homepage .custom-logo-link img {
    height: 70px !important;
    vertical-align: middle !important;
}

.homepage .header-datetime {
    margin-right: 40px !important;
    justify-content: center !important;
}

.homepage .menu-toggle {
    width: 60px !important;
    height: 60px !important;
    padding: 12px !important;
    justify-content: center !important;
}

.homepage .menu-line {
    display: block !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    border-radius: 1px !important;
    margin: 2px 0 !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    min-height: 2px !important;
}

/* 第一條線條 - 最長 */
.homepage .menu-line:nth-child(1) {
    width: 28px !important;
    height: 2px !important;
    margin-left: 0 !important;
}

/* 第二條線條 - 中等長度，向右偏移 */
.homepage .menu-line:nth-child(2) {
    width: 22px !important;
    height: 2px !important;
    margin-left: 6px !important;
}

/* 第三條線條 - 最短，更向右偏移 */
.homepage .menu-line:nth-child(3) {
    width: 18px !important;
    height: 2px !important;
    margin-left: 10px !important;
}

.homepage .menu-toggle:hover .menu-line {
    background: rgba(255, 215, 0, 0.9) !important;
}

.homepage .menu-text {
    font-size: 10px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

/* 移除body的padding-top，讓背景滿版 */
.homepage {
    padding-top: 0 !important; /* 改為0，讓hero section滿版 */
}

@media (max-width: 768px) {
    .homepage .main-header {
        top: 46px !important;
    }
    
    .homepage .header-container {
        padding: 12px 30px !important;
        min-height: 60px !important;
    }
    
    .homepage .custom-logo-link img {
        height: 35px !important;
    }
    
    .homepage .menu-toggle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .homepage .menu-line {
        width: 20px !important;
    }
    
    .homepage {
        padding-top: 0 !important; /* 手機版也移除padding */
    }
}

@media (max-width: 480px) {
    .homepage .header-container {
        padding: 10px 20px !important;
        min-height: 55px !important;
    }
    
    .homepage .custom-logo-link img {
        height: 30px !important;
    }
    
    .homepage .menu-toggle {
        width: 45px !important;
        height: 45px !important;
    }
    
    .homepage .menu-line {
        width: 18px !important;
    }
}

/* ==========================================
   MAIN CONTENT - 5 SECTION LAYOUT
   ========================================== */

.hero-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 50px;
    z-index: 10;
    /* 將內容分為 5 個區塊 */
    justify-content: flex-start;
}

/* 第一區塊：頂部留白 (為header留空間，但不影響背景) */
.hero-spacer-top {
    height: 150px; /* 固定高度，確保有足夠空間給header */
    min-height: 150px;
}

/* 第二區塊：額外留白 (10%) */
.hero-spacer-mid {
    height: 10vh;
    min-height: 60px;
}

/* 第三區塊：歡迎標題區 (20%) */
.welcome-section {
    height: 20vh;
    min-height: 150px;
    max-width: 66.67%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 第四區塊：建議卡片區 (調整高度和寬度) */
.suggestions-section {
    height: 30vh; /* 調整為30vh */
    min-height: 200px;
    display: flex;
    align-items: center;
    /* 確保卡片靠左對齊，與標題對齊 */
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 第五區塊：調整底部留白 */
.hero-spacer-bottom {
    height: 15vh; /* 回到原來的高度 */
    min-height: 100px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 4px;
    /* 移除 text-shadow 外光暈 */
    text-shadow: none !important;
}

.welcome-subtitle {
    font-size: 18px;
    opacity: 0.8;
    line-height: 1.8;
    letter-spacing: 4px;
    font-weight: 300;
}

/* ==========================================
   SUGGESTION CARDS & CAROUSEL
   ========================================== */

/* 🎨 水平四卡輪播容器 */
.suggestions-carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.suggestions-carousel {
    position: relative;
    width: 80%; /* 增加寬度以容納四張卡片 */
    max-width: 80%;
    overflow: hidden;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

/* 🎨 水平四張卡片軌道 */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 20px; /* 卡片間隙 */
}

.carousel-slide {
    flex: 0 0 25%; /* 每張卡片占 25% 寬度 */
    width: 25%;
    height: 100%;
    opacity: 1; /* 全部显示 */
    transform: translateX(0);
    transition: all 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* 🎨 水平四卡片樣式 - 溫和的透明度 */
.suggestion-card {
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: auto;
    background: rgba(255, 255, 255, 0.048); /* 降低 40% 透明度 */
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px 25px; /* 調整內距以適應小卡片 */
    border: 1px solid rgba(255, 255, 255, 0.072); /* 降低 40% 透明度 */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: left; /* 改為左對齊 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.suggestion-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.12), rgba(255, 107, 107, 0.12), rgba(64, 224, 208, 0.12)); /* 降低 40% 透明度 */
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.suggestion-card:hover::before {
    opacity: 1;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.072); /* 降低 40% 透明度 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09); /* 降低 40% 透明度 */
    border-color: rgba(255, 255, 255, 0.12); /* 降低 40% 透明度 */
}

/* 移除圖示 */
.suggestion-icon {
    display: none;
}

.suggestion-title {
    font-size: 20px; /* 縮小字體以適應小卡片 */
    font-weight: 500;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.3;
}

.suggestion-subtitle {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.suggestion-description {
    font-size: 13px; /* 縮小字體 */
    line-height: 1.5;
    opacity: 0.85;
    color: #fff;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制 3 行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* 移除連結按鈕 */
.suggestion-link {
    display: none;
}

/* 📍 循環輪播導航箭頭 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06); /* 降低 40% 透明度 */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12); /* 降低 40% 透明度 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 24px;
    color: #fff;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.12); /* 降低 40% 透明度 */
    border-color: rgba(255, 255, 255, 0.24); /* 降低 40% 透明度 */
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -60px; /* 移至容器外側 */
}

.carousel-next {
    right: -60px; /* 移至容器外側 */
}

/* 分頁指示器 */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pagination-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.pagination-dot:hover::after,
.pagination-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.pagination-dot.active {
    background: #ffd700;
    transform: scale(1.2);
}

/* 備用靜態容器樣式 */
.suggestions-container {
    width: 66.67%;
    height: 100%;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.suggestions-container .suggestion-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    height: 140px;
    text-align: center;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.suggestions-container .suggestion-icon {
    display: none;
}

.suggestions-container .suggestion-title {
    font-size: 20px;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 10px;
}

.suggestions-container .suggestion-description {
    font-size: 13px;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.5;
}

.suggestions-container .suggestion-link {
    display: none;
}

/* ==========================================
   EVENT CAROUSEL SECTION
   ========================================== */

.event-carousel-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 50px;
    z-index: 100;
    max-height: 200px;
    overflow: hidden;
}

.event-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.event-carousel-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.event-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 20px;
    min-width: 50px;
}

.event-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.event-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.event-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.event-carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.event-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 0;
}

.event-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

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

.event-image:hover img {
    transform: scale(1.05);
}

.event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-image:hover::after {
    opacity: 1;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.event-date {
    font-size: 14px;
    color: #ffd700;
    font-weight: 500;
    min-width: 80px;
}

.event-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.event-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-link {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.event-link:hover {
    transform: translateX(5px);
}

.event-link:hover .event-title {
    color: #ffd700;
}

/* Event 輪播導航 */
.event-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #fff;
    z-index: 10;
}

.event-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.event-carousel-prev {
    left: -50px;
}

.event-carousel-next {
    right: -50px;
}

/* Event 輪播指示器 */
.event-carousel-indicators {
    position: absolute;
    top: 15px;
    right: 0;
    display: flex;
    gap: 6px;
}

.event-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-indicator.active {
    background: #ffd700;
    transform: scale(1.3);
}

/* ==========================================
   EVENT CAROUSEL RESPONSIVE
   ========================================== */

.activities-container {
    display: flex;
    gap: 40px;
    margin-bottom: 100px;
    flex-wrap: wrap;
}

.activity-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.activity-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 400;
}

.activity-description {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    color: #ffd700;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s ease;
    gap: 8px;
}

.activity-link:hover {
    gap: 15px;
}

/* ==========================================
   EVENT SECTION
   ========================================== */

.event-section {
    position: absolute;
    bottom: 40px;
    left: 50px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    padding: 25px 35px;
    border-radius: 15px;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.event-carousel {
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

.event-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.event-item.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.event-date {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 8px;
    font-weight: 500;
}

.event-title {
    font-size: 16px;
    line-height: 1.5;
}

/* ==========================================
   CONTENT SECTION
   ========================================== */

/* ==========================================
   當期推薦活動區塊調整
   ========================================== */

.content-section {
    min-height: auto;
    background: #f5f5f5;
    color: #333;
    padding: 50px 0 20px 0; /* 上方50px，下方減少為20px */
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; /* 添加左右間距 */
}

.section-header {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-bottom: 100px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 400px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.feature-content {
    padding: 30px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
    .welcome-section {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    /* Header樣式已移至header-glassmorphism.css */
    
    /* 5 區塊的手機版調整 */
    .hero-spacer-top {
        height: 120px; /* 手機版稍微小一點 */
        min-height: 120px;
    }
    
    .hero-spacer-mid {
        height: 5vh;
        min-height: 30px;
    }
    
    .welcome-section {
        height: 25vh;
        min-height: 120px;
        max-width: 95%;
    }
    
    .suggestions-section {
        height: 25vh; /* 手機版調整高度 */
        min-height: 170px;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .hero-spacer-bottom {
        height: 15vh; /* 手機版減少留白 */
        min-height: 80px;
    }
    
    /* Carousel responsive styles */
    .suggestions-carousel-container {
        height: 100%;
        align-items: center; /* 手機版置中 */
    }
    
    .suggestions-carousel {
        width: 100%; /* 手機版滿寬 */
        max-width: 100%;
    }
    
    .suggestion-card {
        padding: 20px 15px;
    }
    
    .suggestion-title {
        font-size: 22px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }
    
    .suggestion-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .suggestion-description {
        font-size: 13px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-pagination {
        bottom: -35px;
        gap: 6px;
    }
    
    .pagination-dot {
        width: 8px;
        height: 8px;
    }
    
    .pagination-dot::after {
        width: 14px;
        height: 14px;
    }
    
    /* Static container responsive styles */
    .suggestions-container {
        flex-direction: column;
        gap: 15px;
        height: 100%;
        width: 100%; /* 手機版滿寬 */
        justify-content: space-evenly;
        align-items: center; /* 手機版置中 */
    }
    
    .suggestions-container .suggestion-card {
        min-width: auto;
        max-width: none;
        height: auto;
        min-height: 80px;
        padding: 15px;
    }
    
    .suggestions-container .suggestion-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .suggestions-container .suggestion-description {
        font-size: 12px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .welcome-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .content-section {
        padding: 50px 20px 20px 20px; /* 手機版：上50px，下20px，左右20px */
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-container {
        padding: 0 20px;
    }
    
    .event-section {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
    }
    
    /* Event Carousel 手機版 */
    .event-carousel-section {
        padding: 15px 20px;
        max-height: 180px;
    }
    
    .event-item {
        gap: 15px;
        padding: 8px 0;
    }
    
    .event-image {
        width: 80px;
        height: 60px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .event-date {
        font-size: 12px;
        min-width: 70px;
    }
    
    .event-category {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .event-carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .event-carousel-prev {
        left: -35px;
    }
    
    .event-carousel-next {
        right: -35px;
    }
}


/* ==========================================
   D. 左右內容區塊 - 標題旁小字連結
   ========================================== */

/* 右側卡片標題區域 */
.right-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    gap: 15px;
}

.right-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.2;
    flex: 1;
}

/* 標題旁小字連結 */
.title-small-link {
    font-size: 0.85rem;
    color: #7a7a7a;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    padding: 4px 12px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.title-small-link:hover {
    color: #2c3e50;
    background: #e9ecef;
    border-color: #ced4da;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .right-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .right-card-title {
        font-size: 1.3rem;
    }
    
    .title-small-link {
        font-size: 0.8rem;
        padding: 3px 10px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .right-card-header {
        gap: 8px;
    }
    
    .right-card-title {
        font-size: 1.2rem;
    }
    
    .title-small-link {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
}/*
 * TheOne Homepage Extended Sections
 * 新增區塊樣式和GSAP動畫效果
 */

/* ==========================================
   A. 滿版影片區塊
   ========================================== */

/* 主頁背景影片優化 */
.hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* 優化性能 */
    will-change: auto;
    transform: translateZ(0);
    /* 預載入提示 */
    background: #f0f0f0; /* 載入時的占位背景 */
}

/* hero section 的媒體容器 */
.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 修復上方區塊背景顏色一致性 */
.content-section {
    background: #fff; /* 確保上方區塊是白色背景 */
    position: relative;
    z-index: 2; /* 確保在影片上方 */
}

/* 確保 HTML 和 body 根元素是深色（只修復 Hero section 上方） */
html {
    background: linear-gradient(135deg, #313632 0%, #3e443f 100%);
}

body {
    background: linear-gradient(135deg, #313632 0%, #3e443f 100%);
}

/* 保持其他區塊的白色背景 */
.content-section,
.section-container,
.four-grid-section,
.fullwidth-video-section,
.food-carousel-section,
.side-content-section {
    background: #fff;
}

/* Hero section 保持原有樣式 */
.hero-section {
    background: linear-gradient(135deg, #313632 0%, #3e443f 100%);
}

.fullwidth-video-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* 改為白色背景 */
    margin-top: 0;
    /* 確保在縮小時不會被裁切 */
    z-index: 1;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 優化變形效果 */
    transform-origin: center center;
    will-change: transform, border-radius; /* 優化性能 */
    transition: none; /* 移除 CSS transition，讓 GSAP 完全控制 */
    overflow: hidden; /* 確保在縮小時視頻不會溢出 */
    transform: translateZ(0); /* 強制硬體加速 */
    -webkit-transform: translateZ(0);
    /* 確保容器完全填滿 */
    margin: 0;
    padding: 0;
}

.fullwidth-video,
.fullwidth-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片/影片完全填滿 */
    object-position: center center; /* 居中對齊 */
    z-index: 1;
    will-change: transform; /* 優化性能 */
    backface-visibility: hidden; /* 防止動畫閃爍 */
    -webkit-backface-visibility: hidden;
    /* 確保沒有留白 */
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    will-change: opacity; /* 優化性能 */
}

.video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 40px;
    will-change: transform, opacity; /* 優化性能 */
}

.video-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(50px);
}

.video-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.video-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
}

/* 縮小效果的特殊狀態 */
.fullwidth-video-section.shrinking .video-container {
    /* 這個 class 可以用來測試或手動觸發縮小效果 */
    transform: scale(0.85);
    border-radius: 20px;
    transition: transform 0.6s ease, border-radius 0.6s ease;
}

/* ==========================================
   B. 四格區塊樣式
   ========================================== */

.four-grid-section {
    padding: 100px 0;
    background: #fff; /* 改為白色背景 */
    margin-top: 0; /* 移除上方間距 */
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.four-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.grid-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.grid-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* ==========================================
   夜市輪播區塊
   ========================================== */

.night-market-section {
    background: #2a2a2a;
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.night-market-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
}

.night-market-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
}

.slide-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.slide-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffd700;
    transform: scale(1.2);
}

/* ==========================================
   C. 飲食介紹輪播區塊
   ========================================== */

.food-carousel-section {
    padding: 100px 0;
    background: #fff; /* 確保白色背景 */
}

.food-carousel-header {
    text-align: center;
    margin-bottom: 60px;
}

.food-carousel-title {
    font-size: 36px;
    font-weight: 300;
    color: #333;
    margin-bottom: 20px;
}

.food-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.food-carousel-track {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.food-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    overflow: hidden;
}

.food-carousel-slide.active {
    opacity: 1;
}

.food-slide-image {
    width: 60%;
    height: 100%;
    overflow: hidden;
}

.food-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.food-carousel-slide:hover .food-slide-image img {
    transform: scale(1.05);
}

.food-slide-content {
    width: 40%;
    padding: 40px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.food-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.food-tag-signature {
    background: #ff6b6b;
    color: white;
}

.food-tag-seasonal {
    background: #4ecdc4;
    color: white;
}

.food-tag-popular {
    background: #ffd700;
    color: #333;
}

.food-tag-healthy {
    background: #95e1d3;
    color: #333;
}

.food-tag-traditional {
    background: #a8e6cf;
    color: #333;
}

.food-tag-innovative {
    background: #c7ceea;
    color: #333;
}

.food-slide-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.food-slide-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.food-slide-price {
    font-size: 24px;
    font-weight: 600;
    color: #ff6b6b;
    margin-top: auto;
}

/* 飲食輪播導航 */
.food-carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
}

.food-carousel-prev,
.food-carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.food-carousel-prev:hover,
.food-carousel-next:hover {
    background: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 飲食輪播指示器 */
.food-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.food-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.food-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.food-indicator:hover::after,
.food-indicator.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.food-indicator.active {
    background: #ffd700;
    transform: scale(1.3);
}

/* 飲食輪播響應式設計 */
@media (max-width: 768px) {
    .food-carousel-slide {
        flex-direction: column;
        height: auto;
    }
    
    .food-slide-image {
        width: 100%;
        height: 250px;
    }
    
    .food-slide-content {
        width: 100%;
        padding: 30px 20px;
    }
    
    .food-carousel-track {
        height: auto;
        min-height: 400px;
    }
    
    .food-carousel-title {
        font-size: 28px;
    }
    
    .food-slide-title {
        font-size: 24px;
    }
    
    .food-carousel-prev,
    .food-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.side-content-section {
    padding: 120px 0;
    background: #fff; /* 確保白色背景 */
}

.side-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.left-content {
    opacity: 0;
    transform: translateX(-50px);
}

.left-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 20px;
}

.left-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.3;
}

.left-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

.right-content {
    opacity: 0;
    transform: translateX(50px);
}

.right-carousel-container {
    position: relative;
}

.right-carousel-track {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.right-carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.right-carousel-card.active {
    opacity: 1;
}

.right-card-image {
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.right-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-card-content {
    padding: 30px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.right-card-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.right-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.right-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.right-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.right-dot.active {
    background: #333;
    transform: scale(1.2);
}

/* ==========================================
   D. 底部滿版圖片
   ========================================== */

.bottom-fullwidth-section {
    position: relative;
    width: 100vw;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bottom-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.bottom-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(50px);
}

.bottom-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.bottom-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

.bottom-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.8;
}

.bottom-button {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.bottom-button:hover {
    background: #ffed4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* ==========================================
   響應式設計
   ========================================== */

@media (max-width: 768px) {
    .four-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .side-content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .left-content,
    .right-content {
        transform: none;
    }
    
    .video-title {
        font-size: 32px;
    }
    
    .video-subtitle {
        font-size: 20px;
    }
    
    .video-description {
        font-size: 16px;
    }
    
    .bottom-title {
        font-size: 32px;
    }
    
    .bottom-subtitle {
        font-size: 20px;
    }
    
    .section-container {
        padding: 0 20px;
    }
    
    .video-content,
    .bottom-content {
        padding: 0 20px;
    }
    
    .left-title {
        font-size: 28px;
    }
    
    .night-market-section {
        padding: 40px 20px;
    }
    
    .carousel-track,
    .right-carousel-track {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .fullwidth-video-section,
    .bottom-fullwidth-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .video-title,
    .bottom-title {
        font-size: 28px;
    }
    
    .video-subtitle,
    .bottom-subtitle {
        font-size: 18px;
    }
    
    .left-title {
        font-size: 24px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .right-card-content {
        padding: 20px;
    }
}

/* ==========================================
   GSAP 動畫預設狀態
   ========================================== */

/* 確保動畫元素初始狀態正確 */
.grid-card {
    opacity: 0;
    transform: translateY(50px);
}

.left-content {
    opacity: 0;
    transform: translateX(-50px);
}

.right-content {
    opacity: 0;
    transform: translateX(50px);
}

.video-content > * {
    opacity: 0;
    transform: translateY(30px);
}

.bottom-content {
    opacity: 0;
    transform: translateY(50px);
}

/* 額外的平滑化效果 */
.fullwidth-video-section * {
    backface-visibility: hidden; /* 防止動畫閃爍 */
    -webkit-backface-visibility: hidden;
}


/*
 * Time-based Welcome System CSS
 * Supports smooth transitions between different time periods
 */

/* ==========================================
   TIME-BASED ANIMATIONS
   ========================================== */

/* Welcome text transition animations */
.welcome-title,
.welcome-subtitle {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.welcome-title.updating,
.welcome-subtitle.updating {
    opacity: 0;
    transform: translateY(-10px);
}

/* ==========================================
   SUGGESTION CARDS TIME-BASED STYLING
   ========================================== */

/* Cards that are hidden by time period */
.carousel-slide.hidden-by-time {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Smooth transitions for card visibility changes */
.carousel-slide {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.carousel-slide:not(.hidden-by-time) {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   TIME PERIOD SPECIFIC THEMES
   ========================================== */

/* Morning theme (6:00-12:00) */
body.time-period-morning {
    --accent-color: #ffd700;
    --text-glow: rgba(255, 215, 0, 0.3);
}

body.time-period-morning .welcome-title {
    color: #fff;
    /* 移除 text-shadow 外光暈 */
    text-shadow: none !important;
}

/* Afternoon theme (12:00-17:00) */
body.time-period-afternoon {
    --accent-color: #ff8c42;
    --text-glow: rgba(255, 140, 66, 0.3);
}

body.time-period-afternoon .welcome-title {
    color: #fff;
    /* 移除 text-shadow 外光暈 */
    text-shadow: none !important;
}

/* Evening theme (17:00-20:00) */
body.time-period-evening {
    --accent-color: #ff6b6b;
    --text-glow: rgba(255, 107, 107, 0.3);
}

body.time-period-evening .welcome-title {
    color: #fff;
    /* 移除 text-shadow 外光暈 */
    text-shadow: none !important;
}

/* Night theme (20:00-00:00) */
body.time-period-night {
    --accent-color: #4ecdc4;
    --text-glow: rgba(78, 205, 196, 0.3);
}

body.time-period-night .welcome-title {
    color: #fff;
    /* 移除 text-shadow 外光暈 */
    text-shadow: none !important;
}

/* Midnight theme (00:00-06:00) */
body.time-period-midnight {
    --accent-color: #9b59b6;
    --text-glow: rgba(155, 89, 182, 0.3);
}

body.time-period-midnight .welcome-title {
    color: #fff;
    /* 移除 text-shadow 外光暈 */
    text-shadow: none !important;
}

/* ==========================================
   CAROUSEL ENHANCEMENTS FOR TIME PERIODS
   ========================================== */

/* Pagination dots color based on time period */
.carousel-pagination .pagination-dot.active {
    background-color: var(--accent-color, #ffd700);
    box-shadow: 0 0 10px var(--text-glow, rgba(255, 215, 0, 0.3));
}

/* Navigation arrows enhancement */
.carousel-nav:hover {
    background-color: var(--accent-color, #ffd700);
    box-shadow: 0 0 15px var(--text-glow, rgba(255, 215, 0, 0.3));
}

/* ==========================================
   SUGGESTION CARDS TIME-PERIOD INDICATORS
   ========================================== */

/* Small time indicator on cards (optional) */
.suggestion-card[data-time-periods]::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color, #ffd700);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.suggestion-card:hover[data-time-periods]::before {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--text-glow, rgba(255, 215, 0, 0.5));
}

/* ==========================================
   RESPONSIVE TIME-BASED STYLING
   ========================================== */

@media (max-width: 768px) {
    .welcome-title,
    .welcome-subtitle {
        transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    }
    
    .carousel-slide {
        transition: opacity 0.3s ease-in-out;
    }
}

/* ==========================================
   DEBUG TIME PERIOD INDICATOR
   ========================================== */

/* Debug mode - shows current time period in corner */
body[data-debug-time]::after {
    content: attr(data-current-period);
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 10000;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================== */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .welcome-title,
    .welcome-subtitle,
    .carousel-slide,
    .suggestion-card {
        transition: none !important;
    }
    
    .welcome-title.updating,
    .welcome-subtitle.updating {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .welcome-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    }
    
    .carousel-pagination .pagination-dot.active {
        border: 2px solid white;
    }
    
    .suggestion-card[data-time-periods]::before {
        border: 1px solid white;
    }
}

/* ==========================================
   ANIMATION UTILITIES
   ========================================== */

/* Fade in animation for newly visible cards */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slide.newly-visible {
    animation: fadeInCard 0.5s ease-out;
}

/* Welcome text update animation */
@keyframes welcomeTextUpdate {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-title.animate-update,
.welcome-subtitle.animate-update {
    animation: welcomeTextUpdate 1.2s ease-in-out;
}

/* ==========================================
   TIME PERIOD TRANSITION EFFECTS
   ========================================== */

/* Smooth body class transitions */
body {
    transition: background-color 2s ease-in-out;
}

/* Glow effect for time period changes */
@keyframes timePeriodGlow {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 30px var(--text-glow, rgba(255, 215, 0, 0.5));
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

.welcome-section.period-changed {
    animation: timePeriodGlow 3s ease-in-out;
}

/*
 * Single Card Display CSS for TheOne Homepage
 * Supports single card display with navigation
 */

/* ==========================================
   SUGGESTIONS SECTION - SINGLE CARD LAYOUT
   ========================================== */

.suggestions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
}

.suggestions-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================
   SINGLE CARD STYLING
   ========================================== */

.suggestion-card-single {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.suggestion-card-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   CARD CONTENT STYLING
   ========================================== */

.suggestion-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
}

.suggestion-title {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.suggestion-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
}

.suggestion-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 400px;
    text-align: center;
}

.suggestion-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.suggestion-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* ==========================================
   CARD NAVIGATION
   ========================================== */

.card-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.card-navigation:hover {
    opacity: 1;
}

.card-nav-prev,
.card-nav-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.card-nav-prev:hover,
.card-nav-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-nav-prev:active,
.card-nav-next:active {
    transform: scale(0.95);
}

/* ==========================================
   CARD INDICATORS
   ========================================== */

.card-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.card-indicator.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ==========================================
   CARD TRANSITION ANIMATIONS
   ========================================== */

.suggestion-card-single.updating {
    opacity: 0;
    transform: translateY(20px);
}

.suggestion-card-single.updating-complete {
    opacity: 1;
    transform: translateY(0);
}

/* Fade transition animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.suggestion-card-single.fade-in {
    animation: cardFadeIn 0.5s ease-out;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .suggestions-container {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .suggestion-card-single {
        padding: 2rem 1.5rem;
        min-height: 280px;
    }
    
    .suggestion-title {
        font-size: 1.6rem;
    }
    
    .suggestion-subtitle {
        font-size: 1rem;
    }
    
    .suggestion-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .suggestion-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .card-navigation {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    
    .card-nav-prev,
    .card-nav-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .suggestion-card-single {
        padding: 1.5rem 1rem;
        min-height: 250px;
        border-radius: 15px;
    }
    
    .suggestion-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .suggestion-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .suggestion-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   TIME PERIOD THEMES FOR SINGLE CARDS
   ========================================== */

/* Morning theme */
body.time-period-morning .suggestion-card-single {
    background: rgba(255, 248, 220, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

body.time-period-morning .suggestion-link:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* Afternoon theme */
body.time-period-afternoon .suggestion-card-single {
    background: rgba(255, 140, 66, 0.15);
    border-color: rgba(255, 140, 66, 0.3);
}

body.time-period-afternoon .suggestion-link:hover {
    background: rgba(255, 140, 66, 0.2);
}

/* Evening theme */
body.time-period-evening .suggestion-card-single {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

body.time-period-evening .suggestion-link:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Night theme */
body.time-period-night .suggestion-card-single {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.3);
}

body.time-period-night .suggestion-link:hover {
    background: rgba(78, 205, 196, 0.2);
}

/* Midnight theme */
body.time-period-midnight .suggestion-card-single {
    background: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
}

body.time-period-midnight .suggestion-link:hover {
    background: rgba(155, 89, 182, 0.2);
}

/* ==========================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================== */

/* Focus indicators */
.card-nav-prev:focus,
.card-nav-next:focus,
.card-indicator:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.suggestion-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .suggestion-card-single,
    .card-nav-prev,
    .card-nav-next,
    .card-indicator,
    .suggestion-link {
        transition: none !important;
    }
    
    .suggestion-card-single.fade-in {
        animation: none !important;
    }
    
    .card-navigation:hover {
        opacity: 0.8;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .suggestion-card-single {
        border: 2px solid rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.7);
    }
    
    .suggestion-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .card-nav-prev,
    .card-nav-next {
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
}

/*
 * 水平四卡輪播系統
 * 適用於首頁建議卡片區塊
 */

/* 🎨 水平四卡輪播容器 */
.suggestions-container {
    position: relative;
    width: 85%; /* 從 66.67% 增加到 85%，更寬的顯示 */
    max-width: 85%;
    margin: 0; /* 移除 auto，確保靠左 */
    padding: 0;
    /* 確保靠左對齊 */
    margin-left: 0;
    margin-right: auto;
}

.suggestions-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.suggestions-grid {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    gap: 20px;
}

.suggestion-card-item {
    flex: 0 0 25% !important; /* 每張卡片占 25% 寬度 */
    width: 25% !important;
    background: rgba(49, 54, 50, 0.57) !important; /* 與 header 一致的深綠色，0.95 降低 40% = 0.57 */
    border: 2px solid rgba(49, 54, 50, 0.72) !important; /* 適當的邊框色，比背景略深 */
    border-radius: 15px !important;
    padding: 25px 30px !important; /* 增加內距確保完整顯示 */
    text-align: left !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.24) !important; /* 降低 40% 透明度 */
    transition: all 0.3s ease !important;
    min-height: 200px !important; /* 增加高度確保完整顯示 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* 改為頂部對齊 */
    backdrop-filter: blur(15px) !important;
    position: relative !important;
}

.suggestion-card-item:hover {
    background: rgba(49, 54, 50, 0.68) !important; /* hover 時加深一點 */
    border-color: rgba(49, 54, 50, 0.85) !important; /* hover 時邊框更深 */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3) !important; /* 降低 40% 透明度 */
    transform: translateY(-3px) !important;
}

.suggestion-card-item .suggestion-title {
    font-size: 1.25rem; /* 縮小字體 */
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.suggestion-card-item .suggestion-description {
    font-size: 0.8rem; /* 縮小字體 */
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 0; /* 移除下邊距，因為無連結按鈕 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 增加到 4 行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.suggestion-card-item .suggestion-link {
    display: none; /* 完全隱藏連結按鈕 */
}

/* 循環輪播導航 */
.card-navigation {
    position: absolute;
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
    z-index: 10;
}

.card-nav-next {
    background: rgba(49, 54, 50, 0.54) !important; /* 與 header 一致的深綠色，較低透明度 */
    border: 2px solid rgba(49, 54, 50, 0.72) !important; /* 與卡片一致的邊框色 */
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 1.5rem !important;
    backdrop-filter: blur(15px) !important;
}

.card-nav-next:hover {
    background: rgba(49, 54, 50, 0.72) !important; /* hover 時加深 */
    border-color: rgba(49, 54, 50, 0.9) !important; /* hover 時邊框更深 */
    transform: scale(1.1) !important;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .suggestions-container {
        width: 90%; /* 中型螢幕增加寬度 */
        max-width: 90%;
    }
}

@media (max-width: 1024px) {
    .suggestions-container {
        width: 95%; /* 平板版進一步增加寬度 */
        max-width: 95%;
    }
    
    .suggestion-card-item {
        flex: 0 0 50%; /* 平板顯示兩張 */
        width: 50%;
        min-height: 180px;
    }
    
    .card-navigation {
        right: -50px;
    }
}

@media (max-width: 768px) {
    .suggestions-container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .suggestions-grid {
        gap: 15px;
    }
    
    .suggestion-card-item {
        flex: 0 0 100%; /* 手機版顯示一張 */
        width: 100%;
        padding: 20px 25px; /* 增加內距 */
        min-height: 160px; /* 增加高度確保完整顯示 */
    }
    
    .suggestion-card-item .suggestion-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .suggestion-card-item .suggestion-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 3; /* 手機版增加到 3 行 */
    }
    
    .card-navigation {
        right: -40px;
    }
    
    .card-nav-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .card-navigation {
        right: -30px;
    }
    
    .card-nav-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .suggestion-card-item {
        min-height: 140px; /* 480px以下適中高度 */
        padding: 18px 20px; /* 調整內距 */
    }
    
    .suggestion-card-item .suggestion-title {
        font-size: 1rem;
        margin-bottom: 0.4rem; /* 減少間距 */
    }
    
    .suggestion-card-item .suggestion-description {
        font-size: 0.7rem;
        -webkit-line-clamp: 3; /* 480px以下也保持 3 行 */
    }
}

/* ==========================================
   移除所有外光暈效果 - 飯店內部使用
   ========================================== */

/* 移除所有 text-shadow 外光暈 */
.welcome-title,
.welcome-subtitle,
.suggestion-title,
.suggestion-card-single .suggestion-title,
.suggestion-card-item .suggestion-title,
.suggestion-description,
.suggestion-card-item .suggestion-description,
h1, h2, h3, h4, h5, h6 {
    text-shadow: none !important;
}

/* 移除所有 box-shadow 光暈 */
.welcome-section.period-changed {
    animation: none !important;
}

/* 移除所有發光效果 */
.card-indicator.active {
    box-shadow: none !important;
}

.carousel-nav:hover {
    box-shadow: none !important;
}

.suggestion-card-single:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.suggestion-card-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================
   修復：首頁 header 頂部空白（覆蓋 .homepage .main-header 的 32px/46px）
   登出訪客 header 貼齊頂部；只有 body.admin-bar 才為工具列下移。
   ========================================== */
.homepage .main-header { top: 0 !important; }
body.admin-bar .homepage .main-header { top: 32px !important; }
@media (max-width: 768px) {
    body.admin-bar .homepage .main-header { top: 46px !important; }
}

/* 登出訪客頁面頂部空白修正（2026-06-16，原僅存在線上，2026-08-10 回補本地） */
body:not(.admin-bar) .main-header{top:0!important}

/* ==========================================
   Hero 靜態背景微動態「呼吸」（2026-09-05）
   幅度 2.5%、單程 60 秒來回，慢到不會分心、又讓畫面不死。
   只作用在靜態圖：影片背景是 .hero-background-video，不受影響。
   只動 transform → 全程 GPU 合成、不觸發重排，適合 24h 常駐的 iPad kiosk。
   .hero-media 已是 overflow:hidden 絕對定位，不影響卡片/浮動導覽/底部輪播。
   ⚠️ 改動後必須 bump inc/assets.php 的 theone-homepage 版本號，
      否則已佈建 iPad 會吃 Service Worker 的 Cache-First 舊快取。
   ========================================== */
.hero-media .hero-background-image {
    animation: heroBreathe 60s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes heroBreathe {
    from { transform: scale(1); }
    to   { transform: scale(1.025); }
}

/* 使用者開啟 iPad 的「減少動態效果」時自動停用 */
@media (prefers-reduced-motion: reduce) {
    .hero-media .hero-background-image { animation: none; }
}
