:root, [data-theme="mist"] {
  --bg: #f8fafc; --surface: #ffffff; --text: #202a39; --muted: #596777;
  --accent: #315e9e; --accent-soft: #e8eff8; --line: #dce3eb;
  --chip: #ffffff; --shadow: 0 12px 32px #243b5310; --header: #f8fafcf5;
  color-scheme: light;
}
[data-theme="pine"] {
  --bg: #f7f9f5; --surface: #ffffff; --text: #26342e; --muted: #5b6a61;
  --accent: #28634f; --accent-soft: #e5eee6; --line: #dbe4d9;
  --chip: #fcfdf9; --shadow: 0 12px 32px #253b2c10; --header: #f7f9f5f5;
}
[data-theme="clay"] {
  --bg: #fbf8f2; --surface: #fffdf9; --text: #352d28; --muted: #70645a;
  --accent: #9b4937; --accent-soft: #f3e7df; --line: #e5ddd1;
  --chip: #fffdf9; --shadow: 0 12px 32px #593c2110; --header: #fbf8f2f5;
}
[data-theme="mauve"] {
  --bg: #faf8fc; --surface: #fefcff; --text: #322d3b; --muted: #6b6076;
  --accent: #77528f; --accent-soft: #eee6f4; --line: #e4ddec;
  --chip: #fefcff; --shadow: 0 12px 32px #47315810; --header: #faf8fcf5;
}
[data-theme="ink"] {
  --bg: #fbfbfa; --surface: #ffffff; --text: #252525; --muted: #666661;
  --accent: #373737; --accent-soft: #eaeae6; --line: #deded8;
  --chip: #ffffff; --shadow: 0 12px 32px #0000000a; --header: #fbfbfaf5;
}
[data-theme="midnight"] {
  --bg: #151c28; --surface: #1d2737; --text: #e4eaf2; --muted: #a6b4c8;
  --accent: #9ec3f5; --accent-soft: #253650; --line: #334158;
  --chip: #1c2738; --shadow: 0 12px 32px #00000028; --header: #151c28f5;
  color-scheme: dark;
}
[data-theme="wine"] {
  --bg: #fcf7f6; --surface: #fffbfa; --text: #392b31; --muted: #74616a;
  --accent: #8b2944; --accent-soft: #f3e4e9; --line: #e7d9dd;
  --chip: #fffaf9; --shadow: 0 12px 32px #30203010; --header: #fcf7f6f5;
  color-scheme: light;
}
[data-theme="celadon"] {
  --bg: #f2f8f7; --surface: #fbfefd; --text: #223a38; --muted: #536e6b;
  --accent: #176e68; --accent-soft: #dcefeb; --line: #cfe2de;
  --chip: #fbfefd; --shadow: 0 12px 32px #30203010; --header: #f2f8f7f5;
  color-scheme: light;
}
[data-theme="amber"] {
  --bg: #fff9ed; --surface: #fffcf5; --text: #3b3324; --muted: #756549;
  --accent: #8a5b0b; --accent-soft: #f6e9c9; --line: #e8dcc1;
  --chip: #fffcf5; --shadow: 0 12px 32px #30203010; --header: #fff9edf5;
  color-scheme: light;
}
[data-theme="rose"] {
  --bg: #fff6f8; --surface: #fffafd; --text: #3d2b33; --muted: #7a606b;
  --accent: #9a3f62; --accent-soft: #f7e1e9; --line: #eed7df;
  --chip: #fffafd; --shadow: 0 12px 32px #30203010; --header: #fff6f8f5;
  color-scheme: light;
}
[data-theme="indigo"] {
  --bg: #f5f6ff; --surface: #fcfcff; --text: #2a2d49; --muted: #626783;
  --accent: #4b4ea3; --accent-soft: #e5e6fa; --line: #dcdff2;
  --chip: #fcfcff; --shadow: 0 12px 32px #30203010; --header: #f5f6fff5;
  color-scheme: light;
}
[data-theme="forest"] {
  --bg: #101f1c; --surface: #192e29; --text: #e2eee8; --muted: #a1bab0;
  --accent: #8bd6b5; --accent-soft: #234838; --line: #324e44;
  --chip: #193129; --shadow: 0 12px 32px #00000028; --header: #101f1cf5;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.78 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--accent); }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 20px; background: var(--surface); }
.skip-link:focus { top: 10px; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { max-width: 1120px; min-height: 58px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { color: var(--text); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.3px; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { padding: 7px 12px; font-size: 13px; font-weight: 550; color: var(--muted); border-radius: 5px; }
.nav-links a:hover, .nav-links a.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.site-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; padding: 44px 0 80px; }
.profile { position: sticky; top: 100px; }
.portrait { display: block; width: 164px; height: 164px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); border: 1px solid var(--line); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.25; letter-spacing: -.55px; }
h1 { font-size: 36px; margin: 20px 0 9px; }
.profile-role { font-size: 15px; margin: 0 0 2px; }
.profile-subtitle { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.profile-meta { border-top: 1px solid var(--line); margin: 20px 0 16px; padding-top: 17px; color: var(--muted); font-size: 13px; }
.profile-meta p { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.icon { width: 15px; height: 15px; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; vertical-align: middle; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a { padding: 5px 12px; border: 1px solid var(--line); background: var(--chip); border-radius: 20px; color: var(--text); font-size: 12px; font-weight: 550; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.profile-note { margin-top: 32px; font-size: 12px; color: var(--muted); max-width: 225px; line-height: 1.8; }
.profile-note .eyebrow { display: block; margin-bottom: 7px; }
.eyebrow { font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
main { min-width: 0; }
section { scroll-margin-top: 86px; }
section + section { margin-top: 52px; }
h2 { font-size: 28px; margin: 0 0 22px; }
p { margin: 0 0 16px; }
.about p { line-height: 1.85; }
strong { font-weight: 650; }
.research-list { padding-left: 20px; margin: 18px 0 0; }
.research-list li { padding-left: 3px; margin: 6px 0; }
.research-list li::marker { color: var(--accent); font-size: 10px; }
.section-heading { display: flex; gap: 20px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-size: 12px; white-space: nowrap; }
.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-button { padding: 5px 11px; font-size: 12px; border-radius: 5px; background: transparent; border: 1px solid var(--line); color: var(--muted); }
.filter-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.filter-button:hover { color: var(--accent); }
.filter-divider { height: 17px; width: 1px; background: var(--line); margin: 0 5px; }
select { font-size: 12px; background: var(--chip); border: 1px solid var(--line); color: var(--muted); border-radius: 5px; padding: 6px 24px 6px 8px; max-width: 100%; }
.reset-button { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 5px 7px; text-decoration: underline; text-underline-offset: 3px; }
.result-count { font-size: 11px; color: var(--muted); margin: 0 0 24px; }
.year-group { margin-top: 25px; }
.year-label { margin: 0 0 17px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .7px; color: var(--muted); display: flex; align-items: center; gap: 15px; }
.year-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.publication { margin: 0 0 24px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.publication:hover { border-left-color: var(--accent); }
.venue { display: inline-block; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 3px; padding: 2px 6px; margin-bottom: 6px; letter-spacing: .1px; }
.venue.preprint { color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 1px 6px; }
.paper-title { font-family: inherit; font-size: 15px; line-height: 1.55; font-weight: 620; letter-spacing: -.15px; margin: 0 0 5px; }
.paper-title a { color: var(--text); }
.paper-title a:hover { color: var(--accent); }
.authors { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.authors strong { color: var(--text); }
.paper-links { display: flex; gap: 13px; align-items: center; margin-top: 5px; font-size: 11px; }
.empty-state { color: var(--muted); padding: 28px 0; }
.footer { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 48px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.appearance { position: fixed; bottom: 22px; right: 24px; z-index: 20; width: 278px; }
.appearance summary { list-style: none; cursor: pointer; width: max-content; margin-left: auto; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 9px 15px; font-size: 12px; display: flex; gap: 9px; align-items: center; }
.appearance summary::-webkit-details-marker { display: none; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.appearance-panel { position: absolute; bottom: 54px; right: 0; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }
.appearance-heading { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.appearance-heading small { font-size: 10px; color: var(--muted); font-weight: normal; }
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.theme-option { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 8px; border-radius: 5px; font-size: 12px; }
.theme-option[aria-pressed="true"] { border-color: var(--accent); outline: 1px solid var(--accent); }
.theme-option .color-dot { background: var(--swatch); }
.compare-link { display: block; text-align: center; font-size: 12px; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 13px; }
.embed .appearance { display: none; }
.embed .profile { position: static; }
.embed .topbar { position: relative; }
.embed .site-layout { padding-top: 40px; }
@media (max-width: 1199px) { .nav-wrap, .site-layout { margin-left: 6%; margin-right: 6%; } .site-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } }
@media (max-width: 800px) {
  .nav-wrap { min-height: 56px; margin-left: 6%; margin-right: 6%; gap: 10px; }
  .nav-links { gap: 0; } .nav-links a { padding: 6px 8px; font-size: 11px; }
  .site-layout { display: block; padding-top: 30px; padding-bottom: 85px; }
  .profile { position: static; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 22px; margin-bottom: 38px; }
  .portrait { width: 104px; height: 104px; grid-column: 1; grid-row: 1 / 5; }
  h1 { font-size: 30px; margin: 2px 0 4px; grid-column: 2; }
  .profile-role, .profile-subtitle { grid-column: 2; }
  .profile-role { font-size: 13px; } .profile-subtitle { font-size: 12px; }
  .profile-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 18px 0 12px; padding-top: 11px; }
  .profile-meta .profile-email { flex-basis: 100%; }
  .social-links { grid-column: 1 / -1; } .profile-note { display: none; }
  h2 { font-size: 26px; } section + section { margin-top: 40px; }
  .appearance { right: 14px; bottom: 15px; }
}
@media (max-width: 430px) { .wordmark { font-size: 11px; } .nav-links a { padding: 6px; font-size: 10px; } .site-layout { margin-left: 6%; margin-right: 6%; } .filter-divider { display: none; } .section-heading { gap: 8px; } .section-heading > a { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .topbar, .appearance, .filters, .result-count, .skip-link { display: none; } body { background: #fff; color: #000; } .site-layout { display: block; padding: 0; margin: 20px; } .profile { position: static; margin-bottom: 30px; } .profile-note { display: none; } .publication { break-inside: avoid; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { margin: 0 auto 30px; max-width: 1120px; padding: 20px; color: var(--muted); }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 15px; align-items: baseline; margin-bottom: 13px; }
.news-list time { color: var(--muted); font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.news-list p { margin: 0; font-size: 14px; line-height: 1.85; }
.publication-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 20px; margin: 0 0 24px; }
.publication-meta .result-count, .authorship-note { margin: 0; font-size: 11px; color: var(--muted); }
.contribution-marker { color: var(--accent); font-size: .8em; line-height: 0; }
@media (max-width: 430px) { .news-list li { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; } .news-list p { font-size: 13px; } }

.paper-date { display: inline-block; margin-left: 8px; color: var(--muted); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.news-list time { white-space: nowrap; }

.publication-date-note { margin: -5px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.appearance-panel { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; }

/* Publication categories: theme-aware icons with a visible text label. */
.paper-title { position: relative; padding-left: 29px; min-height: 23px; }
.paper-type-icon { position: absolute; left: 0; top: 0; width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border-radius: 5px; }
.paper-type-icon svg { width: 17px; height: 17px; flex: none; }
.paper-kind-label { display: inline-block; margin-left: 10px; margin-bottom: 6px; color: var(--muted); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.paper-kind-label::before { content: "·"; margin-right: 8px; color: var(--muted); }

/* Language control stays with navigation at every screen size. */
.language-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 5px; padding: 5px 10px; margin-left: 10px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.language-toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
html[lang="zh-CN"] .about { line-height: 1.95; }
html[lang="zh-CN"] .about h2, html[lang="zh-CN"] #news h2 { letter-spacing: 0; }
@media (max-width: 430px) {
  .nav-wrap { gap: 6px; }
  .language-toggle { margin-left: 4px; padding: 4px 6px; font-size: 11px; }
}
