:root {
  --paper: #fdfcf9;
  --ink: #263443;
  --muted: #697480;
  --blue: #315f88;
  --line: #e4e7e7;
  --wash: #f3f5f5;
  --serif: Georgia, "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.8 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
main:focus { outline: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin-bottom: 24px; font: 500 38px/1.4 var(--serif); letter-spacing: .02em; }
h2 { font-size: 21px; font-weight: 600; line-height: 1.5; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.65; }
p { margin-bottom: 16px; }
::selection { color: #163853; background: #dce8ef; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner, .site-shell, .footer-inner { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { font: 600 21px/1.3 var(--serif); color: var(--ink); white-space: nowrap; }
.site-brand:hover { text-decoration: none; }
.brand-dot, .heading-dot { color: var(--blue); }
.heading-dot { padding-left: 6px; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; display: flex; align-items: center; min-height: 77px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); }
.nav-arrow { margin-left: 8px; color: var(--blue); }
.site-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 82px; padding-top: 62px; padding-bottom: 72px; min-height: calc(100vh - 160px); }
.profile { align-self: start; position: sticky; top: 122px; }
.profile-avatar { display: block; width: 156px; height: 156px; object-fit: cover; border-radius: 50%; margin-bottom: 25px; border: 5px solid white; outline: 1px solid var(--line); }
.profile-name { margin-bottom: 4px; font: 600 27px/1.4 var(--serif); letter-spacing: -.03em; }
.profile-name-zh { margin-bottom: 8px; font-size: 18px; }
.profile-role { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.profile-affiliation { margin: 4px 0 0; font-size: 14px; }
.profile-location { display: flex; align-items: center; gap: 7px; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.profile-links { display: grid; gap: 4px; padding: 24px 0 25px; border-bottom: 1px solid var(--line); }
.profile-links a { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.profile-links a .icon { color: var(--muted); width: 16px; height: 16px; }
.profile-links a .icon:last-child:not(:first-child) { margin-left: auto; width: 12px; height: 12px; color: #89949f; }
.small-label { display: block; font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.section-nav { padding-top: 24px; }
.section-nav .small-label { margin-bottom: 12px; }
.section-nav a { display: block; width: fit-content; font-size: 13px; color: var(--muted); padding: 5px 0; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--blue); }
.section-nav a[aria-current] { font-weight: 600; }
.profile-back { margin-top: 24px; font-size: 13px; }
.profile-back p { color: var(--muted); margin-top: 25px; line-height: 2; }
main { min-width: 0; overflow-wrap: anywhere; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .19em; color: var(--blue); margin: 0 0 12px; }
.intro-section { padding-top: 3px; padding-bottom: 35px; }
.intro-copy { max-width: 650px; font-size: 16px; line-height: 2; color: #4d5965; }
.intro-copy p:first-child { font-size: 18px; color: var(--ink); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 25px; font-size: 13px; }
.text-link, .muted-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.text-link { font-weight: 500; }
.muted-link { color: var(--muted); }
.text-link .icon, .muted-link .icon { width: 16px; height: 16px; }
.update-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin: 25px 0 0; }
.update-note > span { width: 5px; height: 5px; border-radius: 50%; background: #9ba789; }
.academic-section { padding: 29px 0 31px; border-top: 1px solid var(--line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; }
.section-heading > span { font-size: 10px; letter-spacing: .11em; color: var(--muted); }
.section-description { color: var(--muted); font-size: 14px; }
.empty-state { display: flex; align-items: flex-start; gap: 18px; padding: 4px 0 2px; }
.empty-mark { padding-top: 1px; font: 13px/1.8 Georgia, serif; color: #8697a5; white-space: nowrap; }
.empty-state h3 { margin: 0 0 7px; font-size: 14px; font-weight: 400; color: #536574; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.9; }
.status-label { margin-left: auto; flex-shrink: 0; color: var(--muted); border: 1px solid var(--line); font-size: 10px; line-height: 1.7; padding: 2px 7px; }
.entry-number { color: var(--blue); font: 18px/1.6 var(--serif); min-width: 26px; }
.research-item { display: flex; gap: 20px; margin: 24px 0; }
.research-item:last-child { margin-bottom: 0; }
.research-item h3 { margin: 0 0 6px; }
.entry-description { font-size: 14px; color: var(--muted); line-height: 1.9; }
.entry-description p:last-child { margin-bottom: 0; }
.keyword-list, .entry-links { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 12px 0 0; }
.keyword-list li { color: var(--blue); font-size: 11px; background: #edf2f5; padding: 2px 8px; }
.entry-links { gap: 16px; }
.entry-links a { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; }
.entry-links .icon { width: 12px; height: 12px; }
.publication-list, .experience-list, .news-list { list-style: none; margin: 0; padding: 0; }
.publication-list > li, .experience-list > li, .news-list > li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; margin-bottom: 25px; }
.publication-list > li:last-child, .experience-list > li:last-child, .news-list > li:last-child { margin-bottom: 0; }
.publication-list h3, .experience-list h3 { margin-bottom: 7px; }
.entry-period { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.publication-authors { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.publication-venue { font-size: 13px; margin-bottom: 5px; }
.publication-note { color: var(--muted); }
.project-item { border-left: 2px solid #a8bac8; padding-left: 22px; margin-bottom: 28px; }
.project-item:last-child { margin-bottom: 0; }
.project-item h3 { margin: 4px 0 7px; }
.experience-list p { margin-bottom: 8px; font-size: 14px; }
.news-list p { margin-bottom: 0; font-size: 14px; }
.writing-section { padding-bottom: 0; }
.recent-posts { list-style: none; padding: 0; margin: 22px 0 10px; }
.recent-posts li { display: flex; gap: 26px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-posts time { flex-shrink: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.recent-posts a { display: flex; flex: 1; justify-content: space-between; align-items: baseline; gap: 15px; color: var(--ink); font-size: 14px; }
.recent-posts .icon { width: 15px; height: 15px; color: var(--muted); }
.archive-link { font-size: 12px; margin-top: 12px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 23px; font-size: 11px; color: var(--muted); }
.footer-note { letter-spacing: .12em; }
.footer-inner a { color: var(--muted); }
.footer-inner .icon { width: 13px; height: 13px; margin-left: 5px; }
.page-heading { padding: 3px 0 23px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin-bottom: 16px; }
.page-heading p:last-child { margin-bottom: 5px; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 0; font-size: 12px; color: var(--muted); }
.archive-toolbar p { margin: 0; }
.archive-toolbar strong { color: var(--ink); font-weight: 500; }
.archive-toolbar .icon { width: 14px; height: 14px; }
.archive-filters { display: flex; gap: 12px; margin-bottom: 30px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field .icon { position: absolute; top: 14px; left: 14px; color: var(--muted); width: 17px; height: 17px; }
.search-field input, .archive-filters select { border: 1px solid #d7dfe3; color: var(--ink); border-radius: 3px; min-height: 46px; background: transparent; font-size: 14px; }
.search-field input { width: 100%; padding: 10px 14px 10px 41px; }
.search-field input::placeholder { color: var(--muted); }
.archive-filters select { max-width: 210px; padding: 9px 10px; }
.filter-status { font-size: 12px; color: var(--muted); }
.archive-year { margin: 0 0 32px; }
.archive-year h2, .tag-group h2 { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 0; border-bottom: 1px solid var(--line); font: 500 27px/1.5 var(--serif); }
.archive-year h2 span, .tag-group h2 span { color: var(--muted); font: 11px/1.8 var(--sans); }
.archive-year ul { list-style: none; padding: 0; margin: 0; }
.archive-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.archive-row time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.archive-row > a { color: var(--ink); font-size: 14px; }
.row-tag { font-size: 11px; color: var(--muted); }
.search-empty { padding: 50px 0; text-align: center; color: var(--muted); font-size: 14px; }
.search-empty h2 { font-size: 18px; }
.search-empty button { border: 1px solid #bbcbd7; color: var(--blue); border-radius: 3px; background: transparent; padding: 8px 18px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tag-cloud a { border: 1px solid var(--line); border-radius: 3px; padding: 7px 13px; font-size: 13px; color: var(--ink); }
.tag-cloud a:hover { background: var(--wash); border-color: #bccbd4; text-decoration: none; }
.tag-cloud span { color: var(--muted); margin-left: 12px; font-size: 11px; }
.tag-group { margin-bottom: 38px; }
.tag-group h2 { font-family: var(--sans); font-size: 20px; }
.tag-group .recent-posts { margin-top: 0; }
.back-link { display: inline-block; margin-bottom: 32px; font-size: 12px; color: var(--muted); }
.post-header h1 { font-size: 32px; overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.post-meta a { background: var(--wash); padding: 1px 8px; }
.post-toc { border: 1px solid var(--line); border-radius: 3px; padding: 12px 18px; margin-bottom: 28px; font-size: 13px; }
.post-toc summary { color: var(--muted); }
.post-toc nav { padding: 10px 0; display: grid; }
.post-toc a { display: block; padding: 4px 0; }
.post-toc .toc-subheading { padding-left: 18px; }
.prose { font-size: 16px; line-height: 2; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 1.8em 0 .8em; font-family: var(--sans); font-weight: 600; }
.prose h1 { font-size: 27px; }
.prose h2 { font-size: 23px; }
.prose h3 { font-size: 20px; }
.prose h4, .prose h5, .prose h6 { font-size: 17px; }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose li { margin: .35em 0; }
.prose li > p { margin-bottom: .5em; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1.6em 0; padding: 12px 20px; border-left: 3px solid #b6c8d5; background: var(--wash); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { display: block; margin: 24px auto; border-radius: 3px; }
.prose iframe, .prose video { max-width: 100%; }
.prose pre { overflow: auto; padding: 18px 20px; background: #f0f3f5; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; line-height: 1.75; white-space: pre; tab-size: 4; }
.prose code { font-family: "Cascadia Code", Consolas, monospace; font-size: .85em; background: #eef1f3; padding: 2px 5px; border-radius: 3px; }
.prose pre code { font-size: inherit; padding: 0; background: none; }
.table-scroll { overflow-x: auto; margin: 25px 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.table-scroll table { display: table; min-width: 100%; overflow: visible; }
.prose th, .prose td { padding: 9px 13px; border: 1px solid #dbe2e7; min-width: 65px; }
.prose th { background: #eef2f4; font-weight: 500; }
.prose td { background: #fff; }
.prose .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 8px; }
.prose .mermaid { overflow: auto; margin: 25px 0; }
.highlight .c, .highlight .c1, .highlight .cm { color: #6c7c70; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kc { color: #795a96; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #377565; }
.highlight .nf, .highlight .nc, .highlight .na { color: #2c6395; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .nb { color: #a15c32; }
.post-footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-footer > p { color: var(--muted); font-size: 11px; }
.post-pagination { display: flex; justify-content: space-between; gap: 25px; margin-top: 30px; }
.post-pagination a { display: flex; flex-direction: column; max-width: 48%; font-size: 13px; }
.post-pagination span { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.post-pagination .next-post { text-align: right; margin-left: auto; }
.not-found { padding-top: 32px; color: var(--muted); }
.not-found .text-link { margin-right: 25px; }
@media (max-width: 1050px) {
  .header-inner, .site-shell, .footer-inner { width: calc(100% - 64px); }
  .site-shell { grid-template-columns: 205px minmax(0, 1fr); gap: 48px; }
  .profile-name { font-size: 25px; }
  .site-nav { gap: 26px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .header-inner, .site-shell, .footer-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 65px; gap: 20px; }
  .site-brand { font-size: 18px; }
  .site-nav { gap: 18px; }
  .site-nav a { min-height: 65px; font-size: 12px; }
  .nav-arrow { display: none; }
  .site-shell { display: block; padding-top: 32px; padding-bottom: 44px; }
  .profile { position: static; margin-bottom: 35px; }
  .profile-identity { display: flex; align-items: center; gap: 22px; }
  .profile-avatar { width: 92px; height: 92px; margin: 0; border-width: 3px; }
  .profile-name { font-size: 25px; }
  .profile-name-zh { font-size: 16px; margin-bottom: 3px; }
  .profile-role, .profile-affiliation { font-size: 12px; }
  .profile-links { display: flex; flex-wrap: wrap; gap: 6px 23px; padding: 20px 0; }
  .profile-links a { font-size: 12px; min-height: 34px; }
  .profile-links a .icon:last-child:not(:first-child) { display: none; }
  .section-nav, .profile-back { display: none; }
  .is-inner .profile { display: none; }
  h1 { font-size: 32px; margin-bottom: 20px; }
  .intro-copy { font-size: 15px; }
  .intro-copy p:first-child { font-size: 17px; }
  .intro-section { padding-bottom: 30px; }
  .academic-section { padding: 25px 0 27px; }
  .section-heading { margin-bottom: 22px; gap: 8px 12px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading > span { font-size: 9px; }
  .empty-state { gap: 12px; }
  .empty-state p { font-size: 12px; }
  .status-label { font-size: 9px; padding: 2px 5px; }
  .publication-list > li, .experience-list > li, .news-list > li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .recent-posts li { gap: 18px; }
  .recent-posts time { font-size: 11px; }
  .recent-posts a { font-size: 13px; }
  .archive-row { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 12px; }
  .row-tag { font-size: 10px; }
  .archive-filters { gap: 8px; }
  .archive-filters select { max-width: 135px; font-size: 12px; }
  .search-field input { font-size: 16px; }
  .post-header h1 { font-size: 28px; }
  .prose { font-size: 15px; }
  .footer-inner { font-size: 10px; gap: 10px; }
  .footer-note { display: none; }
}
@media (max-width: 400px) {
  .header-inner { flex-direction: column; gap: 0; align-items: flex-start; padding-top: 12px; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a { min-height: 44px; }
  html { scroll-padding-top: 102px; }
  .profile-name { font-size: 23px; }
  .profile-identity { gap: 18px; }
  .status-label { display: none; }
  .archive-row { grid-template-columns: 40px minmax(0, 1fr); }
  .row-tag { display: none; }
  .archive-filters { flex-direction: column; }
  .archive-filters select { width: 100%; max-width: none; }
  .section-heading { row-gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 761px) and (max-height: 900px) { .profile { position: static; } }
@media print {
  body { background: white; color: black; font-size: 12pt; }
  .site-header, .profile, .site-footer, .intro-actions, .archive-filters, .back-link, .post-toc, .post-pagination { display: none !important; }
  .site-shell { display: block; width: 100%; padding: 0; }
  a { color: inherit; }
  .academic-section { break-inside: avoid; }
  .prose pre { white-space: pre-wrap; }
}
