/* style.css */
:root {
    --theme-color: #003F88; /* ZJU Blue */
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #ffffff;
    --line-color: #eeeeee;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--theme-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* 导航栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-color);
    margin-bottom: 2rem;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--theme-color);
}

/* 个人简介模块 */
.intro-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 3rem;
}

.intro-text {
    flex: 1;
}

.intro-text h1 {
    margin-top: 0;
    font-size: 2.5rem;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 项目 & 论文模块 */
.section-title {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--line-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.project-card, .pub-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

section {
    margin-bottom: 2.5rem;
}

.project-img {
    width: 250px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pub-thumb {
    width: 250px;
    height: 145px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-info, .pub-info {
    flex: 1;
}

.project-title, .pub-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.project-desc {
    color: var(--light-text);
    font-size: 0.95rem;
}

.research-content p {
    color: var(--light-text);
    font-size: 0.98rem;
    margin: 0 0 14px 0;
}

.pub-authors {
    color: var(--text-color);
    margin-bottom: 5px;
}

.pub-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7a0f16, #b22222);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(122, 15, 22, 0.28);
}

.pub-venue {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 8px;
}

.pub-abstract {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0 0 10px 0;
}

.pub-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pub-links-buttons a {
    background-color: var(--theme-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.pub-links-buttons a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.year-divider {
    margin: 30px 0 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-color);
    color: var(--theme-color);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.me {
    font-weight: bold;
}

/* 响应式设计 (手机端适配) */
@media (max-width: 768px) {
    .intro-section, .project-card, .pub-card {
        flex-direction: column;
    }
    .profile-img {
        width: 180px;
        height: 180px;
    }
    .project-img,
    .pub-thumb {
        width: 100%;
        height: auto;
    }
}