* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: #f9f9f9;
}

/* 网站标题 */
.site-title {
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-primary);
  margin: 2rem auto;
  text-align: center;
}

/* 个人资料容器 */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

/* 个人资料头部 */
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.main-avatar {
  width: 10rem;
  height: 10rem;
  margin-right: 2rem;
}

.user-info .user-name {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-weight: bold;
}

.user-info p {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.user-age::before {
  content: "年龄：";
}

.user-location::before {
  content: "地点：";
}

/* 个人资料详情 */
.profile-details h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.introduction {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.info-list {
  list-style: none;
}

.info-list li {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background-color: #f0f0f0;
  border-radius: 0.5rem;
}

/* 照片库 */
.gallery h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.photo-grid .user-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* 移动端 */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }

  .profile-container {
    padding: 1rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .main-avatar {
    width: 8rem;
    height: 8rem;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .user-info .user-name {
    font-size: 1.8rem;
  }

  .user-age::before,
  .user-location::before {
    content: none;
  }

  .profile-details h3 {
    font-size: 1.8rem;
  }

  .introduction {
    font-size: 1.4rem;
  }

  .info-list li {
    font-size: 1.4rem;
  }

  .gallery h3 {
    font-size: 1.8rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}