/* 息屏广告样式 */
#idle-ad-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}
#idle-ad-overlay.active {
    display: flex;
}
#idle-ad-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
#idle-ad-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 20px 24px;
    text-align: center;
    color: #fff;
}
#idle-ad-header .header-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
#idle-ad-header .header-title i {
    margin-right: 6px;
}
#idle-ad-header .header-subtitle {
    font-size: 13px;
    opacity: 0.9;
}
#idle-ad-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    z-index: 1000000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#idle-ad-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15);
}
#idle-ad-content {
    padding: 0;
    line-height: 0;
}
#idle-ad-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
#idle-ad-content a {
    display: block;
    line-height: 0;
}
#idle-ad-description {
    padding: 16px 20px;
    background: #fafafa;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
@media (max-width: 768px) {
    #idle-ad-container {
        max-width: 98%;
        width: 98%;
        border-radius: 8px;
    }
    #idle-ad-header {
        padding: 16px 20px;
    }
    #idle-ad-header .header-title {
        font-size: 16px;
    }
    #idle-ad-header .header-title i {
        margin-right: 4px;
    }
    #idle-ad-header .header-subtitle {
        font-size: 12px;
    }
    #idle-ad-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 12px;
        line-height: 28px;
    }
    #idle-ad-description {
        padding: 12px 16px;
        font-size: 13px;
    }
}