/* ========== 广告区域样式 ========== */

/* 广告容器 - 一行4列布局 */
.ads-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; width: 100%; height: 90px; margin: 0px auto; background: #f8f9fa; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

/* 广告项样式 */
.ads-item { position: relative; overflow: hidden; border-radius: 6px; background: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 90px; }
.ads-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* 广告图片样式 */
.ads-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ads-item:hover img { transform: scale(1.05); }

/* 广告链接样式 */
.ads-item a { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }

/* 广告标题覆盖层 */
.ads-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); color: white; padding: 15px 10px 10px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity 0.3s ease; }
.ads-item:hover .ads-overlay { opacity: 1; }

/* 响应式设计 - 平板设备 */
@media (max-width: 992px) {
    .ads-container { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 576px) {
    .ads-container { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
    .ads-overlay { font-size: 12px; padding: 10px 8px 8px; }
}

/* ========== 底部广告区域样式 ========== */

/* 底部广告容器 - 一行3列布局 */
.ads-end-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; height: 90px; margin: 20px auto; background: #f8f9fa; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }

/* 底部广告项样式 */
.ads-end-item { position: relative; overflow: hidden; border-radius: 6px; background: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 90px; }
.ads-end-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* 底部广告图片样式 */
.ads-end-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ads-end-item:hover img { transform: scale(1.05); }

/* 底部广告链接样式 */
.ads-end-item a { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }

/* 底部广告标题覆盖层 */
.ads-end-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); color: white; padding: 15px 10px 10px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity 0.3s ease; }
.ads-end-item:hover .ads-end-overlay { opacity: 1; }

/* 底部广告响应式设计 - 平板设备 */
@media (max-width: 992px) {
    .ads-end-container { grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 600px; }
}

/* 底部广告响应式设计 - 手机设备 */
@media (max-width: 576px) {
    .ads-end-container { grid-template-columns: 1fr; gap: 12px; max-width: 300px; }
    .ads-end-overlay { font-size: 12px; padding: 10px 8px 8px; }
}

/* 特殊样式 - 加载状态 */
.ads-loading { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: adsShimmer 1.5s infinite; }
@keyframes adsShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }