<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ӫ - ԻʳƼ</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/analysis.css') }}">
</head>
<body>
    <div class="container">
        <header class="header">
            <h1>? Ӫ</h1>
            <p class="subtitle">AIӪ뽨</p>
        </header>

        <nav class="nav">
            <a href="/" class="nav-item">ҳ</a>
            <a href="/data-collection" class="nav-item">ݲɼ</a>
            <a href="/recommendation" class="nav-item">Ƽ</a>
            <a href="/analysis" class="nav-item active">Ӫ</a>
            <a href="/recitation" class="nav-item"></a>
        </nav>

        <main class="main">
            <div class="analysis-container">
                <div id="loginSection" class="section">
                    <h2>û¼</h2>
                    <div class="form-group">
                        <label for="userId">ûID</label>
                        <input type="text" id="userId" class="form-input" placeholder="ûID">
                    </div>
                    <button id="loginBtn" class="btn btn-primary">¼</button>
                </div>

                <div id="requestSection" class="section" style="display: none;">
                    <h2>Ӫ</h2>
                    <div class="form-group">
                        <label>ʳϢ</label>
                        <textarea id="mealData" class="form-textarea" rows="5" placeholder="ʳϢ磺&#10;ͣࡢ㽶ţ&#10;350"></textarea>
                    </div>
                    <button id="analyzeBtn" class="btn btn-primary">ʼ</button>
                </div>

                <div id="analysisSection" class="section" style="display: none;">
                    <h2></h2>
                    <div id="analysisResult" class="analysis-result"></div>
                </div>

                <div id="messageArea" class="message-area"></div>
            </div>
        </main>

        <footer class="footer">
            <p>&copy; 2024 ԻʳƼ</p>
        </footer>
    </div>

    <script src="{{ url_for('static', filename='js/analysis.js') }}"></script>
</body>
</html>
