/* assets/css/academic.css */

/* --- 1. 全局设置 (Global) --- */
body {
    font-family: "Georgia", "Times New Roman", Times, serif; /* 学术界标准衬线体 */
    background-color: #ffffff; /* 纯白背景 */
    color: #222222; /* 深灰字体，比纯黑更护眼 */
    line-height: 1.6; /* 增加行高，提升可读性 */
    margin: 0;
    padding: 0;
    font-size: 18px; /* 字体稍大，显得大气 */
    -webkit-font-smoothing: antialiased;
}

/* 链接样式：经典的学术蓝 */
a {
    color: #0044cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #002a80;
    text-decoration: underline;
}

/* --- 2. 布局容器 (Container) --- */
/* 控制网页宽度，让内容像论文一样居中，不要铺满全屏 */
.container {
    max-width: 860px; /* 限制最大宽度 */
    margin: 0 auto;   /* 居中 */
    padding: 40px 24px; /* 上下左右留白 */
}

/* --- 3. 顶部导航 (Navigation) --- */
header {
    border-bottom: 1px solid #eeeeee; /* 极淡的分割线 */
    padding-bottom: 20px;
    margin-bottom: 50px;
    display: flex; /* 让名字和菜单左右对齐 */
    justify-content: space-between;
    align-items: center;
}

/* 你的名字（左上角） */
.site-title {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif; /* 标题用无衬线体 */
    font-weight: 700;
    font-size: 22px;
    color: #111;
    text-decoration: none !important; /* 名字永远不要下划线 */
    letter-spacing: -0.5px;
}

/* 菜单（右上角） */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* 菜单项之间的间距 */
}

nav a {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #666; /* 默认灰色 */
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: #800000; /* UChicago Maroon (深红色) - 强调你的学校身份 */
    text-decoration: none;
}

/* --- 4. 个人简介板块 (Profile Section) --- */
.profile-section {
    display: flex;
    gap: 50px; /* 照片和文字的间距 */
    margin-bottom: 60px;
    align-items: flex-start;
}

.profile-photo {
    width: 220px;
    height: auto; /* 保持比例 */
    border-radius: 4px; /* 轻微圆角 */
    /* 如果照片是正方形，可以用这个变成圆形： border-radius: 50%; */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 极轻的阴影 */
    flex-shrink: 0; /* 防止照片被挤压 */
}

.bio-text h1 {
    margin-top: 0;
    font-size: 34px;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
}

.bio-text p {
    margin-bottom: 18px;
    font-size: 18px;
    color: #333;
}

/* CV 按钮样式 */
.btn-cv {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #444;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    background: transparent;
    transition: all 0.2s;
}

.btn-cv:hover {
    border-color: #000;
    background: #111;
    color: #fff; /* 悬停变黑底白字 */
    text-decoration: none;
}

/* --- 5. 标题与列表 (Headings & Lists) --- */
h2.section-title {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #f2f2f2; /* 标题下的短横线 */
    padding-bottom: 12px;
    margin-top: 60px;
    margin-bottom: 25px;
    color: #111;
}

/* 论文列表 */
ul.paper-list {
    list-style: none; /* 去掉默认圆点 */
    padding: 0;
}

ul.paper-list li {
    margin-bottom: 35px; /* 每篇论文之间的间距 */
}

.paper-title {
    font-weight: 600; /* 论文标题加粗 */
    font-size: 19px;
    color: #000;
}

.paper-authors {
    color: #444;
}

.paper-journal {
    font-style: italic; /* 期刊名斜体 */
    color: #555;
}

.links {
    margin-top: 4px;
    font-size: 15px;
    font-family: "Inter", sans-serif;
}

.links a {
    margin-right: 10px;
    color: #0044cc;
    font-weight: 500;
}

/* --- 6. 页脚 (Footer) --- */
footer {
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    margin-bottom: 40px;
}

/* --- 7. 手机端适配 (Mobile Responsive) --- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header {
        flex-direction: column; /* 手机上导航栏垂直排列 */
        align-items: flex-start;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap; /* 菜单太长自动换行 */
        gap: 20px;
    }
    
    .profile-section {
        flex-direction: column; /* 手机上照片在文字上方 */
        gap: 30px;
    }
    
    .profile-photo {
        width: 150px; /* 手机上照片小一点 */
    }
    
    .bio-text h1 {
        font-size: 28px;
    }
}