/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

body {
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

a {
  color: #0077cc;
  text-decoration: none;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 20px;
  background: white;
  border-bottom: 1px solid #ccc;
}

.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.navbar h1 {
  flex: 1 1 auto;
  font-size: 20px;
  margin-bottom: 5px;
}

.navbar .tagline {
  font-size: 14px;
  font-weight: normal;
  color: #888;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  color: #333;
}

/* 横幅 */
.banner {
  width: 100%;
  height: 150px;
  background-image: url(./images/banner.png);
  background-size: cover;
  background-position: center;
}

/* 主体 */
.content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  gap: 30px;
}

.profile {
  flex: 3;
}
/*
  .profile .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
  }
  */
.profile h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.pronoun {
  font-size: 16px;
  color: #888;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.card-link {
  flex: 1 1 calc((100% - 40px) / 3);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: white;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
  }
  
  .contact-cards .card {
    flex: 1 1 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
  }
/*手机屏幕适配 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
  }

  .content {
    flex-direction: column;
    padding: 0 15px;
  }

  .profile .avatar {
    width: 100px;
    height: 100px;
  }

  .profile h2 {
    font-size: 22px;
  }

  @media (max-width: 768px) {
    .card-link {
        flex: 1 1 calc((100% - 20px) / 2); /* 小屏每行 2 张 */
      }
  }

  @media (max-width: 480px) {
    .card-link {
      flex: 1 1 100%; /* 更小屏幕每行 1 张 */
    }
  }
}
