/**
 * 声网选项卡幻灯片样式
 * 
 * @package ShengWang
 * @since 1.0.0
 */

/* ========================================
   基础样式
======================================== */

.sw_tab_slideshow_widget {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 主标题样式 */
.sw_tab_slideshow_main_title {
    font-weight: 600;
    font-size: 48px;
    line-height: 56px;
    color: #181F27;
    text-align: center;
    margin: 0 0 48px 0;
}

@media (max-width: 1024px) {
    .sw_tab_slideshow_main_title {
        font-size: 42px;
        line-height: 50px;
        margin-bottom: 32px;
    }
}

@media (max-width: 767px) {
    .sw_tab_slideshow_main_title {
        font-size: 32px;
        line-height: 38px;
        margin-bottom: 24px;
    }
}

/* ========================================
   主容器布局
======================================== */

.sw_tab_slideshow_container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .sw_tab_slideshow_container {
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .sw_tab_slideshow_container {
        flex-direction: column;
        gap: 24px;
    }
}

/* ========================================
   左侧导航按钮
======================================== */

.sw_tab_slideshow_nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 160px;
    flex-shrink: 0;
}

.sw_tab_slideshow_button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: 1px solid rgba(24, 31, 39, 0.50);
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    color: #181F27;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: background-color, color, border-color;
}

.sw_tab_slideshow_button:hover,
.sw_tab_slideshow_button:active,
.sw_tab_slideshow_button.sw-active {
    background: #181F27;
    color: #FFFFFF;
    border-color: #181F27;
}

.sw_tab_slideshow_button_text {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

@media (max-width: 1024px) {
    .sw_tab_slideshow_nav {
        min-width: 180px;
    }
    
    .sw_tab_slideshow_button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .sw_tab_slideshow_button_text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 767px) {
    .sw_tab_slideshow_nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        min-width: auto;
        justify-content: center;
    }
    
    .sw_tab_slideshow_button {
        padding: 12px 32px;
        font-size: 16px;
        min-width: 160px;
        width: auto;
    }
    
    .sw_tab_slideshow_button_text {
        font-size: 16px;
        line-height: 24px;
    }
    
    .sw_tab_slideshow_content {
        width: 100%;
        flex: 1;
    }
}

/* ========================================
   右侧内容区域
======================================== */

.sw_tab_slideshow_content {
    flex: 1;
    min-width: 0;
    height: auto;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid #E6E9F2;
}

.sw_tab_slideshow_content_item {
    display: none;
    opacity: 0;
    visibility: hidden;
    height: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sw_tab_slideshow_content_item.sw-active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ========================================
   选项卡文本内容 - 已移除
======================================== */

/* ========================================
   选项卡幻灯片
======================================== */

.sw_tab_slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #EBF1F9;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}


/* ========================================
   幻灯片容器
======================================== */

.sw_tab_slideshow_wrapper {
    position: relative;
    width: 100%;
    min-height: 374px;
    /* padding由Elementor控制 */
    box-sizing: border-box;
    /* 确保padding可以被覆盖 */
    padding-top: 0;
    padding-bottom: 0;
}



.sw_tab_slideshow_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: opacity, visibility;
}

.sw_tab_slideshow_slide.sw-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.sw_tab_slide_background {
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw_tab_slide_background img {
    width: auto;
    max-height: 374px;
    height: auto;
    object-fit: contain;
    /* 硬件加速 */
    transform: translateZ(0);
}

@media (max-width: 480px) {
    .sw_tab_slide_nav {
        gap: 6px;
        padding: 8px;
    }
    
    .sw_tab_slide_nav_button {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .sw_tab_slide_nav_button_text {
        font-size: 11px;
        line-height: 14px;
    }
}

/* ========================================
   幻灯片文字内容
======================================== */

.sw_tab_slide_text_content {
    text-align: left;
    background: #fff;
    padding: 24px 32px;
}

.sw_tab_slide_text_item {
    display: none;
}

.sw_tab_slide_text_item.sw-active {
    display: block;
}

.sw_tab_slide_title {
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #181F27;
    margin: 0 0 8px 0;
}

.sw_tab_slide_description {
    font-size: 14px;
    line-height: 22px;
    color: #586376;
    margin: 0;
}

/* 幻灯片内部按钮样式已移除，按钮现在只作为导航显示在下方 */

/* 幻灯片按钮导航 */
.sw_tab_slide_nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #EBF1F9;
    padding: 0 0 24px 0;
}

.sw_tab_slide_nav_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #181F27;
    border-radius: 50px;
    color: #181F27;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
    min-width: 120px;
    /* 确保按钮能够适应内容 */
    flex-shrink: 0;
}

.sw_tab_slide_nav_button:hover,
.sw_tab_slide_nav_button.sw-active {
    border-color: var(--sw-color-primary);
    color: var(--sw-color-primary);
}

.sw_tab_slide_nav_button_text {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

@media (max-width: 1024px) {
    .sw_tab_slide_text_content {
        margin-top: 20px;
    }
    
    .sw_tab_slide_title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 12px;
    }
    
    .sw_tab_slide_description {
        font-size: 14px;
        line-height: 20px;
        max-width: 500px;
    }
    
    .sw_tab_slide_nav_button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .sw_tab_slide_nav_button_text {
        font-size: 13px;
        line-height: 18px;
    }
}

@media (max-width: 767px) {
    .sw_tab_slide_text_content {
        margin-top: 16px;
    }
    
    .sw_tab_slide_title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 8px;
    }
    
    .sw_tab_slide_description {
        font-size: 12px;
        line-height: 18px;
        max-width: 300px;
    }
    
    .sw_tab_slide_nav {
        gap: 8px;
        padding: 12px;
    }
    
    .sw_tab_slide_nav_button {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .sw_tab_slide_nav_button_text {
        font-size: 12px;
        line-height: 16px;
    }
}

/* ========================================
   加载状态
======================================== */

.sw_tab_slideshow.sw-loading {
    opacity: 0.7;
}

.sw_tab_slideshow.sw-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
} 