416 lines
9.2 KiB
CSS
416 lines
9.2 KiB
CSS
/* 化工工程师简历 - 现代科技主题 */
|
|
|
|
:root {
|
|
/* ===== 现代化工科技配色系统 ===== */
|
|
|
|
/* 深色背景系 - 科技感 */
|
|
--bg-primary: #0a0e1a; /* 深蓝黑 */
|
|
--bg-secondary: #111827; /* 深灰蓝 */
|
|
--bg-tertiary: #1f2937; /* 中灰蓝 */
|
|
--bg-surface: #374151; /* 浅灰蓝 */
|
|
--bg-elevated: #4b5563; /* 表面色 */
|
|
|
|
/* 化工蓝绿色系 - 主色调 */
|
|
--chem-primary: #06b6d4; /* 青蓝色 */
|
|
--chem-primary-light: #22d3ee; /* 亮青蓝 */
|
|
--chem-primary-dark: #0891b2; /* 深青蓝 */
|
|
--chem-secondary: #10b981; /* 翠绿色 */
|
|
--chem-accent: #3b82f6; /* 科技蓝 */
|
|
|
|
/* 警示色系 - 化工安全 */
|
|
--safety-orange: #f97316; /* 安全橙 */
|
|
--safety-red: #ef4444; /* 警示红 */
|
|
--safety-yellow: #eab308; /* 警示黄 */
|
|
--safety-green: #22c55e; /* 安全绿 */
|
|
|
|
/* 文字色系 */
|
|
--text-primary: #f8fafc; /* 主文字 */
|
|
--text-secondary: #e2e8f0; /* 次要文字 */
|
|
--text-muted: #94a3b8; /* 弱化文字 */
|
|
--text-disabled: #64748b; /* 禁用文字 */
|
|
|
|
/* 渐变效果 */
|
|
--gradient-primary: linear-gradient(135deg, var(--chem-primary) 0%, var(--chem-secondary) 100%);
|
|
--gradient-tech: linear-gradient(135deg, var(--chem-accent) 0%, var(--chem-primary) 50%, var(--chem-secondary) 100%);
|
|
--gradient-safety: linear-gradient(135deg, var(--safety-orange) 0%, var(--safety-red) 100%);
|
|
|
|
/* 阴影系统 - 现代深度 */
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
--shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
|
|
|
|
/* 边框系统 */
|
|
--border-light: 1px solid rgba(255, 255, 255, 0.1);
|
|
--border-medium: 1px solid rgba(255, 255, 255, 0.2);
|
|
--border-accent: 1px solid var(--chem-primary);
|
|
|
|
/* 圆角系统 */
|
|
--radius-sm: 0.375rem;
|
|
--radius-md: 0.5rem;
|
|
--radius-lg: 0.75rem;
|
|
--radius-xl: 1rem;
|
|
--radius-2xl: 1.5rem;
|
|
|
|
/* 间距系统 */
|
|
--space-1: 0.25rem;
|
|
--space-2: 0.5rem;
|
|
--space-3: 0.75rem;
|
|
--space-4: 1rem;
|
|
--space-5: 1.25rem;
|
|
--space-6: 1.5rem;
|
|
--space-8: 2rem;
|
|
--space-10: 2.5rem;
|
|
--space-12: 3rem;
|
|
--space-16: 4rem;
|
|
--space-20: 5rem;
|
|
|
|
/* 过渡动画 */
|
|
--transition-fast: 0.15s ease-out;
|
|
--transition-normal: 0.3s ease-out;
|
|
--transition-slow: 0.5s ease-out;
|
|
}
|
|
|
|
/* 全局样式重置 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
/* 背景科技网格效果 */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image:
|
|
linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
|
|
background-size: 50px 50px;
|
|
z-index: -1;
|
|
animation: gridMove 20s linear infinite;
|
|
}
|
|
|
|
@keyframes gridMove {
|
|
0% { transform: translate(0, 0); }
|
|
100% { transform: translate(50px, 50px); }
|
|
}
|
|
|
|
/* 导航栏现代化 */
|
|
.navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000;
|
|
padding: var(--space-4) var(--space-6);
|
|
background: rgba(10, 14, 26, 0.9);
|
|
backdrop-filter: blur(20px);
|
|
border-bottom: var(--border-light);
|
|
transition: all var(--transition-normal);
|
|
}
|
|
|
|
.navbar.scrolled {
|
|
background: rgba(10, 14, 26, 0.95);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.nav-content {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
text-shadow: var(--shadow-glow);
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
list-style: none;
|
|
gap: var(--space-8);
|
|
}
|
|
|
|
.nav-link {
|
|
color: var(--text-secondary);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
padding: var(--space-2) var(--space-4);
|
|
border-radius: var(--radius-md);
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--chem-primary);
|
|
background: rgba(6, 182, 212, 0.1);
|
|
}
|
|
|
|
/* 英雄区域现代化 */
|
|
.hero {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--space-20) var(--space-6);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--gradient-tech);
|
|
opacity: 0.05;
|
|
z-index: -1;
|
|
}
|
|
|
|
.hero-content-wrapper {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-16);
|
|
align-items: center;
|
|
}
|
|
|
|
.hero-title-main {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: clamp(3rem, 6vw, 5rem);
|
|
font-weight: 900;
|
|
line-height: 1.1;
|
|
margin-bottom: var(--space-4);
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
animation: fadeInUp 1s ease-out;
|
|
}
|
|
|
|
.hero-title-sub {
|
|
font-size: clamp(2rem, 4vw, 3rem);
|
|
font-weight: 300;
|
|
background: var(--gradient-safety);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
animation: fadeInUp 1s ease-out 0.2s both;
|
|
}
|
|
|
|
.role-text {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
color: var(--chem-secondary);
|
|
margin: var(--space-6) 0;
|
|
opacity: 0;
|
|
animation: fadeInUp 1s ease-out 0.4s both;
|
|
}
|
|
|
|
.hero-description {
|
|
font-size: 1.25rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.8;
|
|
margin: var(--space-6) 0;
|
|
opacity: 0;
|
|
animation: fadeInUp 1s ease-out 0.6s both;
|
|
}
|
|
|
|
.info-number {
|
|
font-size: 3rem;
|
|
font-weight: 900;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.info-text {
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 关于部分现代化 */
|
|
.about {
|
|
padding: var(--space-20) var(--space-6);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.about-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: grid;
|
|
grid-template-columns: 300px 1fr;
|
|
gap: var(--space-16);
|
|
align-items: center;
|
|
}
|
|
|
|
.about-image img {
|
|
width: 100%;
|
|
height: 400px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-2xl);
|
|
box-shadow: var(--shadow-xl);
|
|
border: 3px solid var(--chem-primary);
|
|
}
|
|
|
|
.section-label {
|
|
color: var(--chem-primary);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
|
|
.section-title {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
.personal-info {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-4);
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.info-label {
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.info-value {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.about-text {
|
|
font-size: 1.1rem;
|
|
line-height: 1.8;
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.about-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: var(--space-6);
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
padding: var(--space-6);
|
|
background: rgba(6, 182, 212, 0.1);
|
|
border-radius: var(--radius-lg);
|
|
border: var(--border-light);
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2.5rem;
|
|
font-weight: 900;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
display: block;
|
|
}
|
|
|
|
.stat-label {
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
margin-top: var(--space-2);
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.hero-content-wrapper {
|
|
grid-template-columns: 1fr;
|
|
text-align: center;
|
|
}
|
|
|
|
.about-container {
|
|
grid-template-columns: 1fr;
|
|
text-align: center;
|
|
}
|
|
|
|
.personal-info {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* 滚动条美化 */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--chem-primary);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--chem-primary-light);
|
|
} |