/* 自定义游戏界面文字样式 */

/* 完全覆盖Surface.jpg背景图片中的"pvz 2 素材吧出品"文字 */
.overlay-top-title {
    position: absolute;
    top: 45px;
    left: 10px;
    width: 450px;
    height: 70px;
    background: linear-gradient(45deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #FFD700;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: 70px;
    z-index: 9999;
    border-radius: 15px;
    border: 4px solid #FFD700;
    box-shadow: 0 0 25px rgba(255,215,0,1), inset 0 0 25px rgba(255,215,0,0.4);
    text-shadow: 0 0 15px #FFD700, 0 0 25px #FFA500, 2px 2px 4px rgba(0,0,0,0.8);
    animation: haisnap-pulse 2s ease-in-out infinite alternate;
}

/* 覆盖左上角的"pvz 2 素材吧"文字 */
.overlay-top-left {
    position: absolute;
    top: 40px;
    left: 50px;
    width: 200px;
    height: 50px;
    background: linear-gradient(45deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #FFD700;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    z-index: 9999;
    border-radius: 10px;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255,215,0,0.9), inset 0 0 20px rgba(255,215,0,0.3);
    text-shadow: 0 0 10px #FFD700, 0 0 15px #FFA500;
    animation: haisnap-glow-small 2s ease-in-out infinite alternate;
}

@keyframes haisnap-glow-small {
    from {
        box-shadow: 0 0 20px rgba(255,215,0,0.9), inset 0 0 20px rgba(255,215,0,0.3);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 25px rgba(255,215,0,1), inset 0 0 25px rgba(255,215,0,0.4);
        transform: scale(1.02);
    }
}

@keyframes haisnap-pulse {
    from {
        box-shadow: 0 0 25px rgba(255,215,0,1), inset 0 0 25px rgba(255,215,0,0.4);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 35px rgba(255,215,0,1), inset 0 0 35px rgba(255,215,0,0.6);
        transform: scale(1.03);
    }
}

/* 完全覆盖原背景图片中的"我们的首页"文字和链接 */
.overlay-homepage-link {
    position: absolute;
    top: 140px;
    left: 160px;
    width: 180px;
    height: 40px;
    background: linear-gradient(45deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #FFD700;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    z-index: 9999;
    border-radius: 10px;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255,215,0,0.9), inset 0 0 20px rgba(255,215,0,0.3);
    text-shadow: 0 0 10px #FFD700, 0 0 15px #FFA500;
    animation: haisnap-glow-small 2s ease-in-out infinite alternate;
}

/* 覆盖左下角的"制作人"信息 */
.overlay-bottom-left {
    position: absolute;
    bottom: 60px;
    left: 50px;
    width: 120px;
    height: 35px;
    background: rgba(0,0,0,0.95);
    color: #FFD700;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 35px;
    z-index: 2000;
    border-radius: 8px;
    border: 3px solid #FFD700;
    box-shadow: 0 0 15px rgba(255,215,0,0.8);
}

/* HaiSnap Logo样式 */
.haisnap-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Arial Black", "Impact", "Microsoft YaHei", sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 
        0 0 10px #FFD700,
        0 0 20px #FFD700,
        0 0 30px #FFD700,
        2px 2px 4px rgba(0,0,0,0.8);
    z-index: 2000;
    text-align: center;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

/* 主标题文字 - 替换原来的"pvz 2 素材吧出品" */
.custom-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 2000;
    text-align: center;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 右上角文字 - 显示HaiSnap */
.custom-homepage-link {
    position: absolute;
    top: 30px;
    right: 30px;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2000;
    padding: 8px 15px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    background: rgba(0,0,0,0.7);
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* 左下角信息文字 */
.custom-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* 右下角版权信息 */
.custom-copyright {
    position: absolute;
    bottom: 10px;
    right: 30px;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 12px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #FFD700;
}

/* 确保文字在游戏界面上正确显示 */
#dSurface {
    position: relative;
}

#iSurfaceBackground {
    position: relative;
}

/* 隐藏所有可能的外部链接 */
a[href*="pvz"], 
a[href*="素材"], 
a[href*="baidu"], 
a[href*="tieba"],
a[target="_blank"]:not([href="#"]) {
    display: none !important;
    visibility: hidden !important;
}

/* 移除统计代码和外部脚本 */
script[src*="cnzz"],
script[src*="stat"],
script[src*="baidu"] {
    display: none !important;
}

/* 覆盖"我们的官网"按钮文字 */
#dNameDiv1::after {
    content: "访问 HaiSnap.com";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    color: #FFD700;
    font-family: "Arial Black", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 71px;
    z-index: 2000;
    border-radius: 8px;
    border: 3px solid #FFD700;
    box-shadow: 0 0 15px rgba(255,215,0,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

#dNameDiv1:hover::after {
    background: rgba(255,215,0,0.2);
    color: #000;
    transform: scale(1.05);
}

/* 隐藏原始的背景图片 */
#dNameDiv1 {
    background: none !important;
} 