:root {
  --beihang-blue: #005bac;
  --deep-blue: #123958;
  --blue-ink: #005bac;
  --paper: #fff;
  --canvas: #e3e7ea;
  --ice: #f5f6f7;
  --blue-tint: #eaf0f5;
  --ink: #000;
  --muted: #454a50;
  --line: #dadee2;
  --font: Arial, Helvetica, FreeSans, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --site-max: 1760px;
  --page-gutter: 20px;
  --radius: 0px;
  --radius-small: 2px;
  --header-height: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], [data-active="false"] { display: none !important; }

html {
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 12px/18px var(--font);
}

h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
h1, h2 { font-size: 26px; font-weight: 500; line-height: 30px; }
h3 { font-size: 22px; font-weight: 500; line-height: 26px; }
h4 { font-size: 16px; font-weight: 600; line-height: 18px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: 0.2em; }
a:hover { text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #2676c7; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(calc(-100% - 20px));
}

.skip-link:focus { transform: none; }

.site-shell {
  width: min(var(--site-max), 100%);
  margin-inline: auto;
  background: var(--paper);
}

.site-header {
  position: relative;
  z-index: 3;
  background: var(--paper);
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 30px;
  padding-inline: var(--page-gutter);
  background: var(--canvas);
  color: #535f6b;
  font-size: 11px;
  line-height: 15px;
}

.site-university-mobile { display: none; }
.site-header-inner { padding-inline: var(--page-gutter); }
.site-identity { display: flex; align-items: center; gap: 20px; min-height: 115px; border-bottom: 3px solid var(--beihang-blue); }
.site-identity a { color: var(--ink); text-decoration: none; }
.site-university { flex: 0 1 265px; min-width: 185px; }
.site-laboratory { max-width: 335px; padding-inline-start: 20px; border-inline-start: 1px solid #a3adb7; font-size: 19px; font-weight: 700; line-height: 1.25; }

.site-brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(210px, 26vw, 255px);
  margin-inline-start: auto;
}

.site-brand img { width: 100%; }

.site-layout {
  display: grid;
  grid-template-areas: "navigation content" "navigation footer";
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 20px;
  padding: 10px var(--page-gutter) 32px;
}

.site-layout > main { grid-area: content; min-width: 0; }
.site-nav { grid-area: navigation; align-self: start; }

.site-nav ul {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 5px 5px 5px 11px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.3px;
  line-height: 14.4px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-nav a:hover { background: var(--canvas); }
.site-nav a[aria-current] { font-weight: 700; }
.site-nav a:focus-visible { outline-offset: -3px; }

.site-menu-icon { display: block; }
.site-menu-line { transform-origin: 12px 12px; }
.site-menu-toggle[aria-expanded="true"] .site-menu-line--top { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.site-menu-toggle[aria-expanded="true"] .site-menu-line--middle { opacity: 0; }
.site-menu-toggle[aria-expanded="true"] .site-menu-line--bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }

.language-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 0 3px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}

.language-toggle:hover { text-decoration: underline; }

.language-picker { position: relative; width: fit-content; }
.language-chevron { flex: none; }
.language-toggle[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }

.language-menu {
  position: absolute;
  z-index: 1;
  top: 100%;
  inset-inline-end: 0;
  width: min(220px, calc(100vw - 28px));
  max-height: min(325px, 58vh);
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 22px #102b461c;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 39px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: none;
  text-align: start;
  font-size: 0.875rem;
}

.language-option > span:first-child { margin-inline-end: auto; }
.language-option:hover, .language-option[aria-checked="true"] { background: var(--blue-tint); }
.language-menu .language-option:focus-visible { outline-color: var(--beihang-blue); outline-offset: -2px; }
.language-option img { visibility: hidden; }
.language-option[aria-checked="true"] img { visibility: visible; }
.language-code { color: var(--muted); font-size: 0.7rem; }
.language-separator { height: 1px; margin: 4px; background: var(--line); }
.language-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.section { padding-block: 10px 30px; }

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.lead { line-height: 20px; }
.meta, figcaption { color: var(--muted); font-size: 12px; }
.num, time, .num-col { font-variant-numeric: tabular-nums; }

.masthead { display: flow-root; padding-top: 4px; }

.masthead h1 {
  margin-bottom: 10px;
  color: var(--beihang-blue);
}

