/* ===================================
   Elegant Academic Homepage
   =================================== */

:root {
    --link: #1e40af;
    --link-light: #3b6ef0;
    --brand: #003f88;
    --brand-light: #5b98b8;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-accent: #f0f4ff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --radius: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ===================================
   Header / Profile
   =================================== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}

.profile {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo i {
    font-size: 56px;
    color: #d1d5db;
}

.profile-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.chinese-name {
    font-weight: 400;
    color: var(--text-light);
    font-size: 22px;
}

.title {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 6px;
}

.affiliation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.affiliation-logo {
    height: 28px;
    width: auto;
}

.affiliation a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
}

.affiliation a:hover {
    text-decoration: underline;
}

/* About section links: underline on hover */
.about-text a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.2s ease;
}

social-links a:hover {
    background: var(--link);
    border-color: var(--link);
    color: white;
    transform: translateY(-2px);
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--link-light);
    text-decoration: none;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.section {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand);
    display: inline-block;
}

/* About */
.about-text p {
    color: var(--text-medium);
    margin-bottom: 12px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===================================
   Publications
   =================================== */
.scholar-link {
    margin-bottom: 20px;
}

.scholar-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-accent);
    color: var(--link);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.scholar-link a:hover {
    background: var(--link);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.scholar-link i {
    font-size: 15px;
}

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

.pub-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.pub-item:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}

.pub-venue-tag {
    flex-shrink: 0;
    width: 80px;
    height: 28px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-venue-tag.preprint {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.pub-details {
    flex: 1;
    min-width: 0;
}

.pub-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.pub-authors {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

.pub-authors strong {
    color: var(--brand);
    font-weight: 600;
}

.pub-links {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    background: var(--bg-white);
    border: 1px solid var(--link);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pub-links a:hover {
    background: var(--link);
    color: white;
    transform: translateY(-1px);
}

/* ===================================
   Experience
   =================================== */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.exp-item:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
}

.exp-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.exp-details {
    flex: 1;
    min-width: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.exp-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.exp-date {
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
    background: var(--bg-accent);
    padding: 2px 10px;
    border-radius: 12px;
}

.exp-org {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 2px;
}

.exp-dept {
    font-size: 13px;
    color: var(--text-light);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 13px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 640px) {
    .header {
        padding: 32px 0;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

    .affiliation {
        justify-content: center;
    }

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

    .section {
        padding: 20px;
    }

    .pub-item {
        flex-direction: column;
        gap: 12px;
    }

    .pub-venue-tag {
        width: fit-content;
        padding: 0 12px;
    }

    .exp-item {
        flex-direction: column;
        gap: 12px;
    }

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

    .exp-header {
        flex-direction: column;
        gap: 4px;
    }

    .exp-date {
        align-self: flex-start;
    }
}
