/* 迭代二十七①：首页广告位样式（广告卡复用 .card/.ecard/.pcard 网格外观，仅叠加广告特征） */
.adCard{position:relative;}
a.adCard{cursor:pointer;}
.adCard.isRent{cursor:default;}

/* 「广告」角标：视频竖卡绝对定位；考试/网盘横卡用 inline 小标签 */
.adBadge{
  position:absolute;top:6px;right:6px;z-index:2;
  font-size:10px;line-height:1;padding:3px 5px;border-radius:4px;
  color:#fff;background:rgba(0,0,0,.42);letter-spacing:1px;pointer-events:none;
}
.adBadge.inline{position:static;flex:0 0 auto;background:#c8d4ef;color:#2b4a8c;font-size:10px;padding:2px 5px;border-radius:4px;letter-spacing:1px;}
.adBadge.bn{top:8px;left:8px;right:auto;background:rgba(0,0,0,.5);}

/* 视频竖卡：招租占位海报区 */
.posterWrap.adRent{
  display:flex;align-items:center;justify-content:center;text-align:center;
  background:repeating-linear-gradient(135deg,#f6f8fc 0 10px,#eef2f9 10px 20px);
  border:1px dashed #c3cde0;color:#8a94a8;
}
.posterWrap.adRent span{font-size:13px;padding:8px;line-height:1.6;}

/* 考试/网盘横卡内的广告缩略图与文案 */
.adSmImg{width:46px;height:46px;flex:0 0 auto;object-fit:cover;border-radius:8px;border:1px solid #e5e7eb;background:#f2f3f5;}
.adTxt{min-width:0;display:flex;flex-direction:column;gap:2px;}
.adTxt .ett{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.adTxt .ess{font-size:12px;color:#9aa3b2;}

/* 分类区块之间的横幅广告 */
.adBannerWrap{margin:6px 0 16px;}
.adBanner{
  display:block;position:relative;border-radius:12px;overflow:hidden;
  border:1px solid #e5e7eb;background:#f7f9fc;
}
.adBanner.isRent{border-style:dashed;background:repeating-linear-gradient(135deg,#f8fafd 0 14px,#f1f4fa 14px 28px);}
.adBanner img{display:block;width:100%;height:auto;max-height:170px;object-fit:cover;}
.adBannerText{display:flex;align-items:center;justify-content:center;min-height:72px;color:#8a94a8;font-size:14px;letter-spacing:1px;}
a.adBanner:hover{border-color:#b9c8ef;}

@media (max-width:768px){
  .adBanner img{max-height:108px;}
  .adBannerText{min-height:56px;font-size:13px;}
}

/* 广告位固定到卡片墙「第二列下方」：作品网格结束后另起一条广告行，列轨道与卡片墙一致，广告卡落在第二列 */
.adRow{display:grid;gap:14px;margin-top:14px;}
.adRow.video{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));}
.adRow.exam{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;}
.adRow.pan{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;}
.adRow > .adCard{grid-column:2;min-width:0;}
/* 视频招租位无封面时与海报卡等高（2:3），广告位轮廓更明确、与左侧卡片对齐 */
.adRow.video .posterWrap.adRent{aspect-ratio:2/3;}
@media (max-width:768px){
  .adRow{gap:10px;margin-top:10px;}
  .adRow.video{grid-template-columns:repeat(3,1fr);}      /* 手机视频墙 3 列，广告仍在第二列 */
  .adRow.exam,.adRow.pan{grid-template-columns:1fr;}      /* 手机考试/网盘为单列，广告落第一列 */
  .adRow.exam > .adCard,.adRow.pan > .adCard{grid-column:1;}
}