.masthead p { line-height: 20px; text-align: justify; }
.masthead p + p { margin-top: 18px; }

.image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: zoom-in;
}

.image-open[data-profile] { cursor: pointer; }
.image-open:hover { box-shadow: 0 0 0 1px var(--beihang-blue); }
.masthead-photo { float: right; width: min(49%, 340px); margin: 10px 10px 0 26px; }
.masthead-photo img { width: 100%; border-radius: 4px; }
.masthead-photo figcaption { margin-top: 4px; text-align: right; }

.home-highlights {
  display: grid;
  grid-template-columns: minmax(0, 17fr) minmax(0, 16fr);
  gap: clamp(22px, 4vw, 40px);
  margin-top: 38px;
}

.home-highlights h2 { margin-bottom: 15px; font-size: 22px; line-height: 26px; }
.home-news-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -6px 0 12px; }
.home-news, .home-demo { border-top: 1px solid #ebebeb; }
.home-news { padding-block: 12px; }
.home-news-date { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.home-news h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.home-exchange button { padding: 0; border: 0; background: none; font: inherit; text-align: start; }
.home-exchange button:hover { color: var(--beihang-blue); text-decoration: underline; }
.home-publication .meta { margin-top: 3px; color: var(--muted); text-align: start; }
.home-publication-summary { margin-top: 6px; color: #222; line-height: 1.5; }
.home-news-archive > summary, .home-news-year > summary {
  padding-block: 10px;
  border-top: 1px solid var(--line);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.home-news-archive-entries { padding-inline-start: 14px; }
.home-demo { padding-block: 15px; }
.home-demo figcaption { margin-top: 8px; color: #222; }
.home-demo .demo-play {
  inset: 50% auto auto 50%;
  width: 48px;
  height: 34px;
  border-radius: 4px;
  background: #000b;
  transform: translate(-50%, -50%);
}
.home-demo .demo-trigger:hover .demo-play { background: var(--beihang-blue); }

.lab-research { margin-bottom: 26px; }

.directions-frame {
  --frame-gutter: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 2px solid var(--beihang-blue);
  border-radius: var(--radius);
  background: var(--paper);
}

.directions-frame .section-head {
  margin: 0;
  padding: 12px var(--frame-gutter) 14px;
  border-bottom: 1px solid var(--line);
}

.direction-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 9px;
  overflow-x: auto;
}

.direction-list:focus-visible { outline-offset: -3px; }

.direction-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  min-width: 0;
  align-items: start;
  padding: var(--frame-gutter);
  border-inline-end: 1px solid var(--line);
}

.direction-card:last-child { border-inline-end: 0; }
.direction-card h4 { font-size: 16px; font-weight: 700; line-height: 20px; overflow-wrap: anywhere; }
.direction-topic { display: block; margin-top: 4px; color: var(--muted); font: 400 13px/17px var(--font); }
.direction-summary, .direction-description, .direction-points { font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }
.direction-summary, .direction-description { color: var(--muted); }

.direction-details { min-width: 0; border-top: 1px solid var(--line); }
.direction-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding-block: 6px;
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.direction-details summary::-webkit-details-marker { display: none; }
.direction-details summary::after { content: ""; flex: 0 0 14px; height: 14px; background: url("icons/chevron-down.svg") center / contain no-repeat; }
.direction-details summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.direction-details[open] summary::after { transform: rotate(180deg); }

.direction-body { display: grid; gap: 10px; padding-top: 3px; }
.direction-points { margin: 0; padding-inline-start: 1.15em; }
.direction-points li + li { margin-top: 5px; }
.mentor-list, .partner-paper-list { margin: 12px 0 0; padding-inline-start: 1.25em; }
.mentor-list li, .partner-paper-list li { margin-top: 5px; }
.direction-points li::marker, .mentor-list li::marker { color: var(--beihang-blue); }
.direction-figure { min-width: 0; }
.direction-figure .image-open { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ice); }
.direction-figure img { width: 100%; height: 100%; object-fit: contain; }
.direction-figure figcaption { padding-block: 5px 6px; border-bottom: 1px solid var(--line); line-height: 17px; }
.direction-tags { display: flex; flex-wrap: wrap; gap: 3px 12px; }
.direction-tags { padding-top: 9px; border-top: 1px solid var(--line); }
.tag { color: var(--blue-ink); font-size: 0.81rem; font-weight: 500; }

.image-card, .platform-figure, .demo-card, .partner-card,
.exchange-list, .paper-list, .patent-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.image-card, .platform-figure, .demo-card, .exchange-list { overflow: hidden; }
.image-card .image-open:focus-visible, .platform-figure .image-open:focus-visible,
.demo-trigger:focus-visible, .platform-cover:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }

.team-tabs, .paper-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(10px, 2vw, 20px);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.team-tab, .paper-tab {
  flex: 0 1 auto;
  min-width: 0;
  margin-bottom: -1px;
  padding: 5px 2px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.team-tab:hover, .paper-tab:hover { color: var(--deep-blue); }
.team-tab[aria-selected="true"], .paper-tab[aria-selected="true"] { border-color: var(--beihang-blue); color: var(--blue-ink); font-weight: 600; }
.team-tab:focus-visible, .paper-tab:focus-visible { outline-offset: -3px; }

.team-panel { padding-block: 12px 20px; border-bottom: 1px solid var(--line); }

.mentor-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mentor-card > .image-open { grid-row: 1; }
.mentor-card > .image-open img { width: 100%; }
.mentor-card h3 { font-size: 16px; font-weight: 700; line-height: 20px; }
.mentor-card .lead { margin-top: 4px; }
.mentor-list { margin-top: 6px; }
.team-panel-heading { margin-bottom: 18px; }
.team-student-groups { display: grid; gap: 22px; }
.team-student-group h3 { margin-bottom: 10px; }
.team-alumni-group + .team-alumni-group { margin-top: 20px; }
.team-alumni-group > h4 { margin-bottom: 6px; }

.team-member-grid, .team-alumni-list, .team-faculty-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-member, .team-alumnus, .team-faculty-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.team-member-portrait {
  display: grid;
  flex: 0 0 47px;
  place-items: center;
  width: 47px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: var(--blue-tint);
}

.team-member-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.team-member-portrait.is-placeholder img { width: 25px; height: 25px; opacity: 0.68; }
.portrait-inset { transform: scale(1.35); transform-origin: 50% 25%; }
:is(.team-alumnus, .team-faculty-member) .team-member-portrait { flex-basis: 59px; width: 59px; }
.team-member h4, .team-alumnus h5, .team-faculty-member h4 { margin: 0; font-size: 14px; font-weight: 700; line-height: 18px; }
.team-member > div { min-width: 0; }
.team-enrollment { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 18px; }
.team-alumnus p, .team-faculty-member p { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 18px; }
.team-affiliation { color: var(--ink); }
.team-photos { margin-top: 22px; }
.team-photos h3 { margin-bottom: 14px; }
.team-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team-photo-grid .team-photo-bottom { object-position: center bottom; }

.profile-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px 34px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}

.profile-copy p + p { margin-top: 8px; }
.platform-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-figure img { width: 100%; }
.platform-figure figcaption { padding: 16px; background: var(--ice); }
.platform-figure figcaption h4 { margin: 4px 0 6px; }
.platform-figure figcaption p, .caption-kicker { color: var(--muted); }
.caption-kicker { display: block; font-size: 0.8rem; }

.paper-tab-count { display: inline-block; margin-inline-start: 4px; font-size: 0.78rem; font-weight: 500; }
.paper-space-intro { padding-block: 7px 12px; }
.paper-space-intro p { margin-top: 7px; }

.output-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 24px; }
.output-section-title { margin-bottom: 12px; scroll-margin-top: 12px; }
.research-outputs { margin-top: 32px; }
.output-chapters-title { margin: 18px 0 8px; }
.output-source { margin-bottom: 12px; }
.output-list { border-top: 1px solid var(--line); }
.output-row .output-title { font: 700 14px/19px var(--font); }
.output-list .output-row { grid-template-columns: 3rem minmax(0, 1fr); padding-inline: 0; }
.output-row .output-original { margin-top: 4px; }
.patent-list { max-height: 33rem; overflow: auto; padding-inline: 12px; }
.patent-list .output-row { grid-template-columns: max-content minmax(0, 1fr); padding-inline: 0; }
.patent-list .output-news-meta { margin-top: 4px; }
.patent-list .patent-credit { margin-top: 6px; color: var(--muted); }
.patent-record-certificate { margin-top: 5px; }

