:root {
    --red: #B62645;
    --red-dark: #82192F;
    --red-soft: #FFF1F4;
    --ink: #1C2027;
    --muted: #666C78;
    --line: #E3E5E9;
    --line-strong: #D6D9DF;
    --surface: #FFFFFF;
    --background: #F5F5F6;
    --shadow: 0 8px 28px rgba(24, 27, 32, 0.07);
    --shadow-strong: 0 16px 42px rgba(130, 25, 47, 0.19);
    --radius: 18px;
    --site-width: 1180px;
    --main-width: 760px;
    --sidebar-width: 340px;
    --layout-gap: 32px;
    --mobile-canvas: 808px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: var(--mobile-canvas);
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover {
    color: var(--red-dark);
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid rgba(182, 38, 69, 0.24);
    outline-offset: 3px;
    border-radius: 4px;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

.site-shell {
    width: var(--site-width);
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 20px;
    color: #FFFFFF;
    background:
        linear-gradient(#8C8D91, #8C8D91),
        url("./media/header-chip-circuit.jpg") center 55% / cover no-repeat;
    background-blend-mode: color;
    box-shadow: var(--shadow-strong);
}

.site-header::before,
.site-header::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.site-header::before {
    background: linear-gradient(135deg, rgba(182, 38, 69, 0.96), rgba(130, 25, 47, 0.9));
    clip-path: polygon(0 0, 74% 0, 62% 100%, 0 100%);
}

.site-header::after {
    background: rgba(19, 20, 23, 0.88);
    clip-path: polygon(73.8% 0, 100% 0, 100% 100%, 61.8% 100%);
}

.site-identity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 168px;
    padding: 26px 30px 22px;
}

.site-kicker,
.section-kicker,
.sidebar-kicker {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.site-identity h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 9px;
    margin-bottom: 4px;
    font-size: 40px;
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.site-role {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}

.name-divider {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 400;
}

.chinese-name-text {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 29px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    gap: 6px;
    padding: 0 24px 18px;
}

.site-nav a {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.09);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.content-grid {
    display: grid;
    grid-template-columns: var(--main-width) var(--sidebar-width);
    gap: var(--layout-gap);
    align-items: start;
}

.main-column,
.sidebar-column {
    min-width: 0;
}

.profile-card,
.section-card,
.sidebar-card,
.media-card {
    border: 1px solid rgba(214, 217, 223, 0.82);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.profile-card,
.section-card {
    padding: 26px;
}

.profile-card,
.hiring-card,
.section-card {
    margin-bottom: 20px;
    scroll-margin-top: 22px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.profile-photo-frame {
    position: relative;
    width: 270px;
    min-height: 270px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 14px;
    background: #ECEDEF;
}

.profile-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-copy p {
    margin-bottom: 12px;
}

.profile-copy p:last-of-type {
    margin-bottom: 16px;
}

.profile-label {
    margin-bottom: 9px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.profile-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(182, 38, 69, 0.22);
    border-radius: 999px;
    color: var(--red-dark);
    background: var(--red-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.profile-action:hover {
    color: #FFFFFF;
    border-color: var(--red);
    background: var(--red);
}

.hiring-card {
    position: relative;
    overflow: hidden;
    padding: 24px 26px 24px 30px;
    border: 1px solid rgba(182, 38, 69, 0.18);
    border-left: 5px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--red-soft);
}

.hiring-card::after {
    position: absolute;
    top: -62px;
    right: -45px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(182, 38, 69, 0.06);
    content: "";
}

.hiring-card h2 {
    position: relative;
    margin-bottom: 9px;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.62;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hiring-card p {
    position: relative;
    margin-bottom: 0;
}

.hiring-contact-details {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
}

.hiring-contact-item {
    min-width: 0;
}

.hiring-contact-label {
    margin-bottom: 3px;
    color: var(--red-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hiring-contact-value {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.hiring-email-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    max-height: 30px;
    margin-left: -3px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-hiring-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 24px;
}

.sidebar-hiring-card .hiring-contact-details {
    margin-top: auto;
}

.section-heading {
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 5px solid var(--red);
}

.section-kicker,
.sidebar-kicker {
    color: #666A72;
}

.sidebar-kicker {
    color: var(--red);
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.loading-block:empty::before {
    color: var(--muted);
    content: "Loading…";
}

.news-list {
    border-top: 0;
}

.news-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 4px 2px;
    border-bottom: 0;
}

.news-item > div {
    line-height: 1.36;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-date {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.education-item {
    padding: 9px 0;
    border-top: 0;
}

.education-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.education-item:last-child {
    padding-bottom: 0;
}

.education-line,
.education-honor {
    margin-bottom: 0;
}

.education-line {
    color: var(--ink);
    line-height: 1.45;
}

.education-line strong {
    font-size: 15px;
}

.education-separator {
    padding: 0 5px;
    color: #A0A4AC;
}

.education-date {
    color: var(--muted);
}

.education-honor {
    margin-top: 4px;
    padding-left: 16px;
    position: relative;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.education-honor::before {
    position: absolute;
    left: 2px;
    color: var(--red);
    content: "◆";
    font-size: 8px;
    top: 5px;
}

.publication-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.publication-item {
    display: grid;
    grid-template-columns: 100.8px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    padding: 11px 0;
    border-top: 0;
}

.publication-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.publication-item:last-child {
    padding-bottom: 0;
}

.publication-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.publication-venue {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 2px;
}

.publication-venue {
    width: 100.8px;
    justify-content: center;
    margin-right: 0;
    border: 1px solid rgba(182, 38, 69, 0.18);
    color: var(--red-dark);
    background: var(--red-soft);
    text-decoration: none;
}

.publication-venue:hover,
.publication-venue:focus-visible {
    color: #FFFFFF;
    border-color: var(--red);
    background: var(--red);
}

.publication-title {
    display: inline-block;
    margin-bottom: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.42;
    text-decoration: none;
}

.publication-title:hover {
    color: var(--red);
}

.publication-authors,
.publication-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.publication-note {
    margin-top: 5px;
}

.publication-note strong {
    color: var(--ink);
}

.award-note {
    color: var(--red-dark);
    font-weight: 750;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--ink);
    background: #FAFAFB;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

a.chip:hover {
    color: var(--red-dark);
    border-color: rgba(182, 38, 69, 0.35);
    background: var(--red-soft);
}

.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.award-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    border-top: 0;
    font-size: 14px;
    line-height: 1.4;
}

.award-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.award-list li::before {
    position: absolute;
    top: 12px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    content: "";
}

.award-list li:first-child::before {
    top: 6px;
}

.people-list {
    display: block;
}

.people-group {
    min-width: 0;
    padding-bottom: 22px;
}

.people-group + .people-group {
    margin-top: 22px;
}

.people-group-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.people-group h3 {
    margin-bottom: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}

.people-count {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.people-profile-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.people-group--former-phd .people-profile-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-profile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--ink);
    text-align: center;
}

.person-avatar {
    display: block;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #E3E5E9;
    box-shadow:
        0 0 0 1px rgba(28, 32, 39, 0.82),
        0 0 0 4px rgba(182, 38, 69, 0.2);
    object-fit: cover;
    object-position: center;
}

.person-name {
    display: block;
    min-width: 0;
    width: 100%;
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.25;
}

.person-name a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

.person-name a:hover {
    color: var(--red-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.people-text-groups {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.people-text-group {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 5px 0;
}

.people-text-group h3 {
    margin-bottom: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
}

.people-text-group p {
    margin-bottom: 0;
    font-size: 14px;
}

.person-note {
    margin-left: 4px;
    color: var(--muted);
    font-size: 11px;
}

.sidebar-column {
    display: grid;
    gap: 20px;
}

#contact-container {
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 24px;
}

.sidebar-card h2 {
    margin-bottom: 18px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.contact-item {
    padding: 15px 0;
    border-top: 0;
}

.contact-item:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.contact-item:last-child {
    padding-bottom: 0;
}

.contact-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-value {
    margin-bottom: 0;
    color: var(--ink);
}

.email-image {
    width: 200px;
    max-height: 34px;
    object-fit: contain;
    object-position: left center;
}

.media-card {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.media-card:hover {
    color: var(--red-dark);
    border-color: rgba(182, 38, 69, 0.32);
    transform: translateY(-1px);
}

.media-card img {
    width: 100%;
    height: auto;
    background: #ECEDEF;
}

.layers-frame {
    display: block;
    width: 100%;
    height: auto;
    min-height: 320px;
    margin: 0 auto;
    aspect-ratio: 1580 / 5216;
    border: 0;
    background: #ECEDEF;
}

.layers-card .media-caption {
    color: var(--ink);
}

.layers-card:hover .media-caption,
.layers-card .media-caption:focus-visible {
    color: var(--red-dark);
}

.media-caption {
    display: block;
    padding: 9px 14px 10px;
}

.media-caption strong {
    display: block;
    margin-bottom: 1px;
    font-size: 15px;
    line-height: 1.35;
}

.media-caption span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.site-footer {
    padding: 18px 2px 4px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.site-footer p {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .site-shell {
        width: var(--mobile-canvas);
        margin: 0;
        padding: 18px 24px 24px;
    }

    .content-grid {
        display: block;
        width: var(--main-width);
    }

    .main-column,
    .site-header,
    .site-footer {
        width: var(--main-width);
    }

    .sidebar-column {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    a,
    .media-card {
        transition: none;
    }
}

@media print {
    body {
        min-width: 0;
        background: #FFFFFF;
    }

    .site-shell {
        width: auto;
        padding: 0;
    }

    .site-header {
        color: var(--ink);
        background: #FFFFFF;
        box-shadow: none;
        border: 1px solid var(--line);
    }

    .site-kicker,
    .site-role {
        color: var(--muted);
    }

    .site-nav,
    .sidebar-column {
        display: none;
    }

    .content-grid {
        display: block;
    }

    .main-column {
        width: auto;
    }

    .profile-card,
    .section-card,
    .sidebar-card,
    .media-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
