/* Override blockquote hover effect */
blockquote {
    transition: background 0.2s ease; /* 添加过渡动画 */
    border-radius: 4px; /* 加一点圆角更好看 */
    position: relative; /* 为伪元素定位 */
    z-index: 1; /* 确保文字在背景之上 */
}

/* 使用伪元素来实现背景，这样调节 opacity 不会影响文字 */
blockquote:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--block); /* 使用主题背景色 */
    opacity: 0.35; /* 【在这里调整透明度】0.5 表示 50% 透明度，1 表示不透明 */
    z-index: -1; /* 放在文字下方 */
    border-radius: 4px;
    pointer-events: none; /* 避免遮挡鼠标事件 */
}

blockquote:hover {
    background: transparent !important; /* 移除原本的背景设置 */
}
blockquote:hover:before {
    background: var(--theme) !important; /* 使用正文颜色，比默认的浅灰色深 */
    opacity: 0.2 !important; /* 增加不透明度 */
}

/* Banner Video/Iframe Support */
.tag-plugin.banner {
    transform: translateZ(0); /* Fix border-radius clipping */
}

.tag-plugin.banner video.bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.tag-plugin.banner iframe.bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    border-radius: inherit;
}

h1, .h1, .md-text h1 { font-weight: 600 !important; }
h2, .h2, .md-text h2 { font-weight: 600 !important; }
h3, .h3, .md-text h3 { font-weight: 600 !important; }
h4, .h4, .md-text h4 { font-weight: 600 !important; }
h5, .h5, .md-text h5 { font-weight: 600 !important; }
h6, .h6, .md-text h6 { font-weight: 600 !important; }