/* ==========================================================================
   YMY 主题广告小工具（轮播）
   ========================================================================== */

.ymy-theme-ad-carousel {
    position: relative;
    overflow: hidden;
}

.ymy-theme-ad-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform var(--ymy-transition);
}

.ymy-theme-ad-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    /* 高度与首页广告模块卡片一致 */
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 20px 46px;
}

.ymy-theme-ad-slide-title {
    font-size: var(--ymy-font-size-base);
    font-weight: 600;
    line-height: 1.4;
    color: var(--ymy-text-primary);
    margin: 0 0 var(--ymy-spacing-sm);
    align-self: stretch;
}

.ymy-theme-ad-slide-intro {
    font-size: 14px;
    color: var(--ymy-text-muted);
    line-height: 1.6;
    margin: 0 0 var(--ymy-spacing-md);
    align-self: stretch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ymy-theme-ad-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5a67d8;
    border: none;
    text-decoration: none;
    transition: opacity var(--ymy-transition);
}

.ymy-theme-ad-slide-btn-arrow {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ymy-theme-ad-slide-btn:hover {
    opacity: 0.85;
}

/* 右下角指示器（与首页评论模块同款长条形） */
.ymy-theme-ad-dots {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.ymy-theme-ad-dot {
    width: 24px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--ymy-border-light);
    cursor: pointer;
    transition: background-color var(--ymy-transition);
}

.ymy-theme-ad-dot:hover {
    background: var(--ymy-accent);
    opacity: 0.7;
}

.ymy-theme-ad-dot.is-active {
    background: var(--ymy-accent);
}
