:root {

  --cardinal: #9e3001;
  --very-light-orange: #fdf3ea;
  --very-light-gray: #f1f1f1;
  --light-gray: #c2c0bf;
  --dark-gray: #8a8b8c;
  --super-dark-gray: #6e6c6c;
  --light-cyan: #E0F7FF;
  --bright-cyan: #00CCFF;
  --dark-cyan: #009FCC;

  --font-size: 17px;
  --mobile-font-size: 16px;

  --line-height: 24px;
  --mobile-line-height: 26px;

  --section-title-font-size: 24px;
  --mobile-section-title-font-size: 22px;

  --name-font-size: 32px;

  --code-font-size: 12px;
  --code-line-height: 18px;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Lato", "Helvetica Neue", Ubuntu, Arial, PingFang, SimHei, sans-serif;
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: black;
  font-weight: normal;
  background: white;
}

.blockquote {
  font-size: var(--font-size);
  line-height: var(--line-height);
}

body .container,
body .container-fluid {
  max-width: 960px;
  margin: 0 auto;
}

body .row {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

b.zh {
  font-weight: 900;
}

a {
  color: var(--cardinal);
  text-decoration: none;
  transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

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

.highlight {
  /* color: var(--cardinal); */
  color: orange;
  font-weight: bold;
}

.highlight-note {
  color: var(--cardinal);
  font-weight: bold;
}

.section-item {
  margin-top: 20px;
}

.section-head {
  margin-top: 30px;
}

.section-title {
  font-weight: bold;
  font-size: var(--section-title-font-size);
  line-height: var(--line-height);
  display: inline-block;
}

.col-wrapper {
  padding-left: 10px;
  padding-right: 10px;
}

.sec-wrapper {
  margin-top: 30px;
}

.section-sub {
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--dark-gray);
}

.representative {
  background-color: var(--very-light-orange);
  border-radius: 2px;
  border-radius: 15px;
}

@media (max-width: 767.98px) {
  body {
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
  }

  .blockquote {
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
  }

  .section-title {
    font-size: var(--mobile-section-title-font-size);
    line-height: var(--mobile-line-height);
  }
}

@media (min-width: 768px) {
  .section-sub {
    padding-left: 0;
  }
}

/*-----------------
 * Home
 *-----------------*/

.home-wrapper .picture img {
  width: 100%;
  max-width: 250px;
  margin-right: 20px;
  border-radius: 10px;
}

.home-wrapper .description {
  margin-top: 30px;
}

.home-wrapper .description .name {
  font-size: var(--name-font-size);
  margin-bottom: 20px;
}

.home-wrapper .social {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
}

/*------------------
 * Bio
 *------------------*/

.bio-wrapper .info,
.bio-wrapper .info:hover {
  color: black;
  text-decoration: none;
}

.bio-wrapper .zh-name:hover {
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.bio-wrapper .name-icon {
  margin-left: -3px;
  margin-right: -3px;
}

.bio-wrapper .org-icon,
.exp-wrapper .exp-icon {
  width: auto;
  height: 1.3em;
  max-width: 1.45em;
  object-fit: contain;
  flex-shrink: 0;
}

.bio-wrapper .org-icon {
  vertical-align: -0.18em;
  margin-right: 4px;
}

.exp-wrapper .exp-icon.uva-icon {
  height: 2.6em;
  max-width: 2.9em;
}

.exp-wrapper .exp-icon.zju-icon {
  height: 1.95em;
  max-width: 2.18em;
}

/*------------------
 * Name
 *------------------*/

.name-wrapper .zh-a,
.name-wrapper .zh-a:hover {
  color: black;
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.name-wrapper .blockquote-footer {
  font-size: var(--font-size);
  line-height: var(--line-height);
  margin-top: 0;
}

.name-wrapper .blockquote-footer .zh-a,
.name-wrapper .blockquote-footer .zh-a:hover,
.name-wrapper .blockquote-footer .en-a,
.name-wrapper .blockquote-footer .en-a:hover {
  color: currentColor;
}

.name-wrapper .blockquote-footer .en-a,
.name-wrapper .blockquote-footer .en-a:hover {
  text-decoration: underline;
  border-bottom: none;
}

/*------------------
 * Publications
 *------------------*/

.pub-wrapper .section-item {
  margin-top: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pub-wrapper .title a {
  color: black;
  font-weight: bold;
}

.pub-wrapper .title a:hover {
  color: black;
}

.pub-wrapper .link .venue {
  font-weight: bold;
}

.pub-wrapper .link a {
  color: var(--dark-cyan);
}

.pub-wrapper .link a:hover {
  color: var(--bright-cyan);
}

.pub-wrapper .authors {
  color: var(--dark-gray);
}

.pub-wrapper .authors a {
  color: var(--dark-gray);
}

.pub-wrapper .authors me {
  /* color: var(--dark-gray); */
  /* color: black; */
  color: var(--super-dark-gray);
  font-weight: bold;
}

.pub-wrapper .figure img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px; /* Add rounded corners */
}

@media (max-width: 767.98px) {
  .pub-wrapper .figure {
    margin-bottom: 10px;
  }
}

/*------------------
 * Bibtex
 *------------------*/

.snippet {
  position: relative;
  background: var(--very-light-gray);
  font-size: var(--code-font-size);
  line-height: var(--code-line-height);
  margin-top: 10px;
  margin-bottom: 0;
  border-radius: 2px;
}

.representative .snippet {
  background: white;
}

.snippet .btn {
  transition: opacity 0.1s ease-in-out, border-color 0.1s ease-in-out;
  opacity: 0.9;
  padding: 0.5px 4px;
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: 14px;
  line-height: 21px;
  background-color: white;
  border: 2px solid var(--light-gray);
  border-radius: 2px;
}

.snippet .btn:hover {
  opacity: 1;
  background-color: white;
  border-color: var(--dark-gray);
}

.snippet .btn:active {
  opacity: 1;
  background-color: var(--very-light-gray);
  border-color: var(--dark-gray);
}

.snippet code {
  display: block;
  overflow-x: auto;
}

/*------------------
 * Experience
 *------------------*/

.exp-wrapper .title a {
  font-weight: bold;
}

.exp-wrapper a,
.exp-wrapper a:hover {
  color: black;
}

.exp-wrapper .time {
  text-align: right;
}

.exp-wrapper .location {
  color: var(--dark-gray);
}

.exp-wrapper .title {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767.98px) {
  .exp-wrapper .time {
    text-align: left;
    color: var(--dark-gray);
  }

  .exp-wrapper .location {
    display: none;
  }
}

/*------------------
 * Footer
 *------------------*/

.citation {
  font-size: var(--code-font-size);
  line-height: var(--code-line-height);
  margin-top: 40px;
  margin-bottom: 30px;
}

/*------------------
 * Project pages
 *------------------*/

.project-page .project-nav {
  margin-top: 24px;
  color: var(--dark-gray);
  font-size: 15px;
}

.project-page .project-nav span {
  margin-left: 6px;
}

.project-page .project-hero {
  margin-top: 38px;
  margin-bottom: 18px;
}

.project-page main > .sec-wrapper {
  margin-top: 56px;
}

.project-page main > .sec-wrapper:first-child {
  margin-top: 28px;
}

.project-page .section-head {
  margin-top: 0;
}

.project-page #result-highlights .section-head:not(:first-child) {
  margin-top: 40px;
}

.project-page .project-venue {
  color: var(--cardinal);
  font-weight: bold;
  margin-bottom: 12px;
}

.project-page h1 {
  max-width: 860px;
  margin: 0 auto 18px;
  font-size: 38px;
  line-height: 46px;
  font-weight: bold;
}

.project-page .project-authors {
  font-size: 20px;
  margin-bottom: 6px;
}

.project-page .project-affiliation {
  color: var(--dark-gray);
}

.project-page .project-authors sup,
.project-page .project-affiliation sup {
  font-size: 0.65em;
  margin-left: 1px;
}

.project-page .project-links {
  margin-top: 22px;
}

.project-page .project-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 5px;
  padding: 7px 15px;
  color: white;
  background-color: var(--cardinal);
  border-radius: 999px;
  font-size: 15px;
  font-weight: bold;
}

.project-page .project-button:hover {
  color: white;
  text-decoration: none;
  background-color: #7f2601;
}

.project-page .project-teaser,
.project-page .project-figure,
.project-page .project-card img {
  width: 100%;
  border-radius: 12px;
}

.project-page .project-teaser,
.project-page .project-figure {
  border: 1px solid var(--very-light-gray);
}

.project-page .project-figure-group {
  border: 1px solid var(--very-light-gray);
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.project-page .project-figure-group .project-figure {
  display: block;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-sizing: border-box;
  background-color: white;
}

.project-page .project-figure-group .project-figure:first-child {
  padding: 12px 16px 0;
}

.project-page .project-figure-group .project-figure + .project-figure {
  border-top: 1px solid var(--very-light-gray);
  padding: 12px 16px;
  box-sizing: border-box;
  background-color: white;
}

.project-page .project-bimanual-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-page .project-bimanual-col .project-bimanual-summary {
  margin-top: auto;
}

.project-page .project-caption {
  margin-top: 8px;
  color: var(--dark-gray);
  text-align: center;
  font-size: 15px;
}

.project-page .project-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 8px;
}

.project-page .project-result-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}

