<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>婚礼宝典 · 本地专家</title>
    <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>💒</text></svg>">
    <link rel="manifest" href="manifest.json">
    <meta name="theme-color" content="#b64a2a">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="apple-mobile-web-app-title" content="婚礼宝典">
    <link rel="apple-touch-icon" href="images/pwa/icon-192x192.png">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>

<div class="top-bar">
    <div class="container">
        <div class="top-bar-left">
            <i class="fas fa-phone-alt"></i> 咨询电话：18635381375
            <span class="separator">|</span>
            <i class="fas fa-envelope"></i> 18635381375@163.com
        </div>
        <div class="top-bar-right">
            <?php if (isset($_SESSION['username'])): ?>
                <span>👤 <?php echo htmlspecialchars($_SESSION['username']); ?>，欢迎您！</span>
                <a href="admin.php">后台</a>
                <a href="logout.php">退出</a>
            <?php else: ?>
                <a href="login.php"><i class="fas fa-user"></i> 登录</a>
                <a href="register.php"><i class="fas fa-user-plus"></i> 注册</a>
            <?php endif; ?>
            <a href="#" id="favBtn"><i class="far fa-heart"></i> 收藏本站</a>
        </div>
    </div>
</div>

<nav class="main-nav">
    <div class="container">
        <div class="logo">
            <a href="index.php">
                <span class="logo-icon">💒</span>
                <span class="logo-text">婚礼宝典</span>
                <span class="logo-sub">本地专家</span>
            </a>
        </div>
        <ul class="nav-menu" id="navMenu">
            <li class="<?php echo ($pageTitle ?? '') == '首页' ? 'active' : ''; ?>">
                <a href="index.php"><i class="fas fa-home"></i> 首页</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '服务项目' ? 'active' : ''; ?>">
                <a href="services.php"><i class="fas fa-concierge-bell"></i> 服务</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '预算管理' ? 'active' : ''; ?>">
                <a href="budget.php"><i class="fas fa-calculator"></i> 预算</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '婚礼清单' ? 'active' : ''; ?>">
                <a href="checklist.php"><i class="fas fa-tasks"></i> 清单</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '阳泉婚俗' ? 'active' : ''; ?>">
                <a href="traditions.php"><i class="fas fa-book"></i> 婚俗</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '本地风俗查询' ? 'active' : ''; ?>">
                <a href="custom.php"><i class="fas fa-search"></i> 风俗</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '商家推荐' ? 'active' : ''; ?>">
                <a href="vendors.php"><i class="fas fa-store"></i> 商家</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '婚礼案例' ? 'active' : ''; ?>">
                <a href="gallery.php"><i class="fas fa-images"></i> 案例</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '交友约会' ? 'active' : ''; ?>">
                <a href="dating.php"><i class="fas fa-heart"></i> 交友</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '婚礼当日流程安排' ? 'active' : ''; ?>">
                <a href="wedding_schedule.php"><i class="fas fa-calendar-check"></i> 流程</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '父母衣着指南' ? 'active' : ''; ?>">
                <a href="parent_attire.php"><i class="fas fa-tshirt"></i> 衣着</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '父母台词范例' ? 'active' : ''; ?>">
                <a href="parent_speech.php"><i class="fas fa-microphone-alt"></i> 台词</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '老黄历' ? 'active' : ''; ?>">
                <a href="almanac.php"><i class="fas fa-calendar-alt"></i> 黄历</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '天气查询' ? 'active' : ''; ?>">
                <a href="weather.php"><i class="fas fa-cloud-sun"></i> 天气</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '八字测算' ? 'active' : ''; ?>">
                <a href="bazi.php"><i class="fas fa-yin-yang"></i> 八字</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '电子请柬' ? 'active' : ''; ?>">
                <a href="invitation_create.php"><i class="fas fa-envelope-open-text"></i> 请柬</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '机票与高铁票查询' ? 'active' : ''; ?>">
                <a href="tickets.php"><i class="fas fa-train"></i> 票务</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '酒店查询' ? 'active' : ''; ?>">
                <a href="hotel.php"><i class="fas fa-hotel"></i> 酒店</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '地图导航' ? 'active' : ''; ?>">
                <a href="map.php"><i class="fas fa-map-marked-alt"></i> 地图</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == 'AI婚礼顾问' ? 'active' : ''; ?>">
                <a href="ai.php"><i class="fas fa-robot"></i> AI顾问</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '婚礼司仪数字人' ? 'active' : ''; ?>">
                <a href="digital_human_host.php"><i class="fas fa-user-tie"></i> 司仪数字人</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '数字人大屏' ? 'active' : ''; ?>">
                <a href="digital_human_screen.php" target="_blank"><i class="fas fa-tv"></i> 大屏展示</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '全局总管数字人' ? 'active' : ''; ?>">
                <a href="digital_human_manager.php"><i class="fas fa-clipboard-list"></i> 总管数字人</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '资料下载' ? 'active' : ''; ?>">
                <a href="downloads.php"><i class="fas fa-download"></i> 下载</a>
            </li>
            <li class="<?php echo ($pageTitle ?? '') == '关于我们' ? 'active' : ''; ?>">
                <a href="about.php"><i class="fas fa-info-circle"></i> 关于</a>
            </li>
        </ul>
        <div class="search-box">
            <input type="text" id="searchInput" placeholder="搜索婚礼服务...">
            <button id="searchBtn"><i class="fas fa-search"></i></button>
        </div>
        <button class="mobile-menu-btn" id="mobileMenuBtn">
            <i class="fas fa-bars"></i>
        </button>
    </div>
</nav>

<div class="breadcrumb">
    <div class="container">
        <i class="fas fa-map-marker-alt"></i> 
        <a href="index.php">首页</a>
        <span class="separator">/</span>
        <span><?php echo $pageTitle ?? '婚礼宝典'; ?></span>
    </div>
</div>