:root {
    --bg: #fbfcfc;
    --surface: #ffffff;
    --text: #172026;
    --muted: #66737c;
    --accent: #147c94;
    --accent-hover: #0d5c70;
    --border: #dde7e9;
    --soft-border: #edf3f4;
    --tag-bg: #eaf6f8;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.bio a,
.entry-body a,
.plain-list a {
    overflow-wrap: anywhere;
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 900px;
    height: 50px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav-name {
    color: var(--text);
    font-weight: 600;
}

.nav-name:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    font-size: 15px;
}

.nav-links a {
    display: inline-block;
    width: 68px;
    color: var(--muted);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    text-align: center;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.profile {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

h1 {
    margin-bottom: 7px;
    font-size: 32px;
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: 0;
}

.chinese-name {
    color: var(--muted);
    font-size: 21px;
    font-weight: 400;
}

.tagline {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 16px;
}

.bio {
    max-width: 640px;
}

.bio p+p {
    margin-top: 8px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    margin-top: 8px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
    background: var(--surface);
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 14px;
}

.profile-links a {
    color: var(--accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.profile-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.section-title {
    margin: 38px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--soft-border);
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
}

.page-title {
    margin-top: 0;
}

.research-summary {
    max-width: 720px;
}

.entry {
    margin-bottom: 15px;
}

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

#education .entry {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--soft-border);
}

#education .entry:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.entry-title {
    margin-bottom: 3px;
    font-weight: 700;
    line-height: 1.45;
}

.entry-meta {
    color: var(--muted);
    font-size: 14px;
}

.entry-body {
    margin-top: 5px;
}

.paper {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--soft-border);
}

.paper-title {
    margin-bottom: 3px;
    font-weight: 700;
    line-height: 1.45;
}

.paper-title a {
    color: var(--text);
}

.paper-title a:hover {
    color: var(--accent);
}

.paper-authors,
.paper-meta {
    color: var(--muted);
    font-size: 14px;
}

.paper-links {
    margin-top: 4px;
    font-size: 13px;
}

.paper-links a {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.paper-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.venue-tag {
    display: inline-block;
    margin-top: 5px;
    padding: 1px 7px;
    border: 1px solid #d3edf2;
    border-radius: 3px;
    background: var(--tag-bg);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.plain-list {
    padding-left: 19px;
}

.plain-list li+li {
    margin-top: 6px;
}

.placeholder {
    color: var(--muted);
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.note-card {
    position: relative;
    min-width: 0;
    min-height: 148px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s;
}

.note-card:hover {
    border-color: #a8cfd7;
}

.note-title {
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.45;
}

.note-title a {
    color: var(--text);
}

.note-title a:hover {
    color: var(--accent);
}

.note-meta {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.note-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.note-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
}

.note-links a {
    color: var(--accent);
}

.note-links a::before {
    content: "[";
    color: var(--muted);
}

.note-links a::after {
    content: "]";
    color: var(--muted);
}

.note-links a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.empty-note {
    border-style: dashed;
    background: transparent;
}

footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 34px;
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: 14px;
}

@media (max-width: 680px) {
    .nav-inner {
        height: 48px;
        padding: 0 16px;
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }

    .nav-name {
        flex-shrink: 0;
        font-size: 15px;
    }

    .nav-links {
        min-width: 0;
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
        font-size: 14px;
    }

    .nav-links a {
        width: auto;
    }

    .container {
        padding: 28px 18px 48px;
    }

    .profile {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 24px;
    }

    .profile-photo {
        width: 118px;
        height: 118px;
        margin: 0 auto;
    }

    h1 {
        font-size: 27px;
    }

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

    .tagline {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .profile-links {
        gap: 8px;
        margin-top: 15px;
    }

    .profile-links a {
        font-size: 14px;
    }

    .section-title {
        margin-top: 32px;
    }

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

    footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 420px) {
    .nav-inner {
        height: 46px;
        padding: 0 14px;
    }

    .nav-links {
        width: auto;
        justify-content: flex-end;
        gap: 6px;
        font-size: 13px;
    }

    .nav-links a {
        width: auto;
    }

    .nav-name {
        font-size: 14px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 25px;
    }
}
