/* ===================================
   Main Styles for 就是愛美食 Website
   =================================== */

/* Color Variables */
:root {
    /* Primary Colors - 米色褐色系 */
    --color-cream: #FAF6F0;
    --color-beige: #F5DEB3;
    --color-light-brown: #D2B48C;
    --color-brown: #8B4513;
    --color-dark-brown: #654321;
    
    /* Accent Colors */
    --color-gold: #FFD700;
    --color-white: #FFFFFF;
    --color-off-white: #FEFEFE;
    
    /* Text Colors */
    --text-primary: #3D2914;
    --text-secondary: #6B4423;
    --text-light: #8B6F47;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 8px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 8px 16px rgba(139, 69, 19, 0.2);
    --shadow-xl: 0 12px 24px rgba(139, 69, 19, 0.25);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif TC', serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--color-cream);
    overflow-x: hidden;
    /* 移除 padding-top，讓 hero section 可以從頂部開始 */
    padding-top: 0;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.container {
    max-width: 1400px; /* 增加最大寬度 */
    margin: 0 auto;
    padding: 0 30px; /* 增加水平 padding */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===================================
   Header Styles
   =================================== */

/* Header Container - 使用固定定位，固定在頂部 */
#header {
    position: fixed; /* 改為固定定位，固定在頂部 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Large Header State (完全透明背景) */
#header.header-large {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

#header.header-large .top-bar {
    background: linear-gradient(90deg, #D2B48C 0%, #F5DEB3 100%);
    padding: 3px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#header.header-large .contact-info li {
    color: #8B4513;
    font-size: 14px;
    text-shadow: none;
    font-weight: 500;
}

#header.header-large .contact-info a {
    color: #8B4513;
    text-shadow: none;
    font-weight: 500;
}

#header.header-large .contact-info a:hover {
    color: #FFD700;
}

#header.header-large .social-icon {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.header-large .social-icon:hover {
    background: #8B4513;
    border-color: #8B4513;
    color: #F5DEB3;
}

#header.header-large .main-nav {
    background: transparent;
    padding: 4px 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    border-top: none;
}

#header.header-large .logo img {
    animation: scaleIn 0.6s ease-out;
}

#header.header-large .main-nav-menu > li > a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

#header.header-large .main-nav-menu > li > a:hover,
#header.header-large .main-nav-menu > li.current-menu-item > a {
    color: #FFD700;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

#header.header-large .mobile-menu-trigger i {
    color: #333;
    font-size: 18px;
}

/* Scrolled Header State (保持透明背景) */
#header.header-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

#header.header-scrolled .top-bar {
    background: linear-gradient(90deg, #D2B48C 0%, #F5DEB3 100%);
    padding: 1px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#header.header-scrolled .contact-info li {
    color: #8B4513;
    font-size: 14px;
    text-shadow: none;
    font-weight: 500;
}

#header.header-scrolled .contact-info a {
    color: #8B4513;
    text-shadow: none;
    font-weight: 500;
}

#header.header-scrolled .contact-info a:hover {
    color: #FFD700;
}

#header.header-scrolled .social-icon {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.header-scrolled .social-icon:hover {
    background: #8B4513;
    border-color: #8B4513;
    color: #F5DEB3;
}

#header.header-scrolled .main-nav {
    background: transparent;
    padding: 3px 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    border-top: none;
}

#header.header-scrolled .logo img {
    animation: scaleIn 0.6s ease-out;
}

#header.header-scrolled .main-nav-menu > li > a {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-radius: 6px;
}

#header.header-scrolled .main-nav-menu > li > a:hover,
#header.header-scrolled .main-nav-menu > li.current-menu-item > a {
    color: #fff;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
    transform: translateY(-1px);
}

#header.header-scrolled .mobile-menu-trigger i {
    color: #333;
    font-size: 18px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--color-light-brown) 0%, var(--color-beige) 100%);
    padding: 2px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.contact-info {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px; /* 減少間距 */
    align-items: center;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(139, 69, 19, 0.9);
}

