:root {
    /* 顏色配置 (Color System) */
    --primary-color: #FFF2D0;
    /* 主色：奶油色 */
    --primary-hover: #E6DAB8;
    /* 主色 Hover */
    --primary-light: #FFFAF0;
    /* 淺色版背景 */
    --secondary-color: #D4A373;
    /* 次要色：暖木色 */
    --text-dark: #4A3F35;
    /* 深色文字 */
    --text-muted: #8B7E74;
    /* 輔助文字 */
    --bg-light: #FFFCF5;
    /* 頁面背景 */
    --white: #ffffff;

    /* 語意色彩 */
    --success: #8FA998;
    --error: #C97B7B;
    --warning: #E0B36B;

    /* 視覺規範 */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 12px 40px rgba(74, 63, 53, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基礎樣式重置 (Base Reset) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    line-height: 1.8;
    /* 間距優化 */
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* 程式碼字體 */
code,
pre {
    font-family: 'JetBrains Mono', monospace;
}

/* 導覽列優化 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 8%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--secondary-color);
}

.logo span {
    font-weight: 400;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links i {
    margin-right: 4px;
    font-size: 0.85rem;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄畫面 (Hero Section) */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    clip-path: ellipse(150% 100% at 50% 0%);
    /* 視覺亮點：弧形底部 */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    /* 字級階層響應式 */
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

/* 搜尋框優化 */
.search-container {
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-container button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

/* 美食內容區通用樣式 */
.food-section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    font-size: 2.2rem;
    font-weight: 900;
}

.section-title i {
    color: var(--secondary-color);
    margin-right: 12px;
}

.section-history {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* 餐廳卡片 (Food Cards) */
.food-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.food-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(74, 63, 53, 0.12);
}

.food-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.food-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.food-info {
    padding: 28px;
}

.food-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.food-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 講師介紹區 (Instructor) */
.instructor-section {
    padding: 100px 8%;
    background: var(--primary-light);
}

.instructor-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.instructor-image img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.instructor-info h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.instructor-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.instructor-desc {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.instructor-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.instructor-tags li {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* 課程推薦 (Course Banner) */
.course-section {
    padding: 120px 8%;
    background: var(--text-dark);
}

.course-banner {
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
}

.course-tag {
    background: var(--secondary-color);
    color: var(--white);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-banner h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 30px 0;
    font-weight: 900;
}

.course-btn {
    padding: 18px 50px;
    background: var(--primary-color);
    border: none;
    color: var(--text-dark);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.course-btn:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* 頁尾 (Footer) */
footer {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 響應式佈局 (Responsive Design) - 手機優先 */
@media (max-width: 1200px) {

    .food-section,
    .instructor-section,
    .course-section {
        padding: 80px 5%;
    }
}

@media (max-width: 992px) {
    .instructor-container {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        /* 平常隱藏，可搭配 JS 切換 */
    }

    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        background: transparent;
        box-shadow: none;
    }

    .search-container input {
        background: var(--white);
        margin-bottom: 12px;
        box-shadow: var(--shadow-soft);
    }

    .instruction-container {
        gap: 30px;
    }

    .course-banner h2 {
        font-size: 2rem;
    }
}

/* 微動畫 (Animations) */
[id] {
    scroll-margin-top: 100px;
}

/* 按鈕反饋效果 */
button:active {
    transform: scale(0.95);
}