/* Simple, clean academic homepage style */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 17px;
  line-height: 1.65;
  color: #333;
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
  position: relative;
}

/* Language Toggle Button */
.lang-toggle {
  position: absolute;
  top: 40px;
  right: 30px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: #2c5aa0;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  z-index: 100;
}

.lang-toggle:hover {
  background: #1d4278;
  transform: translateY(-2px);
}

.lang-toggle:active {
  transform: translateY(0);
}

/* Header */
.header {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 35px;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  padding-top: 10px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.zh-name {
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  margin-left: 8px;
}

.affiliation {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.contact {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

.contact a {
  color: #2c5aa0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.contact a:hover {
  border-bottom: 1px solid #2c5aa0;
}

/* Main Content */
.main-content {
  margin-top: 30px;
}

section {
  margin-bottom: 45px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.medals {
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.medals img {
  width: 380px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  padding: 8px;
  background: #fafafa;
}

.medals p {
  font-size: 0.9em;
  color: #888;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

p {
  margin-bottom: 15px;
  text-align: justify;
}

a {
  color: #2c5aa0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: #222;
}

em {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

/* Lists */
ul {
  list-style: none;
  margin-top: 15px;
}

ul li {
  margin-bottom: 22px;
  padding-left: 20px;
  position: relative;
}

ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2c5aa0;
  font-weight: bold;
}

ul li strong {
  display: block;
  margin-bottom: 4px;
}

ul li br + em {
  display: block;
  margin-top: 4px;
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive */
@media (max-width: 750px) {
  body {
    padding: 30px 20px;
  }

  .lang-toggle {
    top: 30px;
    right: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
  }

  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .profile-info {
    padding-top: 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  .zh-name {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }

  p {
    text-align: left;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 16px;
    padding: 20px 15px;
  }

  .lang-toggle {
    top: 20px;
    right: 15px;
    padding: 5px 12px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .profile-img {
    width: 130px;
    height: 130px;
  }
}
