/* 广告位核心样式 - 适配zibll主题 */
.zibll-ad {
    overflow: hidden;
    clear: both;
    position: relative;
    margin-bottom: 15px;
}

.zibll-ad a {
    margin: 0 0 8px 0;
    display: block;
    border-radius: calc(var(--main-radius) - 4px);
    color: #fff;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.zibll-ad a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zibll-ad img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--main-radius) - 4px);
}

.zibll-ad ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zibll-ad li {
    flex: 1;
    list-style: none;
}

/* 广告标签 */
.zibll-ad-countdown {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    white-space: nowrap;
    line-height: 1;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zibll-ad ul {
        flex-direction: column;
    }
    
    .zibll-ad li a {
        line-height: 40px;
        height: 40px;
        font-size: 14px;
    }
    

    
    .zibll-ad-countdown {
        font-size: 10px;
        padding: 3px 6px;
        bottom: 2px;
        right: 2px;
    }
}

@media (min-width: 769px) {
    .zibll-ad li a {
        line-height: 60px;
        height: 60px;
        font-size: 16px;
    }
}

/* 隐藏元素类 */
.zibll-ad-hidden {
    display: none !important;
}
