/* ===== Container ===== */
.pub-container {
  padding-top: 24px;
  padding-bottom: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 8px;
  padding-right: 16px;
}

/* ===== Sidebar ===== */
.pub-sidebar { margin-bottom: 24px; padding-left: 0; }
.pub-card {
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  background: #fff;
  text-align: left;
  position: relative;
  left: 10px;
}
.pub-card--center { text-align: center; }

.pub-avatar {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 12px;
}

/* name / intro */
.pub-realname {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 6px 0 6px;
}
.pub-intro {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}

/* legacy (kept, harmless) */
.pub-name { font-size: 1.4rem; margin: 4px 0; }
.pub-title { color: #666; margin: 0 0 8px; }
.pub-bio { color: #444; font-size: .95rem; }

/* ===== Buttons (optional links group) ===== */
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-btn {
  border: 1px solid #ddd; border-radius: 999px; padding: 6px 12px;
  text-decoration: none;
}
.pub-btn:hover { border-color: #aaa; }

/* ===== Right list: publications ===== */
.pub-list {
  font-size: 0.88rem;   /* 全局统一缩放（markdownify-safe） */
  line-height: 1.4;
  color: #222;
}
.pub-list * {
  font-size: inherit !important;
  line-height: inherit;
  color: inherit;
}

/* 年份标题（采用最终更紧凑版本） */
.pub-year {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: 0.2px;
}

/* 章节标题（若使用） */
.pub-section-title { margin: 8px 0 16px; }

/* 每个年份块的列表容器（采用紧凑版本并支持计数器） */
.pub-section {
  display: flex;
  flex-direction: column;
  gap: 8px;              /* 最终生效：8px */
  margin-bottom: 0.75rem;
  counter-reset: pubIndex;
}

/* 单条论文卡片（整合内边距 + 左缩进） */
.pub-item--text {
  position: relative;
  border-radius: 10px;
  transition: background .15s ease, box-shadow .15s ease;
  padding: 4px 6px;      /* 顶/右/底 */
  padding-left: 1.2rem;  /* 左留给编号/圆点 */
}
.pub-item--text:hover {
  background: #fafafa;
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
}

/* 标题行（更紧凑） */
.pub-title-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

/* 标题样式：统一到全局字号、仅加粗 */
.pub-title { font-weight: 600; margin: 0 0 0.15rem; }
.pub-title :is(h1,h2,h3,h4,h5,h6) {
  margin: 0;
  font-weight: 600;
}

/* 作者 / 期刊/会议 / 附加链接（统一行距） */
.pub-authors,
.pub-venue,
.pub-links-inline {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}
.pub-links-inline a { text-decoration: none; }
.pub-links-inline a:hover { text-decoration: underline; }

/* 分割线（更紧凑） */
.pub-sep { margin: 16px 0; }

/* ===== Contacts (left panel) ===== */
.pub-contacts {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #000;
  padding-left: 30px; /* 留空，不贴边 */
}
.pub-contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}
.pub-contacts li .pub-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-right: 10px;   /* 图标与文字固定间距 */
  opacity: 0.85;
}
.pub-contacts a {
  text-decoration: none;
  color: #000 !important;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.pub-contacts a:hover {
  text-decoration: underline;
  color: #444 !important;
}
.pub-contacts span {
  color: #000;
  font-size: 0.88rem;
}

/* ===== Numbering/Bullets: 小圆点方案 ===== */
.pub-item--text::before {
  counter-increment: pubIndex;
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #000000;
}

/* ===== Badges hidden (CCF/SCI) ===== */
.ccf-a, .ccf-b, .ccf-c, .sci { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .pub-container { padding-left: 10px; padding-right: 10px; }
  .pub-contacts { padding-left: 12px; font-size: 0.83rem; gap: 5px; }
  .pub-item--text { padding-left: 1.8rem; }       /* 给小屏更多缩进空间 */
  .pub-item--text::before { top: 0.25rem; }       /* 调整圆点对齐 */
}

.pub-authors b,
.pub-authors strong,
.pub-authors u b,
.pub-authors u strong {
  color: #8d3e02 !important;
  font-weight: 700;
}

/* 移除下划线效果，但保留文本颜色与加粗 */
.pub-authors u {
  text-decoration: none !important;
}

.pub-venue {
  font-style: italic;
}