/* ===============================================
   AdaReasoner 网页字体全面优化 v3
   参考 Thinking in Space 网页设计
   Typography Optimization for AdaReasoner Website
   =============================================== */

/* 1. 全局基础字体 - 回退到适中大小 */
body {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 22px !important;  /* 回退到 22px */
  line-height: 1.6 !important;  /* 适中的行距 */
  letter-spacing: -0.01em !important;
  color: #2c3e50 !important;
}

/* 2. 论文主标题 "Dynamic Tool Orchestration..." - 增大字号 */
.publication-main-title,
h1.publication-main-title {
  font-family: Arial, sans-serif !important;
  font-size: 36px !important;  /* 缩小到 36px，更适中 */
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  color: rgb(54, 54, 54) !important;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
}

/* 响应式调整 - 移动端保持适中 */
@media (max-width: 768px) {
  .publication-main-title,
  h1.publication-main-title {
    font-size: 28px !important;
  }
}

/* 3. 论文副标题（如果需要） - ThinkMorph 风格 */
.hero .publication-subtitle,
.is-max-desktop .publication-subtitle,
.subtitle.is-3 strong {
  font-family: 'Noto Sans', Arial, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin-top: 1rem !important;
  letter-spacing: normal !important;
  color: #2c3e50 !important;
}

/* 4. 作者信息 - 与 ThinkMorph 完全一致 */
.hero .publication-authors,
.is-max-desktop .publication-authors {
  font-family: 'Google Sans', sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: rgb(74, 74, 74) !important;
  margin-top: 2rem !important;
  line-height: 36px !important;
}

/* 5. 机构信息 - 与 ThinkMorph 完全一致 */
.hero .publication-authors + .publication-authors,
.is-max-desktop .publication-authors + .publication-authors {
  font-family: 'Google Sans', sans-serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: rgb(74, 74, 74) !important;
  margin-top: 1rem !important;
  line-height: 36px !important;
}

/* 6. 所有二级标题 (Abstract, Video Demo, etc.) - ThinkMorph 风格 */
section h2.title,
section .title.is-3,
.section h2.title,
h2.title.is-3 {
  font-family: 'Google Sans', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  margin-top: 2.5rem !important;
  letter-spacing: normal !important;
  color: #1a202c !important;
}

/* 7. 三级标题 (Key Features 卡片标题) - ThinkMorph 风格 */
.box h3.title,
h3.title.is-5,
.column h3.title {
  font-family: 'Google Sans', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.8rem !important;
  color: #1a202c !important;
}

/* 8. 正文段落 - 回退到适中大小 */
.content p,
.box p,
.has-text-justified p,
.content.has-text-justified {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 22px !important;  /* 回退到 22px */
  line-height: 1.6 !important;  /* 适中的行距 */
  letter-spacing: -0.01em !important;
  margin-bottom: 0.8em !important;
  padding: 0 !important;
  text-align: justify !important;
  color: #2c3e50 !important;
}

.content {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 22px !important;  /* 回退到 22px */
  line-height: 1.6 !important;  /* 适中的行距 */
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 8.1 Abstract 段落 - 与正文一致 */
section:has(h2:contains("Abstract")) .content p,
section .content p:first-of-type {
  font-size: 22px !important;
  line-height: 1.6 !important;
  letter-spacing: -0.01em !important;
}

/* 9. Teaser 图片说明文字 - ThinkMorph 风格 */
.teaser .subtitle,
.teaser .hero-body .subtitle {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #2c3e50 !important;
}

/* 10. 表格优化 - ThinkMorph 风格 */
.table td,
.table th {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 0.95rem !important;
  padding: 0.8rem 0.75rem !important;
  line-height: 1.5 !important;
}

.table th {
  font-weight: 700 !important;
  color: #1a202c !important;
}

/* 11. 图片说明文字 - 增大字号以提升可读性 */
p.has-text-centered,
.container p.has-text-centered {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 1.1rem !important;  /* 从 0.95rem 增大到 1.1rem */
  line-height: 1.6 !important;
  margin-top: 1rem !important;
  color: #4a5568 !important;
}

/* 12. 按钮文字优化 - ThinkMorph 风格 */
.button,
.link-block .button {
  font-family: 'Noto Sans', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

/* 13. 确保所有标题都使用 Google Sans */
h1, h2, h3, h4, h5, h6,
.title,
.subtitle {
  font-family: 'Google Sans', sans-serif !important;
}

/* 14. BibTeX 代码块 */
#BibTeX pre code {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

/* 15. Strong 标签强调 - ThinkMorph 风格 */
strong {
  font-family: 'Noto Sans', sans-serif !important;
  font-weight: 700 !important;
  color: #1a202c !important;
}
