/* zmy.io — a lightweight, responsive preservation of the original Stellar layout. */

:root {
  --page-start: #e37682;
  --page-end: #5f4d93;
  --page-fallback: #935d8c;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --text: #636363;
  --border: #dddddd;
  --blue: #8cc9f0;
  --blue-hover: #9acff2;
  --footer-text: rgba(255, 255, 255, 0.72);
  --footer-strong: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5em;
  background: var(--page-fallback);
}

body {
  display: flow-root;
  min-width: 320px;
  margin: 0;
  background-color: var(--page-fallback);
  background-image: linear-gradient(45deg, var(--page-start) 15%, var(--page-end) 85%);
  color: var(--footer-text);
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17pt;
  font-weight: 300;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  border-bottom: 1px dotted currentColor;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  border-bottom-color: transparent;
}

strong,
b {
  font-weight: 400;
}

p {
  margin: 0 0 2em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7em;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

h1 {
  font-size: 2.5em;
  line-height: 1.2;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1.1em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: fixed;
  z-index: 10001;
  top: 0.7em;
  left: 0.7em;
  padding: 0.45em 0.75em;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8em;
  font-weight: 400;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: 64em;
  max-width: calc(100% - 4em);
  margin: 0 auto;
}

/* Header */

.hero {
  position: relative;
  padding: 7em 5em 4em;
  color: var(--footer-text);
  text-align: center;
}

.utility-bar {
  position: absolute;
  top: 3em;
  right: 3em;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  padding: 0.2em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0.3em 1em rgba(49, 42, 59, 0.1);
  font-size: 0.82em;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1em;
  min-height: 2.15rem;
  padding: 0 0.72em;
  border: 0;
  border-radius: 999px;
  color: var(--footer-text);
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.language-switch a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--footer-strong);
  transform: translateY(-1px);
}

.language-switch a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.16em 0.55em rgba(49, 42, 59, 0.16);
  color: var(--page-end);
  font-weight: 400;
}

.language-switch a[aria-current="page"]:hover {
  background: #ffffff;
  transform: none;
}

.language-switch a:active {
  transform: scale(0.98);
}

