/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f0f8ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0a3d62;
    margin-bottom: 1rem;
}

/* Highlight Style */
.highlight {
    background-color: #3498db;
    color: #ffffff;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.highlight:hover {
    background-color: #d0e8f0;
    color: #0a3d62;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #555555;
}

a {
    color: #0a3d62;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3498db;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #555555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background-color: #f0f0f0;
}

.lang-btn.active {
    background-color: #0a3d62;
    color: #ffffff;
    border-color: #0a3d62;
}

/* Navigation */
.navbar {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: #555555;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0a3d62;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #0a3d62;
    font-weight: 600;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.profile-photo {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
    text-align: center;
}

.name {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #0a3d62;
}

.title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.institution {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.email {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.75rem;
    background-color: #e8f4f8;
    border: 1px solid #d0e8f0;
    border-radius: 50%;
    font-size: 1.25rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #0a3d62;
}

.social-link:hover {
    background-color: #d0e8f0;
    transform: translateY(-2px);
    color: #3498db;
}

/* Content Area */
.content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content.full-width {
    grid-column: 1 / -1;
}

/* Sections */
.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #0a3d62;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px;
}

/* Work and Education */
.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: #3498db;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px #e8f4f8;
}

.item-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #0a3d62;
}

.item-organization {
    font-weight: 500;
    color: #3498db;
    margin-bottom: 0.25rem;
}

.item-date {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Research Highlights */
.research-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.research-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.research-card:nth-child(1) {
    background-color: #e8f4f8; /* 浅蓝马卡龙 */
}

.research-card:nth-child(2) {
    background-color: #e8f8f5; /* 浅绿马卡龙 */
}

.research-card:nth-child(3) {
    background-color: #fce4ec; /* 浅粉马卡龙 */
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-title {
    padding: 1.5rem;
    margin-bottom: 0;
    font-size: 1.375rem;
    background-color: inherit;
}

.card-authors {
    padding: 0 1.5rem 0.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: #555555;
    line-height: 1.6;
}

.card-journal {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #7f8c8d;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-buttons {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.card-button {
    padding: 0.25rem 0.5rem;
    background-color: #3498db;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.card-button:hover {
    background-color: #0a3d62;
    color: #ffffff;
    transform: translateY(-2px);
}

.card-image {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color: inherit;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* 确保图片完全显示 */
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: grab;
    transform-origin: center center;
    position: relative; /* 改为相对定位 */
}

.card-image img:active {
    cursor: grabbing;
}



/* Publications Page */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #0a3d62;
}

.publications-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.year-section {
    background-color: #e8f4f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.year-title {
    background-color: #0a3d62;
    color: #ffffff;
    padding: 1rem 2rem;
    margin-bottom: 0;
    font-size: 1.5rem;
}

.publication-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-text {
    margin-bottom: 0;
    line-height: 1.7;
}

/* Timeline Page */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1rem;
    z-index: 1;
    cursor: pointer;
    width: 100%;
    max-height: 350px; /* 增加折叠时显示的高度，露出更多内容 */
}

.timeline-card.expanded {
    max-height: 2000px; /* 展开时的最大高度，足够容纳内容 */
    margin-bottom: 2rem;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.timeline-card:last-child {
    margin-bottom: 0;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    background-color: #3498db;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.timeline-content {
    padding: 2rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0a3d62;
}

.timeline-text {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.timeline-image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .language-switcher {
        position: static;
        margin-bottom: 2rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 1rem;
    }

    .navbar ul {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 1rem;
    }

    .content {
        padding: 2rem;
    }

    .section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .card-title {
        padding: 1.25rem;
        font-size: 1.25rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .publication-item {
        padding: 1.25rem 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-photo img {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 1.5rem;
    }

    .content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .year-title {
        padding: 0.75rem 1.25rem;
        font-size: 1.25rem;
    }

    .publication-item {
        padding: 1rem 1.25rem;
    }
}