:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #26332e;
  --muted: #66716b;
  --accent: #28644e;
  --line: #dfe5dd;
  --tint: #edf2eb;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 28px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { background: #dce9d9; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h3, h4 { font-size: 1rem; font-weight: 600; line-height: 1.55; }
ul, ol { margin: 0; padding: 0; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 10; padding: 8px 16px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1040px; min-height: var(--header-height); margin: auto; padding: 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-name { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 650; letter-spacing: -.5px; white-space: nowrap; }
.name-dot { color: var(--accent); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); text-decoration: none; font-size: 18px; padding: 10px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current="location"] { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.page { max-width: 1040px; margin: auto; padding: 0 36px; }
.intro { padding: 56px 0 8px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 44px; align-items: start; }
.eyebrow { margin-bottom: 12px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1.7px; text-transform: uppercase; }
h1 { font-size: clamp(38px, 4.6vw, 54px); line-height: 1.25; letter-spacing: -1.8px; }
.profile-name { margin-top: 10px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.3px; }
.profile-name-zh { margin-top: 2px; font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 18px; line-height: 1.35; letter-spacing: 2px; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 0; margin-top: 6px; }
.social-links a { font-size: 12px; text-decoration: none; padding: 2px 0; }
.social-links a:hover { text-decoration: underline; }
.social-links span, .paper-links span { font-size: 12px; }
.portrait { display: block; width: 170px; max-width: 100%; height: auto; }
.bio h1 { margin-bottom: 24px; font-size: 32px; letter-spacing: -.6px; }
.bio p { margin-bottom: 16px; }
.bio a { text-decoration: none; border-bottom: 1px solid #c6d5c9; }
.bio strong { font-weight: 600; }
.section { padding-top: 52px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 15px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; line-height: 1.3; letter-spacing: -.6px; }
.section-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
a.section-note { color: var(--accent); text-decoration: none; }
a.section-note:hover { text-decoration: underline; }
.news-section { padding-top: 30px; }
.news-section .section-heading { border: 0; margin-bottom: 12px; padding-bottom: 0; }
.news-scroll { max-height: 230px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 6px; background: #f5f5f5; padding: 9px 23px; scrollbar-width: thin; scrollbar-color: #b5b5b5 transparent; }
.news-list { list-style: none; }
.news-list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 18px; padding: 10px 0; font-size: 14px; line-height: 1.65; }
.news-list li + li { border-top: 1px solid #e5e5e5; }
.news-list time { padding-top: 1px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin: 28px 0 20px; }
.publication-list { list-style: none; }
.publication { display: grid; grid-template-columns: 111px minmax(0, 1fr); align-items: start; gap: 22px; margin-bottom: 28px; }
.publication h4 { font-size: 17px; line-height: 1.5; letter-spacing: -.15px; }
.venue { margin-top: 3px; padding: 3px 9px; border: 1px solid #d7e3d7; background: var(--tint); color: var(--accent); border-radius: 3px; font-size: 11px; font-weight: 600; line-height: 1.6; text-align: center; }
.venue-iclr { background: #81BD65; border-color: #81BD65; color: white; }
.venue-neurips { background: #634687; border-color: #634687; color: white; }
.venue-acl { background: #D33631; border-color: #D33631; color: white; }
.venue-emnlp { background: #ed5610; border-color: #ed5610; color: white; }
.venue-pending, .venue-arxiv { background: #e0e0e0; border-color: #e0e0e0; color: black; }
.authors { margin-top: 6px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.authors strong { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #abb8a9; }
.paper-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin-top: 6px; }
.paper-links a { display: inline-block; font-size: 12px; text-decoration: none; padding: 3px 0; }
.paper-links a:hover { text-decoration: underline; }
.entries { list-style: none; }
.entry { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 0 0 22px; }
.entry:last-child { padding-bottom: 0; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--accent); text-decoration: underline; }
.entry-institution { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 4px; }
.institution-logo { flex: 0 0 auto; width: auto; height: 22px; max-width: 72px; object-fit: contain; }
.entry-detail { font-size: 13px; color: var(--muted); margin-top: 3px; }
.entry-period { flex-shrink: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.service-grid h3 { margin-bottom: 10px; }
.service-grid ul { list-style: none; font-size: 14px; color: var(--muted); }
.service-grid li { margin-bottom: 6px; }
.awards-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.awards-list h3 { font-size: 14px; }
.site-footer { max-width: 968px; margin: 64px auto 0; padding: 22px 0 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.not-found { padding: 100px 0; }
.not-found p { margin-top: 24px; }

@media (max-width: 760px) {
  :root { --header-height: 102px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; padding: 13px 24px 6px; }
  nav { width: 100%; gap: 24px; }
  nav a { font-size: 16px; }
  .page { padding: 0 24px; }
  .intro { padding-top: 36px; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
  h1 { font-size: 38px; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .social-links { column-gap: 16px; }
  .bio { font-size: 15px; }
  .section { padding-top: 40px; }
  .section-heading { flex-wrap: wrap; gap: 8px; }
  h2 { font-size: 27px; }
  .news-scroll { padding: 8px 14px; }
  .news-list li { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; font-size: 13px; }
  .news-list time { font-size: 11px; }
  .publication { grid-template-columns: 1fr; gap: 9px; }
  .venue { justify-self: start; }
  .publication h4 { font-size: 16px; }
  .entry { flex-direction: column; gap: 5px; }
  .service-grid, .awards-list { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { margin: 48px 24px 0; }
}

@media (max-width: 600px) {
  .intro { grid-template-columns: 1fr; gap: 30px; }
  .profile { max-width: 170px; }
}

@media (max-width: 420px) {
  .header-inner, .page { padding-left: 20px; padding-right: 20px; }
  nav { justify-content: space-between; gap: 10px; }
  nav a { font-size: 14px; }
  h1 { font-size: 33px; }
  .social-links { column-gap: 14px; }
  .social-links a { font-size: 12px; }
  .site-footer { margin-left: 20px; margin-right: 20px; }
}

@media (max-width: 360px) {
  nav { gap: 8px; }
  nav a { font-size: 13px; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .site-header, .skip-link, .site-footer, .section-note { display: none; }
  .page { max-width: none; padding: 0; }
  .intro { padding-top: 0; }
  .news-scroll { max-height: none; overflow: visible; }
  .section { padding-top: 24px; }
  .publication, .entry, .awards-list li { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
