/* 图片防盗水印样式 */

/* 图片水印容器 - 透明度水印 */
.image-watermark {
    position: relative !important;
    overflow: hidden;
}

.image-watermark::before {
    content: attr(data-watermark-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    user-select: none;
}

.image-watermark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 55%
    );
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 11;
}

/* 确保图片容器有相对定位 */
.comparison-image,
.case-gallery > div,
.photo-section > div,
.case-image-container {
    position: relative !important;
}

/* 首页案例卡片图片水印 */
.case-card-simplified .case-comparison .comparison-image::after {
    content: attr(data-watermark);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 详情页案例图片水印已移除，统一由 image-protection.js 动态生成 */

/* 禁止拖拽 */
.case-comparison img,
.case-gallery img,
.photo-section img,
.case-card img,
.case-card-simplified img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* 图片悬停提示已移除，统一由 image-protection.js 的右键保护处理 */

/* 移动端优化 */
@media (max-width: 768px) {
    .case-card-simplified .case-comparison .comparison-image::after {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* 专家头像水印 */
.expert-card .expert-image img {
    position: relative;
}

.expert-card .expert-image img::after {
    content: '专家展示';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    pointer-events: none;
}
