/* 广告相关样式 - 独立文件，推送分类时不会被覆盖 */

/* 移动端显示移动端广告，隐藏桌面端广告 */
.header-ad-mobile {
    display: inline-flex !important;
}
.header-ad-desktop {
    display: none !important;
}

/* 桌面端隐藏移动端广告，显示桌面端广告 */
@media (min-width: 769px) {
    .header-ad-mobile {
        display: none !important;
    }
    .header-ad-desktop {
        display: inline-flex !important;
    }
}

/* 底部广告容器 */
.bottom-ads-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    z-index: 999;
    box-sizing: border-box;
}

.bottom-ads-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.bottom-ad-slide {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    gap: 8px;
    text-decoration: none;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.bottom-ads-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    z-index: 100;
}

/* 响应式 - 移动端单列 */
@media (max-width: 768px) {
    .bottom-ads-container {
        grid-template-columns: 1fr;
    }
    .bottom-ads-wrapper {
        padding: 8px 12px;
    }
}
