:root {
  --ink: #202431;
  --muted: #626777;
  --accent: #52adc8;
  --accent-dark: #3e8296;
  --accent-soft: #eef7fa;
  --opportunity: #3730a3;
  --line: #e5eaed;
  --content-width: 1040px;
}

html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
[hidden] { display: none !important; }
.profile-site, .site-header { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.profile-site { margin: 0; color: var(--ink); background: #fff; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.profile-site *, .site-header, .site-header * { box-sizing: border-box; }
.profile-site a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
.profile-site a:hover { color: var(--accent-dark); text-decoration: underline; }
.profile-site a:focus-visible, .profile-site button:focus-visible, .news-window:focus-visible,
.site-header a:focus-visible, .site-header button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.profile-site button { font: inherit; cursor: pointer; }
.profile-site img { display: block; max-width: 100%; }
.profile-site h1, .profile-site h2, .profile-site h3 { color: var(--ink); line-height: 1.25; }
.profile-site p { margin: 0 0 1rem; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 10px 16px; background: white; border: 1px solid var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 40; top: 0; color: var(--ink); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: var(--content-width); min-height: 76px; margin: 0 auto; padding: 0; }
.site-brand { flex-shrink: 0; color: var(--ink) !important; font-size: 1.125rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none !important; }
.site-brand__dot { color: var(--accent); }
.site-links { display: flex; gap: 24px; align-items: center; }
.site-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); font-size: .875rem; font-weight: 500; text-decoration: none; position: relative; }
.site-links a:hover, .site-links a.is-current, .site-links a[aria-current="page"] { color: var(--accent); }
.site-links a.is-current::after, .site-links a[aria-current="page"]::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; background: var(--accent); content: ""; }
.site-links .nav-cv { min-height: 34px; padding: 2px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; font: inherit; font-size: .875rem; cursor: pointer; }
.menu-icon { width: 14px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

.site-main { width: calc(100% - 64px); max-width: var(--content-width); margin: 0 auto; }
.profile-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.profile-site .section-heading h2 { margin: 0; font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; }
.section-link, .section-note { font-size: .875rem; }
.section-note { color: var(--muted); }

.hero { padding-top: 56px; }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1fr) 188px; align-items: start; gap: 56px; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: .025em; }
.profile-site .hero h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; margin: 10px 0 12px; font-size: clamp(2.75rem, 5vw, 3.5rem); font-weight: 750; letter-spacing: -.055em; }
.name-en, .name-zh { white-space: nowrap; }
.profile-site .hero h1 .name-zh { font-size: .72em; font-weight: 500; letter-spacing: .02em; }
.hero-role { color: var(--muted); font-size: 1rem; }
.intro-copy { margin-top: 24px; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-copy .opportunity-note { width: fit-content; max-width: 100%; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 6px; color: var(--opportunity); background: var(--accent-soft); box-shadow: 0 2px 8px rgba(23,105,170,.08); font-weight: 600; }
.portrait { width: 188px; height: 188px; margin-top: 40px; object-fit: cover; border-radius: 22px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.profile-links a { display: inline-block; padding: 5px 0; font-size: .875rem; font-weight: 600; }
.education-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.education-note p { color: #000; font-size: .9375rem; }
.education-note p:last-child { margin-bottom: 0; }
.profile-site .highlights-heading { margin: 32px 0 18px; color: #000; font-size: 1.25rem; font-weight: 650; letter-spacing: -.025em; }
.research-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.research-highlight { display: block; padding-top: 16px; border-top: 2px solid #d5eaf1; }
.profile-site .research-highlight h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 650; color: #000; }
.research-highlight p { color: #000; font-size: .9375rem; line-height: 1.6; margin: 0; }

.news-window { height: 300px; overflow-y: auto; padding: 4px 24px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfc; scrollbar-width: thin; scrollbar-color: #96bdc9 #eef6f8; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; gap: 22px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-list p { margin: 0; font-size: 1rem; }

.research-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.research-views { display: inline-flex; flex-shrink: 0; gap: 3px; padding: 4px; border-radius: 8px; background: #eff5f7; }
.research-views button { min-height: 36px; padding: 5px 20px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 600; }
.research-views button[aria-pressed="true"] { background: #fff; color: var(--accent); border-color: #d9e8ed; box-shadow: 0 1px 3px #20323b0a; }
.research-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.research-topics button { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--muted); font-size: .875rem; }
.research-topics button[aria-pressed="true"] { border-color: #badde8; background: var(--accent-soft); color: var(--accent-dark); }
.research-views button:hover, .research-topics button:hover { color: var(--accent-dark); }
.profile-site .research-count { margin: 16px 0 0; color: var(--muted); font-size: .875rem; }
.research-item { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.research-item:last-child { border-bottom: 0; padding-bottom: 0; }
.research-image { display: flex; align-items: center; justify-content: center; align-self: start; min-height: 148px; padding: 6px; overflow: hidden; background: #fafcfd; border: 1px solid #e8f0f3; border-radius: 8px; }
.research-image img { width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.research-image--text { flex-direction: column; gap: 8px; min-height: 148px; padding: 20px 14px; background: var(--accent-soft); text-align: center; text-decoration: none !important; }
.research-teaser-name { color: var(--accent-dark); font-size: 1.75rem; font-weight: 650; letter-spacing: -.04em; }
.research-teaser-label { color: var(--muted); font-size: .875rem; }
.research-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; font-size: .875rem; }
.venue { color: var(--accent-dark); font-weight: 650; }
.work-name { color: var(--muted); font-weight: 600; }
.venue span { margin-left: 4px; }
.distinction { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #fbf1df; color: #80521c; font-size: .875rem; font-weight: 600; }
.profile-site .research-copy h3 { margin: 0 0 5px; font-size: 1.0625rem; font-weight: 650; line-height: 1.4; letter-spacing: -.012em; }
.research-authors { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.research-authors p { margin: 0; }
.research-authors strong { color: var(--ink); font-weight: 650; }
.profile-site .research-summary { margin: 8px 0 6px; font-size: 1rem; line-height: 1.5; }
.research-links { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; line-height: 1.5; }
.research-links a { font-size: .875rem; font-weight: 600; }

.dated-list { list-style: none; margin: 0; padding: 0; }
.dated-list > li { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; margin-bottom: 18px; }
.dated-list > li:last-child { margin-bottom: 0; }
.item-date { padding-top: 2px; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.dated-list strong { font-size: 1rem; font-weight: 600; }
.dated-list p { margin: 3px 0 0; color: var(--muted); font-size: 1rem; }
.dated-list.awards-list > li { display: block; margin-bottom: 8px; color: #000; line-height: 1.5; }
.dated-list.awards-list > li:last-child { margin-bottom: 0; }
.awards-list .item-date { margin-right: 12px; padding-top: 0; white-space: nowrap; }
.awards-list .award-copy, .awards-list strong { color: #000; }
.profile-site .activity-group h3 { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -.015em; }
.activity-group { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.activities-section .section-heading + .activity-group { border-top: 0; padding-top: 0; }
.activity-group .dated-list > li { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; margin-bottom: 10px; }
.activity-group .dated-list > li:last-child { margin-bottom: 0; }
.activity-copy { color: #000; line-height: 1.5; }
.activity-group .activity-detail, .activity-group .activity-detail p { display: inline; margin: 0; color: #000; }
.activities-section { border-bottom: 0; }

.profile-footer { margin-top: 20px; border-top: 1px solid var(--line); }
.profile-footer__inner { display: flex; justify-content: space-between; gap: 20px; max-width: var(--content-width); margin: 0 auto; padding: 24px 0 32px; }
.profile-footer p { margin: 0; color: var(--muted); font-size: .875rem; }
.misc-page { padding: 56px 0 64px; min-height: 65vh; }
.profile-site .misc-page h1 { margin: 8px 0 20px; font-size: 2.5rem; letter-spacing: -.045em; }
.photography { margin: 32px 0 0; }
.photography img { width: 100%; height: auto; border-radius: 10px; }
.photography figcaption { color: var(--muted); font-size: .875rem; margin-top: 12px; }

@media (max-width: 1104px) {
  .site-header__inner, .profile-footer__inner { margin-right: 32px; margin-left: 32px; }
  .site-links { gap: 18px; }
}
@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; gap: 0; min-height: 64px; padding: 10px 0; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .site-links { width: 100%; flex-wrap: wrap; gap: 0 24px; padding: 12px 0 4px; }
  .nav-ready .site-links { display: none; }
  .nav-ready .site-links.is-open { display: flex; }
  .site-links a { min-height: 44px; }
  .hero-intro { grid-template-columns: minmax(0, 1fr) 140px; gap: 28px; }
  .portrait { width: 140px; height: 140px; }
  .research-highlights { gap: 20px; }
  .research-item { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .activity-group { grid-template-columns: 1fr; gap: 10px; }
  .activity-group .dated-list > li { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  .site-main { width: calc(100% - 40px); }
  .site-header__inner, .profile-footer__inner { margin-right: 20px; margin-left: 20px; }
  .profile-section { padding: 32px 0; }
  .hero { padding-top: 32px; }
  .hero-intro { grid-template-columns: 1fr; gap: 0; }
  .portrait { grid-row: 1; width: 96px; height: 96px; margin: 0 0 22px; border-radius: 16px; }
  .profile-site .hero h1 { font-size: 2.75rem; }
  .intro-copy { margin-top: 20px; }
  .profile-links { gap: 8px 20px; margin-top: 20px; }
  .research-highlights { grid-template-columns: 1fr; gap: 20px; }
  .research-highlight { padding-top: 12px; }
  .research-highlight h3 { margin-bottom: 6px; }
  .section-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .profile-site .section-heading h2 { font-size: 1.5rem; }
  .news-window { padding: 4px 16px; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .research-item { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .research-image { width: 100%; min-height: 0; }
  .research-image img { max-height: 180px; }
  .research-meta { margin-bottom: 6px; }
  .research-copy h3 { font-size: 1.0625rem; }
  .dated-list > li { grid-template-columns: 1fr; gap: 2px; margin-bottom: 20px; }
  .activity-group .dated-list > li { display: block; margin-bottom: 10px; }
  .activity-group .item-date { margin-right: 8px; padding-top: 0; white-space: nowrap; }
  .activity-group .item-date:empty { display: none; }
  .activity-group .activity-copy { display: inline; }
  .activity-group { padding: 14px 0; }
  .profile-footer__inner { flex-direction: column; gap: 6px; padding-bottom: 24px; }
  .misc-page { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .profile-site *, .site-header * { animation: none !important; transition: none !important; }
}
@media print {
  html { scroll-behavior: auto; }
  .site-header, .skip-link, .research-controls, .research-count { display: none !important; }
  .site-main { width: 100%; }
  .news-window { height: auto; overflow: visible; border: 0; padding: 0; }
  .research-item[hidden] { display: grid !important; }
  .research-item { break-inside: avoid; }
}
