/* 全局样式 */
:root {
    --primary-color: #111;
    --secondary-color: #666;
    --accent-color: #0066cc;
    --bg-color: #fff;
    --sidebar-width: 280px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--primary-color);
    background-color: var(--bg-color);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 布局容器 */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    padding: 60px 20px 40px 0;
    flex-shrink: 0;
    /* 移除背景色和边框，更加极简 */
    background-color: transparent;
    border: none;
    text-align: left; /* 改为左对齐 */
}

.profile-container {
    position: sticky;
    top: 60px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    /* 移除边框和阴影 */
    border: none;
    box-shadow: none;
    background-color: #f0f0f0;
}

.sidebar h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.sidebar h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.sidebar .title {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.sidebar .affiliation {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    /* 左对齐 */
    justify-content: flex-start;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* 语言切换按钮 */
.lang-toggle-container {
    margin-top: 20px;
    text-align: left;
}

.lang-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* 语言显示控制 */
/* 默认显示英文，隐藏中文（通过JS设置html[lang="en"]或html[lang="zh"]来控制） */

/* 当 html lang="en" 时，隐藏中文元素 */
:root[lang="en"] .lang-zh {
    display: none !important;
}

/* 当 html lang="zh" 时，隐藏英文元素 */
:root[lang="zh"] .lang-en {
    display: none !important;
}

/* 主要内容区域样式 */
.content {
    flex-grow: 1;
    padding: 60px 0 60px 60px;
    max-width: 800px;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: -0.3px;
    /* 移除下划线，更加干净 */
    border-bottom: none;
    padding-bottom: 0;
}

/* 通用段落样式 */
p {
    margin-bottom: 15px;
    color: #333;
}

/* 新闻列表 - 极简风格 */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
}

.news-list .date {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--secondary-color);
    min-width: 80px;
    margin-right: 15px;
    font-size: 0.9rem;
    /* 移除背景色 */
    background: none;
    padding: 0;
}

/* 论文列表 */
.publication-item {
    margin-bottom: 30px;
}

.pub-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pub-authors {
    margin: 5px 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.pub-venue {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.pub-links {
    font-size: 0.85rem;
    margin-top: 8px;
    font-family: monospace; /* 使用等宽字体增加科技感 */
}

.pub-links a {
    margin-right: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

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

/* 教育经历 */
.education-list {
    list-style: none;
}

.education-list li {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column; /* 改为垂直排列，更清晰 */
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.edu-degree {
    font-weight: 600;
    font-size: 1.05rem;
}

.edu-time {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.edu-school {
    color: #444;
}

/* 页脚 */
.footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    text-align: left;
    font-size: 0.85rem;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 40px 0 20px 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .profile-container {
        position: static;
    }

    .social-links {
        justify-content: center;
    }

    .lang-toggle-container {
        text-align: center;
    }

    .content {
        padding: 40px 0;
    }
    
    .news-list li {
        flex-direction: column;
    }
    
    .news-list .date {
        margin-bottom: 4px;
    }
}