/* Falorant Ads 样式优化 */

/* 广告容器基础样式 */
[id^="ad-"], [id*="container-"] {
    margin: 0 auto;
    text-align: center;
}

/* 移动端 Sticky Banner */
#mobile-sticky-ad {
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 侧边栏广告 hover 效果 */
#ad-sticky-sidebar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#ad-sticky-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.2);
}

/* Native Banner 融入内容 */
#ad-native-content {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    padding: 16px;
    backdrop-filter: blur(10px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    [id^="ad-banner"] {
        max-width: 100%;
        padding: 0 8px;
    }

    #ad-native-content {
        padding: 12px;
    }
}

/* 加载占位符 */
[id^="ad-"]:empty::before,
[id*="container-"]:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 90px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.5) 25%, rgba(51, 65, 85, 0.5) 50%, rgba(30, 41, 59, 0.5) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 桌面端侧边栏广告固定 */
@media (min-width: 1024px) {
    #ad-sticky-sidebar {
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 100px);
    }
}

/* 广告标签（可选）*/
.ad-label {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.6);
    text-align: center;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
