html {
  background-color: #eeeeee;
}

body {
  margin: 30px auto;
  padding: 10px 50px 30px;
  max-width: 900px;
  color: #000000;
  background: #ffffff;
  font-family: Georgia, serif;
  line-height: 1.4;
}

a {
  color: #527bbd;
  text-decoration: none;
}

a:hover {
  border-bottom: 1px dotted gray;
}

img {
  border: none;
}

#layout-content {
  margin-top: 25px;
}

#toptitle {
  margin-bottom: 1.5em;
}

#toptitle h1 {
  margin: 0;
  padding: 0;
  border-bottom: none;
  font-size: 2.15rem;
  line-height: 1.05;
}

.name-subtitle {
  margin-left: 8px;
  color: #444444;
  font-size: 1.1rem;
  font-weight: 400;
}

h2,
h3 {
  color: #000000;
  margin-top: 0.7em;
  margin-bottom: 0.5em;
  padding-bottom: 0.2em;
  line-height: 1.0;
}

h2 {
  padding-top: 0.8em;
  border-bottom: 1px solid #aaaaaa;
  font-size: 1.5rem;
}

h3 {
  padding-top: 0.5em;
  border-bottom: none;
  font-size: 1.12rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.8em;
}

ul {
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  padding-top: 0;
  list-style-position: outside;
  list-style-type: square;
}

li {
  margin-top: 0.9em;
}

li p {
  margin-bottom: 0.3em;
}

.intro-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.2em;
}

.intro-table td {
  vertical-align: top;
}

.photo-col {
  width: 136px;
}

.gap-col {
  width: 20px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.info-col {
  width: auto;
}

.about-text {
  line-height: 1.8;
  margin-bottom: 0.5em;
}

.inline-link {
  text-decoration: underline;
}

.experience-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 18px;
}

.experience-table td {
  vertical-align: top;
}

.experience-logo-cell {
  width: 40%;
  padding-right: 2em;
}

.experience-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 86px;
}

.experience-logo {
  display: block;
  max-width: 190px;
  max-height: 84px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.experience-logo-msr {
  max-width: 175px;
  max-height: 62px;
}

.experience-logo-nju,
.experience-logo-xdu {
  max-width: 150px;
  max-height: 84px;
}

.experience-text-cell {
  width: 60%;
  padding-left: 80px;
}

.experience-text-cell p:last-child {
  margin-bottom: 0;
}

.paper-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2em;
  padding: 1em 0;
}

.paper-box-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.paper-box-text {
  flex: 1;
  max-width: 60%;
  font-size: 15px;
}

.paper-title {
  margin-bottom: 0.45em;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.paper-authors {
  margin-bottom: 0.55em;
}

.paper-links {
  font-size: 0.98rem;
}

.paper-image-wrapper {
  position: relative;
  width: 100%;
}

.paper-box-image img {
  width: 100%;
  height: auto;
  box-shadow: 3px 3px 6px #888888;
  object-fit: cover;
}

.paper-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
  color: #ffffff;
  border-radius: 4px;
  box-shadow: 3px 3px 6px #888888;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.theme-blue {
  background: linear-gradient(135deg, #0c3d91 0%, #5a9ef3 100%);
}

.theme-gold {
  background: linear-gradient(135deg, #795300 0%, #d3a93d 100%);
}

.theme-green {
  background: linear-gradient(135deg, #175d46 0%, #58ad8b 100%);
}

.theme-red {
  background: linear-gradient(135deg, #7f2431 0%, #e07b8d 100%);
}

.theme-slate {
  background: linear-gradient(135deg, #2c3e50 0%, #7d90a7 100%);
}

.theme-purple {
  background: linear-gradient(135deg, #4b2c6f 0%, #9074c3 100%);
}

.theme-orange {
  background: linear-gradient(135deg, #934212 0%, #ee9f61 100%);
}

.badge {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  background: #004de2;
  color: #ffffff;
  font-size: 0.75em;
}

.badge.badge-arxiv {
  background: #c62828 !important;
}

details {
  margin-top: 0.4em;
}

@media (max-width: 768px) {
  body {
    padding: 10px 22px 24px;
  }

  .paper-box {
    flex-direction: column;
    gap: 1em;
  }

  .paper-box-image,
  .paper-box-text {
    max-width: 100%;
    flex-basis: auto;
  }

  .experience-table,
  .experience-table tbody,
  .experience-table tr,
  .experience-table td {
    display: block;
    width: 100%;
  }

  .experience-logo-cell {
    width: 100%;
    padding-right: 0;
    padding-bottom: 10px;
  }

  .experience-text-cell {
    padding-left: 0;
  }

  .experience-logo-wrap {
    justify-content: flex-start;
    min-height: 0;
  }
}

summary {
  cursor: pointer;
  color: #527bbd;
}

.undergrad-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 1.1em;
}

.undergrad-copy {
  flex: 1;
}

.undergrad-logo {
  width: 120px;
  display: flex;
  justify-content: center;
}

.mini-logo {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1f1f1 0%, #e0e0e0 100%);
  color: #4b4b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

hr {
  margin-top: 1.8em;
  border: none;
  border-top: 1px solid #c0c0c0;
}

.footer-note {
  margin-top: 1em;
  color: #888888;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  body {
    margin: 12px auto;
    padding: 12px 18px 24px;
  }

  .intro-table,
  .intro-table tbody,
  .intro-table tr,
  .intro-table td {
    display: block;
    width: 100%;
  }

  .photo-col,
  .gap-col,
  .info-col {
    width: 100%;
  }

  .gap-col {
    height: 12px;
  }

  .paper-box {
    flex-direction: column;
    gap: 1em;
  }

  .paper-box-image,
  .paper-box-text {
    max-width: 100%;
  }

  .undergrad-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .paper-visual {
    min-height: 180px;
  }
}
