<?php
?>
<div class="header">
    <h1>网站管理后台</h1>
    <button id="themeToggle" class="theme-toggle" aria-label="切换主题">🌙</button>
    <a href="?action=logout" class="btn btn-danger">
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
            <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
            <polyline points="16 17 21 12 16 7"></polyline>
            <line x1="21" y1="12" x2="9" y2="12"></line>
        </svg>
        退出登录
    </a>
</div>