:root { --ink: #273444; --muted: #697386; --accent: #315d80; --line: #e1e5e9; --paper: #fff; --soft: #f7f9fb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7ca4c5; outline-offset: 5px; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", "Songti SC", serif; font-weight: 500; line-height: 1.2; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin-bottom: 15px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: white; padding: 8px 16px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.nav-shell { max-width: 1160px; margin: auto; padding: 0 30px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { color: var(--ink); font-family: Georgia, serif; font-size: 20px; white-space: nowrap; }
.name-dot { color: #b46d59; }
.primary-navigation { display: flex; gap: 23px; align-items: center; font-size: 13px; }
.primary-navigation a { color: #536071; padding: 23px 0; white-space: nowrap; }
.primary-navigation a:hover, .primary-navigation a[aria-current] { color: var(--accent); }
.primary-navigation .nav-cv { border: 1px solid #cbd5df; border-radius: 5px; padding: 4px 13px; color: var(--accent); }
.menu-toggle { background: none; border: 1px solid var(--line); padding: 5px 10px; color: var(--ink); border-radius: 4px; }
.site-main { width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 58px 0 64px; }
.profile-hero { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 76px; align-items: center; margin-bottom: 49px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.profile-hero h1 { font-size: clamp(34px,4vw,46px); letter-spacing: -.035em; margin-bottom: 10px; }
.chinese-name { font-size: .49em; color: #667487; font-family: "Songti SC", "SimSun", serif; font-weight: 400; letter-spacing: .05em; margin-left: 10px; white-space: nowrap; }
.profile-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 19px; }
.profile-bio { max-width: 700px; }
.profile-bio p { margin-bottom: 12px; }
.profile-links { display: flex; flex-wrap: wrap; column-gap: 19px; row-gap: 7px; margin-top: 20px; font-size: 13px; font-weight: 550; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; }
.profile-links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.portrait { margin: 0; }
.portrait-frame { padding: 6px; border: 1px solid #d9dfe3; border-radius: 7px; background: #fff; box-shadow: 0 5px 18px #27344409; }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 85%; border-radius: 3px; }
.portrait figcaption { margin-top: 12px; text-align: center; font-family: "Songti SC", "SimSun", serif; font-size: 11px; letter-spacing: .04em; color: #7c8590; }
.home-section { margin-top: 40px; scroll-margin-top: 95px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 10px; }
.section-heading h2 { font-size: 26px; color: var(--accent); margin: 0; letter-spacing: -.025em; }
.section-link, .section-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 18px; padding: 5px 0; font-size: 14px; }
.news-list time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-list strong { font-weight: 600; }
.news-archive { margin-top: 7px; }
summary { cursor: pointer; color: var(--accent); font-size: 12px; width: fit-content; padding: 5px 0; }
.experience-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.experience-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fafbfc; border: 1px solid #e7ebef; border-radius: 7px; min-width: 0; }
.experience-logo { width: 46px; height: 48px; object-fit: contain; flex: 0 0 46px; margin-top: 2px; }
.experience-info { min-width: 0; }
.experience-card h3 { font-size: 14px; margin-bottom: 2px; font-weight: 650; }
.experience-date { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.experience-description { font-size: 12px; line-height: 1.7; margin: 7px 0 0; color: #596677; }
.empty-note { color: var(--muted); font-size: 14px; padding: 3px 0; margin: 0; }
.publication-controls { display: flex; flex-wrap: wrap; gap: 5px; padding: 3px; width: fit-content; background: #f0f3f6; border-radius: 5px; margin-bottom: 12px; }
.publication-controls button { border: 0; padding: 6px 13px; border-radius: 3px; color: #667384; background: transparent; font-size: 12px; }
.publication-controls button[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px #24344915; }
.publication-legend { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.publication { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 25px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.publication:last-child { border-bottom: 0; padding-bottom: 0; }
.publication-image { width: 220px; aspect-ratio: 16/10; object-fit: contain; border: 1px solid #e7ebef; border-radius: 4px; padding: 6px; background: white; }
.publication h3 { font-size: 15px; margin: 5px 0 7px; font-weight: 650; line-height: 1.5; }
.publication h3 a { color: var(--ink); }
.publication-venue { font-size: 10px; font-weight: 650; letter-spacing: .07em; color: var(--accent); text-transform: uppercase; }
.publication-authors { font-size: 11.5px; color: var(--muted); line-height: 1.65; margin-bottom: 7px; }
.publication-authors a { color: inherit; }
.publication-authors strong { color: var(--ink); font-weight: 650; }
.publication-description { font-size: 12px; color: #5d6877; margin-bottom: 8px; line-height: 1.7; }
.publication-links { display: flex; gap: 15px; flex-wrap: wrap; font-size: 11px; font-weight: 600; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication-list .publication { display: block; padding: 18px 0; }
.project { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 25px; align-items: center; }
.project-image { width: 220px; aspect-ratio: 16/10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 4px; }
.project h3 { margin: 3px 0 5px; }
.project p { font-size: 13px; color: #5d6877; margin-bottom: 7px; }
.detail-list { padding-left: 18px; margin: 0; font-size: 14px; }
.detail-list li { margin-bottom: 9px; padding-left: 4px; }
.detail-list time { color: var(--muted); font-size: 12px; margin-right: 13px; }
.cv-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cv-callout p { color: var(--muted); font-size: 14px; margin: 0; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid #cbd5df; border-radius: 4px; padding: 8px 15px; font-size: 12px; font-weight: 550; color: var(--accent); background: white; white-space: nowrap; }
.button:hover { background: var(--soft); text-decoration: none; }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #264b69; }
.site-footer { max-width: 1040px; margin: auto; border-top: 1px solid var(--line); padding: 23px 0 30px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.site-footer a { color: inherit; }
.page-heading { margin-bottom: 35px; }
.page-heading h1 { font-size: 38px; margin-bottom: 12px; }
.page-heading p { color: var(--muted); }
.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.blog-list time, .post-meta { font-size: 12px; color: var(--muted); }
.blog-list h3 { margin: 4px 0 7px; }
.blog-list p { color: var(--muted); font-size: 14px; }
.post-article { max-width: 760px; margin: auto; }
.post-content { font-size: 16px; }
.post-content h2 { color: var(--accent); font-size: 27px; margin-top: 36px; }
.post-content pre { padding: 18px; overflow-x: auto; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; }
.post-content blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid #b3c6d7; color: var(--muted); }
.post-content table { width: 100%; border-collapse: collapse; }
.post-content td, .post-content th { padding: 8px; border: 1px solid var(--line); }
@media (min-width: 861px) { .menu-toggle { display: none; } }
@media (max-width: 1020px) { .primary-navigation { gap: 16px; } .nav-shell { padding: 0 24px; gap: 20px; } .profile-hero { gap: 40px; } }
@media (max-width: 860px) {
  .nav-shell { flex-wrap: wrap; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  .primary-navigation { width: 100%; gap: 0; flex-wrap: wrap; padding: 8px 0 0; }
  .primary-navigation a { padding: 8px 13px 8px 0; margin-right: 16px; }
  .primary-navigation .nav-cv { padding: 3px 13px; }
  .js .primary-navigation:not(.is-open) { display: none; }
  .site-main { padding-top: 38px; }
  .profile-hero { grid-template-columns: minmax(0,1fr) 175px; gap: 28px; }
  .portrait figcaption { font-size: 10px; }
  .site-footer { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .site-main { width: calc(100% - 40px); padding-top: 29px; padding-bottom: 40px; }
  .nav-shell { padding-left: 20px; padding-right: 20px; }
  .profile-hero { grid-template-columns: minmax(0,1fr) 112px; gap: 18px; align-items: start; margin-bottom: 28px; }
  .profile-copy { display: contents; }
  .profile-intro { grid-column: 1; grid-row: 1; align-self: center; }
  .profile-hero h1 { font-size: 32px; }
  .chinese-name { display: block; margin: 8px 0 0; font-size: 20px; }
  .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .profile-subtitle { font-size: 12px; margin-bottom: 0; }
  .portrait { grid-column: 2; grid-row: 1; }
  .portrait-frame { padding: 4px; }
  .portrait figcaption { display: none; }
  .profile-bio { grid-column: 1/-1; }
  .profile-links { grid-column: 1/-1; margin-top: -9px; gap: 8px 16px; font-size: 12px; }
  .home-section { margin-top: 31px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: 24px; }
  .experience-grid { grid-template-columns: 1fr; gap: 10px; }
  .experience-card { padding: 16px; }
  .news-list li { grid-template-columns: 62px minmax(0,1fr); gap: 10px; font-size: 13px; padding: 6px 0; }
  .news-list time { font-size: 11px; }
  .publication, .project { grid-template-columns: 1fr; gap: 14px; }
  .publication-image { width: 100%; max-height: 190px; aspect-ratio: 16/8; }
  .publication-authors { font-size: 12px; }
  .publication-description { font-size: 13px; }
  .project-image { width: 100%; max-height: 180px; object-fit: cover; }
  .detail-list { font-size: 13px; }
  .detail-list time { display: block; }
  .cv-callout { flex-direction: column; align-items: flex-start; gap: 15px; }
  .site-footer { margin: 0 20px; flex-wrap: wrap; font-size: 10px; }
  .site-footer > span:first-child { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .skip-link, .publication-controls { display: none !important; }
  .site-main { width: 100%; margin: 0; padding: 0; }
  body { font-size: 10pt; }
  a { color: inherit; }
  .home-section { break-inside: avoid; }
}
