body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    line-height: 140%;
}
.container {
    max-width: 1080px;
    margin: 50px auto;
    padding: 20px;
    padding-top: 40px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}
.text-link {
    text-decoration: underline;
    color: #000000;
    padding: 3px 6px;
    border-radius: 4px;
    background-size: 0% 2px; /* 初始宽度为0% */
    background-position: 0 100%; /* 位置在底部 */
}
.text-link:hover {
    text-decoration: none;
    /*background-color: #007BFF;*/
    /*color: #3b45b5;*/
    color: #007BFF;
    font-weight: bold;
    background: linear-gradient(-90deg, #ED1B2F, #ab3ce7, #23a6d5);
    background-size: 100% 2px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    /*animation: underlineAnimation 10s ease-in-out infinite;*/
    transition: background 0.3s ease, background-size 0.5s ease, color 1s ease;
}
/*
a {
    text-decoration: none;
    color: #007BFF;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
a:hover {
    border-bottom: 2px solid #007BFF;
}
*/
h1 {
    margin-left: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}
h2, p {
    margin: 0 0 10px;
}
.section {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}
.footnote-container {
    display: flex;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 20px;
    font-size: 13px;
}
.clustermap-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background-color: #fff;
    /* 可以根据需要设置其他样式，比如边框、阴影等 */
}
.clustermap {
    width: 200px; /* 设置 clustermap 的宽度为 100px */
}
.section-title {
    font-size: 24px;
    margin-bottom: 15px;
    position: relative; /* 作为定位的参考容器 */
}
.section-content {
    font-size: 16px;
}
/* 光标闪烁效果 */
@keyframes cursor {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.cursor {
    position: absolute;
    bottom: 30px;
    left: 40px;
    width: 10px;
    height: 20px;
    background-color: #333;
    animation: cursor 1s infinite;
}
/* 新闻样式 */
.news {
    margin-bottom: 20px;
    padding: 20px 10px 5px 10px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.news-item {
    margin-bottom: 10px;
}
.news-date {
    font-weight: bold;
    color: #555;
}
.news-event {
    margin-left: 20px;
}
/* 出版物样式 */
.publication {
    margin-bottom: 20px;
    padding: 10px;
    /*border-top: 1px solid #ccc;*/
}
.publication-item {
    margin-top: 5;
    margin-bottom: 10px;
    transform-origin: center; /* 设置缩放中心为中心 */
    padding: 2px; 
    border-radius: 2px; 
    transition: transform 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}
/*
.publication-item:hover {
    transform: scale(1.05); 
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    padding: 15px; 
    border-radius: 10px;
}
*/
.publication-title {
    color: #333;
    font-weight: bold;
    transition: color 1s ease; /* 字体颜色动画 */
}
.publication-item:hover .publication-title {
    color: #007BFF; /* 悬浮时变成蓝色 */
}
.publication-authors {
    color: #555;
}
.publication-authors-me {
    display: inline; /* 使元素不换行 */
    color: #555;
    font-weight: bold;
    text-decoration: underline;
    background-size: 0% 1.5px; /* 初始宽度为0% */
    transition: color 1s ease, background-size 0.5s; /* 字体颜色动画 */
}
.publication-item:hover .publication-authors-me {
    text-decoration: none; 
    color: #007BFF; /* 悬浮时变成蓝色 */
    background: linear-gradient(-90deg, #ED1B2F, #ab3ce7, #23a6d5);
    background-size: 100% 1.5px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
}
.publication-abbr {
    display: inline; 
    color: #555;
    font-weight: bold;
    transition: color 1s ease; 
}
.publication-item:hover .publication-abbr {
    color: #007BFF; /* 悬浮时变成蓝色 */
}
.publication-details {
    font-style: italic;
    color: #777;
}
.publication-footnote {
    display: inline;
    position: absolute;
    right: 0; /* 右对齐 */
    top: 0;
    font-size: 12px;
    font-style: normal;
    font-weight: lighter;
    color: #111;
}
.publication-footnote-item {
    display: inline;
}
/* 个人信息样式 */
.personal-info {
    margin-left: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.personal-info-item {
    margin-right: 20px;
}
.link-item {
    margin-right: 10px;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
}
.link-item i {
    margin-right: 5px;
}
.link-item:hover {
    background-color: #007BFF;
    color: #fff;
    transition: background-color 0.5s ease, color 0.5s ease;
}
.avatar {
    position: absolute;
    top: 20px;
    right: 70px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #333;
    /* transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out, border-radius 0.5s ease-in-out, border 0.5s ease-in-out; */
    transition: all 0.5s ease-in-out;
    transform: scale(1);
    background: var(--background-gradient) border-box;
    --background-gradient: conic-gradient(from var(--border-angle), #fff 25%, #ED1B2F, #ab3ce7, #23a6d5 99%, #fff);
    --border-angle: 0deg;
    animation: bg-spin 2.5s linear infinite;
}
@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes bg-spin {
    0% {
        --border-angle: 0deg;
    }
    50% {
        --border-angle: 180deg;
    }
    100% {
        --border-angle: 360deg;
    }
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    transform: scale(1.6);
}
/*
.avatar:hover {
    animation: hoverEffect 0.5s ease-in-out forwards;
}
*/
.avatar:hover {
    transform: scale(1.6);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
    border-radius: 10%;
    /* border-width: 6px; */
    border: solid 3px transparent;
}
.avatar img:hover {
    transform: scale(1);
}
/* 修改部分 */
.education-item {
    display: flex;
    justify-content: space-between;
}
.education-date {
    text-align: right;
    font-weight: bold;
    color: #555;
    flex: 0 0 30%;
}
@keyframes hoverEffect {
    0% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.2) translateY(-5px) rotate(5deg);
    }
    50% {
        transform: scale(1.3) translateY(-10px) rotate(0deg);
    }
    70% {
        transform: scale(1.2) translateY(-7px) rotate(-5deg);
    }
    100% {
        transform: scale(1.1) translateY(-5px) rotate(0deg);
    }
}
.superscript {
    vertical-align: super;
    /*font-size: smaller;  可选：调整字体大小 */
}
/* 底部打字行定位（放在容器内左下角，跟你原来的光标一致） */
.typewriter-line {
    left: 0px;
    right: 20px;           /* 防止超出 */
    font-family: 'Courier New', Courier, monospace;
    white-space: normal;
    overflow: hidden;
    font-weight: bold;
}
/* 彩色乱码字符（按需随机上色；JS 会给 span.glitch 设置 style.color） */
.glitch {
    display: inline-block;
    transform: translateY(-1px);   /* 微抖动的感觉 */
    opacity: 0.85;
}
/* 移动端适配 */
@media only screen and (max-width: 768px) {
    body {
        line-height: normal;
    }
    h1 {
        margin-left: 10px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .container {
        margin: 20px auto;
        padding: 10px;
        padding-top: 30px;
        width: 90%;
    }
    /* 个人信息样式 */
    .personal-info {
        margin-left: 10px;
        margin-top: 35px;
        margin-bottom: 20px;
    }
    .avatar {
        width: 95px;
        height: 95px;
        top: 25px;
        right: 25px;
    }
    .avatar:hover {
        border-width: 1px;
    }
    .link-item {
        margin: 5px auto;
        font-size: 11px;
    }
    .section {
        padding: 5px;
    }
    .section-title {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .section-content {
        font-size: 11px;
    }
    .news {
        padding: 15px 5px 10px 5px;
    }
    .publication {
        padding: 5px;
    }
    .news-date, .education-date {
        font-size: 11px;
    }
    .news-event, .publication-title, .publication-authors, .publication-details {
        font-size: 11px;
    }
    .news-item {
        margin-bottom: 5px;
    }
    .news-event {
        margin-left: 5px;
    }
    .cursor {
        bottom: 20px;
        left: 22px;
        width: 5px;
        height: 11px;
    }
    .section, .news, .publication {
        margin-bottom: 10px;
    }
    .publication-item {
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .footnote-container {
        margin-top: -10px;
        margin-bottom: 15px;
        font-size: 11px;
    }
    .publication-footnote {
        font-size: 7px;
    }
    .publication-footnote-item {
        display: flex;
    }
    .typewriter-line {
        left: 22px;
        right: 10px;
        font-size: 11px;
    }
}

