﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
}

/* 广告容器 */
.ad-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
}

/* 轮播图 */
.ad-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ad-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

    .ad-slide.active {
        opacity: 1;
    }

/* 分页指示器（底部居中） */
.ad-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
}

.ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

    .ad-dot.active {
        background: white;
        transform: scale(1.3);
    }

/* 倒计时/关闭按钮（右上角） */
.ad-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

    .ad-close.ready {
        background: rgba(255, 78, 78, 0.8);
        cursor: pointer;
    }

/* 过渡动画 */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .ad-pagination {
        bottom: 15px;
    }

    .ad-close {
        top: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .ad-dot {
        width: 6px;
        height: 6px;
    }
}