.paper-subhead, .demo-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 30px 0 14px;
}

.paper-subhead p, .demo-heading span { color: var(--muted); font-size: 0.9rem; }
.paper-list { max-height: 33rem; overflow: auto; }

.paper-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(108px, 17%);
  align-items: baseline;
  gap: 5px 15px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.paper-row:last-child { border-bottom: 0; }
.paper-row h3 { font: 700 14px/19px var(--font); }
.paper-row p { margin-top: 3px; color: var(--muted); }
.paper-row > .num { font-weight: 600; }
.ccf-badge { color: var(--blue-ink); font-weight: 600; }

.paper-gallery, .resource-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.image-card { min-width: 0; }
.image-card figcaption { padding: 10px 14px; }
.image-card figcaption h4 { margin: 4px 0; }
.image-card figcaption p { margin-top: 4px; color: var(--muted); }
.paper-gallery img { width: 100%; aspect-ratio: 16 / 10; padding: 8px; object-fit: contain; background: var(--ice); }

.patent-cert { width: auto; color: var(--blue-ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 0.18em; }
.patent-cert:hover { box-shadow: none; text-decoration-thickness: 2px; }

.exchange-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 13px; }
.exchange-links a { font-size: 0.92rem; font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.demo-card { min-width: 0; }
.demo-card h4 { padding: 14px 14px 0; }
.demo-card > p { padding: 5px 14px 14px; color: var(--muted); font-size: 0.875rem; }
.demo-trigger, .platform-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--deep-blue); }
.demo-trigger:hover .demo-play { background: var(--beihang-blue); }
.demo-poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.demo-play, .demo-duration { position: absolute; background: #002b54e8; color: var(--paper); }
.demo-play { display: grid; place-items: center; inset: auto auto 9px 9px; width: 34px; height: 34px; border-radius: 50%; }
.demo-play img { filter: brightness(0) invert(1); }
.demo-duration { inset: auto 9px 9px auto; padding: 2px 6px; border-radius: var(--radius-small); font-size: 0.75rem; }
.platform-stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
.platform-stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.resource-layout { display: grid; gap: 24px; }
.resource-layout .lead { margin-top: 9px; }
.resource-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.collaboration-panel { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.collaboration-head { display: grid; gap: 9px; margin-bottom: 22px; }
.collaboration-head > p { max-width: 76ch; color: var(--muted); }
.collaboration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-card { display: flex; flex-direction: column; gap: 12px; padding: 13px; }
.partner-photo, .partner-logo-stack { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-small); }
.partner-photo { object-fit: cover; }
.partner-logo-stack { display: grid; align-content: center; justify-items: center; gap: 7px; padding: 9px; background: var(--ice); }
.partner-logo img { width: auto; max-height: clamp(18px, 2.2vw, 32px); object-fit: contain; }
.partner-card p { margin-top: 6px; }
.partner-card p, .partner-paper-list { font-size: 0.875rem; }
.partner-meta { margin-top: auto; color: var(--muted); font-size: 0.8rem; }

.exchange-card + .exchange-card { border-top: 1px solid var(--line); }

.exchange-card > button {
  display: grid;
  grid-template-columns: minmax(100px, 21%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  width: 100%;
  padding: 14px 20px;
  border: 0;
  background: none;
  text-align: start;
}

.exchange-card > button:hover { background: var(--ice); }
.exchange-card > button:focus-visible { outline-offset: -3px; }
.exchange-card [data-exchange-anchor] { scroll-margin-top: 12px; }
.exchange-cover { width: 100%; aspect-ratio: 5 / 3; border-radius: var(--radius-small); object-fit: cover; }
.exchange-cover--aaai { object-position: center 30%; }
.exchange-cover--acl { object-position: center top; }
.exchange-card-copy { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; column-gap: 14px; }
.exchange-brand { grid-column: 2; grid-row: 1 / span 3; justify-self: center; }
.exchange-brand img { width: auto; max-height: 50px; object-fit: contain; }
.exchange-brand--icde img { height: 50px; aspect-ratio: 620 / 374; object-fit: cover; object-position: left center; }
.exchange-card-meta, .exchange-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 0.82rem; }
.exchange-card-title { grid-column: 1; color: var(--blue-ink); font-size: clamp(1.05rem, 2vw, 1.36rem); font-weight: 600; line-height: 1.32; }
.exchange-card-topic { grid-column: 1; color: var(--muted); font-size: 0.91rem; }

.exchange-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
:is(.exchange-photo, .exchange-photo-grid) .image-open { overflow: hidden; border-radius: var(--radius-small); }
.exchange-photo img { width: 100%; }
.exchange-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exchange-photo-grid .exchange-photo--venue { object-position: center bottom; }

.pagefoot { grid-area: footer; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.footer-inner strong { color: var(--deep-blue); }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(990px, calc(100% - 32px)); max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 18px 60px #031a3542; }
dialog::backdrop { background: #031a35b8; }
.dialog-head, .exchange-dialog-head, .demo-dialog-head { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--ice); }
.dialog-head h2, .exchange-dialog-head h2, .demo-dialog-head h2 { font-size: clamp(1.05rem, 2.6vw, 1.55rem); }
.exchange-icon, .lightbox-close, .demo-close { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); }
.exchange-icon:hover, .lightbox-close:hover, .demo-close:hover { background: var(--blue-tint); }
.exchange-controls { display: flex; gap: 5px; }

.lightbox-body { padding: 16px; }
.lightbox-body > img, .exchange-zoom-image { width: auto; max-height: 67dvh; margin-inline: auto; object-fit: contain; }
.lightbox-details { margin-top: 13px; }
.lightbox-description { white-space: pre-line; }
.lightbox-description p { white-space: normal; }
.lightbox-description p + p { margin-top: 0.85em; }
.lightbox-email, .lightbox-original { display: inline-block; margin-top: 8px; overflow-wrap: anywhere; }
.lightbox--profile { max-width: 690px; }
.lightbox--profile .lightbox-body { display: grid; grid-template-columns: minmax(100px, 140px) minmax(0, 1fr); align-items: start; gap: 20px; }
.lightbox--profile .lightbox-body > img { width: 100%; }
.lightbox--profile .lightbox-details { margin-top: 0; }

.exchange-dialog-body { padding: 16px; }
.exchange-entry { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: 20px; }
.exchange-main, .exchange-thumb { width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-small); background: var(--ice); }
.exchange-main { cursor: zoom-in; }
.exchange-main img { width: 100%; max-height: 51dvh; object-fit: contain; }
.exchange-gallery figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); }
.exchange-count { white-space: nowrap; }
.exchange-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.exchange-thumb { width: 62px; padding: 2px; border: 2px solid transparent; }
.exchange-thumb[aria-pressed="true"] { border-color: var(--beihang-blue); }
.exchange-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exchange-copy > p, .exchange-topic, .exchange-papers { margin-top: 10px; }
.exchange-topic, .exchange-papers { padding: 10px; border-radius: var(--radius-small); background: var(--ice); }
.exchange-topic dd, .exchange-papers dd { margin: 0; overflow-wrap: anywhere; }
.exchange-topic dt, .exchange-papers dt { color: var(--blue-ink); font-weight: 700; }
.exchange-zoom-image { padding: 10px; }
.exchange-zoom-count { padding-bottom: 9px; color: var(--muted); text-align: center; }

