/* Additional sections; shared by Jekyll and the standalone HTML preview. */
html[data-language="zh"] [data-lang="en"], html[data-language="en"] [data-lang="zh"], [hidden] { display: none !important; }
.language-toggle { border: 1px solid var(--section-line); background: var(--section-bg); color: var(--section-accent); padding: 6px 12px; border-radius: 7px; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.language-toggle:focus-visible { outline: 3px solid #7cafe2; outline-offset: 4px; }
.nav-brand { margin-right: auto; }
.selected-publications .pub-row { display: flex; align-items: center; gap: 20px; margin: 0; }
.selected-publications .abbr { position: relative; flex: 0 0 27%; width: 27%; padding: 0; }
.selected-publications .abbr img { display: block; max-width: 100%; height: auto; }
.publications.selected-publications ol.bibliography li .abbr { height: auto; }
.publications.selected-publications ol.bibliography li .teaser { width: 100%; height: auto; max-height: 210px; object-fit: contain; margin: 0; }
.selected-publications .col-sm-9 { flex: 1; width: auto; min-width: 0; padding: 0; }
.selected-publications .bibliography > li { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--section-line); }
.selected-publications .title { line-height: 1.6; }
.selected-publications .author, .selected-publications .periodical { line-height: 1.7; margin: 5px 0; }
.selected-publications .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.translated-title { color: var(--section-ink); font-size: .92rem; margin: 0 0 7px; font-weight: 600; }
.news-list > li { margin-bottom: 9px; }
.patent-list { padding-left: 27px; }
.patent-list > li { padding: 0 0 18px 5px; margin: 0 0 18px; border-bottom: 1px solid var(--section-line); }
.patent-citation { line-height: 1.85; overflow-wrap: anywhere; margin-bottom: 8px; }
@media (min-width: 1101px) and (max-width: 1320px) { .nav-menu a { font-size: .75rem; padding: 7px 6px; } .nav-inner { gap: 12px; } }
@media (max-width: 600px) { .selected-publications .pub-row { flex-direction: column; align-items: stretch; } .selected-publications .abbr { width: 100%; flex-basis: auto; } .selected-publications .abbr img { max-height: 210px; object-fit: contain; width: 100%; } }
:root { --section-ink: #253c52; --section-muted: #617183; --section-line: #dce5ed; --section-bg: #f6f9fc; --section-card: #fff; --section-accent: #245a89; }
* { box-sizing: border-box; }
[id] { scroll-margin-top: 95px; }
body { line-height: 1.7; }
.wrapper { width: min(1180px, 100%); }
.wrapper > header { width: 240px; }
.wrapper > section { width: calc(100% - 300px); }
.wrapper > section > h2 { margin: 2.6rem 0 1.1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--section-line); }
.wrapper > section > h2:first-child { margin-top: 0; }
[lang="zh-CN"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
.nav-inner { max-width: 1240px; gap: 20px; }
.nav-brand { white-space: nowrap; }
.nav-menu { gap: 2px; flex-wrap: nowrap; }
.nav-menu a { font-size: .84rem; padding: 8px 9px; white-space: nowrap; }
.nav-toggle:focus-visible, a:focus-visible { outline: 3px solid #7cafe2; outline-offset: 4px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 2000; padding: 10px 18px; background: var(--section-card); color: var(--section-accent); }
.skip-link:focus { top: 10px; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 22px 0 32px; }
.research-card { min-width: 0; border: 1px solid var(--section-line); border-radius: 12px; overflow: hidden; background: var(--section-card); }
.research-card figure { margin: 0; }
.research-card img { display: block; width: 100%; height: auto; }
.research-card figcaption { padding: 9px 15px; border-bottom: 1px solid var(--section-line); color: var(--section-muted); font-size: .78rem; text-align: center; background: var(--section-bg); }
.research-copy { padding: 20px; }
.research-label { font-family: Arial, sans-serif; color: var(--section-accent); font-size: .7rem; font-weight: 600; letter-spacing: .7px; }
.research-copy h3 { font-size: 1.2rem; margin: 5px 0 12px; color: var(--section-ink); }
.research-copy p { font-size: .9rem; line-height: 1.85; margin-bottom: 13px; }
.research-copy .research-keywords { color: var(--section-muted); font-size: .76rem; }
.research-copy > a { font-size: .8rem; }
.section-note { font-size: .84rem; color: var(--section-muted); line-height: 1.8; }
.year-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.year-nav a { border: 1px solid var(--section-line); background: var(--section-bg); border-radius: 6px; padding: 4px 14px; font-family: Arial, sans-serif; font-size: .86rem; }
.publication-year { color: var(--section-accent); margin: 26px 0 12px; font-size: 1.25rem; }
.reference-list { list-style: none; padding-left: 0; counter-reset: unused; margin: 0; }
.reference-list > li { position: relative; padding: 0 0 17px 36px; margin: 0 0 17px; border-bottom: 1px solid var(--section-line); }
.reference-list > li::before { content: "[" attr(data-number) "]"; position: absolute; top: 0; left: 0; font-family: Arial, sans-serif; font-size: .82rem; color: var(--section-muted); }
.reference-text { font-size: .94rem; line-height: 1.8; margin: 0 0 9px; overflow-wrap: anywhere; }
.publication-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; font-size: .76rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.venue-tag { color: var(--section-accent); background: var(--section-bg); padding: 1px 8px; border-radius: 4px; border: 1px solid var(--section-line); font-size: .7rem; font-weight: 600; }
.publication-note { color: var(--section-muted); }
.projects-panel { border-left: 3px solid var(--section-accent); padding: 17px 22px; background: var(--section-bg); border-radius: 0 8px 8px 0; }
.projects-panel p { margin: 0 0 12px; }
.project-types { margin: 0; padding-left: 21px; font-size: .9rem; }
.table-scroll { overflow-x: auto; margin: 16px 0 26px; }
.project-table { width: 100%; border-collapse: collapse; font-size: .84rem; line-height: 1.6; }
.project-table th, .project-table td { border-bottom: 1px solid var(--section-line); padding: 11px 10px; text-align: left; vertical-align: top; }
.project-table th { color: var(--section-ink); background: var(--section-bg); font-weight: 600; white-space: nowrap; }
.project-table td:nth-child(n+2) { white-space: nowrap; }
.software-list { padding-left: 28px; }
.software-list > li { padding: 10px 8px; border-bottom: 1px solid var(--section-line); }
.software-list .registration { display: block; color: var(--section-muted); font-size: .82rem; font-family: ui-monospace, Consolas, monospace; }
.student-list { padding: 0; list-style: none; border-top: 1px solid var(--section-line); }
.student-list li { padding: 15px 4px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--section-line); }
.student-cohort { font-size: .85rem; color: var(--section-muted); }
.student-list a { font-weight: 600; }
.student-list a span { font-size: .8rem; padding-left: 5px; }
.prospective-content { font-size: .94rem; line-height: 1.95; overflow-wrap: anywhere; }
.student-intro { color: var(--section-ink); }
.application-guide { padding-left: 26px; }
.application-guide > li { padding-left: 5px; margin-bottom: 18px; }
.application-guide ul { margin: 12px 0 0; padding-left: 22px; }
.application-guide ul li { margin-bottom: 12px; }
.mail-subject { background: var(--section-bg); border-radius: 4px; padding: 2px 5px; font-size: .85rem; }
.growth-statement { border-left: 3px solid var(--section-accent); padding: 18px 22px; margin: 28px 0 10px; background: var(--section-bg); font-style: normal; color: var(--section-ink); }
.growth-statement p { margin: 0 0 12px; }
.growth-statement p:last-child { margin-bottom: 0; }
@media (max-width: 1100px) {
  .nav-inner { flex-direction: column; align-items: flex-start; padding: 12px 16px; }
  .nav-top-row { width: 100%; }
  .nav-toggle { display: inline-block; }
  .nav-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; padding: 9px 12px; border-radius: 8px; }
}
@media (max-width: 960px) {
  .wrapper > header, .wrapper > section { width: 100%; float: none; position: static; }
  .wrapper > header { padding-right: 0; margin-bottom: 30px; }
  .wrapper > section { padding: 20px 0; }
}
@media (max-width: 600px) {
  body { padding: 82px 20px 30px; }
  .research-grid { grid-template-columns: 1fr; gap: 18px; }
  .research-copy { padding: 18px; }
  .student-list li { gap: 16px; flex-wrap: wrap; }
  .reference-list > li { padding-left: 29px; }
  .projects-panel, .growth-statement { padding: 15px 17px; }
  .project-table { min-width: 760px; }
}
@media (prefers-color-scheme: dark) {
  :root { --section-ink: #d9e5f1; --section-muted: #a4b1c1; --section-line: #344253; --section-bg: #242d39; --section-card: #20212b; --section-accent: #80bcec; --nav-bg: rgba(32,33,43,.96); --nav-border: #344253; --nav-text: #e8edf4; --nav-muted: #bac6d5; --nav-accent: #80bcec; --nav-accent-bg: rgba(128,188,236,.14); }
  .top-nav.scrolled { background: rgba(32,33,43,.98); }
  .nav-toggle .bar { background: #d9e5f1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .top-nav, .nav-menu a { transition: none; }
}
@media print {
  body { padding: 0; }
  .top-nav, .skip-link, .year-nav { display: none; }
  .wrapper { width: 100%; }
  .wrapper > header, .wrapper > section { position: static; width: 100%; }
  .research-card, .reference-list > li { break-inside: avoid; }
}
