/* ========================================
   蹄铁图标 —— 全站替换太极旋转图标
   ======================================== */

/* 公共 mixin：蹄铁 mask + 135deg */
.main-nav-icon.rotate,
.sidebar-menu-icon.rotate {
  color: transparent !important;
  font-size: 0 !important;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  align-self: center;
  background-color: var(--red-1) !important;
  -webkit-mask: url(/images/teitetsu.svg) no-repeat center / contain;
  mask: url(/images/teitetsu.svg) no-repeat center / contain;
  transform: rotate(135deg) !important;
  transition: transform 0.3s !important;
}

/* 桌面导航 hover */
.main-nav-link-wrap:hover .main-nav-icon.rotate {
  transform: rotate(225deg) !important;
}

/* 侧边栏菜单 hover */
.sidebar-menu-link-wrap:hover .sidebar-menu-icon.rotate {
  transform: rotate(225deg) !important;
}

/* 页脚分隔蹄铁 */
.footer-info-sep.rotate {
  display: inline-block;
  color: transparent !important;
  font-size: 0 !important;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  background-color: var(--red-1);
  -webkit-mask: url(/images/teitetsu.svg) no-repeat center / contain;
  mask: url(/images/teitetsu.svg) no-repeat center / contain;
  transform: rotate(135deg);
  transition: transform 0.3s;
}

/* 回到顶部蹄铁 */
.sidebar-top-taichi.rotate {
  -webkit-mask-image: url(/images/teitetsu.svg) !important;
  mask-image: url(/images/teitetsu.svg) !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  transform: rotate(135deg);
}

/* 打赏图标蹄铁 */
.sponsor-icon.rotate {
  -webkit-mask-image: url(/images/teitetsu.svg) !important;
  mask-image: url(/images/teitetsu.svg) !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  transform: rotate(135deg);
}

/* ========================================
   评论区自定义美化样式
   ======================================== */

#comments {
  position: relative;
  margin: 20px 0;
  padding: 24px 32px !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

#comments::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-1), transparent);
  border-radius: 16px 16px 0 0;
}

#comments .comment-header {
  flex-direction: row;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

#comments .comment-title {
  margin: 0 !important;
  width: auto !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: left !important;
}

#comments .comment-selector {
  display: none !important;
}

.giscus-comment .giscus,
.giscus-comment iframe.giscus-frame {
  width: 100%;
}

@media (max-width: 600px) {
  #comments {
    padding: 16px !important;
  }
}
