/**
 * iHeir 主题 - WPBakery Page Builder 兼容样式
 * 解决 WPBakery 与主题样式的冲突问题
 */

/* 确保 WPBakery 容器在主题中正常显示 */
.vc_row,
.wpb_row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vc_column_container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.vc_column-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 确保 WPBakery 全宽行正常显示 */
.vc_row.vc_row-fluid {
    width: 100% !important;
}

.vc_row.vc_row-o-full-width {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* 确保 WPBakery 在内容区域内不溢出 */
.site-main .vc_row,
.site-main .wpb_row {
    max-width: 100%;
    overflow-x: hidden;
}

/* 修复 WPBakery 按钮在主题中的样式冲突 */
.wpb_button,
.wpb_content_element .wpb_button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

/* 确保 WPBakery 选项卡正常工作 */
.wpb_tabs_nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wpb_tabs_nav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.wpb_tabs_nav li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
}

/* 修复 WPBakery 轮播图样式 */
.wpb_gallery .flexslider {
    margin-bottom: 0;
}

/* 响应式修复 */
@media (max-width: 767px) {
    .vc_row.vc_row-flex {
        flex-wrap: wrap;
    }
    
    .vc_column_container {
        width: 100% !important;
    }
}

/* 确保 WPBakery 自定义 CSS 不受主题影响 */
.vc_custom_heading,
.vc_custom_heading a {
    text-decoration: none;
}