:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-soft: #f3f7f6;
  --text: #202124;
  --muted: #5d646b;
  --line: #dce3e1;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-warm: #b4234a;
  --shadow: 0 18px 45px rgba(35, 41, 46, 0.08);
  --radius: 8px;
  --content: 980px;
  --nav-height: 64px;
  --icon-size: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  display: none;
}

.site-header {
  background: rgba(251, 251, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  height: var(--nav-height);
  max-width: var(--content);
  min-height: var(--nav-height);
  padding: 0 24px;
  width: 100%;
}

.brand {
  align-items: center;
  display: inline-flex;
  height: var(--icon-size);
  width: var(--icon-size);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  height: var(--icon-size);
  object-fit: contain;
  width: var(--icon-size);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.page-shell {
  margin: 0 auto;
  max-width: var(--content);
  padding: 72px 24px 64px;
  width: 100%;
}

.intro {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding-bottom: 58px;
}

.intro-copy,
.publication-copy,
.section-heading,
.contact-section > div {
  min-width: 0;
}

.portrait-wrap {
  position: static;
}

.portrait {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 220px;
}

.portrait-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 16px;
}

.portrait-meta p {
  margin: 0;
}

.portrait-meta p + p {
  color: var(--accent-warm);
  margin-top: 4px;
}

.portrait-meta .research-fields {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.eyebrow,
.highlight-type,
.venue,
.timeline span,
.note-list time {
  color: var(--accent-warm);
  font-size: 0.88rem;
  font-weight: 700;
}

.intro h1,
.section-heading h2,
.contact-section h2 {
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.08;
  margin: 0;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 22px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.intro-copy p {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 690px;
  overflow-wrap: break-word;
}

.link-row,
.paper-links,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.link-row a,
.paper-links a,
.contact-actions a,
.contact-actions button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 600;
  min-height: 32px;
  padding: 4px 10px;
}

.contact-actions button {
  cursor: pointer;
  font-family: inherit;
}

.email-copy {
  display: inline-flex;
  position: relative;
}

.email-copy::after {
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.email-display {
  cursor: default;
}

.icon-button {
  gap: 8px;
}

.button-icon {
  flex: 0 0 auto;
  height: var(--icon-size);
  width: var(--icon-size);
}

.link-row a:hover,
.paper-links a:hover,
.contact-actions a:hover,
.contact-actions button:hover,
.contact-actions button.is-copied {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.section-block {
  border-top: 1px solid var(--line);
  padding: 46px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.contact-section h2 {
  font-size: 2rem;
}

.section-heading p,
.contact-section p {
  color: var(--muted);
  margin: 8px 0 0;
}

.highlights-heading {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.highlight-star {
  color: #d4a017;
  fill: currentColor;
  flex: 0 0 auto;
  height: 0.8em;
  width: 0.8em;
}

.highlight-shell {
  max-height: 306px;
  overflow: hidden;
  padding-bottom: 26px;
  position: relative;
  transition: max-height 220ms ease;
}

.highlight-shell::after {
  background: linear-gradient(to bottom, rgba(251, 251, 253, 0), rgba(251, 251, 253, 0.82) 70%, var(--bg));
  bottom: 0;
  content: "";
  height: 110px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.highlight-shell.is-expanded {
  overflow: visible;
}

.highlight-shell.is-expanded::after {
  opacity: 0;
}

.highlight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.highlight-card {
  align-items: stretch;
  background: var(--surface);
  border: 1.5px solid rgba(180, 128, 35, 0.44);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 168px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.highlight-card:hover {
  border-color: rgba(180, 128, 35, 0.72);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.highlight-card-poster {
  background: var(--surface);
  isolation: isolate;
  position: relative;
}

.highlight-card-poster::before {
  background: linear-gradient(to right, var(--surface) 0%, rgba(251, 251, 253, 0.98) 54%, rgba(251, 251, 253, 0.46) 76%, rgba(251, 251, 253, 0) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.highlight-card-poster::after {
  background: url("../images/poster0.jpg") center / contain no-repeat;
  content: "";
  height: 120%;
  max-width: 260px;
  pointer-events: none;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 36%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 48%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 48%, #000 100%);
}

.highlight-card-cineforge::after {
  background-image: url("../images/figure.png");
}

.highlight-card-poster .highlight-copy {
  z-index: 2;
}

.highlight-copy {
  padding: 22px;
  position: relative;
  z-index: 1;
}

.highlight-media {
  align-self: stretch;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 24%, #000 54%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 24%, #000 54%, #000 100%);
}

.highlight-expand {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 6px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  left: 50%;
  line-height: 0;
  padding: 0;
  position: absolute;
  touch-action: manipulation;
  transform: translateX(-50%);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
  width: 38px;
  z-index: 3;
}

.highlight-expand svg {
  height: 14px;
  pointer-events: none;
  transition: transform 160ms ease;
  width: 14px;
}

.highlight-expand:hover,
.highlight-expand:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.highlight-shell.is-expanded .highlight-expand {
  background: var(--surface-soft);
}

.highlight-shell.is-expanded .highlight-expand svg {
  transform: rotate(180deg);
}

.highlight-expand.is-pressed {
  background: var(--surface-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.highlight-expand.is-pressed svg {
  transform: translateY(2px);
}

.highlight-card h3,
.publication h3,
.note-list h3,
.timeline h3 {
  line-height: 1.25;
  margin: 8px 0;
}

.highlight-card h3 {
  font-size: 1.12rem;
}

.highlight-card p,
.publication p,
.note-list p,
.timeline p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: break-word;
}

.publication-list {
  display: grid;
  gap: 28px;
}

.publication {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.publication-media {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  overflow: hidden;
  position: relative;
}

.publication-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left center;
  width: 100%;
}

.publication-media::before,
.publication-media::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.publication-media::before {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.72) 2.5%, rgba(0, 0, 0, 0.36) 5.5%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.36) 94.5%, rgba(0, 0, 0, 0.72) 97.5%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.72) 2.5%, rgba(0, 0, 0, 0.36) 5.5%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.36) 94.5%, rgba(0, 0, 0, 0.72) 97.5%, #000 100%);
}

.publication-media::after {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 9px rgba(251, 251, 253, 0.72);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 2.5%, rgba(0, 0, 0, 0.36) 5.5%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.36) 94.5%, rgba(0, 0, 0, 0.72) 97.5%, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 2.5%, rgba(0, 0, 0, 0.36) 5.5%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.36) 94.5%, rgba(0, 0, 0, 0.72) 97.5%, #000 100%);
}

.publication h3 {
  color: var(--text);
  font-size: 1.18rem;
  margin-top: 0;
}

.publication h3 a {
  color: var(--text);
}

.publication h3 a:hover {
  color: var(--accent);
}

.authors {
  color: var(--text) !important;
}

.paper-links {
  margin-top: 14px;
}

.paper-links a {
  font-size: 0.86rem;
  min-height: 32px;
  padding: 4px 10px;
}

.two-column-section {
  display: grid;
  gap: 36px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.note-list,
.timeline {
  display: grid;
  gap: 22px;
}

.note-list article,
.timeline article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.timeline article {
  isolation: isolate;
  overflow: visible;
  padding: 20px 164px 26px 20px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.timeline article.is-expanded {
  border-color: rgba(15, 118, 110, 0.42);
}

.timeline-content {
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.timeline-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline article.is-expanded .timeline-description {
  overflow: visible;
  white-space: normal;
}

.timeline-logo {
  max-height: 96px;
  object-fit: contain;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 118px;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.42) 16%, #000 42%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.42) 16%, #000 42%, #000 100%);
}

.timeline article.is-expanded .timeline-logo {
  top: 20px;
  transform: none;
}

.timeline-logo-wide {
  max-height: 70px;
  width: 160px;
}

.timeline-logo-kuaishou {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  max-height: none;
  width: 82px;
}

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

.timeline-logo-kuaishou span {
  color: #34373c;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  width: 58px;
}

.timeline-details {
  border-top: 1px solid rgba(220, 227, 225, 0.82);
  margin-top: 18px;
  min-height: 88px;
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.timeline-expand {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: -1px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  transform: translate(-50%, 50%);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
  width: 28px;
  z-index: 2;
}

.timeline-expand svg {
  height: 13px;
  transition: transform 160ms ease;
  width: 13px;
}

.timeline-expand:hover,
.timeline-expand:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.timeline article.is-expanded .timeline-expand {
  background: var(--surface-soft);
}

.timeline article.is-expanded .timeline-expand svg {
  transform: rotate(180deg);
}

.timeline-expand.is-pressed {
  background: var(--surface-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-expand.is-pressed svg {
  transform: translateY(2px);
}

.note-list h3,
.timeline h3 {
  font-size: 1.06rem;
}

.note-list h3 a {
  color: var(--text);
}

.contact-section {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.contact-section p {
  max-width: 620px;
}

.contact-actions {
  align-items: flex-start;
  flex-shrink: 0;
  justify-content: flex-end;
  margin-top: 0;
}

.copy-option {
  box-shadow: var(--shadow);
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 6px);
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
  visibility: hidden;
  white-space: nowrap;
  z-index: 10;
}

.email-copy:hover .copy-option,
.email-copy:focus-within .copy-option {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

.copy-status {
  color: var(--accent);
  flex-basis: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.4em;
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0 auto;
  max-width: var(--content);
  padding: 28px 24px 40px;
  width: 100%;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav {
    max-width: none;
    padding: 0 18px;
    position: relative;
  }

  .nav-toggle {
    display: grid;
    position: absolute;
    right: 18px;
    top: 11px;
  }

  .nav-links {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 8px 18px 18px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    width: 100%;
  }

  .page-shell {
    padding: 42px 18px 42px;
  }

  .intro,
  .publication,
  .two-column-section {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .intro-copy,
  .section-heading,
  .highlight-grid,
  .publication-list,
  .note-list,
  .timeline,
  .contact-section {
    max-width: calc(100vw - 36px);
    width: 100%;
  }

  .intro-copy p {
    max-width: 100%;
  }

  .portrait-wrap {
    position: static;
  }

  .portrait {
    width: 170px;
  }

  .intro {
    gap: 28px;
  }

  .intro h1 {
    font-size: 1.65rem;
    max-width: calc(100vw - 36px);
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-shell {
    max-height: 520px;
  }

  .highlight-shell.is-expanded {
    overflow: visible;
  }

  .highlight-card {
    grid-template-columns: 1fr;
  }

  .highlight-card-poster {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 34%);
  }

  .highlight-card-poster::before {
    background: linear-gradient(to right, var(--surface) 0%, rgba(251, 251, 253, 0.98) 58%, rgba(251, 251, 253, 0.42) 82%, rgba(251, 251, 253, 0) 100%);
  }

  .highlight-card-poster::after {
    height: 112%;
    max-width: 160px;
    right: 2px;
    width: 34%;
  }

  .highlight-media {
    height: auto;
    min-height: 120px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 52%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 52%, #000 100%);
  }

  .publication-media {
    max-width: 360px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline article {
    padding: 20px 112px 26px 20px;
  }

  .timeline-logo {
    max-height: 76px;
    opacity: 0.24;
    right: 14px;
    width: 82px;
  }

  .timeline-logo-wide {
    max-height: 50px;
    width: 108px;
  }

  .timeline-logo-kuaishou {
    width: 72px;
  }

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

  .timeline-logo-kuaishou span {
    font-size: 0.825rem;
    width: 48px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .copy-status {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .intro h1 {
    font-size: 1.22rem;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 1.65rem;
  }

  .link-row a,
  .contact-actions a,
  .contact-actions button,
  .email-copy {
    width: 100%;
  }

  .copy-option {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .timeline article {
    padding-right: 96px;
  }

  .timeline-logo {
    opacity: 0.2;
    width: 72px;
  }

  .timeline-logo-wide {
    width: 92px;
  }

  .timeline-logo-kuaishou {
    width: 62px;
  }

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

  .timeline-logo-kuaishou span {
    font-size: 0.72rem;
    width: 42px;
  }

  .intro h1 {
    font-size: 1.08rem;
  }
}
