/* === 全站内容防复制保护 === */

/* 禁用文本选择 */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许输入框和textarea正常选择 */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 禁用图片拖拽和长按保存 */
img, video {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* 允许视频播放控件可点击 */
video[controls] {
    pointer-events: auto;
}

/* 链接保持可点击 */
a, button, input, textarea, select, [role="button"], .btn {
    pointer-events: auto;
}

/* 禁用打印 */
@media print {
    body * {
        display: none !important;
    }
    body::after {
        content: '本站属于个人日记网站，BUG不断，敬请谅解！';
        display: block !important;
        font-size: 24px;
        text-align: center;
        padding: 100px 20px;
        color: #2E6E8F;
    }
}

/* === 防复制弹窗样式 === */
.anti-copy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.anti-copy-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.anti-copy-modal {
    background: #F6F9FC;
    border: 2px solid #4A8DB7;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}
.anti-copy-overlay.is-visible .anti-copy-modal {
    transform: scale(1) translateY(0);
}

.anti-copy-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #4A8DB7, #6BAED6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.anti-copy-message {
    font-size: 15px;
    line-height: 1.7;
    color: #5a4a3a;
    margin-bottom: 20px;
    font-weight: 500;
}

.anti-copy-close {
    display: inline-block;
    padding: 8px 32px;
    background: linear-gradient(135deg, #4A8DB7, #6BAED6);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.anti-copy-close:hover {
    box-shadow: 0 4px 12px rgba(74,141,183,0.4);
    transform: translateY(-1px);
}
