/* Chinese glyphs use traditional regular-script Kai; Latin text keeps the existing fonts.
   AR PL UKai CN source and modification notes: ../fonts/NOTICE-Zhengkai.txt */
@font-face {
  font-family: "Academic Zhengkai";
  src: local("FZKai-Z03S"), local("FZKai-Z03"), local("方正楷体"), url("../fonts/academic-zhengkai.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+3000-303F, U+3400-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Academic Zhengkai";
  src: local("FZKai-Z03S"), local("FZKai-Z03"), local("方正楷体"), url("../fonts/academic-zhengkai-core.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+3001, U+4E0D, U+4E8E, U+4EBA, U+4EFB, U+51B3, U+5206, U+5212, U+5218, U+52A1, U+52A8, U+5316, U+534F, U+53CA, U+540C, U+5668, U+56FD, U+57FA, U+591A, U+594E, U+5B9A, U+5E94, U+5F0F, U+5F62, U+5FE0, U+6001, U+6027, U+611F, U+65B9, U+65E0, U+65F6, U+665F, U+6700, U+673A, U+674E, U+675C, U+68EE, U+6CD5, U+6CFD, U+7684, U+77E5, U+77ED, U+786E, U+797A, U+7B56, U+7CFB, U+7EDF, U+7FA4, U+81EA, U+840C, U+8605, U+89C4, U+8D75, U+8F69, U+9002, U+914D, U+95F4, U+96C6;
}

:root {
  --chinese-font: "Academic Zhengkai", "FZKai-Z03S", "方正楷体", "Kaiti SC", STKaiti, KaiTi, "楷体";
  --ink: #26313d;
  --heading: #183b5b;
  --link: #286ca5;
  --accent: #963d43;
  --line: #dce3e9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 28px 24px;
  background: #eef2f5;
  color: var(--ink);
  font-family: var(--chinese-font), -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img { max-width: 100%; }
p { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }

.academic-shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  max-width: 1160px;
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
}
.academic-sidebar {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #f5f7f9;
}
.academic-nav {
  position: sticky;
  top: 36px;
  font-family: var(--chinese-font), "Avenir Next", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}
.nav-group { margin-bottom: 24px; }
.nav-label {
  margin: 19px 0 4px;
  padding: 3px 0;
  border-bottom: 2px solid rgba(143, 29, 44, 0.22);
  color: #8f1d2c;
  font-size: 12.8px;
  font-weight: 900;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.academic-nav ul { margin: 0; padding: 0; list-style: none; }
.academic-nav li { margin: 0; }
.academic-nav a {
  display: block;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 4px;
  color: #173b57;
  font-size: 15.7px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08px;
}
.academic-nav a:hover { background: #e9eef2; text-decoration: none; }
.academic-nav a[aria-current] {
  color: #68131f;
  font-weight: 800;
  background: #f5e8eb;
  box-shadow: inset 3px 0 0 #8f1d2c;
}
.academic-body { display: flex; min-width: 0; flex-direction: column; }
.academic-content { flex: 1; min-width: 0; padding: 34px 44px 28px; }
h1, h2, h3 { font-family: var(--chinese-font), "Avenir Next", "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
h1 {
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  color: var(--heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
}
.name-zh {
  font-family: var(--chinese-font), serif;
  font-size: 20px;
  font-weight: 400;
}
h2 {
  margin: 30px 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: 24px;
}
h3 { margin: 20px 0 6px; font-size: 17px; line-height: 1.5; }
.profile-intro {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.profile-photo { display: block; width: 174px; height: 174px; }
.profile-intro p { margin: 0 0 8px; }
.profile-name { font-size: 18px; font-weight: 600; }
.profile-intro .profile-email { margin-top: 12px; overflow-wrap: anywhere; }
.email-row { display: flex; flex-wrap: wrap; gap: 0 8px; }
.email-row + .email-row { margin-top: 4px; }
.email-label { flex: 0 0 112px; color: #68717a; font-size: 14px; }
.email-row a { max-width: 100%; }
.about-background { margin-top: 30px; }
.background-section-title {
  margin: 28px 0 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.background-section { margin-bottom: 30px; scroll-margin-top: 24px; }
.background-entry {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 20px;
  font-size: 15px;
}
.background-entry:last-child { margin-bottom: 0; }
.background-period { padding-top: 3px; }
.background-date { margin: 0; color: #68717a; font-size: 13px; line-height: 1.6; }
.background-date.background-current { color: var(--accent); font-weight: 600; }
.background-info h4 { margin: 0 0 4px; color: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.45; }
.background-info p { margin: 0; }
.background-role { color: #364556; line-height: 1.6; }
.education-content, .experience-content { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.education-emblem, .company-emblem { display: block; flex: 0 0 64px; width: 64px; height: 64px; margin-top: 2px; object-fit: contain; }
.company-emblem--cogleap { border-radius: 10px; }
.education-content .background-info, .experience-content .background-info { min-width: 0; }
.background-info .education-college { margin-bottom: 5px; color: #5b6672; font-size: 14px; line-height: 1.6; }
.empty-state { color: #68717a; }
.author-note { margin: -10px 0 22px; color: #68717a; font-size: 13px; }
.paper-list { margin-top: 26px; }
.paper-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 38px;
}
.paper-thumbnail { display: block; }
.paper-thumbnail img { display: block; width: 100%; height: auto; }
.paper-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.paper-title a { color: #222; }
.paper-authors, .paper-venue { margin: 0; color: #666; font-size: 14.5px; line-height: 1.55; }
.paper-authors strong { color: #444; font-weight: 700; }
.paper-authors sup { font-size: 10px; }
.paper-venue { margin-top: 3px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; line-height: 1.5; }
.paper-links span { color: #777; }
.patent-list {
  margin: 22px 0 0;
  padding-left: 24px;
  font-family: "Heiti SC", STHeiti, SimHei, "黑体", sans-serif;
}
.patent-list li { padding-left: 5px; margin-bottom: 22px; }
.patent-list li:last-child { margin-bottom: 0; }
.patent-list li::marker { color: #84909a; font-family: Arial, sans-serif; font-size: 14px; }
.patent-title { margin: 0 0 5px; color: #000; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.6; }
.patent-authors { margin: 0; color: #68717a; font-size: 17px; line-height: 1.6; }
.patent-authors strong { color: #444; }
.patent-separator { position: static; }
.project-list { margin-top: 24px; }
.project-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 0 24px;
  margin: 0 0 24px;
  scroll-margin-top: 24px;
}
.project-row:last-child { margin-bottom: 0; }
.project-thumbnail { display: block; }
.project-thumbnail img { display: block; width: 100%; height: auto; }
.project-title { margin: 0 0 8px; padding: 0; border: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
.project-title a { color: #222; }
.project-info p { margin: 0; font-size: 15px; }
.all-projects-link { margin-top: 18px; font-size: 14px; }
.project-row--detail { display: block; margin-bottom: 38px; padding: 0; }
.project-row--detail .project-info { padding: 22px 26px 24px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 6px; background: #f8fafb; }
.project-row--detail .project-title { margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--heading); font-size: 22px; }
.project-description { list-style-type: square; }
.project-description > li::marker { color: var(--accent); }
.project-highlights { list-style-type: disc; }
.project-highlights > li::marker { color: #64798b; font-size: 0.8em; }
.project-description { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; }
.project-description > li { margin-bottom: 0; padding-left: 3px; }
.project-highlights { margin: 12px 0 0; padding-left: 23px; font-size: 15px; line-height: 1.7; }
.project-highlights li { margin-bottom: 8px; padding-left: 3px; }
.project-highlights li:last-child { margin-bottom: 0; }
.project-highlights .project-links { margin-top: 12px; }
.project-links a { display: inline-block; margin-right: 3px; text-decoration: underline; text-underline-offset: 3px; }
.project-description > .project-prototype { margin-top: 20px; }
.project-prototype > strong { color: var(--heading); }
.project-benchmarks { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.project-benchmark-title { margin: 0 0 8px; color: var(--heading); font-size: 16px; }
.project-benchmarks table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.project-benchmarks caption { padding-bottom: 8px; color: #68717a; text-align: left; font-size: 12px; line-height: 1.5; }
.project-benchmarks th, .project-benchmarks td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.project-benchmarks thead th { color: #68717a; font-size: 12px; font-weight: 600; }
.project-benchmarks tbody th { font-weight: 400; }
.project-benchmarks tbody tr:last-child th, .project-benchmarks tbody tr:last-child td { border-bottom: 0; }
.project-media-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.project-media-grid--single { grid-template-columns: minmax(0, 1fr); }
.project-row--detail .project-media-grid { margin: 20px 8px 0; padding: 12px; border: 1px solid #edf0f3; border-radius: 8px; background: #fff; box-shadow: 0 6px 20px rgba(38, 49, 61, 0.05); }
.project-media { min-width: 0; margin: 0; }
.project-media, .project-media-grid { scroll-margin-top: 24px; }
.project-media a { display: block; }
.project-media img { display: block; width: 100%; height: auto; }
.project-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #f3f5f7; object-fit: contain; }
.project-player { position: relative; }
.project-play-button { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.project-play-button[hidden] { display: none; }
.project-play-button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.project-play-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; background: rgba(24, 37, 50, 0.8); }
.project-play-icon::after { content: ""; display: block; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid #fff; }
.project-play-button:hover .project-play-icon { background: var(--heading); }
.project-media figcaption { margin-top: 8px; color: #68717a; font-size: 13px; line-height: 1.6; }
.project-video-duration { white-space: nowrap; }
.academic-footer { padding: 18px 44px 24px; color: #84909a; font-size: 12px; }
.back-link { margin-bottom: 14px; font-size: 14px; }
.paper-detail h1 { font-size: 27px; margin-bottom: 20px; }
.paper-detail .paper-authors { font-size: 16px; }
.paper-detail .author-note { margin: 8px 0 0; }
.paper-detail-image { display: block; width: 100%; max-width: 680px; margin: 28px auto; }
.paper-detail .paper-links { margin-top: 12px; }
.paper-detail .project-media { width: 100%; max-width: 680px; margin: 0 auto; }
.skip-link { position: absolute; top: -60px; left: 24px; padding: 8px 12px; background: #fff; z-index: 2; }
.skip-link:focus { top: 8px; }

@media (max-width: 1000px) {
  body { padding: 20px 16px; }
  .academic-shell { grid-template-columns: 188px minmax(0, 1fr); }
  .academic-sidebar { padding: 24px 18px; }
  .academic-content { padding: 30px; }
  .paper-row { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .project-row { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .academic-footer { padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 760px) {
  body { padding: 0; background: #fff; }
  .academic-shell { display: block; min-height: 100vh; border: 0; }
  .academic-sidebar { padding: 14px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .academic-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .nav-group { margin: 0; }
  .nav-label { display: none; }
  .academic-nav ul { display: flex; gap: 8px; }
  .academic-nav a { margin: 0; padding: 6px; font-size: 14px; font-weight: 700; }
  .academic-content { padding: 26px 24px; }
  .academic-footer { padding: 16px 24px 24px; }
  h1 { font-size: 28px; }
  .profile-intro { grid-template-columns: 130px minmax(0, 1fr); gap: 22px; }
  .profile-photo { width: 130px; height: 130px; }
  .paper-row { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .project-row { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
}
@media (min-width: 541px) and (max-width: 900px) {
  .education-entry, .experience-entry { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 540px) {
  body { font-size: 15px; }
  h1 { font-size: 26px; }
  .name-zh { font-size: 18px; }
  h2 { font-size: 21px; }
  .profile-intro { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .profile-photo { width: 96px; height: 96px; }
  .profile-intro p { margin-bottom: 5px; }
  .profile-email { font-size: 13px; }
  .email-row { display: block; }
  .email-label { display: block; font-size: 12px; }
  .profile-name { font-size: 16px; }
  .profile-photo { align-self: start; margin-top: 4px; }
  .background-entry { display: flex; flex-direction: column; gap: 5px; margin-bottom: 24px; }
  .background-period { padding-top: 0; }
  .background-info h4 { font-size: 16px; }
  .education-content, .experience-content { gap: 14px; }
  .education-emblem, .company-emblem { flex-basis: 52px; width: 52px; height: 52px; }
  .project-row { display: block; }
  .project-thumbnail { width: 240px; max-width: 100%; margin-bottom: 16px; }
  .project-media-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .project-row--detail .project-info { padding: 18px 16px; }
  .project-row--detail .project-title { font-size: 20px; }
  .project-description, .project-highlights { font-size: 14px; padding-left: 17px; }
  .project-benchmarks th, .project-benchmarks td { padding: 7px 4px; font-size: 12px; }
  .project-row--detail .project-media-grid { margin: 16px 0 0; padding: 8px; }
  .paper-row { display: block; margin-bottom: 34px; }
  .paper-thumbnail { width: 240px; max-width: 100%; margin-bottom: 16px; }
  .paper-title { font-size: 17px; }
  .paper-authors, .paper-venue { font-size: 14px; }
  .paper-links { margin-top: 12px; }
  .paper-detail h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