.project-page .project-result-table th,
.project-page .project-result-table td {
  padding: 8px 10px;
  border: 1px solid var(--very-light-gray);
  text-align: center;
  white-space: nowrap;
}

.project-page .project-result-table th {
  background-color: var(--very-light-orange);
  font-weight: bold;
}

.project-page .project-result-table td:first-child,
.project-page .project-result-table td:nth-child(2) {
  font-weight: bold;
}

.project-page .project-copy p:last-child,
.project-page .project-copy ul:last-child {
  margin-bottom: 0;
}

.project-page .project-copy li {
  margin-bottom: 6px;
}

.project-page .project-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--very-light-gray);
}

.project-page .project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-page .project-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-page .project-card {
  height: 100%;
  padding: 12px;
  border: 1px solid var(--very-light-gray);
  border-radius: 14px;
  background-color: white;
}

.project-page .project-card h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: bold;
}

.project-page .project-card p {
  margin-bottom: 0;
  color: var(--super-dark-gray);
  font-size: 15px;
  line-height: 22px;
}

.project-page .project-task-row {
  display: grid;
  grid-template-columns: 3fr 3fr 4fr;
  gap: 0;
}

.project-page .project-metric {
  height: 100%;
  padding: 18px;
  border-radius: 14px;
  background-color: var(--very-light-orange);
}

