/* about 页面布局 */
.about-page {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

/* 左侧头像卡片 */
.about-page .about-avatar-card {
  flex: 0 0 220px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  background: var(--md-surface-color, #fff);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.about-page .about-avatar-image {
  width: 180px;
  height: 180px;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.about-page .about-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.about-page .about-avatar-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem 1rem 1rem;
}

.about-page .github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: #0d1117;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-page .github-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.about-page .github-link:hover {
  transform: none;
  box-shadow: 0 10px 20px rgba(13, 17, 23, 0.25);
}

/* 右侧介绍 */
.about-page .about-intro {
  flex: 1 1 300px;
  min-width: 240px;
  margin-top: 0;
}

.about-page .about-intro h2 {
  margin-top: 0;
}

.about-page .about-intro > *:first-child {
  margin-top: 0;
}

.about-page .about-intro p {
  margin-bottom: 0.8rem;
  line-height: 1.65;
}

.about-page .about-intro ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.about-page .about-intro ul li {
  margin: 0;
  white-space: nowrap;
}

/* 仅 about/about 页面扩展内容宽度 */
body[data-md-page="about/about"] {
  --md-content-max-width: 1280px;
}

body[data-md-page="about/about"] .md-grid,
body[data-md-page="about/about"] .md-main__inner,
body[data-md-page="about/about"] .md-content,
body[data-md-page="about/about"] .md-content__inner {
  max-width: 1280px;
  width: 100%;
}

@media (min-width: 1024px) {
  body[data-md-page="about/about"] .about-page {
    flex-wrap: nowrap;
  }
}
