* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /* line-height: 1.6; */
    width: 100%;
    height: 100%;
    min-width: 550px;
    background-color: #f4f4f4;
}

.profile-page {
    /* text-align: center; */
    height: 100%;
    width: auto;
}

/* 顶部导航栏 */
header {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.page-side{
    /* background-color: #acffa8; */
    /* width: 60px; */
    /* height: 400px; */
    z-index: 1000;
    position: fixed;
    display: inline-block;
    right: 0px;
    margin-top: 100px;
}
.link {
    width: auto;
    height: 50px;
    /* background-color: #e09d4c; */
    position: relative;
    /* display: flex; */
    /* padding-top: 20px; */
    align-items: center;
    margin-top: 20px;
    border-radius: 50%;
}
.link img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* 浮现文字的样式 */
.link .tooltip1 {
    /* background-color: #4ce078; */
    visibility: hidden;
    width: 130px;
    /* text-align: right; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: right; /* 水平居中 */
    margin-left: -80px;
    position: absolute;
    transform: translateX(-50%);
    color: rgb(0, 0, 0);
    opacity: 0; /* 初始不显示 */
    transition: opacity 0.3s ease; /* 过渡效果 */
    pointer-events: none; /* 禁止点击文字 */
}
.link .tooltip {
    visibility: hidden;
    width: auto;
    height: 30px;
    display: flex;
    background-color: rgba(0, 0, 0, 0.618);
    color: #f4f4f4;
    /* text-align: right; */
    align-items: center; /* 垂直居中 */
    justify-content: right; 
    border-radius: 8px;
    padding: 5px;
    position: absolute;
    bottom: 80%;
    /* left: 50%; */
    transform: translateX(-100%);
    white-space: nowrap; /* 防止文本换行 */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* 让提示框位于顶层 */
    pointer-events: none; /* 禁止点击文字 */
}
/* 鼠标靠近图片时显示文字 */
.link:hover .tooltip {
    visibility: visible;
    opacity: 1; /* 当鼠标靠近时显示文字 */
}
.link:hover img {
    transform: scale(1.2);
}

.menu {
    max-width: 1000px;
    margin: auto;
    list-style: none;
    display: flex;
    justify-content: space-around;
    /* padding: 1rem 0; */
    
}

.menu li {
    flex: 1;
    text-align: center;
    /* margin: 0 10px; */
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 1rem;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu li a.active {
    background-color: #4b8df7;
    color: #fff;
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#basic-info{
    padding-bottom:4rem;
    background-image: url(./img/3.jpg);
    background-position: center center !important;
    background-size: cove !important;
}


.page-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    width: 100%;
    /* 为固定导航栏预留空间 */
    margin: 2rem auto 2rem; 
    padding-top: 4rem;
    /* padding-bottom: 2rem; */
    z-index: 100;
}

.title-line{
    border: none;
    height: 3px; /* 线的高度 */
    background-color: black; /* 线的颜色 */
    width: 100%; /* 线的宽度 */
    margin-bottom: 1rem;
}

.container {
    display: flex;
    align-items: center;
    padding-top: 20px;
    z-index: 100;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    z-index: 100;
}

.personal-details{
    /* background-color: #18e637; */
    font-size:20px;
    z-index: 100;
    color: #f4f4f4;
}
.personal-details img{
    -webkit-user-select: none; /* 针对 Chrome, Safari 和其他 Webkit 浏览器 */
    -moz-user-select: none;    /* 针对 Firefox */
    -ms-user-select: none;     /* 针对 IE 和 Edge */
    user-select: none;         /* 针对其他现代浏览器 */
    
    pointer-events: none; /* 禁止鼠标点击或拖拽 */
}

.personal-details p{
    padding-left: 20px;
    padding-top: 2px;
}

.personal-details h1{
    padding-bottom: 10px;
}


/* 卡片样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    /* align-items: center; */
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.card h3{
    padding-bottom: 5px;
}
.card p{
    padding-left: 10px;
    padding-top: 2px;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card:active {
    animation: ripple 0.6s linear;
}

/* @keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.5);
    }
    100% {
        box-shadow: 0 0 20px 20px rgba(255, 99, 71, 0);
    }
} */

#education-container .card {
    -ms-min-width: 400px;
    -webkit-min-width: 400px;
    -moz-min-width: 400px;
    min-width: 400px;
    max-width: 100%;
    font-size: 18px;
}

/* #research-container .card {
    min-width: 400px;
    max-width: 100%;
} */

#projects-container .card {
    min-width: 90%;
    max-width: 100%;
}
#projects-container h4{
    padding-left: 8px;
    padding-top: 4px;
}
#projects-container p{
    font-size: 15px;
    padding-top: 4px;
}

 @media (max-width: 869px) {
    .personal-details{
        /* background-color: #babbff; */
        margin:auto;
        text-align: center;
    }
    .profile-photo{
        margin:auto;
    }
    /* #basic-info{
        align-items: center;
        width:100%;
        background-color: #b2ffb2;
    } */
} 


/* 技能部分布局 */
/* .skill-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-bar {
    width: 7%;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
}

.skill-bar .progress {
    height: 20px;
    background-color: #4caf50;
    border-radius: 10px;
}

.skill-description {
    width: 25%;
    text-align: left;
} */

/* @media (max-width: 768px) {
    .skill-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-bar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .skill-description {
        width: 100%;
    }
} */

/* @media screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
    }

    .menu.active {
        display: block;
    }

    .menu-icon {
        display: block;
    }

    .skills-container {
        flex-direction: column;
    }

    .skill-bar {
        width: 100%;
    }
} */
