/* ============================================
   Academic Personal Homepage Stylesheet
   Clean, professional, and formal design
   ============================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #ffffff;
}

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

a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
}

strong {
    font-weight: 600;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-logo {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}

.nav-logo:hover {
    color: #1a5276;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #1a5276;
    border-bottom-color: #1a5276;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* ============================================
   Profile Section (Hero)
   ============================================ */
.profile-section {
    padding-top: 96px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

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

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-bottom: 16px;
}

.profile-name {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.profile-name-cn {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 12px;
}

.profile-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 4px;
}

.profile-affiliation {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #555;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.profile-links a:hover {
    background: #f5f7fa;
    color: #1a5276;
}

.profile-links i {
    width: 16px;
    text-align: center;
    color: #1a5276;
    font-size: 0.85rem;
}

/* Profile Main Content */
.profile-main h2 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1a5276;
    display: inline-block;
}

.bio-section {
    margin-bottom: 32px;
}

.bio-section p {
    margin-bottom: 12px;
    color: #444;
}

/* News */
.news-section {
    margin-bottom: 32px;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    font-weight: 600;
    color: #1a5276;
    margin-right: 4px;
}

/* Education */
.education-section {
    margin-bottom: 16px;
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #1a5276;
}

.edu-degree {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.edu-school {
    font-size: 0.93rem;
    color: #666;
}

.edu-detail {
    font-size: 0.88rem;
    color: #1a5276;
    font-weight: 500;
    margin-top: 2px;
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
    padding: 64px 0;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1a5276;
    margin: 12px auto 0;
}

/* ============================================
   Research Interests
   ============================================ */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.section-alt .research-card {
    background: #ffffff;
}

.research-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.research-icon {
    width: 44px;
    height: 44px;
    background: #eaf2f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #1a5276;
    font-size: 1.1rem;
}

.research-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.research-card p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   Publications
   ============================================ */
.pub-list {
    max-width: 850px;
    margin: 0 auto;
    padding-left: 20px;
    list-style: decimal;
    counter-reset: none;
}

.pub-item {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #1a5276;
}

.section-alt .pub-item {
    background: #ffffff;
}

.pub-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.4;
}

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

.pub-venue {
    font-size: 0.88rem;
    color: #666;
}

.venue-badge {
    display: inline-block;
    background: #1a5276;
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 6px;
}

.ccf-rank {
    display: inline-block;
    background: #d4efdf;
    color: #1e8449;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 4px;
}

.pub-more {
    text-align: center;
    margin-top: 32px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a5276;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border: 1px solid #1a5276;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-link:hover {
    background: #1a5276;
    color: #fff;
}

/* ============================================
   Projects
   ============================================ */
.projects-list {
    max-width: 850px;
    margin: 0 auto;
}

.project-item {
    padding: 24px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.section-alt .project-item {
    background: #ffffff;
}

.project-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-item h3 {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.project-period {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 10px !important;
}

.project-item > p {
    font-size: 0.93rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    background: #eaf2f8;
    color: #1a5276;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 28px 16px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.contact-card i {
    font-size: 1.5rem;
    color: #1a5276;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

.contact-card a:hover {
    color: #1a5276;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 24px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: #999;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px 24px;
        gap: 0;
    }

    .nav-menu.active .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .profile-links {
        text-align: center;
        align-items: center;
    }

    .profile-links a {
        justify-content: center;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .profile-name {
        font-size: 1.4rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pub-item {
        padding: 16px;
    }

    .project-item {
        padding: 16px;
    }
}