.project-page .project-metric-value,
.project-page .project-stat {
  color: var(--cardinal);
  font-weight: bold;
}

.project-page .project-metric-value {
  font-size: 34px;
  line-height: 40px;
}

.project-page .project-highlights-title {
  color: var(--cardinal);
  font-size: 36px;
  line-height: 42px;
  font-weight: bold;
}

.project-page .project-subsection-title {
  font-size: 20px;
  line-height: var(--line-height);
  font-weight: bold;
  margin-bottom: 0;
}

.project-page .project-tracing-col .project-copy {
  margin-bottom: 16px;
}

.project-page .project-lead {
  color: var(--cardinal);
}

.project-page .project-tracing-col .project-figure + .project-figure,
.project-page .project-tracing-col .project-figure + .project-copy,
.project-page .project-tracing-col .project-figure + .row,
.project-page .project-tracing-col .project-copy + .project-figure,
.project-page .project-tracing-col .project-copy + .project-figure-group,
.project-page .project-tracing-col .project-caption + .project-figure {
  margin-top: 16px;
}

.project-page #citation .section-head .col-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.project-page #citation a[data-bs-toggle="collapse"] {
  color: var(--dark-cyan);
  font-size: var(--font-size);
}

.project-page #citation a[data-bs-toggle="collapse"]:hover {
  color: var(--bright-cyan);
}

.project-page .project-collapse-title a {
  color: inherit;
  text-decoration: none;
}

.project-page .project-collapse-title a:hover {
  color: var(--cardinal);
}

.project-page .project-collapse-icon {
  font-size: 0.85em;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.project-page .project-collapse-title a[aria-expanded="true"] .project-collapse-icon {
  transform: rotate(180deg);
}

.project-page .project-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--dark-cyan);
  font-size: var(--font-size);
  font-weight: bold;
  text-decoration: none;
}

.project-page .project-detail-toggle:hover {
  color: var(--bright-cyan);
}

.project-page .project-detail-toggle[aria-expanded="true"] .project-collapse-icon {
  transform: rotate(180deg);
}

.project-page .project-detail-collapse {
  margin-top: 16px;
}

@media (max-width: 767.98px) {
  .project-page h1 {
    font-size: 29px;
    line-height: 37px;
  }

  .project-page .project-highlights-title {
    font-size: 30px;
    line-height: 36px;
  }

  .project-page .project-authors {
    font-size: 18px;
  }

  .project-page .project-card,
  .project-page .project-metric {
    margin-bottom: 14px;
  }

  .project-page .project-task-row {
    grid-template-columns: 1fr;
  }
}
