/*
 * giscus 评论区
 *
 * 外观与正文里的插图卡片同一套（见 hyde.css 的 .post-image-card / .post-image-caption，
 * 灯箱下方的图注也取自同一份 alt）：纯白底，四边不封实线，只在左、右、下三个方向
 * 留一道浅投影，悬停时整块轻轻上浮、投影加深。
 * 用纯白而不是半透明白：卡片下方就是正文的纯白底色，半透明反而会透出下层文字，
 * 边界看着是脏的。
 * 评论 iframe 在跨域文档里，站点的 CSS 管不到它，iframe 内部同一套观感由
 * assets/css/giscus-theme.css 实现，主题参数见 _config.yml。
 */

.comments {
  margin-top: 2rem;
  /* 白底需要内边距，否则卡片边界会贴住「评论」标题和 iframe */
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border-radius: 8px; /* 与 .post-image-card 相同的圆角 */
  /* 左右下三方各一道投影，顶边不画，与上方正文自然衔接 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* 响应动画与插图卡片一致：上浮 3px、投影同时加深 */
.comments:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, .15);
}

.comments-title {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* 高度塌陷兜底：giscus 注入 iframe 前这里没有内容，给它一个最小占位高度，
   避免评论加载完成后页面突然跳一下 */
.giscus {
  min-height: 12rem;
}

/* giscus 注入的 iframe */
.giscus-frame {
  width: 100%;
  border: none;
}

.comments noscript {
  display: block;
  color: #9a9a9a;
  font-size: .875rem;
}

.comments noscript a {
  color: #268bd2;
}
