/* =======================================================================
 * 图片轮播
 * ===================================================================== */

/* 1. 仅在轮播激活的文章页隐藏正文原始图片 */
.ztfs-slider-on .wp-posts-content img,
.ztfs-slider-on .post-content img,
.ztfs-slider-on .entry-content img,
.ztfs-slider-on .entry-content .wp-block-image {
    display: none !important;
}

/* 但不影响轮播容器内的图片 */
.ztfs-slider-on .taptap-final-container img {
    display: block !important;
}

/* 2. 容器：干净原生风格 */
.taptap-final-container {
    margin-bottom: 20px;
    width: 100%;
    border-radius: var(--main-radius, 12px);
    overflow: hidden;
    position: relative;
    background: transparent;
}

.taptap-swiper-logic {
    width: 100%;
    height: 100%;
}

/* 3. 图片居中显示 */
.taptap-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taptap-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 4. 简约页码 */
.taptap-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
}

.dark-theme .taptap-counter {
    background: rgba(50, 50, 50, 0.7);
    color: #ccc;
}

/* 5. 轻量箭头 */
.taptap-arrow {
    color: #444 !important;
    background: rgba(255, 255, 255, 0.7);
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.taptap-arrow:after {
    font-size: 14px !important;
    font-weight: bold;
}

.taptap-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.dark-theme .taptap-arrow {
    color: #ccc !important;
    background: rgba(40, 40, 40, 0.6);
}

.dark-theme .taptap-arrow:hover {
    background: rgba(60, 60, 60, 0.8);
}

/* =======================================================================
 * 移动端优化
 * ===================================================================== */
@media (max-width: 768px) {
    .taptap-final-container {
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .taptap-counter {
        right: 8px;
        bottom: 8px;
        font-size: 10px;
        padding: 1px 8px;
    }

    .taptap-arrow {
        width: 28px !important;
        height: 28px !important;
    }

    .taptap-arrow:after {
        font-size: 12px !important;
    }
}
