/* 广告情报（Ad Intel）页面 */
.adi-filters, .adi-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.adi-filters input, .adi-filters select, .adi-form input, .adi-form select {
  padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px;
}
.adi-form .adi-wide { flex: 1 1 320px; min-width: 240px; }
.adi-geo { width: 80px; text-transform: uppercase; }
.adi-url { word-break: break-all; max-width: 420px; }
.adi-actions { white-space: nowrap; }
.adi-actions .btn { margin-right: 4px; }
.adi-empty { padding: 24px 0; text-align: center; }
.adi-pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; }
.adi-detail { background: #f8fafc; border-radius: 6px; padding: 12px; font-size: 13px; line-height: 1.7; }
.adi-detail h4 { margin: 12px 0 6px; font-size: 13px; }
.adi-chain { margin: 0; padding-left: 18px; }
.adi-chain li { word-break: break-all; }
.adi-shot { max-width: 320px; max-height: 200px; border: 1px solid #ddd; border-radius: 4px; display: block; }
.adi-notes { white-space: pre-line; max-height: 120px; overflow-y: auto; font-size: 12px; }

/* 开关（采集设置的"启用定时采集"） */
.form-group label.adi-switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #333; }
.adi-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.form-group .adi-switch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; padding: 0; }
.adi-switch-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 24px; transition: background .2s; }
.adi-switch-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.adi-switch input:checked + .adi-switch-slider { background: #4361ee; }
.adi-switch input:checked + .adi-switch-slider::before { transform: translateX(20px); }
.adi-switch input:focus-visible + .adi-switch-slider { box-shadow: 0 0 0 3px rgba(67,97,238,.3); }

/* 运行状态颜色（补充全站 badge 没有的红、橙） */
.adi-badge-red { background: #fdecec; color: #d64545; }
.adi-badge-orange { background: #fff4e5; color: #d9822b; }
