html, body {
  height: 100%; /* 确保 body 和 html 高度为 100% */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  position: relative; /* 确保伪元素相对于 body 定位 */
}

/* 定义图片的样式 */
.profile-image {
  position: relative; /* 确保 h1 在伪元素之上 */
  z-index: 2; /* 使文字内容显示在遮罩层之上 */
  width: 300px; /* 设置图片的宽度为150px */
  height: 300px; /* 设置图片的高度为150px */
  display: block; /* 将图片设置为块级元素，这样可以使用 margin 居中 */
  margin: 0 auto; /* 将图片水平居中 */
  border-radius: 50%; /* 将图片裁剪为圆形 */
  border: 4px solid #ccc; /* 给图片添加一个灰色的边框 */
  object-fit: cover; /* 保证图片按比例填充，裁剪超出部分 */
}

h1 {
  position: relative; /* 确保 h1 在伪元素之上 */
  z-index: 2; /* 使文字内容显示在遮罩层之上 */
  color: white;
  text-align: center; /* 将文本居中 */
}

.content-text {
  position: relative; /* 确保 h1 在伪元素之上 */
  z-index: 2; /* 使文字内容显示在遮罩层之上 */
  color: white;
  text-align: center; /* 将文本居中 */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-image: url('./images/background.gif'); /* 设置动态背景 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative; /* 设置为相对定位，以便伪元素能够正确覆盖 */
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  width: 70%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* 使用半透明的黑色遮罩 */
  z-index: 1; /* 确保遮罩层在背景图的上方 */
}

a {
  color: white; /* 设置链接颜色，例如 Dodger Blue */
  text-decoration: none; /* 移除下划线 */
}

a:hover {
  color: #ff6347; /* 设置悬停时的颜色，例如 Tomato 色 */
  text-decoration: underline; /* 鼠标悬停时显示下划线 */
}
