<!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 $pageTitle ?? SITE_NAME; ?></title>
    <meta name="description" content="<?php echo $pageDescription ?? SITE_DESCRIPTION; ?>">
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Microsoft YaHei', sans-serif; color: #333; line-height: 1.6; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        a { text-decoration: none; color: inherit; }
        
        /* 医疗行业特色导航 */
        .header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
        .header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
        .logo { font-size: 24px; font-weight: bold; color: #2ecc71; }
        .logo span { color: #333; }
        .nav ul { display: flex; list-style: none; gap: 30px; }
        .nav a { font-size: 16px; padding: 10px 0; position: relative; }
        .nav a:hover, .nav li.active a { color: #2ecc71; }
        .nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #2ecc71; transition: width 0.3s; }
        .nav a:hover::after, .nav li.active a::after { width: 100%; }
        .header-contact { display: flex; align-items: center; gap: 20px; }
        .emergency-phone { color: #e74c3c; font-weight: bold; font-size: 18px; }
    </style>
</head>
<body>
    <!-- 医疗行业头部 -->
    <header class="header">
        <div class="container">
            <div class="header-inner">
                <div class="logo">
                    🏥 <?php echo SITE_NAME; ?><span>（医疗健康）</span>
                </div>
                <nav class="nav">
                    <ul>
                        <li class="<?php echo ($_GET['p'] ?? 'home') == 'home' ? 'active' : ''; ?>"><a href="/">首页</a></li>
                        <li class="<?php echo ($_GET['p'] ?? '') == 'about' ? 'active' : ''; ?>"><a href="/about.html">关于我们</a></li>
                        <li class="<?php echo ($_GET['p'] ?? '') == 'services' ? 'active' : ''; ?>"><a href="/services.html">科室介绍</a></li>
                        <li class="<?php echo ($_GET['p'] ?? '') == 'team' ? 'active' : ''; ?>"><a href="/team.html">医生团队</a></li>
                        <li class="<?php echo in_array($_GET['p'] ?? '', ['news', 'article']) ? 'active' : ''; ?>"><a href="/news.html">健康资讯</a></li>
                        <li class="<?php echo ($_GET['p'] ?? '') == 'contact' ? 'active' : ''; ?>"><a href="/contact.html">联系我们</a></li>
                    </ul>
                </nav>
                <div class="header-contact">
                    <div class="emergency-phone">急救电话：120</div>
                    <a href="/appointment.html" style="padding:10px 20px; background:#2ecc71; color:white; border-radius:4px;">在线预约</a>
                </div>
            </div>
        </div>
    </header>
    
    <!-- 紧急通知栏 -->
    <div style="background:#e74c3c; color:white; padding:10px 0; text-align:center; font-size:14px;">
        ⚠️ 疫情期间，请佩戴口罩就诊 | 24小时在线预约 | 咨询电话：0731-XXXXXXX
    </div>
