body {
    margin: 0;
    /* 为固定广告横幅留出页面底部的空间，防止内容被遮挡 */
    padding-bottom: 100px; 
}

.content {
    padding: 20px;
}

.ad-banner {
    position: fixed;   /* 关键：固定定位，相对于浏览器视口 */
    bottom: 0;         /* 紧贴浏览器底部 */
    left: 0;           /* 紧贴浏览器左侧 */
    width: 100%;       /* 宽度占满整个视口 */
    text-align: center;/* 使广告内容（图片）居中 */
    z-index: 999;      /* 确保广告在其他内容之上 */

}

.ad-banner img {
    max-width: 100%;   /* 确保图片响应式，不会超出容器 */
    height: auto;      /* 保持图片的宽高比 */
    display: block;    /* 移除图片底部默认的空白 */
    margin: 0 auto;    /* 使图片在横幅内水平居中 */
    max-height: 90px;  /* 限制广告高度 */
}

.close-btn {
    position: absolute; /* 相对于 .ad-banner 容器定位 */
    top: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
}