完成前两周优化

This commit is contained in:
rjb
2025-10-07 23:49:40 +08:00
parent 28f06836dd
commit 1fba655620
6 changed files with 1838 additions and 59 deletions

View File

@@ -4,10 +4,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>提示词大师 - {% block title %}{% endblock %}</title>
<!-- 添加 Google Fonts -->
<!-- 添加 Google Fonts - Inter字体 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<!-- Bootstrap CSS -->
@@ -17,16 +17,43 @@
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<style>
/* 全局样式 */
/* 全局样式 - 深蓝色科技感主题 */
:root {
--primary-color: #2196f3;
--primary-dark: #1976d2;
--secondary-color: #6c757d;
--success-color: #28a745;
--background-color: #f8f9fa;
--border-color: #e0e0e0;
--text-color: #2c3e50;
--text-light: #666;
/* 主色调 - 深蓝色系 */
--primary-color: #1E3A8A; /* 深蓝主色 */
--primary-light: #3B82F6; /* 浅蓝 */
--primary-dark: #1E40AF; /* 深蓝 */
--primary-lighter: #60A5FA; /* 更浅蓝 */
/* 辅助色 - 渐变蓝紫 */
--secondary-color: #6366F1; /* 紫蓝 */
--accent-color: #8B5CF6; /* 紫色 */
--gradient-primary: linear-gradient(135deg, #6366F1, #8B5CF6);
--gradient-secondary: linear-gradient(135deg, #1E3A8A, #3B82F6);
/* 功能色 */
--success-color: #10B981; /* 绿色 */
--warning-color: #F59E0B; /* 橙色 */
--error-color: #EF4444; /* 红色 */
--info-color: #06B6D4; /* 青色 */
/* 中性色 */
--background-color: #F8FAFC; /* 中性背景 */
--background-secondary: #F1F5F9; /* 次要背景 */
--border-color: #E2E8F0; /* 边框色 */
--border-light: #F1F5F9; /* 浅边框 */
/* 文字色 */
--text-color: #0F172A; /* 深色文字 */
--text-secondary: #475569; /* 次要文字 */
--text-light: #64748B; /* 浅色文字 */
--text-muted: #94A3B8; /* 静音文字 */
/* 阴影 */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
* {
@@ -36,16 +63,38 @@
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
line-height: 1.5;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
font-weight: 400;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 字体层次系统 */
h1, h2, h3, h4, h5, h6 {
font-family: 'Inter', sans-serif;
font-weight: 600;
line-height: 1.3;
color: var(--text-color);
}
.font-display {
font-family: 'Inter', sans-serif;
font-weight: 700;
}
.font-mono {
font-family: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
}
/* 导航栏样式 */
/* 导航栏样式 - 科技感设计 */
header {
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-light);
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 100;
@@ -61,13 +110,21 @@
}
.nav-brand {
font-size: 1.25rem;
font-weight: 600;
color: var(--primary-color);
font-size: 1.5rem;
font-weight: 700;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.75rem;
transition: all 0.3s ease;
}
.nav-brand:hover {
transform: scale(1.05);
}
.nav-brand i {
@@ -81,21 +138,42 @@
}
.nav-link {
color: var(--text-color);
color: var(--text-secondary);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 4px;
padding: 0.75rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
min-width: fit-content;
font-weight: 500;
position: relative;
overflow: hidden;
}
.nav-link::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: var(--gradient-primary);
opacity: 0.1;
transition: left 0.3s ease;
z-index: -1;
}
.nav-link:hover {
background: var(--background-color);
color: var(--primary-color);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.nav-link:hover::before {
left: 0;
}
.nav-link i {
@@ -212,22 +290,24 @@
}
.user-menu .dropdown-toggle {
background: none;
background: var(--gradient-primary);
border: none;
color: var(--text-color);
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 6px;
padding: 0.75rem 1.25rem;
border-radius: 12px;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 500;
font-weight: 600;
box-shadow: var(--shadow-md);
}
.user-menu .dropdown-toggle:hover {
background: var(--background-color);
color: var(--primary-color);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
background: var(--gradient-secondary);
}
.user-menu .dropdown-toggle:focus {