/* ========== Base ========== */
body {
    padding: 0;
    margin: 0;
    background-color: white;
    font-size: 15px;
    line-height: 24px;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-align: justify;
    color: #333;
}

a {
    color: #124496;
    text-decoration: none;
    font-weight: 400;
}
a:hover {
    text-decoration: underline;
    color: #731D1D;
}

/* ========== Page Header ========== */
.page-header {
    border: none;
    margin-bottom: 0px;
}
.page-header h1 {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 45px;
    font-weight: 700;
    color: #333;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}
.chinese-name {
    font-size: 28px;
    font-weight: 400;
    color: #666;
}

/* ========== Sidebar ========== */
.sidebar {
    text-align: center;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sidebar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.sidebar h3 {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-align: left;
    margin-bottom: 3px;
}

/* ========== Floating Sidebar ========== */
#floating-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    text-align: center;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.sidebar-name {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-top: 14px;
    margin-bottom: 2px;
}

.sidebar-name-cn {
    font-size: 15px;
    color: #888;
    margin: 0 0 6px 0;
    font-weight: 400;
}

.sidebar-title {
    font-size: 14px;
    color: #555;
    margin: 0 0 3px 0;
    font-weight: 400;
}

.sidebar-affil {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.sidebar-affil a {
    color: #555;
    font-weight: 400;
}

.sidebar-affil a:hover {
    color: #124496;
    text-decoration: underline;
}

/* Sidebar info list (position, university, location, email) */
.sidebar-info {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px 0;
    text-align: left;
    width: 100%;
}
.sidebar-info li {
    font-size: 13px;
    color: #555;
    padding: 3px 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.sidebar-info li i {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}
.sidebar-info li a {
    color: #555;
    font-weight: 400;
    text-decoration: none;
}
.sidebar-info li a:hover {
    color: #124496;
    text-decoration: underline;
}

@media (max-width: 767px) {
    #floating-sidebar {
        position: static;
        max-height: none;
        padding-right: 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
    }
}

#headshot {
    width: 100%;
    max-width: 160px;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 3 / 4;
}

.contact-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}
.contact-icons a {
    color: #888;
    font-size: 20px;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.contact-icons a:hover {
    color: #124496;
    text-decoration: none;
}
.dblp-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    vertical-align: middle;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.contact-icons a:hover .dblp-icon {
    opacity: 1;
}

.contact-block {
    text-align: left;
    background-color: #d4d4d4;
    font-size: 11pt;
    margin-top: 0;
    padding: 5px 10px;
    width: 100%;
    line-height: 22px;
}
.contact-block li {
    line-height: 20px;
    list-style-type: none;
    padding: 2px 0;
}

/* ========== Main Content ========== */
.main-content {
    border-right: none;
}

.main-content p {
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 24px;
}

/* ========== Section Headings ========== */
h2 {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    font-weight: 700;
    text-align: left;
    font-size: 24px;
    padding-top: 10px;
    padding-bottom: 0;
    margin-top: 25px;
}

h3 {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    font-weight: 700;
    text-align: left;
    font-size: 18px;
    margin-bottom: 3px;
}

/* ========== Content Blocks ========== */
.content-block {
    margin-top: 5px;
}
.content-block p {
    padding-top: 0;
    margin-top: 8px;
    line-height: 24px;
}
.content-block ul {
    list-style-type: none;
    padding-left: 0;
}
.content-block ul li {
    margin-top: 6px;
    line-height: 22px;
}

/* ========== News Table ========== */
.news-table {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    width: 100%;
}
.news-table td {
    padding: 4px 0;
    vertical-align: top;
}
.news-date {
    white-space: nowrap;
    padding-right: 20px;
    color: #666;
    font-weight: 600;
    width: 100px;
}

/* ========== Publications ========== */
.pub-list {
    list-style-type: none;
    padding-left: 0;
}
.pub-list > li {
    margin-bottom: 4px;
}
.pub-list > li > p {
    padding-top: 0;
    margin-top: 10px;
    line-height: 24px;
}
.pub-list a {
    font-weight: 600;
    color: #124496;
    text-decoration: none;
}
.pub-list a:hover {
    text-decoration: underline;
    color: #731D1D;
}
.pub-authors {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 22px;
}
.pub-list em {
    font-size: 16px;
}

/* ========== Highlight ========== */
.highlight {
    color: #cc1c1c;
}

/* ========== Footer ========== */
footer.footer {
    margin-top: 40px;
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
    font-style: italic;
}


/* ========== Responsive ========== */
@media screen and (max-width: 768px) {
    body {
        margin-left: 2%;
        margin-right: 2%;
        margin-top: 0;
        padding: 0;
    }
    .page-header {
        width: 100%;
    }
    .page-header h1 {
        text-align: center;
        font-size: 30px;
    }
    .chinese-name {
        font-size: 22px;
    }
    .main-content {
        border: none;
        padding-top: 10px;
    }
    .main-content ul {
        margin-left: 10px;
        padding-left: 0;
    }
    .sidebar {
        text-align: center;
        margin-bottom: 20px;
    }
    #headshot {
        max-width: 200px;
    }
    h2 {
        font-size: 26px;
    }
    li {
        text-align: left;
    }
}
