第一周
This commit is contained in:
@@ -1,11 +1,76 @@
|
||||
/* ===== 新色彩系统 ===== */
|
||||
:root {
|
||||
/* 主色调 - 深蓝色科技感 */
|
||||
--primary-color: #1E3A8A; /* 深蓝主色 */
|
||||
--primary-light: #3B82F6; /* 浅蓝 */
|
||||
--primary-dark: #1E40AF; /* 深蓝变体 */
|
||||
|
||||
/* 辅助色 - 渐变蓝紫 */
|
||||
--secondary-color: #6366F1; /* 紫蓝 */
|
||||
--accent-color: #8B5CF6; /* 紫色 */
|
||||
--gradient-primary: linear-gradient(135deg, #6366F1, #8B5CF6);
|
||||
--gradient-secondary: linear-gradient(135deg, #3B82F6, #6366F1);
|
||||
|
||||
/* 中性色 */
|
||||
--neutral-bg: #F8FAFC; /* 中性背景 */
|
||||
--neutral-50: #F8FAFC;
|
||||
--neutral-100: #F1F5F9;
|
||||
--neutral-200: #E2E8F0;
|
||||
--neutral-300: #CBD5E1;
|
||||
--neutral-400: #94A3B8;
|
||||
--neutral-500: #64748B;
|
||||
--neutral-600: #475569;
|
||||
--neutral-700: #334155;
|
||||
--neutral-800: #1E293B;
|
||||
--neutral-900: #0F172A;
|
||||
|
||||
/* 状态色 */
|
||||
--success-color: #10B981;
|
||||
--warning-color: #F59E0B;
|
||||
--error-color: #EF4444;
|
||||
--info-color: #3B82F6;
|
||||
|
||||
/* 字体系统 */
|
||||
--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
--font-size-xs: 0.75rem;
|
||||
--font-size-sm: 0.875rem;
|
||||
--font-size-base: 1rem;
|
||||
--font-size-lg: 1.125rem;
|
||||
--font-size-xl: 1.25rem;
|
||||
--font-size-2xl: 1.5rem;
|
||||
--font-size-3xl: 1.875rem;
|
||||
|
||||
/* 间距系统 */
|
||||
--spacing-1: 0.25rem;
|
||||
--spacing-2: 0.5rem;
|
||||
--spacing-3: 0.75rem;
|
||||
--spacing-4: 1rem;
|
||||
--spacing-6: 1.5rem;
|
||||
--spacing-8: 2rem;
|
||||
--spacing-12: 3rem;
|
||||
|
||||
/* 圆角系统 */
|
||||
--radius-sm: 0.375rem;
|
||||
--radius-md: 0.5rem;
|
||||
--radius-lg: 0.75rem;
|
||||
--radius-xl: 1rem;
|
||||
|
||||
/* 阴影系统 */
|
||||
--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);
|
||||
}
|
||||
|
||||
/* 基础样式 */
|
||||
body {
|
||||
font-family: 'Segoe UI', sans-serif;
|
||||
font-family: var(--font-primary);
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #333;
|
||||
background-color: #f5f5f5;
|
||||
color: var(--neutral-800);
|
||||
background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 布局 */
|
||||
@@ -15,44 +80,87 @@ body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* 导航栏 */
|
||||
/* 导航栏 - 科技感升级 */
|
||||
nav {
|
||||
background-color: #2c3e50;
|
||||
padding: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
background: var(--gradient-primary);
|
||||
padding: var(--spacing-4);
|
||||
margin-bottom: var(--spacing-8);
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-radius: 0 0 var(--radius-xl) var(--radius-xl);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
nav::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
margin-right: 1rem;
|
||||
margin-right: var(--spacing-6);
|
||||
font-weight: 500;
|
||||
font-size: var(--font-size-base);
|
||||
padding: var(--spacing-2) var(--spacing-4);
|
||||
border-radius: var(--radius-md);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
text-decoration: underline;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
/* 功能卡片样式 */
|
||||
/* 功能卡片样式 - 科技感升级 */
|
||||
.features {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 30px;
|
||||
margin: 40px 0;
|
||||
gap: var(--spacing-8);
|
||||
margin: var(--spacing-12) 0;
|
||||
}
|
||||
|
||||
.feature {
|
||||
background: white;
|
||||
padding: 30px;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
||||
padding: var(--spacing-8);
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: var(--shadow-lg);
|
||||
text-align: center;
|
||||
transition: all 0.3s ease;
|
||||
border: 1px solid #e1e5e9;
|
||||
border: 1px solid var(--neutral-200);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.feature::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: var(--gradient-primary);
|
||||
transform: scaleX(0);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.feature:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 20px 40px rgba(0,0,0,0.15);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: var(--shadow-xl);
|
||||
border-color: var(--primary-light);
|
||||
}
|
||||
|
||||
.feature:hover::before {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
.feature h2 {
|
||||
@@ -94,51 +202,153 @@ nav a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 表单样式 */
|
||||
/* 表单样式 - 科技感升级 */
|
||||
.form-group {
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: var(--spacing-6);
|
||||
}
|
||||
|
||||
.form-control {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
padding: var(--spacing-4);
|
||||
border: 2px solid var(--neutral-300);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: var(--font-primary);
|
||||
font-size: var(--font-size-base);
|
||||
transition: all 0.3s ease;
|
||||
background: white;
|
||||
color: var(--neutral-800);
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.form-control::placeholder {
|
||||
color: var(--neutral-400);
|
||||
}
|
||||
|
||||
/* 按钮系统 - 科技感升级 */
|
||||
.btn {
|
||||
padding: 0.5rem 1rem;
|
||||
padding: var(--spacing-3) var(--spacing-6);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
font-family: var(--font-primary);
|
||||
font-weight: 500;
|
||||
font-size: var(--font-size-base);
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--spacing-2);
|
||||
}
|
||||
|
||||
.btn::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
.btn:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #3498db;
|
||||
background: var(--gradient-primary);
|
||||
color: white;
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: #2980b9;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
/* 提示词卡片 */
|
||||
.btn-secondary {
|
||||
background: var(--neutral-100);
|
||||
color: var(--neutral-700);
|
||||
border: 1px solid var(--neutral-300);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: var(--neutral-200);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* 提示词卡片 - 科技感升级 */
|
||||
.prompt-card {
|
||||
background: white;
|
||||
padding: 2rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
margin-bottom: 2rem;
|
||||
padding: var(--spacing-8);
|
||||
border-radius: var(--radius-xl);
|
||||
box-shadow: var(--shadow-lg);
|
||||
margin-bottom: var(--spacing-8);
|
||||
border: 1px solid var(--neutral-200);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.prompt-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: var(--gradient-primary);
|
||||
}
|
||||
|
||||
.prompt-input, .prompt-output {
|
||||
margin-bottom: 1.5rem;
|
||||
margin-bottom: var(--spacing-6);
|
||||
padding: var(--spacing-4);
|
||||
background: var(--neutral-50);
|
||||
border-radius: var(--radius-md);
|
||||
border-left: 4px solid var(--primary-color);
|
||||
}
|
||||
|
||||
/* 错误提示 */
|
||||
.prompt-output {
|
||||
border-left-color: var(--accent-color);
|
||||
background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
|
||||
}
|
||||
|
||||
/* 错误提示 - 科技感升级 */
|
||||
.error {
|
||||
color: #e74c3c;
|
||||
font-size: 0.9rem;
|
||||
color: var(--error-color);
|
||||
font-size: var(--font-size-sm);
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
padding: var(--spacing-3);
|
||||
border-radius: var(--radius-md);
|
||||
border-left: 4px solid var(--error-color);
|
||||
margin-top: var(--spacing-2);
|
||||
}
|
||||
|
||||
.success {
|
||||
color: var(--success-color);
|
||||
font-size: var(--font-size-sm);
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
padding: var(--spacing-3);
|
||||
border-radius: var(--radius-md);
|
||||
border-left: 4px solid var(--success-color);
|
||||
margin-top: var(--spacing-2);
|
||||
}
|
||||
|
||||
.warning {
|
||||
color: var(--warning-color);
|
||||
font-size: var(--font-size-sm);
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
padding: var(--spacing-3);
|
||||
border-radius: var(--radius-md);
|
||||
border-left: 4px solid var(--warning-color);
|
||||
margin-top: var(--spacing-2);
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
|
||||
Reference in New Issue
Block a user