<?php
/**
 * 餐厅美食模板 - 头部
 */
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo seo_title($pageTitle ?? ''); ?></title>
    <meta name="description" content="<?php echo seo_description($pageDescription ?? ''); ?>">
    <meta name="keywords" content="<?php echo seo_keywords($pageKeywords ?? ''); ?>">
    <link rel="canonical" href="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
    
    <!-- Open Graph -->
    <meta property="og:title" content="<?php echo seo_title($pageTitle ?? ''); ?>">
    <meta property="og:description" content="<?php echo seo_description($pageDescription ?? ''); ?>">
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
    
    <!-- Favicon -->
    <link rel="icon" href="<?php echo get_setting('site_favicon', '/favicon.ico'); ?>" type="image/x-icon">
    
    <!-- CSS -->
    <link rel="stylesheet" href="/templates/<?php echo $theme; ?>/style.css?v=1781530025">
    
    <!-- Robots -->
    <meta name="robots" content="index, follow">
    
    <?php echo get_setting('stat_code', ''); ?>
</head>
<body>
    <!-- 顶部信息栏 -->
    <div class="top-bar" style="background:#c0392b;">
        <div class="container">
            <div class="top-left">
                <span>欢迎品尝<?php echo SITE_NAME; ?>的美味佳肴！</span>
            </div>
            <div class="top-right">
                <span>订座电话：<?php echo get_setting('contact_phone', '13874944449'); ?></span>
                <span>营业时间：11:00-14:00，17:00-21:00</span>
            </div>
        </div>
    </div>
    
    <!-- 导航栏 -->
    <header class="header" style="background:white; box-shadow:0 2px 10px rgba(0,0,0,0.1);">
        <div class="container">
            <div class="logo">
                <a href="/">
                    <?php $logo = get_setting('site_logo', ''); ?>
                    <?php if ($logo): ?>
                        <img src="<?php echo $logo; ?>" alt="<?php echo SITE_NAME; ?>">
                    <?php else: ?>
                        <h1 style="color:#c0392b;"><?php echo SITE_NAME; ?></h1>
                    <?php endif; ?>
                </a>
                <p class="slogan"><?php echo get_setting('slogan'); ?></p>
            </div>
            <nav class="nav">
                <ul style="display:flex; list-style:none; gap:5px;">
                    <li><a href="/" style="display:block; padding:10px 15px; color:#333; text-decoration:none; border-radius:4px; transition:all 0.3s;">首页</a></li>
                    <li><a href="/menu" style="display:block; padding:10px 15px; color:#333; text-decoration:none; border-radius:4px; transition:all 0.3s;">菜品菜单</a></li>
                    <li><a href="/about" style="display:block; padding:10px 15px; color:#333; text-decoration:none; border-radius:4px; transition:all 0.3s;">关于我们</a></li>
                    <li><a href="/reservation" style="display:block; padding:10px 15px; color:#333; text-decoration:none; border-radius:4px; transition:all 0.3s;">在线订座</a></li>
                    <li><a href="/contact" style="display:block; padding:10px 15px; color:#333; text-decoration:none; border-radius:4px; transition:all 0.3s;">联系我们</a></li>
                    <li><a href="javascript:void(0);" onclick="document.getElementById('reservationModal').style.display='block';" style="display:block; padding:10px 15px; background:#c0392b; color:white; text-decoration:none; border-radius:4px;">立即订座</a></li>
                </ul>
            </nav>
        </div>
    </header>
    
    <!-- 主内容区开始 -->
