/* 人物页面样式 */
header {
  position: relative;
}

main.container {
  padding: 0px 0px;
  min-height: 0;
}

img {
  overflow: initial;
}

.collage-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.collage {
  position: relative;
  margin: 0;
  width: 100%;
  box-shadow: none;
}

.collage-region {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.collage-region.autohover {
  transform: scale(1.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.collage-region:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.collage-image {
  display: block;
}

.splitter {
  position: relative;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.splitter:hover {
  opacity: 0.8;
}

.splitter .handle {
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.splitter:hover .handle {
  opacity: 1;
}

.info-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2vmin; /* 使用视口单位，根据区域大小调整内边距 */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* 水平居中 */
  z-index: 20;
  pointer-events: none;
}

.info-card.visible {
  opacity: 1;
  pointer-events: auto;
}

.info-card h3 {
  margin: 0 0 1.5vmin 0; /* 使用视口单位，根据区域大小调整外边距 */
  font-size: clamp(1.2rem, 3vmin, 2rem); /* 响应式字体大小，在1.2rem到2rem之间，根据视口大小调整 */
  line-height: 1.3;
  text-align: center; /* 确保标题文本居中对齐 */
  align-self: center; /* 确保标题本身在容器中居中 */
  width: 100%; /* 确保标题占满容器宽度，便于居中 */
}

.info-card p {
  margin: 0;
  font-size: clamp(0.8rem, 2vmin, 1.2rem); /* 响应式字体大小，在0.8rem到1.2rem之间，根据视口大小调整 */
  line-height: 1.5;
  max-height: 80%;
  max-width: 90%; /* 限制最大宽度，确保文本不会太宽 */
  align-self: center; /* 确保段落本身在容器中居中 */
}

.info-card a {
  margin: 1.5vmin 0 0 0;
  text-decoration: none;
  font-size: clamp(0.8rem, 2vmin, 1.2rem); /* 响应式字体大小，在0.8rem到1.2rem之间，根据视口大小调整 */
  line-height: 1.5;
  cursor: pointer;
}

/* 加载指示器 */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0b74ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
