<?php
$current_page = basename($_SERVER['PHP_SELF']);
?>
<style>
    .navbar { background-color: #0f3460; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
    .navbar h2 { margin: 0; font-size: 1.2rem; color: #4facfe; text-shadow: 0 0 5px rgba(79, 172, 254, 0.5);}
    .nav-links { display: flex; gap: 10px; flex-wrap: wrap;}
    .nav-links a { color: #bdc3c7; text-decoration: none; font-weight: bold; padding: 6px 12px; border-radius: 6px; transition: 0.3s; }
    .nav-links a:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
    .nav-links a.active { background-color: #e94560; color: #fff; box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);}
    @media (max-width: 768px) {
        .navbar { flex-direction: column; gap: 15px; text-align: center; }
        .nav-links { justify-content: center; }
    }
</style>
<div class="navbar">
    <h2>👑 世界政府總部</h2>
    <div class="nav-links">
        <a href="index.php" class="<?php echo ($current_page == 'index.php') ? 'active' : ''; ?>">🌍 核心大盤</a>
        <a href="items.php" class="<?php echo ($current_page == 'items.php') ? 'active' : ''; ?>">🃏 卡牌印製局</a>
        <a href="stocks.php" class="<?php echo ($current_page == 'stocks.php') ? 'active' : ''; ?>">📈 證券交易所</a>
        <a href="estate_super.php" class="<?php echo ($current_page == 'estate_super.php') ? 'active' : ''; ?>">🏘️ 房地產管理局</a>
        <a href="logout.php">登出</a>
    </div>
</div>