/* 基础设置与色彩变量 */
:root {
    --bg-color: #F8F5F0; 
    --bg-light: #FFFFFF;
    --text-main: #2D2421;
    --text-muted: #7A6C65;
    --accent-color: #A45A45; 
    --font-heading: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-body: 'Montserrat', 'Kaiti SC', 'STKaiti', 'KaiTi', 'BiauKai', sans-serif;
}

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

html {
    scroll-behavior: smooth; /* 导航点击平滑滚动 */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.text-center { text-align: center; }
.section { padding: 8rem 0; }
.bg-light { background-color: var(--bg-light); }

/* 排版系统 */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
}
.section-title {
    font-size: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
    background: rgba(247, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem; /* 1. 放大了字号 */
    font-weight: 500; /* 2. 稍微增加了字体的分量感，让它更清晰 */
    text-transform: uppercase;
    letter-spacing: 0.15em; /* 3. 稍微拉宽了字间距，保持呼吸感和高级感 */
    transition: color 0.3s;
}

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

/* 移动端菜单按钮 (汉堡图标) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.hero-content h1 {
    font-size: 6rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* 压暗图片以突出文字 */
}

/* --- 页面通用按钮 (View Full Menu / View More 等) --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    font-family: var(--font-body);
    cursor: pointer;
}
.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
}
.btn-solid {
    background-color: var(--text-main);
    color: var(--bg-color);
    border: 1px solid var(--text-main);
}
.btn-solid:hover {
    background-color: transparent;
    color: var(--text-main);
}

/* --- 外卖按钮组件 --- */
.order-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
/* --- 高级极简外卖按钮 --- */
.elegant-buttons {
    display: flex;
    justify-content: center;
    gap: 4rem; /* 两个按钮之间留出充裕的呼吸感 */
    margin-top: 3.5rem;
}

.btn-elegant {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.25em; /* 极宽的字间距，提升高级感 */
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15); /* 默认是很淡的下划线 */
    padding-bottom: 8px;
    transition: all 0.4s ease;
}

.btn-elegant svg {
    transition: transform 0.4s ease; /* 让箭头可以丝滑移动 */
}

/* 鼠标悬浮时的交互效果 */
.btn-elegant:hover {
    border-bottom-color: var(--text-main); /* 下划线变深 */
}

.btn-elegant:hover svg {
    transform: translateX(6px); /* 箭头向右微微滑动，非常丝滑 */
}

/* 手机端适配 */
@media (max-width: 768px) {
    .elegant-buttons {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

/* --- 菜单 --- */
.menu-nav {
    margin-bottom: 4rem;
}
.menu-tab {
    cursor: pointer;
    margin: 0 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: 0.3s;
}
.menu-tab.active {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 5px;
}
.menu-category {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}
.category-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.menu-item {
    margin-bottom: 2rem;
    text-align: center;
}
.menu-item-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.menu-item h4 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.menu-item .price {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
}
.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- 主页两列菜单排版 (2-Column Grid) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 均分成两列 */
    column-gap: 5rem; /* 左右两列之间的宽敞间距 */
    row-gap: 3rem;    /* 上下行之间的间距 */
    max-width: 1000px; /* 比单列稍微放宽一点，增加呼吸感 */
    margin: 0 auto 4rem auto;
}

.menu-grid .menu-item {
    margin-bottom: 0; /* 清除默认的下边距，由 grid 的 row-gap 接管 */
}

/* 手机端 (屏幕小于 768px 时) 自动回退为单列，方便阅读 */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 2.5rem;
    }
    .menu-item h4 {
        font-size: 1rem;
    }
    .category-title {
        font-size: 1.2rem;
    }
}


/* --- Gallery  --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 2px;
    aspect-ratio: 4 / 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: box-shadow 0.4s ease;
    will-change: transform, opacity;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.05); 
}

/* --- Footer --- */
.footer {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 6rem 0 2rem 0;
}
.footer-brand h2 {
    font-size: 3rem;
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
}
.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}
.info-block h4 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #ccc;
}
.info-block p {
    font-size: 0.9rem;
    color: #999;
}
.social-links {
    margin-top: 1rem;
}
.social-links a {
    color: #999;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.social-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}
.footer-bottom a { color: #666; text-decoration: none; }

/* --- 响应式设计 (手机平板适配) --- */
@media (max-width: 768px) {
    .navbar { padding: 1.5rem 2rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 0.9rem; }
    
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(247, 246, 242, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 99;
    }
    .nav-links.active { transform: translateY(0); }
    
    .order-buttons { flex-direction: column; padding: 0 2rem; }
    
    .footer-info { grid-template-columns: 1fr; gap: 3rem; }
}