
.banner-ad-iframe-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 懒加载占位符 */
.ad-placeholder {
  background-color: var(--el-bg-color-page);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

/* 透明点击覆盖层 */
.ad-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  cursor: pointer;
  z-index: 1;
  /* 确保覆盖层不会阻止其他交互 */
  pointer-events: auto;
}

.ad-close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
}

/* 暗黑模式适配 */
.dark-mode .banner-ad-iframe-container iframe {
    background-color: transparent !important;
    color-scheme: normal !important;
    /* 强制iframe使用亮色主题，不受页面暗黑模式影响 */
    filter: none !important;
  }

/* Popup广告特殊样式 */
.dark-mode .popup-ad-item .banner-ad-iframe-container {
  /* Popup广告在暗黑模式下的特殊样式 */
  background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.dark-mode .popup-ad-item .banner-ad-iframe-container irame{
/* 确保Popup广告的iframe也是透明的 */
    background-color: transparent !important;
    color-scheme: normal!important;
    /* 更强的滤镜效果 */
    filter: brightness(0.2) contrast(2) invert(0.05) hue-rotate(0deg) saturate(0.6);
    mix-blend-mode: screen;
}