.demo-dialog-body { padding: 16px; }
.demo-dialog.has-playlist .demo-dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 34%); align-items: start; gap: 12px; }
.demo-player video { display: block; width: 100%; max-height: 61dvh; aspect-ratio: 16 / 9; border-radius: var(--radius-small); background: #081c31; }
.demo-dialog-foot { margin-top: 11px; }
.demo-dialog-foot h3 { margin-bottom: 5px; }
.demo-status, .demo-error { margin-top: 8px; color: var(--muted); }
.demo-playlist-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.demo-choice { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 7px; align-items: center; width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--ice); text-align: start; }
.demo-choice:hover, .demo-choice[aria-pressed="true"] { border-color: var(--beihang-blue); background: var(--blue-tint); }
.demo-choice img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.demo-choice-copy { display: grid; gap: 2px; font-size: 0.78rem; line-height: 1.35; }
.demo-choice-copy:only-child { grid-column: 1 / -1; }
.demo-choice-title { font-weight: 750; }
.demo-choice-summary, .demo-choice-duration { color: var(--muted); }

@media (min-width: 1000px) {
  :root { --page-gutter: clamp(24px, 2vw, 36px); }
  body { font-size: 14px; line-height: 22px; }
  .site-shell { width: min(var(--site-max), calc(100% - 48px)); }
  .site-layout { grid-template-columns: 200px minmax(0, 1fr); column-gap: clamp(24px, 2.5vw, 40px); padding-top: 18px; }
  .site-nav a { padding: 8px 12px; font-size: 14px; line-height: 20px; }
  .masthead h1 { font-size: 32px; line-height: 38px; }
  .masthead-photo { width: min(42%, 400px); margin-inline: 32px 0; }
  .masthead p { font-size: 16px; line-height: 26px; text-align: start; }
  .home-highlights { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

@media (max-width: 800px) {
  :root { --header-height: 94px; }
  .site-header { position: sticky; top: 0; }
  .site-topbar { justify-content: space-between; min-height: 38px; padding-block: 4px; }
  .site-university-mobile { display: block; width: 148px; }
  .site-header-inner { border-bottom: 2px solid var(--beihang-blue); }
  .site-identity { min-height: 60px; gap: 10px; border-bottom: 0; }
  .site-university, .site-laboratory { display: none; }
  .site-brand { width: clamp(144px, 47vw, 180px); margin-inline-start: 0; }
  .site-menu-toggle { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-inline-start: auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); }
  .site-menu-toggle:hover, .site-menu-toggle[aria-expanded="true"] { background: var(--ice); }
  .site-layout { display: block; }
  .site-nav { margin-bottom: 20px; }
  .site-nav ul { display: grid; grid-template-columns: minmax(0, 1fr); }
  .site-nav a { padding-block: 11px; }
  .site-shell:has(.site-menu-toggle:not([hidden])) .site-nav {
    position: fixed;
    z-index: 2;
    inset: var(--header-height) 0 auto;
    max-height: calc(100dvh - var(--header-height));
    margin: 0;
    padding: 10px var(--page-gutter) 14px;
    background: var(--paper);
    box-shadow: 0 8px 16px #102b461c;
  }
  .masthead p { text-align: start; }
}

@media (max-width: 720px) {
  .direction-list { grid-template-columns: repeat(3, clamp(231px, 78vw, 330px)); scroll-snap-type: x proximity; }
  .direction-card { scroll-snap-align: start; }
}

@media (max-width: 680px) {
  .profile-block, .exchange-entry { grid-template-columns: minmax(0, 1fr); }
  .team-tabs, .paper-tabs { column-gap: 8px; }
  .team-tab { flex: 1 1 calc(50% - 4px); }
  .paper-tab { flex: 0 1 auto; }
  .team-photo-grid, .paper-gallery, .resource-gallery, .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-block { gap: 12px; }
  .paper-row { grid-template-columns: max-content minmax(0, 1fr); gap: 4px 13px; }
  .paper-row > div { grid-column: 1 / -1; grid-row: 2; }
  .paper-row > .meta:last-child { grid-column: 2; grid-row: 1; }
  .output-row > div { grid-column: auto; grid-row: auto; }
  .collaboration-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-photo, .partner-logo-stack { aspect-ratio: 16 / 8; }
  .partner-logo img { max-height: 31px; }
  .exchange-card > button { grid-template-columns: minmax(70px, 28%) minmax(0, 1fr); gap: 10px; padding: 9px; }
  .exchange-card-copy { grid-template-columns: minmax(0, 1fr); }
  .exchange-brand { grid-column: 1; grid-row: auto; justify-self: start; }
  .exchange-brand img { max-width: 74px; max-height: 22px; }
  .exchange-brand--icde img { height: 22px; }
  .exchange-card-meta { margin-top: 4px; gap: 0 8px; }
  .demo-dialog.has-playlist .demo-dialog-body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --page-gutter: 16px; }
  body { font-size: 14px; line-height: 21px; }
  .masthead-photo { float: none; width: 100%; max-width: 420px; margin: 0 0 15px; }
  .masthead p { line-height: 21px; }
  .home-highlights { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 25px; }
  .patent-list .output-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .platform-gallery, .paper-gallery { grid-template-columns: minmax(0, 1fr); }
  .team-alumni-list, .team-faculty-list { grid-template-columns: minmax(0, 1fr); }
  .team-member { gap: 7px; padding: 6px; }
  .team-member .team-member-portrait { flex-basis: 36px; width: 36px; }
  .lightbox--profile .lightbox-body { grid-template-columns: minmax(0, 1fr); }
  .lightbox--profile .lightbox-body > img { width: 104px; margin-inline: 0; }
}
