/* --- 全局和基础样式 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #fff;
}

.container {
    display: flex; /* 关键：使用Flexbox创建两栏布局 */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2 {
    font-weight: 600;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

/* --- 顶部 Header --- */
.main-header {
    padding: 10px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.main-header h1 {
    font-size: 2em;
    margin: 0;
    border: none;
}

/* --- 左侧导航栏 (Sidebar) --- */
.sidebar {
    flex: 0 0 180px; /* 固定宽度180px */
    padding-right: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: #333;
}

.sidebar li a.active, .sidebar li a:hover {
    background-color: #f0f0f0; /* 激活和悬停时的背景色 */
    text-decoration: none;
}

/* --- 右侧主内容区 (Content) --- */
.content {
    flex: 1; /* 占据剩余所有空间 */
    padding-left: 20px;
}

.profile-section {
    display: flex; /* 让照片和联系信息并排 */
    align-items: flex-start;
    margin-bottom: 2em;
}

.profile-photo {
    width: 160px;       /* Set a fixed width */
    height: 180px;      /* Set a fixed height */
    margin-right: 30px;
    border: 1px solid #ddd;
    padding: 4px;
    object-fit: cover;  /* This is the magic property */
}

.contact-info p {
    margin: 0 0 8px 0;
}

.news-list {
    list-style: none;
    padding-left: 0;
}

.news-list li {
    margin-bottom: 10px;
}

/* 高亮文本样式，例如 (top 5.1%) */
.highlight {
    color: #c0392b; /* 暗红色 */
    font-weight: bold;
}

/* --- 追加的样式：用于新添加的内容 --- */

/* 研究兴趣列表 */
.topic-list {
    padding-left: 20px;
}

/* 研究方向总结表格 */
.research-table {
    width: 100%;
    border-collapse: collapse; /* 合并边框 */
    margin-top: 20px;
    margin-bottom: 20px;
}

.research-table th, .research-table td {
    border: 1px solid #ddd; /* 单元格边框 */
    padding: 12px;
    text-align: left;
    vertical-align: top; /* 内容顶部对齐 */
}

.research-table th {
    background-color: #f7f7f7; /* 表头背景色 */
    font-weight: 600;
    text-align: center;
}

.research-table td ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* 出版物列表 */
.publications-list {
    list-style: none;
    padding-left: 0;
}

.publications-list li {
    margin-bottom: 1.5em; /* 增加条目间距 */
}

.publications-list b {
    font-size: 1.05em; /* 标题稍大一些 */
}

.note {
    font-size: 0.9em;
    color: #666;
}

/* 奖项荣誉列表 */
.awards-list {
    list-style: square; /* 使用方块作为项目符号 */
    padding-left: 20px;
}

.awards-list li {
    margin-bottom: 8px;
}

/* 访客地图 */
.visitor-map {
    text-align: center; /* 居中显示地图 */
    margin-top: 20px;
}

.visitor-map img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

/* --- 追加的样式：用于实习和项目经历列表 --- */
.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list > li {
    margin-bottom: 1.5em;
}

.experience-list b {
    font-size: 1.05em;
}

/* 经历列表中的内嵌列表样式 */
.experience-list ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 8px;
}

.experience-list ul li {
    margin-bottom: 5px;
}