:root {
  --page-width: 1100px;
  --text: #3f4752;
  --heading: #18212b;
  --muted: #737c87;
  --link: #167d9d;
  --link-hover: #0d5f79;
  --line: #e4e8eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang="zh-CN"] body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.25;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h1 a {
  color: inherit;
}

h1 a:hover,
h1 a:focus-visible {
  color: var(--link-hover);
}

h2 {
  margin-bottom: 18px;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 650;
}

p {
  margin-bottom: 16px;
}

strong {
  color: #222b35;
  font-weight: 650;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(228, 232, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
}

.site-nav-inner {
  display: flex;
  width: min(var(--page-width), calc(100% - 64px));
  height: 58px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-nav-brand {
  flex: 0 0 auto;
  color: var(--heading);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.site-nav-brand:hover,
.site-nav-brand:focus-visible {
  color: var(--link-hover);
}

.site-nav-menu {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 550;
}

.site-nav-links a {
  color: var(--text);
  white-space: nowrap;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: var(--link);
}

.site-nav-home {
  display: none;
}

.language-switch {
  display: inline-flex;
  min-width: 48px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #cfd8dd;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.language-switch:hover {
  border-color: #a9bdc6;
  color: var(--link);
}

.language-switch:focus-visible {
  border-color: currentColor;
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.site-shell {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.profile {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas:
    "photo heading"
    "photo biography";
  column-gap: 52px;
  row-gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}

.profile-heading {
  grid-area: heading;
  padding-top: 2px;
}

.profile-photo {
  grid-area: photo;
  align-self: center;
  margin: 0;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(24, 33, 43, 0.08);
}

.profile-biography {
  grid-area: biography;
}

.profile-biography h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.profile-biography p {
  max-width: 74ch;
  margin-bottom: 0;
}

.profile-role {
  margin-bottom: 12px;
  color: var(--muted);
}

.profile-email {
  margin-bottom: 14px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
}

.profile-links a:not(:last-child)::after {
  width: 1px;
  height: 0.9em;
  margin: 0 13px;
  background: #cbd1d6;
  content: "";
}

.content-section {
  padding: 38px 0 24px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-link {
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.section-note {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.news-list {
  margin-top: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 13px 0;
}

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

.news-item time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
}

.news-item p {
  margin-bottom: 0;
}

.timeline-list {
  margin-top: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 18px;
  padding: 20px 0;
}

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

.timeline-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 33, 43, 0.05);
}

.timeline-logo img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.timeline-logo--full img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.timeline-item h3 {
  margin-bottom: 2px;
}

.timeline-location,
.timeline-role,
.timeline-date {
  margin-bottom: 0;
}

.timeline-location {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-role {
  margin-top: 8px;
  color: #2d3742;
  font-weight: 600;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.timeline-details {
  margin: 8px 0 0;
  padding-left: 20px;
}

.timeline-details li + li {
  margin-top: 2px;
}

.publication-list {
  margin-top: 14px;
}

.publication {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding: 24px 0;
}

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

.publication-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5f7f8;
}

.publication-media:hover,
.publication-media:focus-visible {
  border-color: #c6d6dc;
  text-decoration: none;
}

.publication-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-body {
  min-width: 0;
}

.publication-authors {
  margin-bottom: 0;
}

.publication-meta {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.publication-links {
  margin: 10px 0 0;
  font-size: 0.93rem;
}

.publication-links a {
  display: inline-block;
  margin-right: 18px;
  font-weight: 550;
}

.muted {
  margin-left: 8px;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin-bottom: 0;
}

.visitor-globe {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  text-align: center;
}

.visitor-globe-frame {
  position: relative;
  display: grid;
  order: 1;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
}

.visitor-globe-frame canvas,
.visitor-globe-frame iframe,
.visitor-globe-frame img {
  width: 112px !important;
  height: 112px !important;
  object-fit: contain;
}

.visitor-globe-label {
  order: 2;
  font-size: 0.72rem;
  line-height: 1.3;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-shell {
    width: min(100% - 36px, 680px);
    padding-top: 30px;
  }

  .site-nav-inner {
    width: 100%;
    height: 52px;
    padding: 0 12px;
    overflow: hidden;
  }

  .site-nav-brand {
    display: none;
  }

  .site-nav-menu {
    width: 100%;
    gap: 10px;
  }

  .site-nav-links {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 3px;
    font-size: 0.8rem;
    scrollbar-width: none;
  }

  .site-nav-links::-webkit-scrollbar {
    display: none;
  }

  .site-nav-links a {
    flex: 0 0 auto;
  }

  .site-nav-home {
    display: inline;
  }

  .language-switch {
    min-width: 44px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .profile {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "photo"
      "biography";
    gap: 26px;
    padding-bottom: 36px;
  }

  .profile-photo {
    justify-self: center;
    width: min(100%, 300px);
  }

  .profile-biography h2 {
    margin-bottom: 10px;
  }

  .content-section {
    padding-top: 30px;
  }

  .publication {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .publication-media {
    width: min(100%, 360px);
  }

  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 7px;
  }

  .timeline-logo {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
  }

  .timeline-logo img {
    width: 32px;
    height: 32px;
  }

  .timeline-logo--full img {
    width: 100%;
    height: 100%;
  }

  .timeline-main {
    grid-column: 2;
    grid-row: 1;
  }

  .news-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-date {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }

  .publication-meta {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .profile-links a:not(:last-child)::after {
    margin: 0 10px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 8px;
  }

  .news-item {
    display: block;
  }

  .news-item time {
    display: block;
    margin-bottom: 3px;
  }
}

@media print {
  body {
    color: #222;
    font-size: 11pt;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  a {
    color: inherit;
  }
}

/* Progressive media: posters and links remain usable without JavaScript. */
.profile-photo picture {
  display: block;
}

.publication-preview {
  min-width: 0;
}

.preview-toggle,
.globe-load {
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--link);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.preview-toggle:focus-visible,
.globe-load:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.preview-fallback,
.globe-fallback {
  font-size: 0.72rem;
}

.globe-status {
  max-width: 150px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.globe-status:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
