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

/* 首页个人简介 */
.profile {
  display: flow-root;
}
.md-typeset .profile-photo {
  float: left;
  display: block;
  width: clamp(6.5rem, 12vw, 7.5rem);
  margin: 0 1.15rem .45rem 0;
}
.md-typeset .profile-photo p { margin: 0; }
.profile-photo img {
  display: block;
  width: 100%;
  border-radius: 50%;
}
.md-typeset .profile-photo figcaption {
  margin: .4rem 0 0;
  color: var(--md-default-fg-color--light);
  font-size: .72rem;
  text-align: center;
}
.profile-heading { margin-bottom: .4rem; }
.md-typeset .profile-heading h1 { margin: 0 0 .55rem; }
.profile-heading h1 small { font-size: .57em; }
.md-typeset .profile-heading p,
.md-typeset .profile-details > p { margin: 0; }
.profile-details > p:first-child { display: flow-root; }
.md-typeset .profile-details > p + p {
  clear: both;
  margin-top: .65rem;
}
.research-label {
  margin-inline-end: .35em;
  color: var(--md-default-fg-color--light);
  font-size: .8em;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.md-typeset .profile-links a {
  padding: .12rem .65rem;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 2rem;
  font-size: .75rem;
}
.profile-links a:hover,
.profile-links a:focus-visible { border-color: currentColor; }

@media (max-width: 600px) {
  .profile {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    grid-template-areas: "photo heading" "details details";
    gap: .8rem;
  }
  .md-typeset .profile-photo { grid-area: photo; width: 100%; margin: 0; }
  .profile-heading { grid-area: heading; align-self: center; margin: 0; }
  .profile-details { grid-area: details; }
  .md-typeset .profile-heading h1 { margin-bottom: .25rem; }
}
.md-typeset img.interest-icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
}
.text-red   { color: #e53935; }
.text-purple { color: #e611e6; }
.text-green { color: #43a047; }
.text-blue  { color: #1e88e5; }
.text-yellow  { color: #ffb300; }
.bg-yellow  { background: #fff3cd; padding: 0 .25em; border-radius: .2em; }

/* 教育经历 */
.md-typeset .education-list {
  display: grid;
  gap: .5rem;
  line-height: 1.45;
}

.md-typeset .education-list dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 .75rem;
  margin: 0;
  font-weight: 400;
}

.md-typeset .education-list dt a {
  color: inherit;
}

.md-typeset .education-list dt a:hover {
  text-decoration: underline;
}

.md-typeset .education-list dd {
  margin: 0;
}

.md-typeset .education-list dd,
.md-typeset .education-date {
  color: var(--md-default-fg-color--light);
  font-size: .85em;
}

.md-typeset .education-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 地图容器 */
#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;
  width: 100%;
  max-width: 720px;
  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);
}

/* News：固定高度 + 超出滚动（只影响 News 标题后紧跟的那个 ul 列表） */
.md-typeset h2#news + ul {
  max-height: 280px;          /* 你想要的固定高度，改这里 */
  overflow-y: auto;           /* 超出出现滚动条 */
  overflow-x: hidden;

  padding: 12px 16px 12px 28px; /* 左边留出 bullet 缩进 */
  margin: 0 0 1rem 0;

  border: 1px solid var(--md-default-fg-color--lighter, #ddd);
  border-radius: 8px;
  background: var(--md-default-bg-color);

  scrollbar-gutter: stable;   /* 避免滚动条出现导致宽度抖动（支持的浏览器有效） */
  -webkit-overflow-scrolling: touch; /* iOS 更顺滑 */
}

/* 可选：美化滚动条（Chrome/Edge/Safari 生效） */
.md-typeset h2#news + ul::-webkit-scrollbar {
  width: 8px;
}
.md-typeset h2#news + ul::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .18);
  border-radius: 999px;
}
.md-typeset h2#news + ul::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, .28);
}


/* ===== Publications ===== */
:root {
  --ui-border: var(--md-default-fg-color--lighter, #ddd);
  --ui-border-soft: var(--md-default-fg-color--lightest, #e0e0e0);
  --card-radius: 10px;
}

.pub-list {
  display: grid;
  gap: 14px;
}

.pub-item {
  padding: 14px 16px;
  border: 1px solid var(--ui-border);
  border-radius: var(--card-radius);
  background: var(--md-default-bg-color);
  font-size: 0.75rem;   /* 整体缩一点 */
}

.pub-item > strong {
  display: block;
  line-height: 1.35;
  font-size: 0.85rem;   /* 标题稍微小一点 */
}

.pub-item .authors {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light, #666);
  font-weight: 400;
}

.pub-item .authors .author-me {
  font-weight: 700;
  color: var(--md-default-fg-color, #111);
}

.pub-item .meta {
  display: block;
  font-size: 0.70rem;
  line-height: 1.45;
  opacity: .75;
  font-weight: 400;
}

.pub-item .summary {
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: 400;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 9999px;
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
}

.pub-item .meta {
  display: block;
  font-size: 0.70rem;
  line-height: 1.5;
  opacity: .75;
  font-weight: 400;
}

.pub-item .summary {
  line-height: 1.65;
  font-weight: 400;   /* 关键：显式防止描述被继承成粗体 */
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: .65rem;
}



.pub-item .authors a,
.pub-item .meta a {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.pub-item .authors a:hover,
.pub-item .meta a:hover {
  border-bottom-style: solid;
}
.link-disabled {
  opacity: .55;
  cursor: default;
}

