<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}小红书数据采集工具{% endblock %}</title>
    {% if project_description %}
    <meta name="description" content="{{ project_description }}">
    {% endif %}
    {% load static %}
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Google Fonts: Inter -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
    <style>
        :root {
            --xhs-red: #EE2737;
            --xhs-red-dark: #D61E2D;
            --dark-charcoal: #2D2E2E;
            --soft-white: #F8F9FA;
        }
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--soft-white);
            color: var(--dark-charcoal);
        }
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .btn-xhs {
            background-color: var(--xhs-red);
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: background-color 0.2s;
        }
        .btn-xhs:hover {
            background-color: var(--xhs-red-dark);
            color: white;
        }
        .card {
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .hero-section {
            background: linear-gradient(135deg, #EE2737 0%, #ff6b6b 100%);
            color: white;
            padding: 60px 0;
            margin-bottom: 40px;
        }
    </style>
    {% block head %}{% endblock %}
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand fw-bold" href="{% url 'home' %}">
                <span style="color: var(--xhs-red)">XHS</span> Data Tool
            </a>
            <div class="ms-auto">
                <a href="/admin/" class="btn btn-outline-secondary btn-sm">后台管理 (Admin)</a>
            </div>
        </div>
    </nav>

    {% block content %}{% endblock %}

    <footer class="py-4 mt-5 bg-white border-top">
        <div class="container text-center text-muted small">
            &copy; {% now "Y" %} 小红书数据采集导出工具 - Powered by Flatlogic
        </div>
    </footer>

    <!-- Bootstrap 5 JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>