/* 开屏广告容器样式 */
.splash-ad {
    position: fixed;
    inset: 0;
    z-index: 999999; /* 确保显示在最顶层 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

/* 广告链接样式 */
.splash-ad__link {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
}

/* 广告图片样式 */
.splash-ad__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 跳过按钮容器样式 */
.splash-ad__skip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    animation: scale-up-center 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
    z-index: 1000000; /* 确保跳过按钮在广告图片之上 */
}

/* 倒计时数字样式 */
.splash-ad__countdown {
    font-weight: 500;
}

/* 跳过文字样式 */
.splash-ad__skip-text {
    font-size: 0.875rem;
}

/* 动画效果 */
@keyframes scale-up-center {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 动画类 */
.fade-in {
    animation: fade-in 0.6s ease-out both;
}

.fade-out {
    animation: fade-out 0.5s ease-in both;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 禁用指针事件 */
.pointer-events-none {
    pointer-events: none;
}

/* 透明度类 */
.opacity-0 {
    opacity: 0;
}