/**
 * Google AdSense 广告样式
 * 统一控制全站广告显示样式
 */

/* 广告容器基础样式 */
.adsense-ad-slot {
    margin: 20px auto;
    text-align: center;
    clear: both;
    min-height: 90px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

/* 广告加载状态 */
.adsense-ad-slot:empty {
    background: #f9f9f9;
    border: 1px dashed #ddd;
    min-height: 90px;
}

.adsense-ad-slot:empty::before {
    content: 'Advertisement';
    font-size: 12px;
    color: #999;
}

/* 顶部横幅广告 */
#div-gpt-ad-1234567890-1,
#div-gpt-ad-1234567890-4 {
    max-width: 728px;
    width: 100%;
}

/* 内容中广告 */
#div-gpt-ad-1234567890-2 {
    max-width: 600px;
    width: 100%;
    margin: 30px auto;
}

/* 侧边栏广告 */
#div-gpt-ad-1234567890-3 {
    max-width: 300px;
    width: 100%;
}

/* 响应式广告 */
@media (max-width: 768px) {
    .adsense-ad-slot {
        margin: 10px auto;
        max-width: 320px;
    }

    #div-gpt-ad-1234567890-1,
    #div-gpt-ad-1234567890-4 {
        max-width: 320px;
    }

    #div-gpt-ad-1234567890-2 {
        max-width: 320px;
    }
}

/* 广告与内容的间距 */
#boxcontent > .adsense-ad-slot:first-of-type {
    margin-top: 10px;
}

#boxcontent > .adsense-ad-slot:last-of-type {
    margin-bottom: 10px;
}
