/* ===== 广告板块 ===== */
.ad-section{background:#ffffff;border-radius:20px;box-shadow:0 4px 24px rgba(0, 0, 0, 0.05);border:1px solid #eef2f6;padding:20px 24px 16px;margin-bottom:28px;}
.ad-section .ad-row{display:grid;grid-template-columns:repeat(6, 1fr);gap:14px;margin-bottom:14px;}
.ad-section .ad-row:last-child{margin-bottom:0;}
.ad-item{border-radius:12px;overflow:hidden;transition:transform 0.2s, box-shadow 0.2s;}
.ad-item:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.08);}
/* 图片广告 */
.ad-image a{display:block;width:100%;height:100%;}
.ad-image img{width:100%;height:auto;display:block;border-radius:12px;}
/* 文字广告 */
.ad-text{background:#f8fafc;border:1px solid #eef2f6;border-radius:12px;text-align:center;padding:10px 8px;transition:background 0.2s, border-color 0.2s;}
.ad-text:hover{background:#eef2ff;border-color:#3b82f6;}
.ad-text a{display:block;font-size:13px;font-weight:500;color:#1a2332;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ad-text a:hover{color:#3b82f6;}
/* ===== 广告响应式 ===== */
@media (max-width:1024px){
.ad-section .ad-row{grid-template-columns:repeat(3, 1fr);gap:12px;}.ad-section .ad-row:last-child{margin-bottom:0;}.ad-text a{font-size:12px;white-space:normal;line-height:1.4;}
}

@media (max-width:640px){
.ad-section{padding:14px 12px 10px;border-radius:16px;}.ad-section .ad-row{grid-template-columns:repeat(2, 1fr);gap:10px;margin-bottom:10px;}.ad-text{padding:8px 6px;}.ad-text a{font-size:11px;}
}

@media (max-width:400px){
.ad-section .ad-row{grid-template-columns:1fr 1fr;gap:8px;}.ad-text a{font-size:10px;}
}