:root {
    --bg: #f8fbff;
    --paper: #ffffff;
    --paper-soft: #f2f9ff;
    --text: #1b2430;
    --text-soft: #334155;
    --muted: #667085;
    --line: #dbe8f5;
    --line-strong: #bfdbf2;
    --accent: #66c0ff;
    --accent-deep: #1678b9;
    --accent-dark: #0e4f7a;
    --accent-soft: #e8f6ff;
    --accent-faint: #f4fbff;
    --shadow: 0 10px 28px rgba(23, 82, 122, 0.08);
    --max-width: 1040px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% -10%, rgba(102, 192, 255, 0.22), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #f6fbff 100%);
    line-height: 1.62;
}

a {
    color: var(--accent-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(22, 120, 185, 0.22);
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

a:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    z-index: 20;
    padding: .55rem .85rem;
    background: var(--accent-dark);
    color: #fff;
    border-radius: 6px;
}

.skip-link:focus {
    left: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .85rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    color: var(--text);
    border: 0;
    font-weight: 750;
    letter-spacing: -.02em;
}

.brand::before {
    content: "";
    display: inline-block;
    width: .62rem;
    height: .62rem;
    margin-right: .55rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(102, 192, 255, .18);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .15rem .65rem;
}

.nav-links a {
    border: 0;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 600;
    padding: .25rem .2rem;
}

.nav-links a:hover {
    color: var(--accent-deep);
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.8rem 1.35rem 1.25rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 2.6rem;
    align-items: start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 .55rem;
    color: var(--accent-deep);
    font-weight: 700;
    letter-spacing: .055em;
    font-size: .88rem;
}

h1 {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 700;
}

h1 span {
    display: inline-block;
    margin-left: .55rem;
    font-family: "Noto Serif SC", serif;
    color: var(--text-soft);
    font-size: .6em;
    letter-spacing: .08em;
    vertical-align: .12em;
}

.bio {
    margin: 1.15rem 0 0;
    max-width: 740px;
    color: var(--text-soft);
    font-size: 1.01rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.link-row a,
.wechat-button,
.button-link {
    appearance: none;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--accent-deep);
    border-radius: 8px;
    padding: .42rem .72rem;
    font: inherit;
    font-size: .91rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.link-row a:hover,
.wechat-button:hover,
.button-link:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-dark);
}

.wechat-card {
    display: none;
    width: fit-content;
    margin-top: .8rem;
    padding: .72rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.wechat-card.is-visible {
    display: grid;
    gap: .35rem;
}

.wechat-card img {
    width: 132px;
    border-radius: 8px;
}

.wechat-card span {
    color: var(--muted);
    font-size: .82rem;
}

.portrait-card {
    margin: .2rem 0 0;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.portrait-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.section {
    margin-top: 2.25rem;
    scroll-margin-top: 80px;
}

.compact-section {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .95rem;
}

.section-title span {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid rgba(102, 192, 255, .32);
    border-radius: 999px;
    padding: .12rem .5rem;
    font-weight: 750;
    font-size: .72rem;
    letter-spacing: .08em;
}

h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.42rem;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.section-intro {
    max-width: 880px;
    margin: 0 0 .45rem;
    color: var(--text-soft);
    font-size: 1rem;
}

#research .section-intro {
    max-width: none;
    width: 100%;
    margin: 0 0 .8rem;
}

.note {
    margin: 0 0 1.05rem;
    color: var(--muted);
    font-size: .91rem;
}

.news-card {
    padding: .95rem 1.1rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
}

.news-list li {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: .75rem;
    align-items: baseline;
    padding: .42rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
    font-size: .94rem;
    line-height: 1.45;
}

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

.news-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

time,
.news-list time {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .84rem;
}

.paper-toolbar {
    margin: .55rem 0 1.2rem;
}

.paper-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .38rem;
    padding: .22rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
}

