@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+HK:wght@700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans HK', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* 防止固定 Header 遮檔內容 */
    background-color: #f3f4f6;
    color: #333;
}

/* Header & Navigation Styles */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
}

.logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    font-family: 'Noto Serif HK', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2563eb;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header 內的 5 大分類按鈕 */
.nav-tab-btn {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #4b5563;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-tab-btn:hover {
    color: #2563eb;
    background-color: #f3f4f6;
}

.nav-tab-btn.active {
    color: #2563eb;
    background-color: #eff6ff;
    font-weight: 700;
}

/* Index.html 特有樣式：Hero Section */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('char-siu-recipe-1920x1080.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Index.html 特有樣式：Choice Cards */
.container-choices {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.choice-card {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.choice-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.choice-card:hover img {
    transform: scale(1.05);
}

.choice-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #ffffff;
}

.choice-overlay p {
    font-size: 0.85rem;
    color: #e5e7eb;
    margin-top: 0.25rem;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* Demo.html 特有樣式：次分類篩選按鈕 */
.subcat-btn {
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subcat-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.subcat-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

/* 景點卡片樣式 */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

/* 貼齊卡片左邊的半透明黑底背景 */
.text-bg-left {
    background-color: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 4px 14px 4px 12px;
    display: inline-block;
    width: fit-content;
    max-width: 90%;
}

/* 右上角小分類膠囊黑底樣式 */
.badge-top-right {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modal 動畫效果 */
.modal-backdrop {
    animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
    animation: slideUp 0.25s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subcat-btn {
    background-color: rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-subcat-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-subcat-btn.active {
    background-color: #7a95ceb0; 
    color: #000000;
    border-color: #7a95ceb0;
    font-weight: 700;
}

/* 手機側邊 Drawer 選單按鈕樣式 */
.mobile-nav-btn {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.mobile-nav-btn:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.mobile-nav-btn.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}