.code-block {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #1e1e1e;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background-color: #323233;
  color: #808080;
  font-family: system-ui, -apple-system, sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-language {
  font-size: 1.3rem;
  font-weight: 400;
  color: #808080;
  text-transform: lowercase;
  padding: 0.6rem 1rem;
}

.copy-button {
  background-color: transparent;
  border: none;
  color: #808080;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-family: system-ui, -apple-system, sans-serif;
  width: auto;
  justify-content: flex-start;
}

.copy-button i {
  font-size: 1rem;
}

.copy-button:hover {
  color: #e0e0e0;
}

.copy-button.success {
  color: #4CAF50;
}

/* 代码区域样式 */
.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  background-color: #1e1e1e;
}

.code-block pre code {
  font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
  font-size: 1.3rem;
  line-height: 1.1;
}

/* 确保Prism.js样式应用到所有代码块 */
pre[class*="language-"] {
  margin: 0;
  background-color: #1e1e1e !important;
}

/* 确保所有代码都应用了字体 */
code[class*="language-"] {
  font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 修改滚动条样式 */
.code-block pre::-webkit-scrollbar {
  height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: #3e3e3e;
  border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: #4e4e4e;
} 