/* 全局样式和字体设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* 主容器，采用 Flexbox 布局实现左右分栏 */
.container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* 左侧边栏 */
.sidebar {
    flex: 0 0 280px; /* 固定宽度，不伸缩 */
    padding: 30px;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* 圆形头像 */
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.sidebar .affiliation {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 25px;
}

.contact-info {
    list-style: none;
    padding: 0;
    text-align: left;
}

.contact-info li {
    margin-bottom: 12px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #6c757d;
    width: 25px; /* 固定图标宽度，让文字对齐 */
    text-align: center;
    margin-right: 10px;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

/* 右侧主内容区域 */
.main-content {
    flex: 1; /* 占据剩余所有空间 */
    padding: 30px 40px;
}

/* 顶部导航栏 */
.top-nav {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.top-nav a {
    text-decoration: none;
    color: #6c757d;
    margin-right: 25px;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.3s;
}

.top-nav a.active, .top-nav a:hover {
    color: #000;
}

/* 内容区域的 Section */
.main-content section {
    margin-bottom: 40px;
}

.main-content h2 {
    font-size: 1.6em;
    color: #343a40;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.main-content h2 i {
    margin-right: 10px;
}

#news ul, .publication-details ul {
    list-style: disc;
    padding-left: 20px;
}

#news li {
    margin-bottom: 10px;
}

/* 出版物条目 */
.publication-item {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.publication-image {
    flex: 0 0 200px; /* 固定图片容器宽度 */
    position: relative; /* 用于标签定位 */
}

.publication-image img {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.publication-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    font-size: 0.8em;
    font-weight: bold;
    border-top-left-radius: 4px;
}

.publication-details {
    flex: 1;
}

.publication-details h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.publication-details h3 a {
    text-decoration: none;
    color: #0056b3;
}

.publication-details h3 a:hover {
    text-decoration: underline;
}

.publication-details .authors {
    font-style: italic;
    color: #555;
    margin: 5px 0;
}

.project-page-link {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.project-page-link:hover {
    text-decoration: underline;
}