/* ===== 通用广告前台样式 ===== */
.ad-image { display: block; width: 100%; overflow: hidden; border-radius: 6px; }
.ad-image img { width: 100%; height: auto; display: block; }

/* 幻灯轮播：堆叠定位，由 ad.js 控制 active */
.ad-banner { position: relative; width: 100%; overflow: hidden; border-radius: 6px; background: #f0f2f5; }
.ad-banner-item { position: absolute; inset: 0; display: none; }
.ad-banner-item.active { display: block; position: relative; }
.ad-banner-item img { width: 100%; height: auto; display: block; }
.ad-banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.ad-banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.ad-banner-dots span.active { background: #fff; }

/* 代码广告容器 */
.ad-code { width: 100%; }
.ad-code > * { max-width: 100%; }
