:root {
    color-scheme: light;
    --ink: #1d1d1f;
    --muted: #565b65;
    --blue: #075cae;
    --line: #e4e6ea;
    --shell: 850px;
    --gutter: clamp(18px, 4vw, 36px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.55; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 68px; }
::selection { background: #dceeff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { max-width: calc(var(--shell) + 2 * var(--gutter)); padding-inline: var(--gutter); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 3; padding: 6px 12px; color: white; background: var(--blue); border-radius: 5px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 2; background: #ffffffed; border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-inner { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wordmark { font-size: 15px; font-weight: 680; letter-spacing: -.025em; white-space: nowrap; }
.header-inner nav { display: flex; gap: clamp(12px, 3vw, 24px); align-items: center; }
.header-inner nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.header-inner nav a:hover, .header-inner nav [aria-current="page"] { color: var(--blue); }
.header-inner nav [aria-current="page"] { font-weight: 650; }

.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(24px, 4vw, 34px) 23px; }
.hero h1, .archive-hero h1 { font-size: clamp(33px, 5vw, 48px); line-height: 1.1; letter-spacing: -.05em; font-weight: 700; }
.hero h1 { font-size: clamp(32px, 5vw, 42px); }
.hero h1 span { display: inline-block; margin-inline-start: .35em; color: var(--muted); font-size: .47em; letter-spacing: .045em; font-weight: 550; }
.hero-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; margin-top: 9px; font-size: 16px; font-weight: 600; }
.hero-role-en { color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-affiliation, address { color: var(--muted); }
.hero-affiliation { font-size: 14px; }
address { display: grid; gap: 2px; margin-top: 9px; font-style: normal; font-size: 13px; }
.contact-email { justify-self: start; margin-bottom: 3px; padding: 2px 8px; border-radius: 5px; background: #eaf4ff; color: #164e7d; overflow-wrap: anywhere; }
.portrait { display: grid; place-items: center; flex: 0 0 clamp(54px, 10vw, 76px); aspect-ratio: 1; align-self: flex-start; margin-top: 3px; overflow: hidden; border: 1px solid #e6eaf1; border-radius: 12px; background: #f3f6fa; }
.portrait-monogram { color: #53677f; font-size: clamp(20px, 3.5vw, 29px); font-weight: 650; letter-spacing: -.055em; }
.portrait img, .paper-teaser img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait:has(img) .portrait-monogram { display: none; }

.section { padding-block: 22px; }
.section::before { content: ""; display: block; border-top: 1px solid var(--line); margin-top: -22px; margin-bottom: 21px; }
.section-heading { margin-bottom: 10px; }
.section-heading h2 { font-size: clamp(20px, 3vw, 24px); line-height: 1.22; letter-spacing: -.025em; font-weight: 670; }
.heading-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 15px; }
.text-link, .recruit a { color: var(--blue); font-weight: 600; font-size: 13px; }
.text-link:hover, .recruit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bio-copy { font-size: 15px; line-height: 1.8; color: #383c44; }
.bio-copy p + p { margin-top: 8px; }
.bio-copy strong { color: var(--ink); font-weight: 650; }
.recruit { margin-top: 12px; padding: 8px 12px; border-inline-start: 2px solid #ce454f; border-radius: 0 6px 6px 0; background: #fff4f4; color: #414b59; font-size: 13px; line-height: 1.7; }
.recruit h3, .recruit p { display: inline; }
.recruit h3 { margin-inline-end: .6em; font-size: inherit; font-weight: 670; }
.recruit h3, .recruit a { color: #a82432; }

.news-list li { display: grid; grid-template-columns: 4ch minmax(0, 1fr); gap: 12px; padding-block: 4px; color: #3b414a; font-size: 14px; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 630; }
.paper { display: flex; align-items: flex-start; gap: 14px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.paper:last-child { border-bottom: 0; }
.paper-teaser { display: none; flex: 0 0 clamp(76px, 16vw, 132px); aspect-ratio: 3 / 2; align-self: center; overflow: hidden; border-radius: 4px; }
.paper-teaser.has-image { display: block; }
.paper-teaser img { object-fit: contain; }
.paper-teaser > a { display: block; height: 100%; cursor: zoom-in; }
.paper-teaser > a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.paper-teaser.is-preview { position: relative; }
.paper-teaser.is-preview::after { content: "示意图"; position: absolute; right: 4px; bottom: 3px; padding: 1px 4px; border-radius: 3px; background: #ffffffde; color: #53677f; font-size: 9px; }
.paper-content { flex: 1; min-width: 0; }
.paper h3 { font-size: 15px; line-height: 1.35; font-weight: 660; letter-spacing: -.01em; overflow-wrap: anywhere; }
.venue, .authors { margin-top: 3px; font-size: 12px; }
.venue { color: var(--blue); font-weight: 630; }
.authors { color: var(--muted); overflow-wrap: anywhere; }
.authors strong { color: var(--ink); }
.paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; margin-top: 5px; font-size: 11px; }
.topic { border-radius: 4px; padding-inline: 5px; color: #454f5e; background: #eff1f4; }
.resource { color: var(--blue); }
.resource[aria-disabled="true"] { color: #606670; cursor: default; }
.resource[href]:hover { text-decoration: underline; }

.selected-section .featured-papers { padding: 3px clamp(12px, 3vw, 20px); border: 1px solid #eceef2; border-radius: 12px; background: #f8f9fb; }
.selected-section .paper h3 { font-size: 16px; }
.home-notes { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px clamp(24px, 6vw, 54px); padding-block: 5px 19px; }
.home-notes > section { border-top: 1px solid var(--line); padding-top: 15px; }
.home-notes .section-heading h2 { font-size: 19px; }
.course-list li { display: grid; gap: 1px; padding-block: 4px 8px; font-size: 14px; }
.term { color: var(--muted); font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-block: 15px; color: var(--muted); font-size: 12px; }

.archive-hero { padding-block: 30px 15px; }
.archive-summary { color: var(--muted); margin-top: 6px; font-size: 14px; }
.year-nav { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 11px; }
.year-nav a { color: var(--blue); font-size: 13px; padding-block: 5px; font-weight: 560; font-variant-numeric: tabular-nums; }
.year-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.archive-list { padding-bottom: 24px; }
.year-group { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding-block: 9px; border-top: 1px solid var(--line); }
.year-group h2 { padding-top: 9px; font-size: 19px; letter-spacing: -.02em; font-weight: 660; font-variant-numeric: tabular-nums; }
.year-group:target h2 { color: var(--blue); }

@media (max-width: 640px) {
    .home-notes { grid-template-columns: minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 520px) {
    .hero-inner { gap: 12px; }
    .hero h1 span { display: block; margin: 3px 0 0; }
    .portrait { flex-basis: 52px; border-radius: 10px; }
    .year-group { grid-template-columns: minmax(0, 1fr); gap: 1px; }
    .year-group h2 { padding-top: 2px; }
}
@media (max-width: 360px) {
    .wordmark { font-size: 14px; }
    .header-inner, .header-inner nav { gap: 9px; }
    .header-inner nav a { font-size: 12px; }
}

.paper-teaser.is-preview.is-ai::after { content: "AI 示意图"; pointer-events: none; }

.paper-award { display: inline-block; margin-left: 5px; padding: 1px 6px; border: 1px solid #f2d8d8; border-radius: 4px; background: #fbeeee; color: #a54141; font-size: 10px; line-height: 1.4; font-weight: 600; vertical-align: baseline; white-space: nowrap; }
