/**
 * Prism 深色主题 + 代码块外壳（语言标签、复制按钮）
 * 供前台 .post-content 内 <pre><code class="language-xxx"> 高亮使用
 */
/* 代码块整体外壳 */
.post-content .code-block-wrap {
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.06);
}
/* 顶部栏：语言名 + 复制 */
.post-content .code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px 16px;
  background: #21252b;
  color: #9da5b4;
  font-size: 13px;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.post-content .code-block-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #abb2bf;
}
.post-content .code-block-lang::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #61afef;
}
.post-content .code-block-wrap[data-lang="markup"] .code-block-lang::before { background: #e06c75; }
.post-content .code-block-wrap[data-lang="javascript"] .code-block-lang::before { background: #e5c07b; }
.post-content .code-block-wrap[data-lang="css"] .code-block-lang::before { background: #61afef; }
.post-content .code-block-wrap[data-lang="php"] .code-block-lang::before { background: #8892bf; }
.post-content .code-block-wrap[data-lang="python"] .code-block-lang::before { background: #56b6c2; }
.post-content .code-block-copy {
  padding: 4px 10px;
  font-size: 12px;
  color: #9da5b4;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.post-content .code-block-copy:hover {
  color: #98c379;
  background: rgba(152,195,121,0.12);
}
.post-content .code-block-copy.copied {
  color: #98c379;
}
/* 代码区域 */
.post-content .code-block-wrap pre[class*="language-"] {
  margin: 0;
  border-radius: 0;
  border: none;
}
code[class*="language-"],
pre[class*="language-"] {
  color: #abb2bf;
  background: #282c34;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 4;
}
pre[class*="language-"] {
  padding: 15px;
  margin: 15px 0;
  overflow-x: auto;
  border-radius: 5px;
}
.post-content .code-block-wrap pre[class*="language-"] {
  padding: 14px 16px;
}
:not(pre) > code[class*="language-"] {
  padding: 0.2em 0.4em;
  border-radius: 3px;
  white-space: normal;
}
/* Prism token 颜色（与 changelog 代码块一致） */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata { color: #5c6370; font-style: italic; }
.token.punctuation { color: #abb2bf; }
.token.keyword { color: #c678dd; }
.token.property,
.token.tag { color: #56b6c2; }
.token.attr-name { color: #d19a66; }
.token.attr-value,
.token.string { color: #98c379; }
.token.number { color: #d19a66; }
.token.function,
.token.class-name { color: #61afef; }
.token.operator,
.token.entity,
.token.url { color: #56b6c2; }
.token.selector { color: #e06c75; }
.token.boolean,
.token.constant,
.token.symbol,
.token.deleted { color: #d19a66; }
.token.regex,
.token.important,
.token.variable { color: #e06c75; }
.token.important,
.token.bold { font-weight: bold; }
.token.italic { font-style: italic; }
