:root {
  color-scheme: light;
  --ink: #302f2b;
  --muted: #817b73;
  --accent: #b46150;
  --line: #e7e2da;
  --soft: #faf8f4;
  --max: 1180px;
  --serif: Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: #f6f5f1;
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
a { color: inherit; text-decoration-color: #c9b9aa; text-underline-offset: 4px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
img { max-width: 100%; height: auto; }
figure, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; }
h1 { font-size: 4.2rem; font-weight: 600; letter-spacing: -.045em; margin: 15px 0 12px; }
h1 [lang="zh-CN"] { letter-spacing: .1em; }
h2 { font-size: 1.55rem; font-weight: 600; margin: 0; color: var(--accent); }
h3 { margin: 0; }
strong { font-weight: 700; }
html[data-language="en"] [lang="zh-CN"]:not(button),
html[data-language="zh"] [lang="en"]:not(button):not(.original-title) { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 20px; background: #fff; padding: 12px; z-index: 20; }
.skip-link:focus { top: 10px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: var(--max);
  margin: auto;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 70px;
  margin: 0 68px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }
.header-inner nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.header-inner nav a { color: #716b64; font-size: .86rem; text-decoration: none; }
.header-inner nav a:hover { color: var(--accent); }
.language-switch { display: flex; align-items: center; gap: 2px; }
.language-switch button {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  padding: 5px 8px;
  min-height: 35px;
  font-family: var(--sans);
  font-size: .72rem;
}
.language-switch button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.site-main {
  max-width: var(--max);
  margin: auto;
  padding: 60px 68px 6px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.hero { padding: 0 0 42px; }
.hero-heading { margin-bottom: 24px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.hero-role { font-size: 1.04rem; color: #716b63; }
.hero-details { display: grid; grid-template-columns: minmax(0, 1fr) 188px; gap: 46px; align-items: center; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 20px; font-size: .83rem; }
.contact-links a { color: #696158; }
.bio-note { border: 1px solid var(--line); border-left: 3px solid #c98c7d; border-radius: 3px; padding: 20px 23px; background: var(--soft); }
.bio { font-size: .94rem; line-height: 1.85; }
.bio p + p { margin-top: 13px; }
.portrait img { display: block; width: 188px; height: 220px; object-fit: cover; border-radius: 3px; }
.portrait figcaption { font-size: .7rem; color: var(--muted); text-align: center; margin-top: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.portrait figcaption a { text-decoration: none; }
section { scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.section-index { margin-left: auto; color: #b5aaa0; font-size: .72rem; font-variant-numeric: tabular-nums; }
.news-section { padding: 8px 0 33px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; margin: 12px 0; font-size: .91rem; }
.news-list time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.publications-section { padding-top: 9px; }
.section-intro { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }
.publication-note { color: var(--muted); font-size: .75rem; margin-top: -7px; margin-bottom: 3px; }
.publication { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; padding: 31px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 95px; }
.publication:last-child { border-bottom: 0; }
.paper-figure { padding-top: 5px; align-self: start; }
.figure-link { position: relative; display: flex; width: 100%; min-height: 184px; align-items: center; justify-content: center; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.figure-link:hover { border-color: #c89d8f; }
.figure-link img { display: block; width: 100%; height: 174px; object-fit: contain; }
.figure-zoom { position: absolute; bottom: 5px; right: 8px; color: #9d6555; background: #fff; font-size: .75rem; padding: 0 3px; }
.paper-figure figcaption { color: var(--muted); text-align: center; font-size: .65rem; line-height: 1.5; margin-top: 8px; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .7rem; margin-bottom: 9px; }
.venue { border: 1px solid #eaded6; background: #f7f1ec; color: #925c4a; border-radius: 2px; padding: 1px 7px; font-size: .66rem; font-weight: 600; letter-spacing: .03em; }
.venue-preprint { color: #78726a; background: #f5f4f0; border-color: #e7e3db; }
.paper-topic { color: var(--muted); }
.paper-copy h3 { font-size: 1.18rem; line-height: 1.45; font-weight: 600; letter-spacing: -.015em; }
.paper-copy h3 a { text-decoration: none; }
.paper-copy h3 a:hover { text-decoration: underline; }
.paper-authors { color: #817b73; font-size: .78rem; line-height: 1.7; margin-top: 9px; }
.paper-authors strong { color: #514a42; }
.paper-summary { font-size: .89rem; line-height: 1.85; margin-top: 13px; color: #4c4842; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 13px; }
.paper-links a { font-size: .78rem; color: #8f5646; text-decoration-thickness: 1px; }
.citation-title { color: var(--muted); font-size: .72rem; margin-top: 11px; }
.citation-title summary { cursor: pointer; }
.citation-title p { margin-top: 6px; font-size: .78rem; line-height: 1.6; }
#preprints { padding-top: 33px; }
#experience, #education { padding-top: 40px; }
.timeline-entry { display: grid; grid-template-columns: minmax(0, 1fr) 162px; gap: 30px; padding: 18px 0; }
.timeline-entry > div { grid-column: 1; grid-row: 1; }
.timeline-date { grid-column: 2; grid-row: 1; text-align: right; padding-top: 2px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.timeline-entry h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.6; }
.timeline-entry h3 a { text-decoration: none; }
.timeline-entry p:not(.timeline-date) { font-size: .9rem; color: #5f5951; line-height: 1.85; }
.timeline-entry .entry-role { font-size: .79rem !important; color: #99715c !important; margin: 3px 0 7px; }
.experience-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.experience-heading > div { min-width: 0; }
.company-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.company-logo img { display: block; width: 34px; height: 34px; object-fit: contain; }
.timeline-entry .experience-heading .entry-role { margin-bottom: 0; }
/* Education uses the same restrained gallery cards as the CV reference. */
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.education-card { min-width: 0; padding: 23px 24px 25px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 2px 0 #302f2b03, 0 5px 20px #302f2b03; }
.education-card h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.17rem; line-height: 1.5; font-weight: 600; margin-bottom: 22px; }
.education-icon { flex-shrink: 0; font-size: 1.2rem; }
.education-card p + p { margin-top: 14px; }
.education-school { display: table; max-width: 100%; padding: 1px 9px; border-radius: 5px; background: #eee3db; color: #6e5344; font-size: .96rem; line-height: 1.65; }
.education-card:nth-child(2) .education-school { background: #eeedeb; color: #625e57; }
.education-date { font-size: .94rem; font-variant-numeric: tabular-nums; }
.education-detail { font-size: .96rem; color: #5f5951; line-height: 1.75; }
.visitors-section { padding-top: 28px; color: var(--muted); font-size: .75rem; }
.visitors-section summary { cursor: pointer; }
.visitor-globe { width: 280px; max-width: 100%; margin: 20px auto; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; max-width: var(--max); margin: 0 auto 50px; padding: 34px 68px; background: #fff; border: 1px solid var(--line); border-top: 0; color: var(--muted); font-size: .72rem; }
.site-footer a { text-decoration: none; }
.figure-dialog { width: min(1200px, 94vw); max-width: 94vw; max-height: 92vh; padding: 22px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); box-shadow: 0 20px 100px #25201826; }
.figure-dialog::backdrop { background: #28231c99; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 18px; }
.dialog-toolbar p { font-size: .96rem; font-weight: 600; max-width: 85%; }
.close-dialog { border: 1px solid var(--line); padding: 5px 12px; background: var(--soft); border-radius: 2px; font-size: .8rem; white-space: nowrap; }
.dialog-image-wrap { overflow: auto; max-height: 65vh; text-align: center; }
.dialog-image { display: block; max-height: 63vh; max-width: 100%; width: auto; height: auto; margin: auto; }
.dialog-caption { color: var(--muted); font-size: .74rem; text-align: center; margin-top: 15px; }
body.dialog-open { overflow: hidden; }
@media (min-width: 1450px) { :root { font-size: 17px; } }
@media (max-width: 900px) {
  .header-inner { margin: 0 36px; gap: 23px; }
  .header-inner nav { gap: 20px; }
  .site-main { padding: 42px 36px 6px; }
  .hero-details { grid-template-columns: minmax(0, 1fr) 145px; gap: 28px; }
  .portrait img { width: 145px; height: 174px; }
  .publication { grid-template-columns: 210px minmax(0, 1fr); gap: 25px; }
  .figure-link { min-height: 165px; }
  .figure-link img { height: 150px; }
  .site-footer { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 620px) {
  :root { font-size: 15px; background: #fff; }
  .site-header, .site-main, .site-footer { border-left: 0; border-right: 0; }
  .header-inner { min-height: 64px; padding: 12px 0; margin: 0 22px; flex-wrap: wrap; gap: 10px; }
  .header-inner nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .header-inner nav a { font-size: .82rem; }
  .language-switch { margin-left: auto; }
  .site-main { padding: 33px 22px 5px; }
  .hero { padding-bottom: 30px; }
  .hero-heading { margin-bottom: 20px; padding-bottom: 20px; }
  h1 { font-size: 3.4rem; margin: 13px 0 14px; }
  .eyebrow { font-size: .66rem; letter-spacing: .08em; }
  .hero-role { font-size: .93rem; }
  .hero-details { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .portrait { grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 18px; max-width: 100%; }
  .portrait img { width: 80px; height: 90px; flex-shrink: 0; }
  .portrait figcaption { margin-top: 0; text-align: left; font-size: .74rem; }
  .contact-links { gap: 7px 18px; font-size: .82rem; margin-bottom: 18px; }
  .bio-note { padding: 17px 18px; }
  .bio { font-size: .98rem; line-height: 1.9; }
  .section-heading { padding-bottom: 10px; margin-bottom: 18px; }
  h2 { font-size: 1.5rem; }
  .news-list li { grid-template-columns: 65px minmax(0, 1fr); gap: 12px; font-size: .9rem; }
  .news-list time { font-size: .77rem; }
  .news-section { padding-bottom: 28px; }
  .publication { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 27px 0; }
  .paper-figure { padding-top: 0; }
  .figure-link { padding: 11px; min-height: 180px; }
  .figure-link img { width: auto; height: auto; max-width: 100%; max-height: 230px; }
  .paper-copy h3 { font-size: 1.23rem; }
  .paper-authors { font-size: .82rem; }
  .paper-summary { font-size: .97rem; }
  .paper-links { gap: 10px 22px; }
  .paper-links a { font-size: .87rem; padding: 3px 0; }
  .timeline-entry { display: flex; flex-direction: column; gap: 6px; padding: 17px 0; }
  .timeline-date { text-align: left; font-size: .8rem; }
  .timeline-entry p:not(.timeline-date) { font-size: .97rem; }
  .education-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
  .education-card { padding: 20px 21px 23px; border-radius: 14px; }
  .education-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
  .site-footer { padding: 28px 22px; margin-bottom: 0; font-size: .73rem; }
  .figure-dialog { padding: 15px; }
  .dialog-toolbar { gap: 12px; }
  .dialog-toolbar p { font-size: .84rem; }
  .close-dialog { padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { background: #fff; font-size: 11pt; }
  .site-header, .skip-link, .figure-zoom, .visitors-section { display: none; }
  .site-main { padding: 0; border: 0; max-width: none; }
  .hero { padding: 0 0 20px; }
  .hero-heading { padding-bottom: 15px; }
  h1 { font-size: 34pt; }
  .publication { grid-template-columns: 180px 1fr; break-inside: avoid; padding: 20px 0; }
  .figure-link img { height: 130px; }
  .education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-card { break-inside: avoid; box-shadow: none; }
  .site-footer { border: 0; margin: 0; padding: 20px 0; }
  a { color: inherit; }
}

/* Selected visual direction: quiet field, original media colors. */

:root { --ink:#2e3328; --muted:#74786e; --accent:#526329; --line:#dfe2d8; --soft:#f2f4ec; --serif:var(--sans); background:#f0f1ed; color:var(--ink); }
body { background:transparent; }
h1,h2,h3 { font-family:var(--sans); }
h1 { font-weight:650; letter-spacing:-.055em; }
h1 [lang="zh-CN"] { letter-spacing:.06em; }
h2 { font-size:1.45rem; letter-spacing:-.035em; }
a { text-decoration-color:#b7c87b; }
.site-header { background:#fafbf7f5; border-color:var(--line); backdrop-filter:blur(16px); }
.site-main,.site-footer { background:#fafbf7; }
.header-inner nav a,.hero-role,.contact-links a { color:#62685b; }
.language-switch button[aria-pressed="true"] { color:#34451c; border-color:#91a53c; }
.hero-heading { position:relative; isolation:isolate; }
.hero-heading::before,.hero-heading::after { content:""; position:absolute; pointer-events:none; z-index:-1; }
.eyebrow,.timeline-date,.section-index,.paper-meta,.news-list time { font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; }
.eyebrow { color:#6c7755; letter-spacing:.08em; }
.wordmark-dot { color:#94a941; }
.bio-note { background:#f3f5ee; border-color:var(--line); border-left-color:#acbe54; border-radius:3px; }
.bio { color:#454b40; }
.portrait img { border:1px solid var(--line); }
.section-index { color:#788363; }
.section-heading { border-bottom-color:#d8dfcc; }
.section-heading h2 { display:flex; align-items:center; gap:12px; }
.section-heading h2::before { content:""; width:7px; height:7px; background:#aabc51; flex-shrink:0; }
.figure-link { background:#f4f5ef; border-color:#dce1d2; border-radius:3px; transition:border-color .25s,background .25s; }
.figure-link img { }
.figure-link:hover { border-color:#9bad50; background:#edf1e1; }
.figure-zoom { color:#56682a; background:#f4f5ef; }
.venue,.venue-preprint { color:#51602d; border-color:#d4ddba; background:#edf1df; }
.paper-authors,.citation-title { color:#7c8075; }
.paper-authors strong { color:#444e34; }
.paper-summary { color:#555c4e; }
.paper-links a { color:#53672b; }
.timeline-entry p:not(.timeline-date),.education-detail { color:#62695a; }
.timeline-entry .entry-role { color:#77864d !important; }
.company-logo { background:#f8faf3; border-color:#dce3cf; border-radius:8px; }
.education-card { border-color:#dce1d2; background:#fafbf7; box-shadow:none; }
.education-school,.education-card:nth-child(2) .education-school { background:#e9eedb; color:#586337; }
.figure-dialog { background:#fafbf7; }
.figure-dialog::backdrop { background:#292f2499; }
.dialog-caption { color:#74786e; }
.close-dialog { background:#edf1e1; }
.site-footer { color:#74786e; }
::selection { background:#d8e3a5; color:#303b20; }
@media(max-width:620px) { :root { background:#fafbf7; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }

/* C · Quiet field */
:root { --accent:#45582c; --line:#e0e4d9; }
.site-header,.site-main,.site-footer { background:#f8f9f4; }
.site-header { border-color:transparent; }
.header-inner { border-bottom-color:#d9dfcd; }
.hero-heading::before { inset:-60px -55px -3px 40%; background:url(../../images/decoration/research-field-wave.svg) center/cover no-repeat; mask-image:radial-gradient(ellipse at 60% 45%,#000,transparent 72%); opacity:.9; }
.hero-heading { border-bottom:1px solid #d9dfcd; }
.hero-heading h1 { font-size:4.8rem; font-weight:750; letter-spacing:-.065em; }
.hero-heading h1 [lang="zh-CN"] { letter-spacing:.025em; }
.bio-note { background:transparent; border:0; border-left:2px solid #bdcc5b; padding-left:23px; }
.contact-links a { text-decoration:none; border-bottom:1px solid #becb8d; }
.section-heading h2::before { width:18px; height:3px; background:#afc24d; }
.section-heading { border-bottom-color:#dfe4d4; }
.figure-link { background:#f0f3e8; border-color:transparent; border-radius:7px; }
.figure-zoom { background:#f0f3e8; }
.venue { background:#e9efda; border-color:transparent; border-radius:20px; padding:1px 9px; }
.education-card { border:1px solid #dbe2cc; border-radius:10px; background:#f3f5ec; }
.education-school,.education-card:nth-child(2) .education-school { background:#e5ebd3; }
.portrait img { border-radius:6px; }
.company-logo { border-color:transparent; background:#eaf0dc; }
@media(max-width:620px) { .hero-heading h1 { font-size:3.8rem; } .hero-heading::before { inset:-33px -22px 0 25%; } .bio-note { padding:0 0 0 17px; } }
