#adModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
z-index: 9999;
padding: 0;
margin: 0;
}

#adModal .ad-modal-content {
position: relative;
background: transparent;
border: none;
box-shadow: none;
padding: 0;
margin: 0;
width: fit-content;
height: fit-content;
display: flex;
flex-direction: column;
align-items: center;
}

#adImage {
display: block;
max-width: 100%;
max-height: 80vh;
object-fit: contain;
border: none;
margin: 0;
box-shadow: none;
}

/* 删除原有的右上角关闭按钮样式 */
.ad-close {
display: none;
}

/* 新增：图片下方居中的关闭按钮 */
.ad-close-bottom {
display: block;
margin: 20px auto 0;
padding: 8px 24px;
font-size: 16px;
font-weight: bold;
color: #000;
background: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
text-align: center;
min-width: 100px;
}

.ad-close-bottom:hover {
background: #e0e0e0;
}

/* 手机端优化 */
@media (max-width: 649px) {
#adImage {
max-width: 90vw;
max-height: 60vh;
}

.ad-close-bottom {
margin: 15px auto 0;
padding: 6px 20px;
font-size: 14px;
min-width: 80px;
}
}

/* PC端优化 */
@media (min-width: 650px) {
#adImage {
max-width: 500px;
}
}