.contact-info li i {
    font-size: 12px; /* 調整圖標大小 */
    color: #FFD700;
}

.contact-info a {
    color: rgba(139, 69, 19, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FFD700;
}

.top-bar .social-icons {
    display: flex;
    align-items: center;
    gap: 8px; /* 減少間距 */
    transform: translateY(-2px); /* 向上調整位置 */
}

.top-bar .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 50%;
    color: rgba(139, 69, 19, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.top-bar .social-icon i {
    font-size: 16px;
    line-height: 1;
}

.top-bar .social-icon:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
    transform: scale(1.1);
}

/* Main Navigation */
.main-nav {
    background: transparent;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    border-top: none;
    box-shadow: none;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-left {
    flex-shrink: 0;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Logo Styles */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1;
}

.brand-subtitle {
    font-size: 10px;
    color: #F5DEB3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
}

.main-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav-menu li {
    position: relative;
}

.main-nav-menu > li > a {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-radius: 6px;
}

.main-nav-menu > li > a:hover,
.main-nav-menu > li.current-menu-item > a {
    color: #fff;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
    transform: translateY(-1px);
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #F5DEB3 0%, #D2B48C 100%);
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #8B4513;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.sub-menu a:hover {
    background: rgba(139, 69, 19, 0.2);
    color: #654321;
    padding-left: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Mobile Menu Trigger */
.mobile-menu-trigger {
    display: none;
}

.mobile-menu-trigger i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    height: 100vh;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139,69,19,0.7) 0%, rgba(61,41,20,0.5) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 30px;
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-text-left {
    text-align: center;
}

.hero-text .subtitle {
    font-family: 'Noto Serif TC', serif;
    font-weight: 300;
    font-style: italic;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-text .hero-brand {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: #FFD700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    letter-spacing: 2px;
    animation: pulse 3s ease-in-out infinite;
}

.hero-text h1 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 600;
    font-size: 2.8rem;
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-text .description {
    font-family: 'Noto Serif TC', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-text-right {
    text-align: center;
}

.hero-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

@media (min-width: 768px) {
    .hero-flex {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero-text-left {
        flex: 1;
        text-align: left;
    }
    
    .hero-text-right {
        flex-shrink: 0;
        margin-left: 40px;
    }
}

/* ===================================
   Content Sections
   =================================== */

.content-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(250,246,240,0.95) 0%, rgba(255,255,255,0.98) 100%);
    z-index: 1;
}

.content-section:nth-child(even) {
    background-color: var(--color-cream);
}

.content-section.alt-bg {
    background-color: var(--color-beige);
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.content-section .container {
    position: relative;
    z-index: 2;
}

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

.section-title {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #A0522D;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   Grid Layouts
   =================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ===================================
   Cards and Components
   =================================== */

/* Category Cards */
.category-card {
    background: rgba(255, 255, 255, 0.95); /* 增加不透明度 */
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(5px); /* 減少模糊效果 */
    -webkit-backdrop-filter: blur(5px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(160, 82, 45, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: rgba(139, 69, 19, 0.2);
    background: rgba(255, 255, 255, 0.98); /* 懸停時更不透明 */
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.category-icon i {
    display: block;
    text-align: center;
    line-height: 1;
}

.category-emoji {
    display: block;
    text-align: center;
    line-height: 1;
    font-size: 2.5rem;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

.category-card:hover h3 {
    color: #8B4513;
}

.category-card p {
    color: #000;
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.category-link {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-link:hover {
    color: #A0522D;
    transform: translateX(5px);
}

.category-link i {
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: translateX(3px);
}

/* Recipe Cards */
.recipe-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(210, 180, 140, 0.2);
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(160, 82, 45, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.recipe-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(139, 69, 19, 0.2);
}

.recipe-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

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

.recipe-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.recipe-category {
    color: #8B4513;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Noto Sans TC', sans-serif;
}

.recipe-card:hover .recipe-category {
    color: #A0522D;
}

.recipe-card .recipe-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #000 !important;
    font-weight: 800;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.5px;
}

.recipe-card:hover .recipe-title {
    color: #8B4513 !important;
}

.recipe-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.recipe-card .recipe-description {
    color: #333 !important;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 0.2px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 0.5px;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.recipe-card:hover .recipe-meta span {
    color: #8B4513;
}

/* Recipe Tags */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.recipe-tags .tag {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.recipe-tags .tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.3);
}

.recipe-link {
    color: #8B4513;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 2px solid #8B4513;
    border-radius: 25px;
    background: transparent;
}

.recipe-link:hover {
    color: #fff;
    background: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.recipe-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.recipe-link:hover::after {
    transform: translateX(3px);
}

/* Feature Items */
.feature-item {
    padding: 12px 15px;
    position: relative;
    border-radius: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 1.8rem;
    color: #8B4513;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.feature-icon i {
    display: block;
}

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

.feature-content h4 {
    color: #000;
    margin-bottom: 3px;
    position: relative;
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.feature-content p {
    color: #000;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    margin: 0;
    word-break: keep-all;
    white-space: nowrap;
}

/* About Content */
.about-content {
    padding: 20px;
}

.about-content h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.about-content p {
    color: #000;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* ===================================
   Buttons
   =================================== */

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-light-brown) 100%);
    color: var(--color-white);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-brand {
        font-size: 3rem;
    }
    
    .hero-content .subtitle {
    font-size: 1.2rem;
}

    .hero-content .description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mobile-menu-trigger {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
    
    body {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-brand {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    .hero-content .description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .content-section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    to {
        text-shadow: 0 2px 8px rgba(255,215,0,0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   Additional Styles
   =================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Mobile Header */
.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #header {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
        display: flex;
    justify-content: space-between;
        align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8B4513;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-nav {
    margin-top: 20px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 10px;
}

.mobile-menu-list a {
    display: block;
    padding: 15px 20px;
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item a {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    transform: translateX(10px);
}

.mobile-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.menu-item-has-children.active .mobile-submenu {
    display: block;
}

.mobile-submenu li {
    margin-bottom: 5px;
}

.mobile-submenu a {
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #8B4513;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(7px, -6px);
} 

/* ===================================
   Recipe Detail Page Styles
   =================================== */

/* 整體容器 */
.recipe-detail-container {
    background: var(--color-cream);
    min-height: 100vh;
}

/* 頁面標題區域 */
.recipe-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.hero-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
        display: flex;
        align-items: center;
    }
    
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.recipe-header .container {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}

.recipe-title-area {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    margin-bottom: 20px;
}

.recipe-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.recipe-subtitle {
    font-size: 1.1rem;
    color: #FFD700;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.recipe-description {
    font-size: 1.1rem;
    color: #f8f9fa;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 主要內容區域 */
.recipe-main-content {
    padding: 40px 0;
}

/* 主圖區域 */
.recipe-hero {
    margin-bottom: 40px;
    width: 100%;
}

.recipe-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.recipe-image:hover .image-overlay {
    opacity: 1;
}

.expand-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.expand-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* 快速統計 */
.recipe-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.stat-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 內容佈局 */
.recipe-content-layout {
    display: grid;
    grid-template-columns: 1fr 2.33fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 食譜詳情頁面卡片樣式 */
.info-card,
.tags-card,
.ingredients-card,
.tips-card,
.related-card,
.steps-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header i {
    color: #FFD700;
    font-size: 1.2rem;
}

.card-header h3 {
    color: #8B4513;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content {
    color: #333;
}

/* 詳細資訊樣式 */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #8B4513;
    font-weight: 600;
}

/* 標籤樣式 */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* 食材清單樣式 */
.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-item:hover {
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    padding-left: 10px;
}

.ingredient-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

/* 小貼士樣式 */
.tips-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid #FFD700;
}

.tip-item i {
    color: #FFD700;
    font-size: 1.1rem;
    margin-top: 2px;
}

.tip-item p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* 相關食譜樣式 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.related-item:hover {
    background: rgba(139, 69, 19, 0.05);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

.related-info h4 {
    margin: 0 0 5px 0;
    color: #8B4513;
    font-size: 1rem;
    font-weight: 600;
}

.related-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 全新步驟說明樣式 - 現代化卡片設計 */
.steps-list {
    display: grid;
    gap: 30px;
    position: relative;
    padding: 0;
    width: 100%;
    margin: 0;
}

.step-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    box-shadow: 
        0 12px 40px rgba(139, 69, 19, 0.1),
        0 4px 16px rgba(139, 69, 19, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    width: 100%;
    transform: translateY(0);
}

.step-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(139, 69, 19, 0.15),
        0 8px 32px rgba(139, 69, 19, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border-radius: 24px 24px 0 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 30px 20px 30px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 165, 0, 0.02) 100%);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 30%, #CD853F 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 
        0 8px 24px rgba(139, 69, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: 'Noto Sans TC', sans-serif;
    position: relative;
    transition: all 0.3s ease;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.05) rotate(2deg);
}

.step-item:hover .step-number::after {
    opacity: 1;
}

.step-title {
    color: #2D1810;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    font-family: 'Noto Serif TC', serif;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content {
    color: #444;
    line-height: 1.8;
    padding: 0 30px 30px 30px;
    width: 100%;
    box-sizing: border-box;
}

.step-content p {
    margin: 0 0 18px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Noto Sans TC', sans-serif;
    color: #555;
    font-weight: 400;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-image {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.step-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.step-image:hover img {
    transform: scale(1.03);
}

.step-image::after {
    content: '🔍';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.step-image:hover::after {
    opacity: 1;
    transform: scale(1.05);
}

.recipe-main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.recipe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section h3 i {
    color: #FFD700;
}

/* 食材列表 */
.ingredients-section h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredients-section h3 i {
    color: #FFD700;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-item:hover {
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    padding-left: 10px;
}

.ingredient-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.ingredient-amount {
    color: #8B4513;
    font-weight: 600;
    font-size: 0.9rem;
}



/* 小貼士 */
.tips-section h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section h3 i {
    color: #FFD700;
}

.tips-content {
    background: linear-gradient(135deg, #FFF8DC 0%, #F5F5DC 100%);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #FFD700;
}

.tips-content p {
    margin: 0;
    color: #8B4513;
    line-height: 1.6;
    font-style: italic;
}

/* 標籤 */
.tags-section h3 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-section h3 i {
    color: #FFD700;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* 相關食譜 */
.related-recipes {
    margin-top: 40px;
}

.related-recipes h3 {
    color: #8B4513;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-category {
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 圖片模態框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    overflow: auto;
    padding: 60px 40px 40px 40px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 800px;
    min-height: auto;
    box-sizing: border-box;
    text-align: center;
}

.modal-image {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.8);
    border: none;
    padding: 8px 12px;
    line-height: 1;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.modal-close:hover {
    color: #FFD700;
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0 20px;
}

/* 手機版圖片模態框優化 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        top: 50%;
        transform: translateY(-50%);
        padding: 0 10px;
        position: relative;
    }
    
    .modal-image {
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.6);
        width: 100%;
        height: auto;
        display: block;
    }
    
    .modal-close {
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        padding: 8px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
    }
    
    .modal-caption {
        margin-top: 15px;
        font-size: 1rem;
        padding: 0 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-width: 98%;
        padding: 0 5px;
        position: relative;
    }
    
    .modal-image {
        border-radius: 6px;
        width: 100%;
        height: auto;
        display: block;
    }
    
    .modal-close {
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 1.8rem;
        padding: 6px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10001;
    }
    
    .modal-caption {
        margin-top: 12px;
        font-size: 0.9rem;
        padding: 0 5px;
        text-align: center;
    }
}

/* 桌面版圖片模態框優化 */
@media (min-width: 769px) {
    .image-modal {
        padding: 80px 60px 60px 60px;
    }
    
    .modal-content {
        width: 85%;
        max-width: 900px;
    }
    
    .modal-image {
        max-height: calc(100vh - 240px);
    }
    
    .modal-close {
        top: -55px;
        right: 0;
        font-size: 2.8rem;
        width: 55px;
        height: 55px;
        border: 3px solid rgba(255,255,255,0.4);
    }
    
    .modal-caption {
        font-size: 1.3rem;
        margin-top: 30px;
        padding: 0 20px;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .recipe-content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-image {
        height: 300px;
    }
    
    /* 手機版步驟樣式 */
    .steps-list {
        gap: 20px;
        padding: 0;
        width: 100%;
        margin: 0;
    }
    
    .step-item {
        border-radius: 20px;
        margin: 0;
        width: 100%;
    }
    
    .step-item::before {
        height: 4px;
    }
    
    .step-header {
        gap: 18px;
        padding: 25px 20px 15px 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-radius: 16px;
    }
    
    .step-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .step-content {
        padding: 0 20px 25px 20px;
        width: 100%;
    }
    
    .step-content p {
        font-size: 1rem;
        margin-bottom: 14px;
        line-height: 1.7;
    }
    
    .step-image {
        margin-top: 10px;
        width: 100%;
    }
    
    .step-image img {
        height: 180px;
    }
    
    .step-image::after {
        width: 30px;
        height: 30px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
    
    .recipe-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .recipe-title {
        font-size: 2rem;
    }
    
    .recipe-subtitle {
        font-size: 1rem;
    }
    
    .recipe-description {
        font-size: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* 增加卡片寬度 */
    .info-card,
    .tags-card,
    .ingredients-card,
    .tips-card,
    .related-card,
    .steps-card {
        padding: 20px 10px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* 特別優化步驟卡片 */
    .steps-card {
        padding: 20px 8px;
    }
    
    .steps-card .card-content {
        width: 100%;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .recipe-stats {
        grid-template-columns: 1fr;
    }
    
    .recipe-title {
        font-size: 1.8rem;
    }
    
    .recipe-subtitle {
        font-size: 0.9rem;
    }
    
    .recipe-description {
        font-size: 0.9rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    /* 超小螢幕步驟樣式 */
    .steps-list {
        gap: 18px;
        padding: 0;
        width: 100%;
        margin: 0;
    }
    
    .step-item {
        border-radius: 18px;
        margin: 0;
        width: 100%;
    }
    
    .step-item::before {
        height: 4px;
    }
    
    .step-header {
        gap: 15px;
        padding: 20px 15px 12px 15px;
    }
    
    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        border-radius: 14px;
    }
    
    .step-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .step-content {
        padding: 0 15px 20px 15px;
        width: 100%;
    }
    
    .step-content p {
        font-size: 0.95rem;
        margin-bottom: 12px;
        line-height: 1.6;
    }
    
    .step-image {
        margin-top: 8px;
        width: 100%;
    }
    
    .step-image img {
        height: 140px;
    }
    
    .step-image::after {
        width: 25px;
        height: 25px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .sidebar-section {
        padding: 15px;
    }
    
    /* 超小螢幕卡片優化 */
    .info-card,
    .tags-card,
    .ingredients-card,
    .tips-card,
    .related-card,
    .steps-card {
        padding: 15px 5px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* 特別優化步驟卡片 */
    .steps-card {
        padding: 15px 3px;
    }
    
    .steps-card .card-content {
        width: 100%;
        padding: 0 3px;
    }
    
    .card-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
}

/* ===================================
   Recipes Page Styles
   =================================== */

.page-header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    font-family: 'Noto Serif TC', serif;
}

.page-header p {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Noto Sans TC', sans-serif;
}

.search-filter-section {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: -30px auto 20px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    max-width: 1500px;
    position: relative;
    z-index: 10;
}

.search-bar {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.search-form input:focus {
    border-color: #8B4513;
}

.search-btn {
    padding: 14px 22px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-btn:hover {
    background: #A0522D;
}

.category-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-right: 12px;
    font-size: 15px;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fafafa;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.filter-emoji {
    margin-right: 6px;
    font-size: 1.1em;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #8B4513;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Recipes Page Responsive Styles */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
        min-height: 50vh;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .search-filter-section {
        margin: 20px 0;
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-form {
        max-width: 100%;
        width: 100%;
    }
    
    .search-form input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-label {
        text-align: center;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .search-filter-section {
        margin: 15px 0;
        padding: 15px 10px;
    }
    
    .search-form input {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .filter-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .filter-buttons {
        gap: 6px;
    }
}

.no-results .cta-button {
    display: inline-block;
    background: #8B4513;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results .cta-button:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

/* ===================================
   About Page Styles
   =================================== */

.about-hero {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-content-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.values-section {
    padding: 80px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

.process-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF8DC 0%, #F5F5DC 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h3 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

.community-section {
    padding: 80px 0;
    background: white;
}

.community-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.community-content h2 {
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.community-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.community-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.community-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

/* ===================================
   News Page Styles
   =================================== */

.news-hero {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.news-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.news-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.news-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content-inner {
    padding: 25px;
}

.news-date {
    color: #8B4513;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-link {
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #A0522D;
    transform: translateX(5px);
}

/* ===================================
   Admin Styles
   =================================== */

.admin-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-title {
    color: #8B4513;
    margin-bottom: 10px;
}

.admin-subtitle {
    color: #666;
    margin: 0;
}

.admin-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #8B4513;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-btn {
    background: #8B4513;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #FFD700;
    color: #8B4513;
}

.edit-btn:hover {
    background: #FFA500;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
}

.login-title {
    text-align: center;
    color: #8B4513;
    margin-bottom: 30px;
    font-size: 2rem;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-btn {
    width: 100%;
    background: #8B4513;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

/* ===================================
   Footer Styles
   =================================== */

#footer {
    background: linear-gradient(135deg, var(--color-dark-brown) 0%, var(--text-primary) 100%);
    color: var(--color-white);
    padding: 30px 0 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(139, 69, 19, 0.1);
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139,69,19,0.1) 0%, rgba(61,41,20,0.05) 100%);
    opacity: 0.3;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    margin-bottom: 30px;
}

/* Company Info */
.company-brand h4 {
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 5px;
    font-weight: 700;
}

.brand-subtitle {
    color: #ccc;
    font-size: 0.9rem;
    font-style: italic;
}

.company-description {
    color: #ccc;
    line-height: 1.8;
    margin: 20px 0;
    font-size: 0.95rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #FFD700;
    border-color: #FFD700;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* Quick Links */
.quick-links h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
        opacity: 0;
    transition: all 0.3s ease;
    }

.footer-links a:hover::before {
        opacity: 1;
}

/* Contact Info */
.contact-info h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    order: -1;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.contact-list h3 {
    order: -1;
    margin-bottom: 15px;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.contact-value {
    color: #fff !important;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #FFD700 !important;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.copyright p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   News Filter Section
   =================================== */

.news-filter-section {
    background: var(--color-white);
    padding: 40px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.news-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.news-filter .filter-btn {
    padding: 12px 24px;
    background: var(--color-cream);
    color: var(--text-secondary);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.news-filter .filter-btn:hover,
.news-filter .filter-btn.active {
    background: var(--color-brown);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Page Header Overlay
   =================================== */

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139,69,19,0.8) 0%, rgba(61,41,20,0.6) 50%, rgba(139,69,19,0.7) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===================================
   Additional Animations
   =================================== */

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhance Card Animations */
.recipe-card,
.category-card,
.feature-item {
    animation: fadeInScale 0.6s ease-out;
    animation-fill-mode: both;
}

.recipe-card:nth-child(1) { animation-delay: 0.1s; }
.recipe-card:nth-child(2) { animation-delay: 0.2s; }
.recipe-card:nth-child(3) { animation-delay: 0.3s; }
.recipe-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    to {
        text-shadow: 0 2px 8px rgba(255,215,0,0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   Scroll Progress Bar
   =================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* ===================================
   Mobile Header
   =================================== */

.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    #header {
        display: none;
    }
    
    body {
        padding-top: 120px;
    }
}

/* ===================================
   Mobile Menu
   =================================== */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8B4513;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-nav {
    margin-top: 20px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 10px;
}

.mobile-menu-list a {
    display: block;
    padding: 15px 20px;
    color: #8B4513;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list .current-menu-item a {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    transform: translateX(10px);
}

.mobile-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.menu-item-has-children.active .mobile-submenu {
    display: block;
}

.mobile-submenu li {
    margin-bottom: 5px;
}

.mobile-submenu a {
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===================================
   Hamburger Button
   =================================== */

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
        flex-direction: column;
    gap: 4px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #8B4513;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   About Page Styles
   =================================== */

/* About Cards */
.about-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 69, 19, 0.2);
}

/* Story Section */
.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-text h3 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.story-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.story-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    border-left: 4px solid #FFD700;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.story-highlight i {
    color: #FFD700;
    font-size: 1.5rem;
}

.story-highlight span {
    color: #8B4513;
    font-weight: 600;
    font-style: italic;
}

.story-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.story-image:hover .image-overlay {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #FFD700;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    color: #8B4513;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Community Hero */
.community-hero {
    margin-bottom: 50px;
}

.community-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h3 {
    color: #8B4513;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 25px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    color: #8B4513;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    overflow: hidden;
    padding: 0;
}

.program-image {
    height: 200px;
    overflow: hidden;
}

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

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    transition: all 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1) rotate(5deg);
}

.program-icon i {
    font-size: 2rem;
    color: white;
}

.program-content {
    padding: 25px 30px 30px;
}

.program-content h4 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.program-content p {
    color: #666;
    line-height: 1.6;
}

/* Impact Section */
.impact-content {
    text-align: center;
    padding: 50px 40px;
}

.impact-header h2 {
    color: #8B4513;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.impact-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.message-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(139, 69, 19, 0.1) 100%);
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
}

.message-highlight i {
    color: #FFD700;
    font-size: 2rem;
    position: absolute;
}

.message-highlight i.fa-quote-left {
    top: 15px;
    left: 20px;
}

.message-highlight i.fa-quote-right {
    bottom: 15px;
    right: 20px;
}

.message-highlight p {
    color: #8B4513;
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
    padding: 0 40px;
}

.impact-description p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.mission-callout {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

.mission-callout h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

/* Social Media Grid */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.social-item {
    text-align: center;
    padding: 40px 30px;
}

.social-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    font-size: 2.5rem;
    color: white;
}

.social-icon-large.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D6EFD 100%);
}

.social-icon-large.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.social-icon-large.line {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
}

.social-item:hover .social-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.social-item h3 {
    color: #8B4513;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.social-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-link {
    display: inline-block;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
    color: white;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px 25px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.step-content h4 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-content {
    padding: 50px 40px;
}

.cta-content h2 {
    color: #8B4513;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
}

/* About Page Responsive */
@media (max-width: 768px) {
    .community-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .values-grid,
    .features-grid,
    .programs-grid,
    .social-media-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 25px 20px;
    }
    
    .impact-content {
        padding: 40px 25px;
    }
    
    .message-highlight p {
        font-size: 1.1rem;
        padding: 0 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .story-text h3 {
        font-size: 1.5rem;
    }
    
    .impact-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .about-card {
        padding: 20px 15px;
    }
}

/* Hero 區塊標題顏色調整 */
.hero-brand-yellow {
    color: #FFD700 !important;
    font-weight: 700;
}
.subtitle-white {
    color: #fff !important;
}
.hero-title-white {
    color: #fff !important;
}
