/* ===================== 广告位（H3 / 培训报名） ===================== */

/* 全站顶部广告条：所有板块可见的入口 */
.ad-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 0;
}

/* 列表内区块广告 */
.ad-block { display: block; margin: 16px 0; }

.ad-slot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(91, 91, 214, .16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ad-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(91, 91, 214, .22);
}
.ad-slot .ad-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
}
.ad-slot .ad-ico svg { width: 26px; height: 26px; }
.ad-slot .ad-body { flex: 1; min-width: 0; }
.ad-slot .ad-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  background: rgba(255, 255, 255, .22);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.ad-slot .ad-title {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
}
.ad-slot .ad-desc {
  display: block;
  font-size: 12.5px;
  opacity: .92;
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-slot .ad-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-600);
  white-space: nowrap;
}

/* H3 本地部署：紫蓝渐变 */
.ad-h3 { background: linear-gradient(120deg, #6366F1 0%, #8B5CF6 55%, #A855F7 100%); }
/* 培训报名：橙粉渐变 */
.ad-training { background: linear-gradient(120deg, #F97316 0%, #FB7185 55%, #EC4899 100%); }
.ad-training .ad-cta { color: #DB2777; }

@media (max-width: 760px) {
  .ad-strip { grid-template-columns: 1fr; gap: 10px; padding: 10px 14px 0; }
  .ad-slot { padding: 14px 16px; }
  .ad-slot .ad-desc { white-space: normal; }
}
