398 lines
5.7 KiB
CSS
398 lines
5.7 KiB
CSS
.wrap {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #333;
|
|
}
|
|
|
|
li {
|
|
list-style: none;
|
|
}
|
|
|
|
/* introduction */
|
|
|
|
.introduction {
|
|
max-width: 1300px;
|
|
display: flex;
|
|
/* justify-content: center;
|
|
align-items: center; */
|
|
margin-top: 50px;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-content: center;
|
|
color: white;
|
|
padding: 40px;
|
|
width: 100%;
|
|
text-align: center;
|
|
border-radius: 10px;
|
|
background-color: #4a69bd;
|
|
}
|
|
|
|
.content {
|
|
width: 100%;
|
|
padding: 30px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.img {
|
|
flex: 0 0 auto;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
width: 35%;
|
|
height: 400px;
|
|
background-color: rgba(74, 105, 189, 0.8);
|
|
margin-right: 50px;
|
|
border-radius: 68% 32% 100% 0% / 0% 75% 25% 100%;
|
|
}
|
|
|
|
.profile-pic {
|
|
display: block;
|
|
position: absolute;
|
|
top: 6%;
|
|
left: 6%;
|
|
width: 88%;
|
|
height: 88%;
|
|
background-color: pink;
|
|
border-radius: 10px;
|
|
margin-right: 20px;
|
|
border-radius: 68% 32% 100% 0% / 0% 75% 25% 100%;
|
|
}
|
|
|
|
.info {
|
|
text-align: left;
|
|
width: 60%;
|
|
}
|
|
|
|
.info h1 {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.info p {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.info ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.info ul li {
|
|
margin-bottom: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* === Responsive Design === */
|
|
@media (max-width: 1300px) {
|
|
.img {
|
|
width: 35%;
|
|
}
|
|
|
|
.info {
|
|
width: 60%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.img {
|
|
width: 300px;
|
|
height: 300px;
|
|
}
|
|
|
|
.info {
|
|
min-width: 300px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 627px) {
|
|
.img {
|
|
width: 250px;
|
|
height: 250px;
|
|
}
|
|
|
|
.info {
|
|
width: 300px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.img {
|
|
width: 300px;
|
|
height: 300px;
|
|
}
|
|
|
|
.info {
|
|
width: 500px;
|
|
}
|
|
}
|
|
|
|
/* education */
|
|
|
|
.education {
|
|
max-width: 1300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.education .content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f7fafc;
|
|
align-items: start;
|
|
}
|
|
|
|
.education-item {
|
|
position: relative;
|
|
padding-left: 30px;
|
|
margin-bottom: 20px;
|
|
background-color: #f7fafc;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.education-item:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 8px 30px rgba(30, 55, 153, 0.15);
|
|
}
|
|
|
|
.arrow {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 0;
|
|
height: 0;
|
|
border-top: 10px solid transparent;
|
|
border-bottom: 10px solid transparent;
|
|
border-left: 10px solid #1a202c;
|
|
}
|
|
|
|
.education-item::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -50%;
|
|
left: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
background: linear-gradient(45deg, transparent 45%, rgba(108, 92, 231, 0.1) 100%);
|
|
transform: rotate(45deg);
|
|
z-index: 0;
|
|
}
|
|
|
|
/* skill */
|
|
|
|
.skill {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 1300px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.skill .content {
|
|
background-color: #f7fafc;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.skill-item {
|
|
background-color: #f7fafc;
|
|
border-radius: 20px;
|
|
padding: 20px;
|
|
margin: 20px;
|
|
width: 373px;
|
|
/* 适应不同屏幕大小 */
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
/* 添加过渡效果 */
|
|
}
|
|
|
|
.skill-item:hover {
|
|
transform: scale(1.1);
|
|
/* 鼠标悬停时放大 */
|
|
color: #4a69bd;
|
|
}
|
|
|
|
.skill-item .iconfont {
|
|
font-size: 30px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.percentage {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
|
|
/* project */
|
|
|
|
.project {
|
|
max-width: 1300px;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 10px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.project .content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #f7fafc;
|
|
align-items: start;
|
|
gap: 30px;
|
|
}
|
|
|
|
.service-item {
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: center;
|
|
gap: 20px;
|
|
padding: 20px;
|
|
background-color: #fff;
|
|
border-radius: 5px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.service-item:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.project .content .service-item .iconfont {
|
|
display: block;
|
|
width: 10%;
|
|
height: 100%;
|
|
font-size: 50px;
|
|
}
|
|
|
|
.project .content .service-item .iconfont:hover {
|
|
color: #4a69bd;
|
|
|
|
}
|
|
|
|
.details {
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.details h3 {
|
|
width: 15%;
|
|
height: 100%;
|
|
line-height: 100%;
|
|
}
|
|
|
|
.details p {
|
|
width: 60%;
|
|
}
|
|
|
|
.checkmark {
|
|
color: #007bff;
|
|
}
|
|
|
|
/* 滚动动画 */
|
|
|
|
.introduction {
|
|
opacity: 0;
|
|
transform: translateY(100px);
|
|
transition: all 2s ease-out;
|
|
}
|
|
|
|
.introduction.animate {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.education {
|
|
opacity: 0;
|
|
transform: translateY(100px);
|
|
transition: all 2s ease-out;
|
|
}
|
|
|
|
.education.animate {
|
|
opacity: 1;
|
|
transition-delay: 1s;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.skill {
|
|
opacity: 0;
|
|
transform: translateY(100px);
|
|
transition: all 2s ease-out;
|
|
}
|
|
|
|
.skill.animate {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.project {
|
|
opacity: 0;
|
|
transform: translateY(100px);
|
|
transition: all 2s ease-out;
|
|
}
|
|
|
|
.project.animate {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* 电梯 */
|
|
|
|
.elevator {
|
|
position: fixed;
|
|
left: 50%;
|
|
top: 280px;
|
|
z-index: 999;
|
|
margin-left: 45%;
|
|
opacity: 0;
|
|
transition: all .5s;
|
|
}
|
|
|
|
.elevator ul {
|
|
width: 45px;
|
|
height: 225px;
|
|
background: #fff;
|
|
float: right;
|
|
border: 1px solid #f5f5f5;
|
|
position: relative;
|
|
}
|
|
|
|
.elevator ul li {
|
|
height: 45px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.elevator ul li a {
|
|
width: 40px;
|
|
height: 30px;
|
|
display: block;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.elevator ul li a:hover {
|
|
color: rgb(207, 156, 247);
|
|
}
|
|
|
|
.elevator ul li a i {
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
position: relative;
|
|
left: 4px;
|
|
background-position: 8px -106px;
|
|
font-size: 20px;
|
|
transform: rotate(-90deg);
|
|
} |