/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; /* 全局字体 */
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

/* 主容器：居中且调整左右空白区域 */
.container {
    display: flex;
    flex-wrap: nowrap; /* 避免换行 */
    max-width: 1100px; /* 最大宽度限制，保持不变 */
    min-width: 300px;  /* 减小最小宽度，使其与移动端视图匹配 */
    margin: 0 auto; /* 水平居中 */
    padding-left: 5%; /* 左侧动态空白区域 */
    padding-right: 5%; /* 右侧动态空白区域 */
}

/* 左侧固定区域 */
.sidebar {
    flex: 0 0 300px; /* 固定宽度 */
    background-color: #fff;
    padding: 20px;
    text-align: center;
    height: 100vh;
    overflow-y: auto;
}

.profile-picture {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

h1, h2, h3 {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.social-links {
    margin: 15px 0;
}

.social-icon {
    font-size: 1.5em;
    color: #333;
    margin: 0 10px;
    text-decoration: none;
}

.social-icon:hover {
    color: #007bff;
}

/* Contact 邮件样式 */
.contact-email {
    font-family: "Courier", "Courier New", monospace; /* 仅邮件部分为 Courier */
    font-size: 1em;
    color: #007bff;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

/* 右侧内容区域 */
.content {
    flex: 1; /* 占据剩余空间 */
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

section {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.2em;
    color: #222;
    margin-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Publications 样式 */
.publications h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 小屏幕时换行 */
    background-color: #fff; /* 文章背景 */
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}


/* 图片部分 */
.pub-image {
    flex-shrink: 0; /* 防止图片被压缩 */
    margin-right: 15px;
    width: 120px; /* 容器宽度 */
    height: 120px; /* 容器高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 防止内容溢出 */
    background-color: #fff; /* 背景色 */
    border: 1px solid #ddd;
    border-radius: 8px;
}

.pub-img {
    width: 100%; /* 图片宽度占满容器 */
    height: auto; /* 高度自动 */
    max-width: 120px; /* 最大宽度 */
    max-height: 120px; /* 最大高度 */
    object-fit: contain; /* 图片等比例缩放，不裁剪内容 */
    border-radius: 5px;
    background-color: #f5f5f5;
}


/* 内容部分 */
.pub-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pub-title {
    font-size: 1em;
    font-weight: bold;
    color: #000;
}

.pub-authors {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.pub-award {
    font-weight: bold;
    font-size: 0.9em;
    color: #d11212;
    margin: 5px 0;
}

.pub-links {
    margin-top: 8px;
}

.pub-links a {
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

.pub-links a:hover {
    text-decoration: underline;
}

.publication-item .pub-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;   /* 按钮间距 */
    flex-wrap: wrap;
}

.publication-item .pub-actions .btn-link {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;          /* 继承 Paper 的字体大小 */
    font-family: inherit;        /* 继承 Paper 的字体族 */
    font-weight: inherit;        /* 继承 Paper 的粗细 */
    color: #007BFF; /* 跟 Paper 链接同色，如果全局定义 a 标签颜色可删掉 */
    cursor: pointer;
    text-decoration: none;
}

.publication-item .pub-actions .btn-link:hover {
    text-decoration: underline;  /* 悬停时加下划线 */
}
/* Full List 链接 */
.full-list a {
    font-size: 0.9em;
    color: #007bff;
}

/* News Section */
.news {
    margin: 20px 0;
}

/* .news h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
} */

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1em;
    color: #444;
}

.news-date {
    display: inline-block;
    background-color: #1e88e5; /* 蓝色背景 */
    color: #fff; /* 白色字体 */
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.news-list a {
    color: #1e88e5;
    text-decoration: none;
}

.news-list a:hover {
    text-decoration: underline;
}

.news-list b {
    font-weight: bold;
    color: #000;
}


/* 小屏幕适配 */
@media (max-width: 1200px) {
    .container {
        padding-left: 2%; /* 小屏幕时减少左右空白 */
        padding-right: 2%;
    }
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .container {
        min-width: unset; /* 在移动端移除最小宽度限制 */
        flex-direction: column; /* 垂直堆叠布局 */
    }

    .sidebar {
        position: relative; /* 恢复流布局 */
        flex: 0 0 auto; /* 高度自适应 */
        height: auto;
        margin-bottom: 20px; /* 与内容间留出空白 */
    }

    .content {
        margin: 0 auto; /* 居中显示 */
        padding: 15px;
        width: 100%; /* 占满屏幕宽度 */
    }

    .sidebar, .content {
        width: 100%; /* 宽度占满 */
        padding: 15px;
    }

    .profile-picture {
        width: 120px; /* 头像缩小 */
        margin-bottom: 10px;
    }
}



.highlight {
    background-color: #ffd90078; /* 金黄色背景 */
    color: #000;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.8em;
}

.tags {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* 标签之间的间距 */
}

.tag {
    display: inline-block;
    font-size: 0.75em;
    background-color: #f0f0f0; /* 浅灰背景 */
    color: #555; /* 灰色字体 */
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap; /* 避免标签换行 */
    text-transform: capitalize;
}

/* 加粗作者名字 */
.pub-authors b {
    font-weight: 800; /* 字体加粗程度更高 */
    color: #000; /* 更深的黑色 */
    background-color: #cfeff5f3; /* 添加浅黄色背景 */
    padding: 0 4px; /* 适当留白 */
    border-radius: 3px; /* 圆角边框 */
}


/* 标签样式
.tag {
    display: inline-block;
    font-size: 0.8em;
    background-color: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    margin: 0 4px 4px 0;
    border-radius: 4px;
    text-transform: capitalize;
} */

/* Footer 样式 */
.footer {
    background-color: #fff;
    color: #333; /* 深灰字体 */
    text-align: center; /* 内容居中 */
    padding: 15px 10px; /* 内边距 */
    margin-top: 20px; /* 与上方内容间距 */
    font-size: 0.9em; /* 字体稍小 */
}

.footer a {
    color: #007bff; /* 链接颜色 */
    text-decoration: none; /* 去除下划线 */
}

.footer a:hover {
    text-decoration: underline; /* 鼠标悬停时下划线 */
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.awards {
    margin-top: 20px;
    font-family: "Lucida Sans Unicode", sans-serif;
}


.awards-list {
    list-style: none;
    padding: 0;
}

.awards-list li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.award-time {
    font-weight: bold;
    font-size: small;
    color: #1e88e5; /* 蓝色 */
    margin-right: 10px;
}



.award-level {
    display: inline-block;
    background-color: #1e88e5; /* 蓝色背景 */
    color: #fff; /* 白色字体 */
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    margin-right: 5px;
}

.award-content {
    color: #444;
    font-size: 0.8em;
}


.projects {
    margin: 20px 0;
    font-family: "Lucida Sans Unicode", sans-serif;
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 0; /* 修改这里，去掉 auto 使之左对齐 */
    max-width: 100%; /* 确保占据整个父容器宽度 */
}

.projects-list li {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-left: 5px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1em;
    line-height: 1.5;
    width: 100%; /* 每个列表项占满父容器宽度 */
    box-sizing: border-box; /* 让 padding 和 border 包含在 width 内 */
}

.project-label {
    font-weight: bold;
    color: #555;
    font-size: 0.8em;
}

.project-level {
    font-weight: bold;
    background-color: #1e88e5; /* 蓝色背景 */
    color: #fff; /* 白色字体 */
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 5px;
}

.project-position {
    font-weight: bold;
    background-color: #33a1d8; /* 蓝色背景 */
    color: #fff; /* 白色字体 */
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 5px;
}

.project-content {
    color: #444;
    font-size: 0.8em;
}

.project-during {
    font-style: italic;
    color: #888;
    font-size: 0.9em;
}

/* .projects h2 {
    border-bottom: 1px solid #ddd;
}

.awards h2 {
    border-bottom: 1px solid #ddd;
}

.news h2 {
    border-bottom: 1px solid #64575759;
} */


.academic-service h2 {
    /* font-size: 1.5em; */
    margin-bottom: 5px;
    color: #222;
}

.academic-service hr {
    border: none;
    border-top: 1px solid #ddd;
    margin-bottom: 10px;
}

.academic-service ul {
    list-style-type: disc;
    padding-left: 20px;
}

.academic-service li {
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: small;
}

.academic-service b {
    color: #000;
    font-weight: bold;
    font-size: larger;
}

/* 标签样式 */
.badge {
    display: inline-block;
    font-size: 0.7em;
    font-weight: bold;
    color: white;
    padding: 2px 6px;
    margin-left: 5px;
    border-radius: 4px;
}

.badge.jcr {
    background-color: #1e88e579;
}

.badge.ccf {
    background-color: #9300f565;
}

.badge.ei {
    background-color: #43a081b0;
}

/* 使 JCR, CCF, EI 标签与年份对齐 */
.pub-content p i {
    margin-right: 10px;
}

/* Adjust section spacing for mobile/portrait view */
@media (max-width: 768px) {
    section {
        margin-bottom: 15px;
    }

    .news, .projects, .awards {
        margin: 10px 0;
    }

    section h2 {
        margin-bottom: 8px;
    }
}
