/* 主页头像 + 文本的两列布局 */
.profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 1rem 0;
}
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; text-align: center; }
}

/* 圆形头像 */
.profile .avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--md-default-fg-color--lightest, #e0e0e0);
}

/* 论文列表样式（一句话 + 关键词） */
.pub-list { display: grid; gap: 12px; }
.pub-item {
  border: 1px solid var(--md-default-fg-color--lighter, #ddd);
  border-radius: 8px;
  padding: 12px;
}
.pub-item .meta { opacity: .75; font-size: .9em; margin-top: 2px; }
.chips { margin-top: 6px; }
.chip {
  display: inline-block;
  border: 1px solid var(--md-default-fg-color--lighter, #ddd);
  border-radius: 9999px;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: .8em;
}

/* 放宽页面最大宽度（默认大概 1240px 左右），你可以按需调大/调小 */
.md-grid { max-width: 1280px; }
@media (min-width: 1440px) {
  .md-grid { max-width: 1400px; }
}

/* 纯 Markdown 头像方案：左浮动 + 圆角 + 间距 */
.md-typeset img.avatar-left {
  float: left;
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 16px 8px 0;
  border: 2px solid var(--md-default-fg-color--lightest, #e0e0e0);
}

/* 保证到下一个二级标题时清除浮动，避免布局重叠 */
.md-typeset h2 { clear: both; }
.text-red   { color: #e53935; }
.text-purple { color: #e611e6; }
.text-green { color: #43a047; }
.text-blue  { color: #1e88e5; }
.bg-yellow  { background: #fff3cd; padding: 0 .25em; border-radius: .2em; }

/* 地图容器 */
#visit-map { height: 360px; border-radius: 8px; }
/* 访客小部件：居中 + 卡片外观 */
.md-typeset .vis-center {
  display: block;              /* 让链接变成块级，便于居中 */
  text-align: center;          /* 内容居中 */
  margin: 1rem auto;           /* 与上下文留出间距 */
}

.md-typeset .vis-center img {
  display: inline-block;       /* 保持图片在中线 */
  max-width: 100%;             /* 移动端自适应 */
  height: auto;
  border-radius: 12px;         /* 圆角 */
  border: 1px solid var(--md-default-fg-color--lighter, #ddd);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
/* 论文卡片内的作者行 */
.pub-item .authors{
  margin-top: 2px;
  font-size: .95em;
  opacity: .85;                  /* 稍淡一点 */
}
.pub-item .authors a{            /* 作者链接样式（可选） */
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
/* 如需限制最大宽度（可选，按需开启） */
.md-typeset .vis-center img { max-width: 720px; }