.filter-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: .36rem .72rem;
    font: inherit;
    font-size: .84rem;
    font-weight: 720;
    line-height: 1.15;
    cursor: pointer;
}

.filter-button:hover {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.filter-button.is-active {
    color: #fff;
    background: var(--accent-deep);
    box-shadow: 0 4px 12px rgba(22, 120, 185, .18);
}

.paper-list {
    display: grid;
    gap: 1rem;
}

.paper {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 1.15rem;
    padding: .95rem;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(23, 82, 122, 0.045);
}

.paper > div {
    align-self: start;
    padding-top: 0;
    margin-top: 0;
}

.paper img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    align-self: start;
}

.paper h3 {
    margin: 0 0 .32rem;
    color: #172033;
    font-size: 1.05rem;
    line-height: 1.36;
    letter-spacing: -.016em;
}

.authors,
.venue {
    margin: .12rem 0;
    color: var(--muted);
    font-size: .91rem;
}

.authors strong {
    color: var(--text);
}

.venue {
    color: var(--accent-dark);
    font-weight: 640;
}

.paper p {
    margin: .45rem 0 0;
    color: var(--text-soft);
    font-size: .94rem;
}

.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    margin-top: .68rem;
}

.paper-links a {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(102, 192, 255, .38);
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: .24rem .48rem;
    font-size: .8rem;
    font-weight: 700;
}

.paper-links a:hover {
    background: #d9f1ff;
    border-color: var(--accent);
}

.paper.featured {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 192, 255, .72);
    border-radius: 14px;
    background: rgba(232, 246, 255, .72);
    box-shadow: 0 10px 26px rgba(22, 120, 185, .10);
    padding-left: calc(.95rem + 5px);
}

.paper.featured::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent);
    border-radius: 14px 0 0 14px;
}

.paper.is-hidden {
    display: none;
}

.venue-badge {
    display: inline-block;
    margin-right: .3rem;
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .02em;
    color: #5b3cc4;
    background: #f3f0ff;
    padding: .12rem .5rem;
    border-radius: 3px;
    vertical-align: .05em;
}

.honor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

.honor-list li {
    padding: .72rem .9rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-soft);
}

.honor-list strong {
    color: var(--accent-dark);
    margin-right: .7rem;
}

.timeline {
    position: relative;
    display: grid;
    gap: .72rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--line));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    padding: .85rem .95rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.timeline-item img {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: .38rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line-strong);
}

.timeline-item h3 {
    margin: 0;
    font-size: .99rem;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.timeline-item span {
    display: inline-block;
    margin-top: .08rem;
    color: var(--accent-dark);
    font-weight: 720;
    font-size: .84rem;
}

.timeline-item p {
    margin: .24rem 0 0;
    color: var(--muted);
    font-size: .93rem;
}

.footer {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding: 1rem 1.35rem 1rem;
    color: var(--muted);
    font-size: .88rem;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer p {
    margin: .2rem 0;
}

.text-modal-link {
    appearance: none;
    font: inherit;
    color: var(--accent-deep);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(22, 120, 185, 0.22);
    padding: 0;
    cursor: pointer;
}

.text-modal-link:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.award-text {
    color: #d92d20;
}

.award-line {
    display: block;
    color: var(--accent-dark);
    font-weight: 720;
}

.award-line::before {
    content: "\f091";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: #f59e0b;
    margin-left: .4rem;
    margin-right: .4rem;
}

.award-line .text-modal-link {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.45;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, .58);
    padding: 1.5rem;
    overflow: auto;
}

.modal.is-visible {
    display: grid;
    place-items: center;
}

.modal-content {
    position: relative;
    width: min(360px, 92vw);
    padding: 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.modal-content.wide {
    width: min(820px, 94vw);
}

.modal-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close {
    position: absolute;
    right: .65rem;
    top: .45rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .12);
}

.close:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

#page-scale {
    width: 100%;
    transform-origin: top left;
}

@media (max-width: 959px) {
    #page-scale {
        width: 960px;
    }
}