<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-zoom=user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title>Error - Be my Anchor</title>
    <link rel="stylesheet" href="{{ prefix }}/{{ url_for('static', filename='css/main.css') }}">
    <script src="{{ prefix }}/{{ url_for('static', filename='js/main.js') }}"></script>
</head>

<body>
    <header>
        <!-- 左侧历史按钮 -->
        <button class="history-button" onclick="toggleHistory()">
            <img src="/proxy/5000/static/icons/clock.png" alt="History">
        </button>

        <!-- 中间Logo和标题 -->
        <div class="branding">
            <img src="/proxy/5000/static/logo.png" alt="Logo" class="brand-logo">
            <span class="site-name">Be my Anchor</span>
        </div>

        <!-- 右侧菜单组 -->
        <div class="nav-group">
            <div class="menu">
                <button class="menu-button" onclick="toggleMenu(event)">
                    <img src="/proxy/5000/static/icons/people.png" alt="Menu">
                </button>
                <!-- 菜单下拉内容 -->
                <div class="menu-dropdown" id="mainMenu">
                    <a href="/" class="menu-item">返回主页</a>
                    <a href="/report" class="menu-item">报告问题</a>
                    <a href="/login" class="menu-item" id="loginItem">登录</a>
                </div>
            </div>
        </div>
    </header>

    <!-- 历史记录面板结构 -->
    <div class="history-panel" id="historyPanel">
        <button class="history-close" onclick="toggleHistory()">
            <img src="/proxy/5000/static/icons/play-pause.png" alt="Close">
        </button>

        <div class="history-content">
            <div class="history-item">
                <span class="timestamp">10:30</span>
                <span class="title">文章标题示例 1</span>
            </div>
            <!-- 更多历史记录项... -->
            <div class="history-item">
                <span class="timestamp">11:45</span>
                <span class="title">文章标题示例 20</span>
            </div>
        </div>
    </div>
    <main>
        <div class="error-container">
            <h2>Oops! Something went wrong</h2>
            <p class="error-message">{{ error_message }}</p>
            <a href="/" class="primary-button">Return Home</a>
        </div>
    </main>
</body>

</html>