303 lines
5.7 KiB
CSS
303 lines
5.7 KiB
CSS
|
|
/* 教育背景样式 */
|
||
|
|
|
||
|
|
/* 时间线容器 */
|
||
|
|
.education-timeline {
|
||
|
|
position: relative;
|
||
|
|
padding-left: 40px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.education-timeline::before {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
left: 15px;
|
||
|
|
top: 0;
|
||
|
|
bottom: 0;
|
||
|
|
width: 2px;
|
||
|
|
background: linear-gradient(180deg,
|
||
|
|
#00b4d8 0%,
|
||
|
|
#52b788 50%,
|
||
|
|
#ffd700 100%);
|
||
|
|
opacity: 0.6;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 时间线项目 */
|
||
|
|
.timeline-item {
|
||
|
|
position: relative;
|
||
|
|
margin-bottom: 40px;
|
||
|
|
animation: slideInLeft 0.8s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes slideInLeft {
|
||
|
|
from {
|
||
|
|
opacity: 0;
|
||
|
|
transform: translateX(-30px);
|
||
|
|
}
|
||
|
|
to {
|
||
|
|
opacity: 1;
|
||
|
|
transform: translateX(0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 时间线节点 */
|
||
|
|
.timeline-item::before {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
left: -32px;
|
||
|
|
top: 20px;
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: #00b4d8;
|
||
|
|
border: 3px solid rgba(0, 180, 216, 0.3);
|
||
|
|
box-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
|
||
|
|
z-index: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 日期徽章 */
|
||
|
|
.timeline-date {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.date-badge {
|
||
|
|
display: inline-block;
|
||
|
|
padding: 8px 20px;
|
||
|
|
background: linear-gradient(135deg, #00b4d8, #0077b6);
|
||
|
|
color: white;
|
||
|
|
border-radius: 25px;
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 0.95rem;
|
||
|
|
box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 教育卡片 */
|
||
|
|
.edu-card {
|
||
|
|
background: linear-gradient(135deg,
|
||
|
|
rgba(255, 255, 255, 0.08) 0%,
|
||
|
|
rgba(255, 255, 255, 0.03) 100%);
|
||
|
|
backdrop-filter: blur(20px);
|
||
|
|
-webkit-backdrop-filter: blur(20px);
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
||
|
|
border-radius: 25px;
|
||
|
|
overflow: hidden;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-card:hover {
|
||
|
|
transform: translateY(-5px);
|
||
|
|
box-shadow:
|
||
|
|
0 20px 60px rgba(0, 0, 0, 0.3),
|
||
|
|
0 0 0 1px rgba(0, 180, 216, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 教育头部 */
|
||
|
|
.edu-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 20px;
|
||
|
|
padding: 30px;
|
||
|
|
background: rgba(0, 180, 216, 0.05);
|
||
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-icon {
|
||
|
|
width: 60px;
|
||
|
|
height: 60px;
|
||
|
|
background: linear-gradient(135deg, #00b4d8, #0077b6);
|
||
|
|
border-radius: 20px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-icon i {
|
||
|
|
color: white;
|
||
|
|
font-size: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-title h3 {
|
||
|
|
color: #fff;
|
||
|
|
font-size: 1.5rem;
|
||
|
|
margin-bottom: 5px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-degree {
|
||
|
|
color: rgba(255, 255, 255, 0.7);
|
||
|
|
font-size: 1.1rem;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 教育主体 */
|
||
|
|
.edu-body {
|
||
|
|
padding: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-title {
|
||
|
|
color: #52b788;
|
||
|
|
font-size: 1.2rem;
|
||
|
|
margin-bottom: 25px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-title i {
|
||
|
|
color: #52b788;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 课程网格 */
|
||
|
|
.course-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||
|
|
gap: 15px;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 12px 18px;
|
||
|
|
background: rgba(255, 255, 255, 0.03);
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||
|
|
border-radius: 15px;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-item:hover {
|
||
|
|
background: rgba(82, 183, 136, 0.1);
|
||
|
|
border-color: rgba(82, 183, 136, 0.3);
|
||
|
|
transform: translateX(5px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-item i {
|
||
|
|
color: #ffd700;
|
||
|
|
font-size: 1.1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-item span {
|
||
|
|
color: rgba(255, 255, 255, 0.85);
|
||
|
|
font-size: 0.95rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 教育亮点 */
|
||
|
|
.edu-highlights {
|
||
|
|
padding: 20px;
|
||
|
|
background: linear-gradient(135deg,
|
||
|
|
rgba(82, 183, 136, 0.1) 0%,
|
||
|
|
rgba(82, 183, 136, 0.05) 100%);
|
||
|
|
border-radius: 15px;
|
||
|
|
border: 1px solid rgba(82, 183, 136, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-highlights .highlight-text {
|
||
|
|
color: rgba(255, 255, 255, 0.9);
|
||
|
|
font-size: 1rem;
|
||
|
|
line-height: 1.8;
|
||
|
|
margin: 0;
|
||
|
|
display: flex;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-highlights i {
|
||
|
|
flex-shrink: 0;
|
||
|
|
margin-top: 3px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 动画效果 */
|
||
|
|
.edu-card::before {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: -100%;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
background: linear-gradient(
|
||
|
|
90deg,
|
||
|
|
transparent 0%,
|
||
|
|
rgba(255, 255, 255, 0.05) 50%,
|
||
|
|
transparent 100%
|
||
|
|
);
|
||
|
|
transition: left 0.8s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-card:hover::before {
|
||
|
|
left: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 响应式设计 */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.education-timeline {
|
||
|
|
padding-left: 30px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.education-timeline::before {
|
||
|
|
left: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.timeline-item::before {
|
||
|
|
left: -27px;
|
||
|
|
width: 14px;
|
||
|
|
height: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-header {
|
||
|
|
padding: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-icon {
|
||
|
|
width: 50px;
|
||
|
|
height: 50px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-icon i {
|
||
|
|
font-size: 1.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-title h3 {
|
||
|
|
font-size: 1.3rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-degree {
|
||
|
|
font-size: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-body {
|
||
|
|
padding: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-grid {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
|
||
|
|
.course-item {
|
||
|
|
padding: 10px 15px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 480px) {
|
||
|
|
.education-timeline {
|
||
|
|
padding-left: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.timeline-item::before {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.education-timeline::before {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edu-header {
|
||
|
|
flex-direction: column;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.date-badge {
|
||
|
|
font-size: 0.85rem;
|
||
|
|
padding: 6px 15px;
|
||
|
|
}
|
||
|
|
}
|