/* 代码块样式 (生成时预渲染高亮) */
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #f0e9dd;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  font-family: var(--sans);
}
.post-content pre:hover .code-copy-btn { opacity: 1; }

/* 图片放大遮罩 */
.img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s;
}
.img-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* highlight.php 输出类名 (默认主题, 生成时注入) */
.hljs-comment, .hljs-quote { color: #8a8578; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal { color: #ad3423; }
.hljs-string, .hljs-doctag { color: #7a5f0e; }
.hljs-title, .hljs-section { color: #2d5a4e; }
.hljs-number, .hljs-symbol, .hljs-bullet { color: #9a6a2a; }
.hljs-built_in, .hljs-type { color: #5c6b4e; }
.hljs-function .hljs-title { color: #1f4e5f; }
.hljs-variable, .hljs-template-variable { color: #70423a; }
