/* 文章正文增强：代码块复制 · Video.js 10 · 引用块 */

/* ========== 代码块复制按钮 ========== */
.code-block-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-block-wrapper pre {
  margin: 0 !important;
  border-radius: 0 !important;
  background: #1E1E1E !important;
  padding: 1.25rem !important;
}

.code-block-wrapper pre code {
  background: transparent !important;
  padding: 0 !important;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a9a9a9;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.code-block-wrapper:hover .copy-button {
  opacity: 1;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.copy-button.success {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* ========== Video.js 10（正文内） ========== */
.markdown-body .article-video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.markdown-body .article-vjs-player,
.markdown-body .article-vjs-skin {
  display: block;
  width: 100%;
  height: 100%;
}

.markdown-body .article-vjs-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* ========== 引用块 ========== */
.markdown-body blockquote {
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  margin: 20px 0;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-style: normal;
}

.markdown-body blockquote p:first-child {
  margin-top: 0;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ========== 关键词内链 ========== */
.markdown-body a.passage-kw-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.markdown-body a.passage-kw-link:hover {
  color: #2563eb;
}