.language-switch a:focus-visible {
  outline-width: 2px;
  outline-offset: 2px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__portrait-wrap {
  width: 75%;
  max-width: 250px;
  margin-bottom: 1.5em;
}

.hero__portrait {
  width: 100%;
  padding: 0.65em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(222, 222, 222, 0.5);
}

.hero h1 {
  margin: 0 0 0.25em;
  color: var(--footer-strong);
  font-size: 3.25em;
  font-weight: 300;
}

.hero__summary {
  color: var(--footer-text);
  font-size: 1.14em;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.hero__career-line {
  margin: 0.08em 0;
}

.hero__career-line strong {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 350;
}

.hero__career-line--primary {
  color: var(--footer-strong);
  font-size: 1.08em;
}

.hero__career-line--primary strong {
  color: var(--footer-strong);
  font-weight: 600;
}

/* Navigation and main panel */

.section-nav {
  position: absolute;
  left: 50%;
  z-index: 20;
  display: flex;
  justify-content: center;
  width: 64em;
  max-width: calc(100% - 4em);
  padding: 1em;
  border-radius: 0.25em 0.25em 0 0;
  background: var(--surface-soft);
  color: var(--text);
  cursor: default;
  text-align: center;
  transform: translateX(-50%);
  transition: background-color 0.2s ease, border-radius 0.2s ease, padding 0.2s ease;
}

.section-nav a {
  display: inline-block;
  height: 2.25em;
  margin: 0 0.35em;
  padding: 0 1.25em;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font-size: 1em;
  font-weight: 300;
  line-height: 2.25em;
  transition: background-color 0.2s ease, font-size 0.2s ease, margin 0.2s ease;
}

.section-nav a:hover {
  background: rgba(222, 222, 222, 0.25);
}

.section-nav a[aria-current="true"] {
  background: var(--surface);
}

.section-nav.is-compact {
  position: fixed;
  top: 0;
  z-index: 10000;
  padding: 0.5em 1em;
  border-radius: 0;
  background: rgba(247, 247, 247, 0.95);
}

.section-nav.is-compact a {
  margin-inline: 0.175em;
  font-size: 0.9em;
}

main {
  overflow: visible;
  padding-top: 4.25em;
  border-radius: 0.25em;
  background: var(--surface);
  color: var(--text);
}

main a:hover {
  color: var(--text);
}

.section {
  padding: 5em 5em 3em;
  border-top: 1px solid var(--border);
}

.section:first-child {
  border-top: 0;
}

.section-heading {
  margin-bottom: 3em;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 2em;
  font-weight: 300;
}

.section-heading h2::after {
  display: block;
  width: 3.25em;
  height: 2px;
  margin: 0.7em auto 1em;
  border-radius: 2px;
  background: linear-gradient(90deg, #efa8b0, #a89cc8, #8cc9f0);
  content: "";
}

/* Introduction */

.career-timeline {
  position: relative;
}

.career-timeline__item {
  position: relative;
  padding: 0 0 2.6em 2.65em;
}

.career-timeline__item:not(:last-child)::before {
  position: absolute;
  top: 0.8em;
  bottom: -0.2em;
  left: 0.43em;
  width: 1px;
  background: linear-gradient(#a89cc8, rgba(168, 156, 200, 0.18));
  content: "";
}

.career-timeline__item:last-child {
  padding-bottom: 0;
}

.career-timeline__marker {
  position: absolute;
  z-index: 1;
  top: 0.42em;
  left: 0;
  width: 0.9em;
  height: 0.9em;
  border: 0.18em solid #ffffff;
  border-radius: 50%;
  background: #a89cc8;
  box-shadow: 0 0 0 1px #c8c2ce;
}

.career-timeline__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 2em;
  align-items: baseline;
  margin-bottom: 0.65em;
}

.career-timeline__header h2 {
  grid-column: 1;
  margin: 0;
  color: var(--text);
  font-size: 1.25em;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.career-timeline__period {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: #8b858c;
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.career-timeline__role {
  grid-column: 1;
  margin: 0.12em 0 0;
  color: #77588e;
  font-size: 0.86em;
  font-weight: 400;
}

.career-timeline__body {
  max-width: 58em;
  margin: 0;
}

.publication-filters {
  margin: -0.8em 0 2.6em;
  text-align: center;
}

.publication-filters__choices {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 0.55em 0.7em;
}

.publication-filters button {
  appearance: none;
  padding: 0.28em 0.78em;
  border: 1px solid #d8d3dc;
  border-radius: 999px;
  background: #fbfafc;
  color: #716b72;
  cursor: pointer;
  font: inherit;
  font-size: 0.78em;
  font-weight: 400;
  line-height: 1.5;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.publication-filters button:hover {
  border-color: #bdb5c5;
  background: #f5f2f7;
  color: #66566f;
}

.publication-filters button[aria-pressed="true"] {
  border-color: #a89cc8;
  background: #ede9f2;
  color: #5f4d72;
}

/* Products */

.product-groups {
  margin-bottom: 3em;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-row + .product-row {
  margin-top: 4em;
}

.product-row--qwen {
  display: block;
}

.product-row--qwen .product-item {
  max-width: 34em;
  margin: 0 auto;
}

.product-item {
  min-width: 0;
  padding: 0;
  text-align: center;
}

.product-item__media {
  display: inline-block;
  margin: 0 0 2em;
  padding: 0.65em;
  border: 1px solid var(--border);
  border-radius: 50%;
  vertical-align: top;
}

.product-item__media-link {
  display: block;
  border: 0;
  border-radius: 50%;
}

.product-item__media img {
  width: 8em;
  height: 8em;
  padding: 0.65em;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.22s ease;
}

.product-item__media-link:hover img,
.product-item__media-link:focus-visible img {
  transform: scale(1.025);
}

.product-item h3 {
  margin: 0 0 0.7em;
  color: var(--text);
  font-size: 1.25em;
  font-weight: 300;
}

.product-item h3 a {
  border-bottom-color: rgba(99, 99, 99, 0.38);
}

.product-item p {
  max-width: 24em;
  margin: 0 auto;
  color: var(--text);
  font-size: 1em;
  font-weight: 300;
  line-height: 1.65;
}

/* Publications */

.publication-heading {
  position: relative;
}

.publication-legend {
  position: absolute;
  top: 0.85em;
  right: 0;
  margin: 0;
  color: #777277;
  font-size: 0.76em;
  text-align: right;
}

.publication-legend__mark {
  margin-right: 0.22em;
}

.publication__corresponding-mark {
  color: inherit;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.publication-year {
  display: grid;
  grid-template-columns: 4.75em minmax(0, 1fr);
  gap: 1.25em;
  padding: 2em 0 0;
  scroll-margin-top: 6em;
}

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

.publication-year:first-child {
  padding-top: 0;
}

.publication-year__label {
  position: sticky;
  top: 5.4em;
  align-self: start;
  margin: 0.12em 0 0;
  color: #77588e;
  font-size: 0.9em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.publication-year__label-primary,
.publication-year__label-secondary {
  display: inline-block;
}

.publication-year__label-secondary {
  color: #8d858f;
  font-size: 0.88em;
}

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

.publication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55em 1.2em;
  margin: 0 0 1.35em;
  padding: 0;
}

.publication:last-child {
  margin-bottom: 2em;
}

.publication__body {
  min-width: 0;
}

.publication h4 {
  margin: 0 0 0.2em;
  color: var(--text);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.48;
}

.publication__venue-wrap {
  white-space: nowrap;
}

.venue-badge {
  display: inline-block;
  padding: 0.06em 0.42em;
  border: 1px solid #c8c3ca;
  border-radius: 5px;
  color: #77588e;
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  vertical-align: 0.1em;
}

.publication__authors {
  margin: 0;
  color: #757075;
  font-size: 0.86em;
  line-height: 1.5;
}

.publication__authors strong {
  color: var(--text);
  font-weight: 500;
}

.publication__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 0.28em;
  max-width: 9em;
}

.publication-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  opacity: 0.82;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.publication-link::after {
  position: absolute;
  z-index: 4;
  bottom: calc(100% + 0.45em);
  left: 50%;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  background: rgba(49, 42, 59, 0.92);
  color: #fff;
  content: attr(data-label);
  font-size: 0.68em;
  font-weight: 400;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25em);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.publication-link:hover,
.publication-link:focus-visible {
  border: 0;
  background: #f0edf2;
  opacity: 1;
}

.publication-link:hover::after,
.publication-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.publication-link__icon {
  width: 1.05em;
  height: 1.05em;
}

/* Awards */

.awards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16em, 0.65fr);
  gap: 3em;
  font-size: 0.88em;
  line-height: 1.58;
}

.award-column + .award-column {
  padding-left: 2em;
  border-left: 1px solid var(--border);
}

.award-column h3 {
  margin: 0 0 1em;
  color: var(--text);
  font-size: 1.25em;
  font-weight: 300;
}

.award-column ul {
  margin: 0;
  padding-left: 1.25em;
}

.award-column li {
  margin-bottom: 0.55em;
  padding-left: 0.15em;
}

.award-column li::marker {
  color: #8c779c;
}

/* Footer */

.site-footer {
  width: calc(100% + 2em);
  margin: 0 0 1.25em -2em;
  padding: 5em 5em 1.5em;
  color: var(--footer-text);
}

.footer-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25em 4em;
}

.footer-matrix__item {
  min-width: 0;
}

.footer-matrix__item h2 {
  margin: 0 0 0.5em;
  color: var(--footer-strong);
  font-size: 1.1em;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-matrix__item p {
  margin: 0;
}

.footer-matrix__item--links {
  display: flex;
  align-items: flex-end;
}

.site-footer a {
  color: var(--footer-strong);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border-bottom-color: rgba(255, 255, 255, 0.4);
  color: var(--footer-strong);
}

.resume-link:hover {
  border-bottom-color: transparent;
}

.resume-link svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
}

.social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75em;
  height: 2.75em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--footer-strong);
}

.social-links a:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.social-links svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

.social-links a::after {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 0.65em);
  left: 50%;
  padding: 0.28em 0.55em;
  border-radius: 4px;
  background: rgba(49, 42, 59, 0.92);
  color: #ffffff;
  content: attr(data-label);
  font-size: 0.62em;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.3em);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.social-links a:hover::after,
.social-links a:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer__copyright {
  width: 100%;
  margin: 4.5em 0 0;
  font-size: 0.8em;
  text-align: center;
}

/* Responsive layout follows the original breakpoints and em-based scale. */

@media screen and (min-width: 981px) {
  html[lang="en"] .awards-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(16em, 0.75fr);
  }
}

