* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", "Noto Serif SC", serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.4;
  font-size: 16px;
}

.custom-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 28px 56px;
}

.hero {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 30px;
}

.avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.intro {
  flex: 1;
  min-width: 0;
}

.intro h1 {
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.3px;
}

.subtitle {
  margin: 8px 0 18px;
  color: #666666;
  font-size: 16px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.bio {
  margin: 0 0 16px;
  max-width: 700px;
}

.bio p {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
}

.email-line {
  margin-top: 10px;
  font-size: 16px;
}

.copy-email {
  cursor: copy;
  user-select: text;
  border-bottom: 1px dashed #999;
}

.copy-email:hover {
  color: #2f4f8f;
}

a {
  color: #2f4f8f;
  text-decoration: none;
}

a:hover {
  color: #1d3768;
}

.links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.links a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #111111;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
}

.links a:hover {
  opacity: 0.72;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.block {
  margin-top: 24px;
}

.block h2 {
  font-size: 18px;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #d9d9d9;
  font-weight: 700;
  line-height: 1.2;
}

.block p,
.block li {
  font-size: 16px;
  line-height: 1.45;
}

.project {
  margin-bottom: 10px;
}

.project h3 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 4px;
}

/* 小星星 */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 10px;
  line-height: 1;
  transform: translate(-50%, -50%) scale(0.8);
  animation: sparkle-fade 700ms ease-out forwards;
  user-select: none;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -65%) scale(1.25);
  }
}

@media (max-width: 900px) {
  .container {
    padding: 22px 18px 40px;
  }

  .hero {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }

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

  .intro h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .subtitle {
    font-size: 13px;
    margin: 6px 0 14px;
  }

  .bio p,
  .email-line,
  .block p,
  .block li,
  .project h3 {
    font-size: 13px;
  }

  .block h2 {
    font-size: 16px;
  }

  .sparkle {
    display: none;
  }
}
