/* CSS防复制 */

/* 1. 核心保护：禁用文本选择 */
* {

    /* 防止拖拽 */
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 2. 为必需的元素保留正常光标 */
a[href], 
button, 
input, 
select, 
textarea, 
[onclick],
[role="button"],
[tabindex] {
    cursor: pointer !important;
}

/* 3. 表单元素特殊处理（避免影响正常使用） */
input:not([type="checkbox"]):not([type="radio"]), 
textarea, 
select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    cursor: text !important;
}

/* 4. 移动端优化 */
html, body {
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation; /* 防止双击缩放 */
}

/* 5. 隐藏选中效果 */
::selection,
::-moz-selection,
::-webkit-selection {
    background-color: transparent !important;
    color: inherit !important;
    text-shadow: none !important;
}

/* 6. 防止复制相关元素 */
[class*="copy"], 
[id*="copy"], 
[data-copy],
[oncopy] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}