@media screen and (max-width: 1680px) {
  body {
    font-size: 14pt;
  }
}

@media screen and (max-width: 1280px) {
  body {
    font-size: 12pt;
  }

  .hero {
    padding: 6em 4em 3em;
  }

  .section {
    padding: 4em 4em 2em;
  }

  .site-footer {
    padding: 4em 4em 1.25em;
  }
}

@media screen and (max-width: 980px) {
  .publication-filters__choices {
    width: 100%;
    max-width: 44em;
    margin-inline: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    padding: 5em 3em 2em;
  }

  .section {
    padding: 4em 3em 2em;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }

  .award-column + .award-column {
    padding: 2em 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .site-footer {
    width: 100%;
    margin: 0 0 1.25em;
    padding: 4em 3em 1.25em;
  }

  .site-footer__copyright {
    text-align: left;
  }

}

@media screen and (max-width: 736px) {
  html {
    scroll-padding-top: 0;
  }

  h1 {
    font-size: 2em;
  }

  .hero {
    padding: 4.5em 2em 2em;
  }

  .utility-bar {
    top: 2em;
    right: 2em;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero__summary {
    font-size: 1em;
    letter-spacing: 0;
  }

  .section-nav {
    display: none;
  }

  main {
    padding-top: 0;
    border-radius: 0.25em;
  }

  .section {
    padding: 3em 2em 1em;
  }

  .section-heading {
    margin-bottom: 1.5em;
  }

  .section-heading h2 {
    font-size: 1.5em;
  }

  .publication-filters__choices {
    max-width: 28em;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-row {
    grid-template-columns: 1fr;
    gap: 3em;
  }

  .product-row + .product-row {
    margin-top: 3em;
  }

  .publication-year {
    grid-template-columns: 4.75em minmax(0, 1fr);
    gap: 1em;
  }

  .publication-year__label {
    top: 1em;
  }

  .site-footer {
    padding: 3em 2em 1em;
  }
}

@media screen and (max-width: 560px) {
  .hero__separator {
    display: inline;
  }

  .publication-legend {
    top: 0.55em;
    right: 0;
    max-width: 7em;
    line-height: 1.25;
  }

  .publication-year {
    grid-template-columns: 1fr;
    gap: 0.7em;
  }

  .publication-year__label {
    position: static;
  }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.55em;
  }

  .publication__links {
    justify-content: flex-start;
    max-width: none;
  }

  .career-timeline__header {
    display: block;
  }

  .career-timeline__period {
    margin-bottom: 0.15em;
    white-space: normal;
  }

  .footer-matrix {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

@media screen and (max-width: 480px) {
  .site-shell {
    max-width: calc(100% - 2em);
  }

  .hero {
    padding: 4em 1.5em 1.5em;
  }

  .utility-bar {
    top: 1em;
    right: 1em;
  }

  .hero__portrait-wrap {
    max-width: 12em;
  }

  .hero__career-line span:first-child,
  .hero__career-line strong {
    display: inline;
  }

  .section {
    padding: 3em 1.5em 1em;
  }

  .site-footer {
    padding: 3em 1.5em 1em;
  }

  .career-timeline__item {
    padding-left: 2.25em;
  }

}

@media screen and (max-width: 360px) {
  body {
    font-size: 11pt;
  }

  .site-shell {
    max-width: 100%;
  }

  main {
    border-radius: 0;
  }

  .section {
    padding: 2.5em 1em 0.5em;
  }

  .site-footer {
    padding: 2.5em 1em 0.5em;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .language-switch a:hover,
  .language-switch a:active {
    transform: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  .site-shell {
    width: 100%;
    max-width: none;
  }

  .utility-bar,
  .section-nav,
  .social-links {
    display: none;
  }

  main {
    padding-top: 0;
  }

  .hero,
  .site-footer {
    padding-block: 2em;
    color: #111111;
  }

  .hero *,
  .site-footer * {
    color: #111111 !important;
  }

  .product-item,
  .publication,
  .award-column {
    break-inside: avoid;
  }
}
