/* 基础透明风格设置 */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: url(../../publicPhotos/background.jpg);
  background-repeat:no-repeat;
  background-size:cover;
  background-attachment:fixed;
  color: #333;
  min-height: 100vh;
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Arial", sans-serif;
  background-color: #f5f5f5;
}

/* 主要内容区 */

.profile-container {
  display: flex;
  align-items: center;
  gap: 30px; /* 控制头像和文字的间距 */
}

/* 圆形头像样式 */
.avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0; /* 防止头像被压缩 */
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 加粗文字样式 */
.bold-text {
  font-weight: bold;
  font-size: 2rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap; /* 防止文字换行 */
}

/* 透明文字滚动条 */
.scrolling-text-container {
  position: fixed;
  top: 70vh;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0); /* 完全透明 */
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll 20s linear infinite;
  color: #fff;
  font-size: 14px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/*专用于移动设备的样式修正 */
@media (max-width: 1025px) {
  /* 圆形头像缩小 */
  .avatar-circle {
    width: 80px;
    height: 80px;
  }

  /* 大标题缩小字体 + 内边距 */
  .bold-text {
    font-size: 1.3rem;
    padding: 0 1rem;
    text-align: center;
  }

  /* 滚动字幕字体缩小 */
  .scrolling-text {
    font-size: 12px;
  }

  /* 主要容器改为垂直布局 + 居中对齐 */
  .profile-container {
    flex-direction: column;
    padding: 60px 10px 0;
    text-align: center;
    gap: 16px;
  }
}
