/* ==================== 全局样式 ==================== */
* {
    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: #fff;
}

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

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 1.6em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

h3 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #444;
}

section {
    margin-bottom: 48px;
}

/* ==================== 个人信息 ==================== */
.profile-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.profile-text {
    flex: 1;
}

.profile-text h1 {
    font-size: 1.8em;
    margin-bottom: 16px;
}

.profile-text .bio {
    margin-bottom: 16px;
    text-align: justify;
}

.profile-text .links {
    margin-top: 12px;
}

.profile-text .links a {
    font-size: 0.95em;
}

.recruit-notice {
    margin-top: 12px;
    color: #d9363e;
    font-weight: bold;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-photo img {
    width: 220px;
    height: 270px;
    object-fit: cover;
    border-radius: 4px;
}

/* ==================== 论文信息 ==================== */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pub-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pub-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f7f7f7;
}

/* 论文缩略图：完整显示图片/视频（支持 .png/.jpg/.gif/.webp/.mp4 等） */
.pub-thumb img,
.pub-thumb video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pub-info {
    flex: 1;
}

.pub-title {
    font-size: 1.05em;
    margin-bottom: 6px;
    color: #222;
}

.pub-authors {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 6px;
}

.pub-links {
    font-size: 0.9em;
}

.pub-links a {
    color: #996633;
}

/* ==================== 个人项目 ==================== */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f7f7f7;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
}

.project-info h4 {
    margin-bottom: 6px;
    font-size: 1.05em;
}

.project-desc {
    color: #555;
    font-size: 0.93em;
    margin-bottom: 8px;
}

.project-links {
    font-size: 0.9em;
}

.project-links a {
    color: #996633;
}

/* ==================== 工作经历 ==================== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.experience-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.exp-logo {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exp-info {
    flex: 1;
}

.exp-info .exp-company {
    font-size: 1.1em;
    margin-bottom: 2px;
}

.exp-date {
    color: #888;
    font-size: 0.9em;
    display: block;
    margin-bottom: 2px;
}

.exp-role {
    color: #333;
    font-size: 0.95em;
}

/* ==================== 页脚 ==================== */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 0.85em;
}

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
    .profile-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .profile-text .bio {
        text-align: left;
    }

    .profile-photo img {
        width: 140px;
        height: 170px;
    }

    .pub-item,
    .project-item {
        flex-direction: column;
    }

    .pub-thumb,
    .project-thumb {
        width: 100%;
        height: auto;
    }

    .exp-logo {
        width: 50px;
        height: 50px;
    }
}
