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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e66;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c3e66;
    border-bottom: 2px solid #2c3e66;
    padding-bottom: 5px;
}

/* 主内容区 */
main {
    min-height: calc(100vh - 140px);
    padding: 3rem 0;
}

/* 通用卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.2rem;
    color: #2c3e66;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    color: #2c3e66;
    margin: 1.5rem 0 1rem 0;
    border-left: 4px solid #2c3e66;
    padding-left: 1rem;
}

h3 {
    font-size: 1.2rem;
    color: #444;
    margin: 1rem 0 0.5rem 0;
}

/* 个人资料区域 */
.profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.avatar {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2c3e66, #1a2a44);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.bio {
    flex: 1;
}

.bio p {
    margin: 0.5rem 0;
}

/* 研究条目和出版物 */
.research-item,
.pub-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.research-item:last-child,
.pub-item:last-child {
    border-bottom: none;
}

.pub-title {
    font-weight: 600;
    color: #2c3e66;
}

.pub-authors {
    color: #555;
    font-size: 0.9rem;
}

.pub-venue {
    color: #777;
    font-size: 0.85rem;
    font-style: italic;
}

.pub-links a {
    color: #2c3e66;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 1rem;
}

/* CV页面 */
.cv-section {
    margin-bottom: 2rem;
}

.cv-item {
    margin-bottom: 1rem;
}

.cv-date {
    font-weight: 600;
    color: #2c3e66;
    width: 100px;
    display: inline-block;
}

.cv-title {
    font-weight: 500;
}

/* 联系页面 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 50px;
}

/* 页脚 */
footer {
    background-color: white;
    text-align: center;
    padding: 1.5rem;
    color: #777;
    font-size: 0.85rem;
    border-top: 1px solid #eaeaea;
}

/* 响应式 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-date {
        display: block;
        margin-bottom: 0.25rem;
    }
}