
/* 广告小工具容器 */
.zb-ad-widget-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

/* 单个广告项 - 适配子比主题风格 */
.zb-ad-widget-item {
    position: relative;
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e8f3ff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.05);
    padding: 18px;
    text-decoration: none !important;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 广告项悬停效果 */
.zb-ad-widget-item:hover {
    box-shadow: 0 4px 16px rgba(22, 119, 255, 0.12);
    transform: translateY(-2px);
    border-color: #1677ff;
}

/* 右上角入驻说明徽章 */
.zb-ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1677ff;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 广告图标 */
.zb-ad-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    display: block;
    border-radius: 4px;
}

/* 纯文字广告样式 */
.zb-ad-text h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1677ff;
}
.zb-ad-text p {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

/* 纯图片广告样式 */
.zb-ad-image-wrap {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.zb-ad-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.zb-ad-widget-item:hover .zb-ad-image-wrap img {
    transform: scale(1.02);
}

/* 图文广告样式 */
.zb-ad-text-image {
    display: flex;
    align-items: center;
    gap: 12px;
}
.zb-ad-text-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e8f3ff;
}

/* 响应式适配 - 手机端 */
@media (max-width: 768px) {
    .zb-ad-widget-container {
        flex-direction: column;
        gap: 12px;
    }
    .zb-ad-widget-item {
        min-width: 100%;
    }
}
