/* =========================
   Global
   ========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px 80px 30px;
}


/* =========================
   General links
   ========================= */

a {
    color: #356a9a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================
   Header
   ========================= */

header {
    margin-bottom: 60px;
}

h1 {
    margin: 0 0 18px 0;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.chinese-name {
    font-size: 29px;
    font-weight: 400;
}


/* =========================
   Navigation
   ========================= */

nav {
    margin-top: 5px;
}

nav a {
    margin-right: 26px;
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

nav a:hover {
    color: #356a9a;
    text-decoration: none;
}


/* =========================
   Introduction / Bio
   ========================= */

.intro {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 85px;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
}

.bio {
    font-size: 17px;
}

.bio p {
    margin-top: 0;
    margin-bottom: 20px;
}

.email {
    margin-top: 28px;
    font-size: 16px;
}


/* =========================
   Main sections
   ========================= */

section {
    width: 100%;
    margin-bottom: 80px;
}

h2 {
    margin: 0 0 34px 0;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.3;
}


/* =========================
   Research
   ========================= */

.research-group {
    margin-bottom: 72px;
}

.research-group:last-child {
    margin-bottom: 0;
}

.research-group h3 {
    margin: 0 0 22px 0;
    color: #222222;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

.paper {
    margin-bottom: 44px;
}

.paper:last-child {
    margin-bottom: 0;
}


/* Paper title */

.paper-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}


/* Coauthors */

.coauthors {
    margin: -1px 0 8px 0;
    font-size: 15px;
    color: #555555;
    font-style: italic;
}


/* Paper / Slides links */

.paper-links {
    margin: 6px 0 18px 0;
    font-size: 15px;
}

.paper-links a {
    margin-right: 16px;
    color: #356a9a;
    font-weight: 500;
    text-decoration: none;
}

.paper-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Figure */

.paper-figure {
    margin: 26px auto 28px auto;
}

.paper-figure img {
    display: block;
    width: 68%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
}

.paper-figure .figure-caption {
    width: 72%;
    max-width: 640px;
    margin: 10px auto 0 auto;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    font-weight: 400;
}

/* Abstract */

.abstract {
    width: 100%;
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.abstract strong {
    font-weight: 600;
}


/* Presentations */

.presentation {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.65;
}

.presentation strong {
    color: #333333;
    font-weight: 600;
}


/* =========================
   Teaching
   ========================= */

.teaching-group {
    margin-bottom: 38px;
}

.teaching-group:last-child {
    margin-bottom: 0;
}

.teaching-group h3 {
    margin: 0 0 3px 0;
    font-size: 17px;
    font-weight: 600;
    color: #222222;
    text-transform: none;
    letter-spacing: normal;
}

.teaching-role {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #666666;
}

.teaching-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 7px;
    font-size: 15px;
    line-height: 1.5;
}

.course-title {
    color: #333333;
}

.course-level {
    margin-left: 7px;
    color: #777777;
    font-size: 13px;
}

.course-level::before {
    content: "· ";
}

.teaching-year {
    margin-left: 7px;
    color: #777777;
    font-size: 13px;
}

.teaching-year::before {
    content: "· ";
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {

    .container {
        padding: 35px 22px 60px 22px;
    }

    header {
        margin-bottom: 45px;
    }

    h1 {
        font-size: 34px;
    }

    .chinese-name {
        font-size: 23px;
    }

    nav a {
        margin-right: 18px;
        font-size: 15px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 65px;
    }

    .photo {
        max-width: 230px;
    }

    .bio {
        font-size: 16px;
    }

    section {
        margin-bottom: 65px;
    }

    h2 {
        margin-bottom: 28px;
        font-size: 24px;
    }

    .research-group {
        margin-bottom: 58px;
    }

    .research-group h3 {
        margin-bottom: 18px;
        font-size: 18px;
    }

    .paper {
        margin-bottom: 36px;
    }

    .paper-title {
        font-size: 17px;
    }

   .paper-figure img {
        width: 100%;
    }

    .paper-figure .figure-caption {
        width: 92%;
        max-width: none;
        font-size: 12px;
    }

    .abstract {
        font-size: 15px;
        text-align: left;
    }

    .presentation {
        font-size: 14px;
    }

    .teaching-item {
        grid-template-columns: 1fr auto;
        column-gap: 15px;
    }

    .course-level {
        display: block;
        margin-left: 0;
        margin-top: 1px;
    }

    .course-level::before {
        content: "";
    }
}
