/* Selected design A: balanced academic layout. */
:root { --background: #fcfbf8; --text: #293b4a; --muted: #526475; --line: #e0e5e8; }
body { border: 0; background: var(--background); font-size: 16px; line-height: 1.75; }
.academic-page { max-width: 904px; padding: 44px 32px 32px; }
.intro-grid { display: block; padding-bottom: 0; border: 0; }
.intro-grid .profile { display: grid; grid-template-columns: minmax(0, 1fr) auto 144px minmax(0, 1fr); align-items: center; gap: 22px 32px; border: 0; margin: 0 0 28px; padding: 0; }
.intro-grid .profile-photo { grid-column: 3; grid-row: 1; justify-self: center; width: 144px; height: 144px; border-radius: 8px; }
.intro-grid .profile-info { grid-column: 2; grid-row: 1; min-width: 0; text-align: left; }
.intro-grid h1 { font-size: 42px; }
.profile-home, .profile-home:hover { color: inherit; text-decoration: none; }
.profile-home:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 3px; }
.intro-grid .profile-heading { margin-bottom: 0; }
.intro-grid .profile-role { margin-bottom: 4px; }
.intro-grid .profile-email { margin: 0; }
.intro-grid .profile-role, .intro-grid .profile-email, .biography { font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--text); }
.profile-contact { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.intro-grid .profile-links { gap: 8px 18px; margin-top: 0; font-size: 15px; justify-content: center; }
.biography { border: 0; padding: 0; font-size: 17px; line-height: 1.6; }
.biography p { margin: 0 0 14px; }
.biography p:last-child { margin-bottom: 0; }
.biography ul { margin: 0 0 12px; padding-left: 19px; }
.biography li { margin: 3px 0; }
.research-focus { margin: 24px 0 20px; padding: 18px 22px; background: #eef3f7; border-left: 3px solid #7ba0bb; border-radius: 0 8px 8px 0; }
.research-focus p { margin-bottom: 10px; }
.research-focus ul { margin-bottom: 0; }
.collaboration-note { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.academic-content { padding-top: 32px; }
.profile { border: 0; padding: 0 0 30px; margin: 0 0 28px; gap: 32px; background: transparent; border-radius: 0; }
.profile-photo { width: 132px; height: 132px; outline: none; border: 0; box-shadow: none; }
h1 { font: 400 40px/1.15 Georgia, serif; color: #163d59; letter-spacing: -1.2px; background: none; }
.profile-heading { margin-bottom: 12px; }
.profile-links { gap: 8px 17px; margin-top: 16px; font-size: 13px; }
.profile-links i { font-size: 18px; }
.academic-content > p { margin-bottom: 14px; }
.academic-content > ul:not(.education-list) { margin: 10px 0 18px; }
.academic-content > ul:not(.education-list) li { margin: 3px 0; }
h2 { font: 600 26px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; margin: 26px 0 14px; letter-spacing: -.4px; }
h2::after { display: none; }
.publication-note { margin: 0 0 24px; font-size: 12px; color: #617180; }
.academic-content h3 { font: 600 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: 0; color: #176190; margin: 24px 0 20px; padding-bottom: 0; border: 0; scroll-margin-top: 20px; }
.publication-grid { min-width: 0; }
.paper-box { grid-template-columns: 250px minmax(0,1fr); gap: 26px; align-items: center; padding: 14px 18px; margin: 0 0 12px; border: 0; border-radius: 8px; background: #f6f8fa; }
.paper-box:nth-of-type(odd) { background: #e7eff5; }
.paper-box-image { width: 100%; max-width: none; padding: 0; align-self: center; }
.paper-box-image > div { display: block; position: relative; width: fit-content; max-width: 100%; margin: 0 auto; padding: 0; }
.paper-box-image .badge { display: inline-block; position: absolute; z-index: 1; top: 0; left: 0; transform: translate(calc(-.75em - 3px), -50%); max-width: 100%; padding: 3px 8px; border: 0; border-radius: 3px; background: #176190; color: #fff; font-size: 11px; line-height: 1.5; font-weight: 600; }
.paper-box-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 185px; margin: 0 auto; object-fit: contain; background: transparent; border-radius: 0; border: 0; }
.paper-box-text { font-size: 16px; line-height: 1.6; color: #4a5b69; }
.paper-box-text > p { margin: 0 0 7px; }
.paper-box-text > p:first-child { font: 600 18px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: -.15px; margin-bottom: 8px; }
.paper-box-text > p:first-child a { color: #213c51; }
.paper-box-text > p:first-child a:hover { color: var(--blue); }
.paper-box-text > p:nth-child(3) { font-size: 14px; color: #567086; }
.paper-box-text strong { color: #1c3447; font-weight: 650; }
.paper-links { gap: 14px; margin-top: 8px; font-size: 15px; line-height: 1.5; }
.education-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 24px; padding: 18px 0; }
.education-list strong, .experience-list strong { font-size: 16px; font-weight: 600; line-height: 1.75; color: #213c51; }
.education-list .degree { display: block; font-size: 15px; line-height: 1.75; margin-top: 3px; }
.school-logo { width: 88px; height: 60px; justify-self: center; }
.academic-content .education-list, .academic-content .experience-list { margin: 10px 0 18px; }
.academic-content .education-list li, .academic-content .experience-list li { margin: 0; }
.education-list li:last-child { border-bottom: 1px solid var(--line); }
.academic-footer { margin-top: 28px; }
.experience-list, .awards-list { list-style: none; padding: 0; margin: 0; }
.experience-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.experience-logo { width: 88px; height: 60px; object-fit: contain; justify-self: center; }
.experience-logo[src$="/alaya.jpg"],
.experience-logo[src$="/tsinghua.png"],
.experience-logo[src$="/tenecnt.png"] { mix-blend-mode: multiply; }
.experience-logo[src$="/tenecnt.png"] { filter: brightness(1.04); }
.experience-list strong, .awards-list strong { font-weight: 600; color: #213c51; }
.experience-list span, .awards-list span { display: block; color: var(--muted); margin-top: 3px; font-size: 15px; }
.awards-list span { display: inline; margin-top: 0; }
.awards-list span::before { content: ", "; }
.experience-list time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.awards-list li { padding: 4px 18px; margin: 0 0 3px; border-radius: 6px; background: transparent; line-height: 1.6; }
.history-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 30px; }
.history-column { min-width: 0; }
.history-column h2 { margin-top: 0; }
.history-columns .education-list li, .history-columns .experience-list li { grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 3px 14px; padding: 16px 0; }
.history-columns .school-logo, .history-columns .experience-logo { width: 64px; height: 50px; }
.history-columns .school-logo { width: 76px; height: 60px; }
.history-columns .experience-logo { grid-row: auto; }
.history-columns .experience-list time { grid-column: 2; }
.history-columns .education-list strong, .history-columns .experience-list strong { line-height: 1.5; }
.history-columns .degree, .history-columns .experience-list span { line-height: 1.6; }
@media screen and (min-width:761px) {
  .experience-column { display: flex; flex-direction: column; min-height: 0; }
  .experience-column h2 { flex: none; }
  .experience-column .experience-list { height: 0; min-height: 0; flex: 1 1 0px; contain: size; margin-top: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b4c7d5 transparent; padding-right: 8px; }
}
.experience-list:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
@media(max-width:760px) { .history-columns { grid-template-columns: 1fr; gap: 28px; } }
.section-navigation { position: fixed; left: calc(50% + 462px); top: 160px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid #d9e4ec; padding-left: 10px; z-index: 5; }
.section-navigation a { padding: 7px 12px; font-size: 14px; color: var(--muted); border-radius: 5px; }
.section-navigation a[aria-current] { color: #176190; background: #e7eff5; font-weight: 600; }
#about-me, #selected-publications, #experience, #awards { scroll-margin-top: 78px; }
@media(max-width:1220px) {
  .section-navigation { position: sticky; left: auto; top: 0; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fcfbf8f5; }
}
@media(max-width:580px) {
  .experience-list li { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; }
  .experience-logo { width: 64px; height: 50px; }
  .experience-list time { grid-column: 2; }
  .section-navigation a { font-size: 13px; padding: 6px 9px; }
}
@media print { .section-navigation { display: none; } }
@media(min-width:1221px) and (hover:hover) and (pointer:fine) {
  .section-navigation { width: 38px; padding: 6px; border: 0; border-radius: 10px; transition: width .2s ease, background .2s ease; }
  .section-navigation:hover, .section-navigation:has(a:focus-visible) { width: 144px; background: #fcfbf8f5; }
  .section-navigation a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px; overflow: hidden; white-space: nowrap; }
  .section-navigation a::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #b1c1cd; }
  .section-navigation a[aria-current]::before { background: #176190; }
  .section-navigation a span { opacity: 0; transition: opacity .15s ease; }
  .section-navigation:hover a span, .section-navigation:has(a:focus-visible) a span { opacity: 1; }
  .section-navigation a:focus-visible { outline: 2px solid #176190; outline-offset: 1px; }
}
@media(prefers-reduced-motion:reduce) { .section-navigation, .section-navigation a span { transition: none; } }
/* A: one stable text column, generous images, no competing ornaments. */
.profile { border-bottom: 1px solid #e0e5e8; }
h2 { display: flex; align-items: center; gap: 14px; }
h2::before { display: none; }
.paper-box:last-child { border-bottom: 0; }
.publication-tabs { display: flex; gap: 8px; padding: 6px; margin: 20px 0; background: #e7edf2; border-radius: 10px; scroll-margin-top: 20px; }
.publication-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 7px; padding: 13px 14px; background: transparent; color: #405a6f; font: 600 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.publication-tabs button:hover { background: #dbe6ee; }
.publication-tabs button[aria-selected="true"] { background: #176190; color: white; box-shadow: 0 2px 5px #163d591a; }
.publication-tabs button:focus-visible { outline: 3px solid #d8af32; outline-offset: 3px; }
.publication-count { font-size: 12px; padding: 2px 7px; border-radius: 12px; background: #ffffff30; }
.publication-panel[hidden] { display: none; }
.publication-panel:not([hidden]) { animation: publication-reveal .22s ease-out; }
@keyframes publication-reveal { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .publication-panel:not([hidden]) { animation: none; } .publication-tabs button { transition: none; } }
@media(max-width:580px) { .publication-tabs { flex-direction: column; } .publication-tabs button { justify-content: flex-start; } }
@media print { .publication-tabs { display: none; } .publication-panel[hidden] { display: block; } }

@media(max-width:800px) {
  .biography { border-left: 0; padding-left: 0; }
  .academic-page { padding: 36px 24px; }
  .paper-box { grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
}
@media(max-width:580px) {
  .academic-page { padding: 28px 20px; }
  .intro-grid .profile { grid-template-columns: minmax(0, 1fr) auto 104px minmax(0, 1fr); gap: 16px 8px; }
  .intro-grid .profile-photo { width: 104px; height: 104px; align-self: center; }
  .intro-grid h1 { font-size: 32px; }
  .profile { flex-direction: column; align-items: flex-start; gap: 22px; text-align: left; }
  .profile-links { justify-content: flex-start; }
  h1 { font-size: 36px; }
  .paper-box { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
  .paper-box-image { width: 100%; max-width: 360px; }
  .paper-box-image img { max-height: 220px; }
  .education-list li { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; }
  .school-logo { width: 64px; height: 50px; }
}
@media print {
  body { background: #fff; }
  .academic-page { max-width: none; padding: 0; }
  .paper-box { break-inside: avoid; }
}
