* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 1rem;
  color: #111111;
  background: #f7f7f7;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.avatar {
  width: 160px;
  aspect-ratio: 1;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.intro {
  flex: 1;
}

h1 {
  color: #000000;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.position {
  margin: 0.25rem 0 0.5rem;
  color: #666666;
  font-size: 1.1rem;
}

.topics {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.topics li {
  display: block;
  width: fit-content;
  margin: 4px 0;
  padding: 2px 6px;
  color: #111111;
  background: #f2f2f2;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.email,
.links {
  margin: 1rem 0;
  color: #111111;
  font-size: 0.9rem;
}

.email i,
.links i {
  margin-right: 4px;
}

.links a {
  margin-right: 1rem;
  color: #111111;
  font-weight: 500;
  text-decoration: none;
}

h2 {
  margin: 2rem 0 1rem;
  padding-bottom: 0.25rem;
  color: #000000;
  border-bottom: 1px solid #eeeeee;
  font-size: 1.75rem;
  font-weight: 500;
}

.bio p {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: justify;
}

a {
  color: #111111;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #666666;
}

.publication {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.publication:hover {
  border-color: #dedede;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.publication-title {
  margin-bottom: 4px;
  color: #000000;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

.publication-authors {
  margin-bottom: 4px;
  color: #666666;
  font-size: 0.82rem;
}

.publication-authors strong {
  color: #000000;
  font-weight: 500;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.publication-venue,
.publication-longvenue {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  color: #2c3e50;
  background: #e8ebef;
  border: 1px solid #d0dae3;
  border-radius: 4px;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.3;
}

.publication-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publication-links a {
  display: inline-block;
  padding: 2px 6px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.publication-links a:hover {
  background: #f8f8f8;
}

.see-more {
  margin: 0.5rem 0 1.5rem;
  color: #666666;
  font-size: 0.9rem;
}

.services h3 {
  margin: 0 0 0.5rem;
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
}

.services ul {
  margin-left: 1rem;
  padding-left: 0.25rem;
}

.services li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

footer p {
  margin: 2rem 0 1rem;
  color: #666666;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 1.5rem;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro {
    text-align: center;
  }

  .avatar {
    width: 120px;
  }

  .topics li {
    margin-right: auto;
    margin-left: auto;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .bio p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .avatar {
    width: 104px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .publication-title {
    font-size: 0.88rem;
  }

  .publication-authors {
    font-size: 0.78rem;
  }
}
