#header-home:checked+label[for="header-home"]::before {
  font-family: "fontawesome";
  content: "\f101";
}

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

body {
  background-color: #f8f9fa;
  min-height: 100vh;
}

#home.active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  background-color: #ffffff;
  padding: 3rem 4rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  width: 100%;
  margin: 100px auto 0;
}

.intro-container {
  flex: 1;
  text-align: left;
}

.intro-title {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.intro-desc {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 1.8rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #2d3748;
  font-size: 1.5rem;
  border-radius: 8px;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
  padding: 10px 14px;
}

.social-link:hover {
  background-color: #e8f4f8;
  color: #2b6cb0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.github-link {
  color: #171515;
}

.github-link:hover {
  background-color: #f0f0f0;
  color: #000000;
}

.zhihu-link {
  color: #0084ff;
}

.zhihu-link:hover {
  background-color: #f0f0f0;
  color: #0084ff;
}

.avatar-container {
  flex-shrink: 0;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e8f4f8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

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

@media (max-width: 768px) {
  #home.active {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 40px;
  }

  .intro-title {
    font-size: 2rem;
  }

  .intro-desc {
    max-width: 100%;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .social-links {
    justify-content: center;
  }
}