@charset 'utf-8';

/**
 * matcha.css (Static Clean Edition for Hugo)
 * 保留 Matcha 核心视觉，移除懒加载与多余动画
 */

@import url('matcha.reset.css');
@import url('matcha.grid.css');
@import url('matcha.layout.css');
@import url('matcha.post.css');
@import url('matcha.page.css');
@import url('matcha.libs.css');
@import url('matcha.dark.css');

/* 移除任何残留过渡/入场动画，让静态浏览干脆利落 */
.post,
.post-atmain,
#main,
#sidebar,
img {
  animation: none !important;
}

/* 移动端导航展开状态（纯 CSS + 极简 JS 切换，无需 jQuery） */
.navbar-dropdown.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 历史评论归档提示条 */
.comment-archive-notice {
  margin: 1.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--theme-color);
  background: rgba(127, 127, 127, 0.08);
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.85;
}

.comment-author-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.72rem;
  border-radius: 3px;
  background: var(--theme-color);
  color: #fff;
  vertical-align: middle;
}

/* 静态文章内图片直接显示，无 loading.gif 占位 */
.post-content figure {
  margin: 1.25rem 0;
  text-align: center;
}
.post-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.post-content figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* 原生 Hugo TOC 适配 Matcha tocbar */
#tocbar #TableOfContents ul {
  list-style: none;
  padding-left: 0.75rem;
  margin: 0.25rem 0;
}
#tocbar #TableOfContents > ul {
  padding-left: 0;
}
#tocbar #TableOfContents a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* 阅读更多按钮 */
.post-readmore {
  margin-top: 0.75rem;
}
.post-readmore a {
  font-size: 0.9rem;
  color: var(--theme-color);
}
