/**
 * 文章内容保护 - 前端样式
 * 仅对文章正文内容区域生效，不影响导航、侧边栏、页脚等区域
 * 兼容 Zibll 子比主题及绝大多数 WordPress 主题
 */

/* ===== 禁止选中文本（仅文章内容区域） =====
 * 覆盖 Zibll 主题及 WordPress 标准及常见主题的内容区域
 * 选择器与 JS 中保持一致，由 PHP 统一配置 */
.article-content,
.entry-content,
.post-content,
.article-body,
.entry-summary,
article .article-content,
article .entry-content,
article .post-content,
.single-post .entry-content,
.post .entry-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== 允许内容区域内的表单输入正常选择 ===== */
.article-content input,
.article-content textarea,
.article-content select,
.entry-content input,
.entry-content textarea,
.entry-content select,
.post-content input,
.post-content textarea,
.post-content select,
.article-body input,
.article-body textarea,
.article-body select,
.entry-summary input,
.entry-summary textarea,
.entry-summary select,
article .article-content input,
article .article-content textarea,
article .article-content select,
article .entry-content input,
article .entry-content textarea,
article .entry-content select,
article .post-content input,
article .post-content textarea,
article .post-content select,
.single-post .entry-content input,
.single-post .entry-content textarea,
.single-post .entry-content select,
.post .entry-content input,
.post .entry-content textarea,
.post .entry-content select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== 禁止内容区域内图片拖拽 ===== */
.article-content img,
.entry-content img,
.post-content img,
.article-body img,
.entry-summary img,
article .article-content img,
article .entry-content img,
article .post-content img,
.single-post .entry-content img,
.post .entry-content img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* ===== 禁止内容区域内链接拖拽 ===== */
.article-content a,
.entry-content a,
.post-content a,
.article-body a,
.entry-summary a,
article .article-content a,
article .entry-content a,
article .post-content a,
.single-post .entry-content a,
.post .entry-content a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* ===== 打印防护：打印时仅隐藏文章内容，其余区域正常 ===== */
@media print {
    .article-content,
    .entry-content,
    .post-content,
    .article-body,
    .entry-summary,
    article .article-content,
    article .entry-content,
    article .post-content,
    .single-post .entry-content,
    .post .entry-content {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ===== 悬浮提示动画 ===== */
#wmg-cp-toast {
    -webkit-animation: wmgCpFadeIn 0.3s ease;
    animation: wmgCpFadeIn 0.3s ease;
}

@-webkit-keyframes wmgCpFadeIn {
    from {
        opacity: 0;
        -webkit-transform: translate(-50%, -45%);
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

@keyframes wmgCpFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
