/* 开屏遮罩层 */
.zib-splash-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999; /* 确保在最顶层 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.zib-splash-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 媒体区域 (视频/图片) */
.zib-splash-media {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* 图片容器 */
.zib-splash-img-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.zib-splash-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：裁剪图片以铺满屏幕 */
    display: block;
}

/* 视频/图片通用内容样式 */
.zib-splash-content {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持宽高比填充，多余部分裁剪 */
    display: block;
}

/* 跳过按钮 */
.zib-splash-skip {
    position: absolute;
    top: 40px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.zib-splash-skip:hover {
    background: rgba(0, 0, 0, 0.6);
}

.zib-splash-countdown {
    font-weight: bold;
    color: #ffcc00; /* 倒计时数字高亮 */
    margin-right: 2px;
}

/* 点击进入按钮 (兜底交互) */
.zib-splash-enter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 113, 177, 0.9);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    display: none; /* 默认隐藏，仅在自动播放失败时显示 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.zib-splash-enter:hover {
    background: #135e96;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .zib-splash-skip {
        top: 30px;
        right: 15px;
        padding: 5px 12px;
        font-size: 12px;
    }
}