2026-03-09 16:10:29 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2026-03-16 16:14:08 +08:00
|
|
|
<title>{% block title %}微博超话签到{% endblock %}</title>
|
2026-03-09 16:10:29 +08:00
|
|
|
<style>
|
2026-03-16 16:14:08 +08:00
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
|
|
|
|
body {
|
2026-03-16 16:14:08 +08:00
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
|
|
|
|
|
background: linear-gradient(135deg, #f0f2ff 0%, #faf5ff 50%, #fff0f6 100%);
|
|
|
|
|
color: #1a1a2e;
|
|
|
|
|
min-height: 100vh;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navbar {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: rgba(255,255,255,0.85);
|
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
|
-webkit-backdrop-filter: blur(12px);
|
|
|
|
|
border-bottom: 1px solid rgba(99,102,241,0.08);
|
|
|
|
|
padding: 0 24px;
|
2026-03-09 16:10:29 +08:00
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
.navbar-content {
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2026-03-16 16:14:08 +08:00
|
|
|
height: 64px;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
|
|
|
|
.navbar-brand {
|
2026-03-16 16:14:08 +08:00
|
|
|
font-size: 22px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
background: linear-gradient(135deg, #6366f1, #a855f7);
|
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
|
-webkit-text-fill-color: transparent;
|
2026-03-09 16:10:29 +08:00
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
.navbar-menu {
|
|
|
|
|
display: flex;
|
2026-03-16 16:14:08 +08:00
|
|
|
gap: 28px;
|
2026-03-09 16:10:29 +08:00
|
|
|
align-items: center;
|
|
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.navbar-menu > a {
|
|
|
|
|
color: #64748b;
|
2026-03-09 16:10:29 +08:00
|
|
|
text-decoration: none;
|
2026-03-16 16:14:08 +08:00
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
transition: color 0.2s;
|
|
|
|
|
padding: 6px 0;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.navbar-menu > a:hover { color: #6366f1; }
|
2026-03-09 16:10:29 +08:00
|
|
|
.navbar-user {
|
|
|
|
|
display: flex;
|
2026-03-16 16:14:08 +08:00
|
|
|
gap: 14px;
|
2026-03-09 16:10:29 +08:00
|
|
|
align-items: center;
|
|
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.navbar-user span {
|
|
|
|
|
color: #475569;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
2026-03-09 16:10:29 +08:00
|
|
|
.btn-logout {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: linear-gradient(135deg, #f43f5e, #e11d48);
|
2026-03-09 16:10:29 +08:00
|
|
|
color: white;
|
2026-03-16 16:14:08 +08:00
|
|
|
padding: 7px 18px;
|
2026-03-09 16:10:29 +08:00
|
|
|
border: none;
|
2026-03-16 16:14:08 +08:00
|
|
|
border-radius: 20px;
|
2026-03-09 16:10:29 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
text-decoration: none;
|
2026-03-16 16:14:08 +08:00
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
transition: opacity 0.2s;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.btn-logout:hover { opacity: 0.85; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
max-width: 1200px;
|
2026-03-16 16:14:08 +08:00
|
|
|
margin: 28px auto;
|
2026-03-09 16:10:29 +08:00
|
|
|
padding: 0 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.alert {
|
2026-03-16 16:14:08 +08:00
|
|
|
padding: 14px 20px;
|
2026-03-09 16:10:29 +08:00
|
|
|
margin-bottom: 20px;
|
2026-03-16 16:14:08 +08:00
|
|
|
border-radius: 16px;
|
|
|
|
|
font-size: 14px;
|
2026-03-09 16:10:29 +08:00
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
|
|
|
|
|
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
|
|
|
|
|
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
|
|
|
|
|
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
2026-03-16 16:14:08 +08:00
|
|
|
.form-group { margin-bottom: 20px; }
|
|
|
|
|
label { display: block; margin-bottom: 8px; font-weight: 600; color: #334155; font-size: 14px; }
|
|
|
|
|
|
|
|
|
|
input[type="text"], input[type="email"], input[type="password"], textarea, select {
|
2026-03-09 16:10:29 +08:00
|
|
|
width: 100%;
|
2026-03-16 16:14:08 +08:00
|
|
|
padding: 12px 16px;
|
|
|
|
|
border: 1.5px solid #e2e8f0;
|
|
|
|
|
border-radius: 14px;
|
2026-03-09 16:10:29 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: inherit;
|
2026-03-16 16:14:08 +08:00
|
|
|
background: #fff;
|
|
|
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
|
|
|
|
|
textarea:focus, select:focus {
|
2026-03-09 16:10:29 +08:00
|
|
|
outline: none;
|
2026-03-16 16:14:08 +08:00
|
|
|
border-color: #818cf8;
|
|
|
|
|
box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
textarea { resize: vertical; min-height: 100px; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
|
|
|
|
.btn {
|
2026-03-16 16:14:08 +08:00
|
|
|
padding: 10px 22px;
|
2026-03-09 16:10:29 +08:00
|
|
|
border: none;
|
2026-03-16 16:14:08 +08:00
|
|
|
border-radius: 14px;
|
2026-03-09 16:10:29 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 14px;
|
2026-03-16 16:14:08 +08:00
|
|
|
font-weight: 600;
|
|
|
|
|
transition: all 0.2s;
|
2026-03-09 16:10:29 +08:00
|
|
|
text-decoration: none;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
.btn-primary {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: linear-gradient(135deg, #6366f1, #818cf8);
|
2026-03-09 16:10:29 +08:00
|
|
|
color: white;
|
2026-03-16 16:14:08 +08:00
|
|
|
box-shadow: 0 2px 8px rgba(99,102,241,0.25);
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.btn-primary:hover { box-shadow: 0 4px 16px rgba(99,102,241,0.35); transform: translateY(-1px); }
|
|
|
|
|
.btn-secondary { background: #f1f5f9; color: #475569; }
|
|
|
|
|
.btn-secondary:hover { background: #e2e8f0; }
|
2026-03-09 16:10:29 +08:00
|
|
|
.btn-danger {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: linear-gradient(135deg, #f43f5e, #e11d48);
|
2026-03-09 16:10:29 +08:00
|
|
|
color: white;
|
2026-03-16 16:14:08 +08:00
|
|
|
box-shadow: 0 2px 8px rgba(244,63,94,0.25);
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.btn-danger:hover { box-shadow: 0 4px 16px rgba(244,63,94,0.35); }
|
2026-03-09 16:10:29 +08:00
|
|
|
.btn-success {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
2026-03-09 16:10:29 +08:00
|
|
|
color: white;
|
2026-03-16 16:14:08 +08:00
|
|
|
box-shadow: 0 2px 8px rgba(16,185,129,0.25);
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.btn-success:hover { box-shadow: 0 4px 16px rgba(16,185,129,0.35); }
|
|
|
|
|
.btn-group { display: flex; gap: 10px; margin-top: 20px; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
|
|
|
|
.card {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: rgba(255,255,255,0.9);
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
|
|
|
|
|
padding: 24px;
|
2026-03-09 16:10:29 +08:00
|
|
|
margin-bottom: 20px;
|
2026-03-16 16:14:08 +08:00
|
|
|
border: 1px solid rgba(255,255,255,0.6);
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
|
|
|
|
.card-header {
|
2026-03-16 16:14:08 +08:00
|
|
|
font-size: 17px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
padding-bottom: 12px;
|
|
|
|
|
border-bottom: 2px solid #f1f5f9;
|
|
|
|
|
color: #1e293b;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
|
display: inline-block;
|
2026-03-16 16:14:08 +08:00
|
|
|
padding: 4px 14px;
|
2026-03-09 16:10:29 +08:00
|
|
|
border-radius: 20px;
|
|
|
|
|
font-size: 12px;
|
2026-03-16 16:14:08 +08:00
|
|
|
font-weight: 600;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.badge-success { background: #ecfdf5; color: #059669; }
|
|
|
|
|
.badge-warning { background: #fffbeb; color: #d97706; }
|
|
|
|
|
.badge-danger { background: #fef2f2; color: #dc2626; }
|
|
|
|
|
.badge-info { background: #eff6ff; color: #2563eb; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
2026-03-16 16:14:08 +08:00
|
|
|
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
|
2026-03-09 16:10:29 +08:00
|
|
|
th {
|
2026-03-16 16:14:08 +08:00
|
|
|
background: #f8fafc;
|
|
|
|
|
padding: 12px 16px;
|
2026-03-09 16:10:29 +08:00
|
|
|
text-align: left;
|
|
|
|
|
font-weight: 600;
|
2026-03-16 16:14:08 +08:00
|
|
|
font-size: 13px;
|
|
|
|
|
color: #64748b;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
border-bottom: 2px solid #e2e8f0;
|
|
|
|
|
}
|
|
|
|
|
td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
|
|
|
|
|
tr:hover { background: #f8fafc; }
|
|
|
|
|
|
|
|
|
|
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
|
|
|
|
|
.pagination a, .pagination span {
|
|
|
|
|
padding: 8px 14px;
|
|
|
|
|
border: 1.5px solid #e2e8f0;
|
|
|
|
|
border-radius: 12px;
|
2026-03-09 16:10:29 +08:00
|
|
|
text-decoration: none;
|
|
|
|
|
color: #6366f1;
|
2026-03-16 16:14:08 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
2026-03-16 16:14:08 +08:00
|
|
|
.pagination a:hover { background: #f1f5f9; }
|
|
|
|
|
.pagination .active { background: #6366f1; color: white; border-color: #6366f1; }
|
2026-03-09 16:10:29 +08:00
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
2026-03-16 16:14:08 +08:00
|
|
|
.navbar-menu { display: none; }
|
|
|
|
|
.btn-group { flex-direction: column; }
|
|
|
|
|
.btn { width: 100%; text-align: center; }
|
2026-03-09 16:10:29 +08:00
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{% block extra_css %}{% endblock %}
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
{% if session.get('user') %}
|
|
|
|
|
<nav class="navbar">
|
|
|
|
|
<div class="navbar-content">
|
2026-03-16 16:14:08 +08:00
|
|
|
<a href="{{ url_for('dashboard') }}" class="navbar-brand">🔥 微博超话签到</a>
|
2026-03-09 16:10:29 +08:00
|
|
|
<div class="navbar-menu">
|
2026-03-16 16:14:08 +08:00
|
|
|
<a href="{{ url_for('dashboard') }}">控制台</a>
|
2026-03-17 17:05:28 +08:00
|
|
|
{% if session.get('user', {}).get('is_admin') %}
|
|
|
|
|
<a href="{{ url_for('admin_panel') }}">🛡️ 管理</a>
|
|
|
|
|
{% endif %}
|
2026-03-09 16:10:29 +08:00
|
|
|
<div class="navbar-user">
|
2026-03-16 16:14:08 +08:00
|
|
|
<span>👤 {{ session.get('user').get('username') }}</span>
|
|
|
|
|
<a href="{{ url_for('logout') }}" class="btn-logout">退出</a>
|
2026-03-09 16:10:29 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
|
|
{% if messages %}
|
|
|
|
|
{% for category, message in messages %}
|
|
|
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endwith %}
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|