/*--------------------代码块配置（极简风格）---------------------*/
.highlight {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-bottom: var(--gMarginBottomSize);
}

code {
  color: var(--maincolor);
  padding: .1em .3em;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
  border-radius: 2px;
  background: rgba(199, 37, 78, 0.06);
  border: none;
  transition: all 0.15s ease;
}

code:hover {
  background: rgba(199, 37, 78, 0.1);
  transform: none;
}

pre {
  margin-bottom: 0;
  position: relative;
  line-height: 1.45;
  padding: 0.8em;
  border-radius: 0;
  overflow-x: auto;
  background-color: transparent !important;
  box-shadow: none;
  border: none;
}

pre code {
  color: #24292e;
  font-size: 0.9rem;
  padding: 0;
  background: transparent;
  border: none;
}

pre code:hover {
  transform: none;
}

/*--------------------复制按钮配置（极简）---------------------*/
.copy-code-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  background: var(--maincolor);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.highlight:hover .copy-code-btn {
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.copy-code-btn:hover {
  background: #a31545;
  transform: none !important;
  box-shadow: none;
}

.copy-code-btn.success {
  background: #10b981;
  box-shadow: none;
}

/* --------------------代码块语言标签（极简）--------------------- */
.highlight::before {
  content: attr(data-language);
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 11px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  color: #999;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}