@charset "utf-8";
/* ==========================================================
   产品 / 视频列表：封面播放块 + 遮罩层播放器
   用法：保存为 style/video-player.css，在 style/css.css 之后引入
   兼容两种封面写法：<a class="vp-link">（产品页）与 <div class="vp-link">（视频页）
   ========================================================== */

/*--- 封面容器：补定位上下文与尺寸（视频页用 div，无法继承 .cpzx_right a 的样式） ---*/
.cpzx_right a.vp-link,
.cpzx_right .vp-link {
    position: relative;
    display: block;
    width: 275px; height: 207px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}
.cpzx_right p { cursor: default; }
/* 无视频的项：不显示手型光标（服务端渲染时会加 .vp-none） */
.cpzx_right .vp-none { cursor: default; }
.cpzx_right .vp-none .vp-shade { background: transparent; }

/*--- 半透明遮罩 ---*/
.cpzx_right .vp-shade {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.15);
    filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#26000000, endcolorstr=#26000000); /* IE 兼容 */
    cursor: pointer;
}

/*--- 播放按钮：纯 CSS 三角，无需切图 ---*/
.cpzx_right .vp-play {
    position: absolute; left: 50%; top: 50%;
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-radius: 50%; background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: background 0.4s ease-in-out, transform 0.4s ease-in-out;
    -webkit-transition: background 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
    -moz-transition: background 0.4s ease-in-out, -moz-transform 0.4s ease-in-out;
}
.cpzx_right .vp-play i {
    position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -5px;
    width: 0; height: 0; font-size: 0; line-height: 0; overflow: hidden;
    border-style: solid; border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
/* hover / 键盘聚焦 效果一致 */
.cpzx_right .vp-link:hover .vp-play,
.cpzx_right .vp-link:focus .vp-play { background: rgba(0, 0, 0, 0.78); transform: scale(1.12); }
.cpzx_right .vp-link:hover .vp-shade,
.cpzx_right .vp-link:focus .vp-shade { background: rgba(0, 0, 0, 0.28); }

/*--- 遮罩层 ---*/
.vp-mask {
    display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.78);
    filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#C7000000, endcolorstr=#C7000000);
    z-index: 9999;
}
.vp-box {
    position: absolute; left: 50%; top: 50%;
    width: 800px; height: 450px; margin: -245px 0 0 -400px;
    background: #000; box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
.vp-stage { width: 100%; height: 100%; background: #000; overflow: hidden; }
.vp-stage video { display: block; width: 100%; height: 100%; background: #000; outline: none; }
.vp-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.vp-close {
    position: absolute; right: -18px; top: -18px;
    width: 36px; height: 36px; line-height: 34px; text-align: center;
    font-size: 26px; font-family: Arial, "微软雅黑", sans-serif; color: #fff;
    background: #000; border-radius: 50%; text-decoration: none; z-index: 2;
}
.vp-close:hover { color: #ffca20; background: #333; }
.vp-title {
    height: 40px; line-height: 40px; padding: 0 10px;
    color: #fff; font-size: 14px; background: #1a1a1a;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/*--- 小屏适配 ---*/
@media (max-width: 900px) {
    .vp-box {
        left: 4%; top: 50%; width: 92%; height: auto;
        margin: 0; transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
    }
    .vp-stage video, .vp-stage iframe { height: auto; }
    .vp-close { right: 0; top: -36px; }
}
