* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 播放器主容器 - 修复嵌入问题 */
        .player-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 比例 */
            background-color: #000;
            overflow: hidden;
            font-family: 'Microsoft YaHei', sans-serif;
            /* 确保播放器不会脱离文档流 */
            transform: translateZ(0);
        }
        
        /* 视频元素自适应 */
        #videoElement {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 18px;
            text-align: center;
            display: none;
            z-index: 50;
        }
        
        .spinner {
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 5px solid #ff9800;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 顶部控制栏 - 修复定位问题 */
        .top-bar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 50px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            z-index: 100;
            /* 确保只在播放器内部显示 */
            contain: layout style paint;
        }
        
        /* Logo样式 */
        .zblogo {
            display: flex;
            align-items: center;
            color: white;
            font-weight: bold;
            font-size: clamp(14px, 2vw, 20px);
            z-index: 101;
            background: rgba(0, 0, 0, 0.3);
            padding: 5px 10px;
            border-radius: 5px;
            flex-shrink: 0;
            white-space: nowrap;
            /* 防止溢出播放器 */
            max-width: 200px;
            overflow: hidden;
        }
        
        .zblogo-icon {
            width: clamp(24px, 4vw, 32px);
            height: clamp(24px, 4vw, 32px);
            background: linear-gradient(135deg, #ff9800, #ff5722);
            border-radius: 6px;
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: clamp(14px, 2vw, 18px);
            flex-shrink: 0;
        }
        
        /* 滚动公告样式 - 修复溢出问题 */
        .announcement {
            flex: 1;
            height: 30px;
            overflow: hidden;
            position: relative;
            margin: 0 20px;
            min-width: 0;
            /* 防止内容溢出 */
            contain: content;
        }
        
        .announcement-content {
            position: absolute;
            white-space: nowrap;
            color: #fff;
            line-height: 30px;
            font-size: clamp(12px, 1.5vw, 16px);
            /* 确保动画在容器内 */
            will-change: transform;
        }
        
        /* 电脑端滚动公告动画 */
        @media (min-width: 769px) {
            .announcement-content {
                animation: scroll-desktop 20s linear infinite;
            }
            
            .announcement:hover .announcement-content {
                animation-play-state: paused;
            }
            
            @keyframes scroll-desktop {
                0% {
                    transform: translateX(100%);
                }
                100% {
                    transform: translateX(-100%);
                }
            }
        }
        
        /* 手机端滚动公告动画 */
        @media (max-width: 768px) {
            .top-bar {
                height: 40px;
                padding: 0 10px;
            }
            
            .announcement {
                background: rgba(0, 0, 0, 0.5);
                border-radius: 15px;
                padding: 0 10px;
                margin: 0 8px;
                height: 26px;
            }
            
            .announcement-content {
                animation: scroll-mobile 15s linear infinite;
                line-height: 26px;
            }
            
            .announcement:hover .announcement-content {
                animation-play-state: paused;
            }
            
            @keyframes scroll-mobile {
                0% {
                    left: 100%;
                }
                100% {
                    left: -100%;
                }
            }
            
            .zblogo {
                padding: 3px 6px;
                max-width: 150px;
            }
        }
        
        /* 超小屏幕优化 */
        @media (max-width: 480px) {
            .top-bar {
                height: 35px;
                padding: 0 5px;
            }
            
            .zblogo span {
                display: none;
            }
            
            .zblogo {
                padding: 2px 4px;
                max-width: 40px;
            }
            
            .zblogo-icon {
                margin-right: 0;
            }
            
            .announcement {
                margin: 0 5px;
                height: 24px;
                padding: 0 8px;
            }
            
            .announcement-content {
                line-height: 24px;
            }
        }
        
        /* 极小屏幕处理 */
        @media (max-width: 320px) {
            .announcement {
                display: none;
            }
        }
        
        .announcement-icon {
            color: #ff9800;
            margin-right: 8px;
            font-weight: bold;
        }
        
        /* 暂停广告样式 - 修复定位问题 */
        .pause-ad {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 200;
            flex-direction: column;
            padding: 20px;
            /* 确保只在播放器内部 */
            contain: strict;
        }
        
        .ad-content {
            width: 90%;
            max-width: 600px;
            max-height: 90%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
        }
        
        .ad-image {
            width: 100%;
            height: 50px;
            background: linear-gradient(135deg, #ff9800, #ff5722);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: clamp(18px, 3vw, 24px);
            font-weight: bold;
        }
        
        .ad-text {
            padding: clamp(15px, 3vw, 25px);
            text-align: center;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .ad-title {
            font-size: clamp(18px, 3vw, 24px);
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
        
        .ad-description {
            font-size: clamp(12px, 2vw, 16px);
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        
        /* 按钮容器基础样式 */
        .ad-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        /* 电脑端按钮布局 - 保持居中 */
        @media (min-width: 769px) {
            .ad-buttons {
                flex-direction: row;
                justify-content: center;
            }
        }
        
        /* 手机端按钮布局 - 强制水平排列，左右分布 */
        @media (max-width: 768px) {
            .ad-buttons {
                flex-direction: row !important;
                justify-content: space-between !important;
                gap: 10px;
                width: 100%;
            }
            
            .ad-button {
                flex: 1;
                min-width: 120px;
                margin: 0;
            }
        }
        
        .ad-button {
            padding: clamp(8px, 2vw, 12px) clamp(20px, 3vw, 30px);
            border: none;
            border-radius: 25px;
            font-size: clamp(12px, 2vw, 16px);
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            min-width: 120px;
        }
        
        .close-ad-button {
            background: #f0f0f0;
            color: #666;
            border: 1px solid #ddd;
        }
        
        .resume-button {
            background: linear-gradient(135deg, #ff9800, #ff5722);
            color: white;
        }
        
        .ad-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .resume-button:hover {
            box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
        }
        
        .close-ad {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: clamp(30px, 6vw, 40px);
            height: clamp(30px, 6vw, 40px);
            border-radius: 50%;
            font-size: clamp(16px, 3vw, 20px);
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 201;
        }
        
        .close-ad:hover {
            background: rgba(0, 0, 0, 0.7);
        }
        
        /* 全屏模式下的调整 */
        .player-container:fullscreen {
            width: 100vw;
            height: 100vh;
            padding-bottom: 0;
        }
        
        .player-container:fullscreen #videoElement {
            object-fit: contain;
        }

        /* 新增：防止播放器内容溢出到其他页面元素的样式 */
        .player-container * {
            /* 确保所有播放器内部元素不会影响外部布局 */
            box-sizing: border-box;
            max-width: 100%;
        }

        /* 确保播放器在嵌入时保持正确的层叠上下文 */
        .player-container {
            isolation: isolate;
        }