650 lines
13 KiB
CSS
650 lines
13 KiB
CSS
/* ======================================
|
|
大健康产业个人简历 - 专业样式表
|
|
====================================== */
|
|
|
|
:root {
|
|
/* 统一绿色系配色方案 */
|
|
--health-primary: #10b981; /* 主色 - 翠绿 */
|
|
--health-primary-dark: #059669; /* 深绿 */
|
|
--health-primary-light: #34d399; /* 浅绿 */
|
|
--health-accent: #6ee7b7; /* 强调色 - 薄荷绿 */
|
|
--health-bg-light: #ecfdf5; /* 背景 - 极浅绿 */
|
|
--health-bg-white: #ffffff; /* 纯白背景 */
|
|
--health-text-dark: #064e3b; /* 深绿文字 */
|
|
--health-text-gray: #6b7280; /* 灰色文字 */
|
|
--health-border: #d1fae5; /* 边框 - 淡绿 */
|
|
|
|
/* 渐变色 - 统一绿色系 */
|
|
--health-gradient-1: linear-gradient(135deg, #10b981 0%, #34d399 100%);
|
|
--health-gradient-2: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
|
|
--health-gradient-3: linear-gradient(135deg, #059669 0%, #10b981 100%);
|
|
--health-gradient-soft: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
|
|
|
|
/* 字体系统 */
|
|
--font-primary: 'Plus Jakarta Sans', 'PingFang SC', -apple-system, sans-serif;
|
|
--font-medical: 'Inter', 'Microsoft YaHei', sans-serif;
|
|
|
|
/* 间距 */
|
|
--spacing-xs: 0.5rem;
|
|
--spacing-sm: 1rem;
|
|
--spacing-md: 1.5rem;
|
|
--spacing-lg: 2rem;
|
|
--spacing-xl: 3rem;
|
|
--spacing-2xl: 4rem;
|
|
|
|
/* 圆角 */
|
|
--radius-sm: 0.5rem;
|
|
--radius-md: 0.75rem;
|
|
--radius-lg: 1rem;
|
|
--radius-xl: 1.25rem;
|
|
|
|
/* 阴影 - 柔和绿色系 */
|
|
--shadow-sm: 0 1px 3px rgba(16, 185, 129, 0.08);
|
|
--shadow-md: 0 4px 6px rgba(16, 185, 129, 0.1);
|
|
--shadow-lg: 0 10px 15px rgba(16, 185, 129, 0.12);
|
|
--shadow-xl: 0 20px 25px rgba(16, 185, 129, 0.15);
|
|
}
|
|
|
|
/* 全局样式 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-primary);
|
|
color: var(--health-text-dark);
|
|
background: var(--health-bg-light);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
/* 导航栏 */
|
|
.nav-container {
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
background: rgba(255, 255, 255, 0.98);
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: var(--shadow-sm);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.nav-content {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem 2rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
color: var(--health-primary);
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--health-gradient-1);
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
gap: 2rem;
|
|
list-style: none;
|
|
}
|
|
|
|
.nav-menu a {
|
|
color: var(--health-text-gray);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-menu a::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -5px;
|
|
left: 0;
|
|
width: 0;
|
|
height: 2px;
|
|
background: var(--health-primary);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.nav-menu a:hover {
|
|
color: var(--health-primary);
|
|
}
|
|
|
|
.nav-menu a:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 主容器 */
|
|
.main-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 5rem 2rem 2rem;
|
|
}
|
|
|
|
/* Hero区域 - 个人介绍 */
|
|
.hero-section {
|
|
background: var(--health-bg-white);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-xl);
|
|
margin-bottom: var(--spacing-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.hero-content {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: var(--spacing-xl);
|
|
align-items: center;
|
|
}
|
|
|
|
.hero-image {
|
|
position: relative;
|
|
}
|
|
|
|
.hero-image img {
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 4px solid var(--health-accent);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.hero-info h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
color: var(--health-primary-dark);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 1.25rem;
|
|
color: var(--health-primary);
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.hero-badges {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.badge {
|
|
padding: 0.4rem 1rem;
|
|
background: var(--health-gradient-soft);
|
|
border: 1px solid var(--health-border);
|
|
border-radius: 20px;
|
|
font-size: 0.9rem;
|
|
color: var(--health-primary-dark);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hero-description {
|
|
font-size: 1.05rem;
|
|
line-height: 1.8;
|
|
color: var(--health-text-gray);
|
|
}
|
|
|
|
/* 教育背景区域 */
|
|
.education-section {
|
|
background: var(--health-bg-white);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
margin-bottom: var(--spacing-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: var(--spacing-lg);
|
|
padding-bottom: 1rem;
|
|
border-bottom: 2px solid var(--health-border);
|
|
}
|
|
|
|
.section-icon {
|
|
width: 45px;
|
|
height: 45px;
|
|
background: var(--health-gradient-1);
|
|
border-radius: var(--radius-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: var(--health-text-dark);
|
|
}
|
|
|
|
.education-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.education-item {
|
|
padding: 1.5rem;
|
|
background: var(--health-bg-light);
|
|
border-radius: var(--radius-md);
|
|
border-left: 4px solid var(--health-primary);
|
|
}
|
|
|
|
.education-degree {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: var(--health-primary-dark);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.education-school {
|
|
font-size: 1rem;
|
|
color: var(--health-text-gray);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.education-period {
|
|
font-size: 0.9rem;
|
|
color: var(--health-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 个人简介区域 */
|
|
.about-section {
|
|
background: var(--health-bg-white);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
margin-bottom: var(--spacing-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.about-content {
|
|
font-size: 1.05rem;
|
|
line-height: 1.9;
|
|
color: var(--health-text-gray);
|
|
padding: 1rem;
|
|
background: var(--health-gradient-soft);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
/* 技能区域 */
|
|
.skills-section {
|
|
background: var(--health-bg-white);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
margin-bottom: var(--spacing-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.skills-category {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.category-title {
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
color: var(--health-primary-dark);
|
|
margin-bottom: 1rem;
|
|
padding: 0.5rem;
|
|
background: var(--health-gradient-soft);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.skills-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.skill-card {
|
|
padding: 1.25rem;
|
|
background: var(--health-bg-light);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--health-border);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.skill-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: var(--shadow-md);
|
|
border-color: var(--health-primary);
|
|
}
|
|
|
|
.skill-number {
|
|
display: inline-block;
|
|
width: 30px;
|
|
height: 30px;
|
|
background: var(--health-primary);
|
|
color: white;
|
|
border-radius: 50%;
|
|
text-align: center;
|
|
line-height: 30px;
|
|
font-weight: 600;
|
|
margin-right: 0.75rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.skill-name {
|
|
font-weight: 600;
|
|
color: var(--health-text-dark);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.skill-description {
|
|
font-size: 0.9rem;
|
|
color: var(--health-text-gray);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 项目经验卡片 */
|
|
.projects-section {
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.projects-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.project-card {
|
|
background: var(--health-bg-white);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-md);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.project-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.project-header {
|
|
padding: 1.5rem;
|
|
background: var(--health-gradient-1);
|
|
color: white;
|
|
}
|
|
|
|
.project-title {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.project-company {
|
|
font-size: 0.95rem;
|
|
opacity: 0.95;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.project-date {
|
|
font-size: 0.85rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.project-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.project-description {
|
|
color: var(--health-text-gray);
|
|
line-height: 1.7;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.project-highlights {
|
|
list-style: none;
|
|
}
|
|
|
|
.project-highlights li {
|
|
padding: 0.5rem 0;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
color: var(--health-text-gray);
|
|
}
|
|
|
|
.highlight-icon {
|
|
color: var(--health-primary);
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.project-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--health-border);
|
|
}
|
|
|
|
.metric-item {
|
|
text-align: center;
|
|
padding: 0.5rem;
|
|
background: var(--health-bg-light);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--health-primary);
|
|
}
|
|
|
|
.metric-label {
|
|
font-size: 0.8rem;
|
|
color: var(--health-text-gray);
|
|
}
|
|
|
|
/* 数据可视化区域 */
|
|
.visualization-section {
|
|
background: var(--health-bg-white);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
margin-bottom: var(--spacing-lg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.chart-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.chart-box {
|
|
padding: 1.25rem;
|
|
background: var(--health-bg-light);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--health-border);
|
|
}
|
|
|
|
.chart-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--health-text-dark);
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 联系方式 */
|
|
.contact-section {
|
|
background: var(--health-gradient-3);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-xl);
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
.contact-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.contact-subtitle {
|
|
font-size: 1rem;
|
|
opacity: 0.95;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.contact-items {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.contact-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 1.5rem;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-radius: 25px;
|
|
backdrop-filter: blur(5px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.contact-item:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.contact-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.contact-info {
|
|
text-align: left;
|
|
}
|
|
|
|
.contact-label {
|
|
font-size: 0.8rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.contact-value {
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 加载动画 */
|
|
.loading-screen {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--health-gradient-2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
.loading-icon {
|
|
font-size: 3rem;
|
|
animation: pulse 1.5s infinite;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.loading-text {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--health-primary);
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { transform: scale(1); opacity: 1; }
|
|
50% { transform: scale(1.1); opacity: 0.8; }
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.hero-content {
|
|
grid-template-columns: 1fr;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero-image {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.hero-info h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.skills-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.projects-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.contact-items {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: none;
|
|
}
|
|
|
|
.chart-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* 滚动条美化 */
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--health-bg-light);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--health-primary);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--health-primary-dark);
|
|
} |