/* 严肃学术风格CSS - 允许黑色滚动条，填满文字 */
html,
body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: auto; /* 允许垂直滚动条 */
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 12px; /* 增大字体 */
  line-height: 1.2; /* 稍微增加行高 */
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 自定义滚动条为黑色 */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #000 #f1f1f1;
}

.language-switcher {
  margin: 15px;
  text-align: center;
  font-size: 14px;
}

.language-switcher a {
  margin: 0 5px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.language-switcher a:hover {
  color: #666;
}

.container {
  max-width: 100%;
  height: 100vh;
  padding: 20px 100px 50px 100px; /* 增加四周padding */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.header-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex: 0 0 auto;
  height: 16vh; /* 增加顶部高度 */
}

.column {
  flex: 1;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}

.content-below {
  flex: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.skills-experience-row {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.skills-experience-row section {
  flex: 1;
}
.profile-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.profile-photo {
  width: 100px;
  height: auto;
  margin-right: 15px;
  border: 1px solid #000;
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-text h1 {
  margin: 0 0 5px 0;
  font-size: 18px; /* 增大标题 */
}

.profile-text p {
  margin: 2px 0;
  font-size: 12px; /* 匹配全局字体 */
}

h1 {
  font-size: 18px;
  margin: 0 0 5px 0;
  font-weight: bold;
}

.title,
.affiliation,
.education,
.contact {
  margin: 2px 0;
  font-size: 12px;
}

section {
  margin-bottom: 5px; /* 更紧凑 */
}
h2 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 5px 0;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}

h3 {
  font-size: 13px;
  font-weight: bold;
  margin: 5px 0 3px 0;
}

h4 {
  font-size: 12px;
  font-weight: bold;
  margin: 3px 0 2px 0;
}

p,
li {
  margin: 2px 0;
  text-align: justify;
}

ul {
  margin: 0 0 5px 0;
  padding-left: 15px;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project {
  flex: 1 1 45%;
  min-width: 300px;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  color: #666;
}

.footer {
  margin-top: auto;
  text-align: center;
  font-size: 10px;
  color: #666;
  border-top: 1px solid #000;
  padding-top: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    margin: 0 auto 10px;
  }

  .projects {
    flex-direction: column;
  }

  .project {
    min-width: unset;
  }
}
