/**
 * Call to Action 2 Widget Styles
 * 
 * @package ShengWang
 * @since 1.0.0
 */

/* 主容器 */
.sw_cta2_wrapper {
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.sw_cta2_container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 48px;
    background-color: #1a1a1a;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 24px;
    height: 304px;
    box-sizing: border-box;
}

/* 内容区域 */
.sw_cta2_content {
    flex: 1;
    max-width: 100%;
    z-index: 2;
}

/* 小标题样式 */
.sw_cta2_subtitle:not([style*="font-size"]) {
    font-size: 24px;
    line-height: 32px;
}
.sw_cta2_subtitle {
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 8px 0;
    opacity: 0.8;
}

/* 大标题样式 */
.sw_cta2_title:not([style*="font-size"]) {
    font-size: 36px;
    line-height: 44px;
}
.sw_cta2_title {
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 8px 0;
}

/* 描述文字段落样式 */
.sw_cta2_description:not([style*="font-size"]) {
    font-size: 14px;
    line-height: 24px;
}
.sw_cta2_description {
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    opacity: 0.5;
    /* 字体大小和行高由Elementor控制器控制 */
}

/* 按钮区域 */
.sw_cta2_buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 24px;
}

/* 按钮基础样式 */
.sw_cta2_buttons .sw_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 12px 24px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 50px;
    box-sizing: border-box;
}

/* 按钮文字和箭头布局 */
.sw_cta2_buttons .sw_button .sw_button_text {
    margin-right: 8px;
}

.sw_cta2_buttons .sw_button .sw_button_arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* 主要按钮（outline）样式 */
.sw_cta2_buttons .sw-button-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #4A90E2;
}

/* 白色按钮样式 */
.sw_cta2_buttons .sw-button-white {
    background: #ffffff;
    color: #333333;
    border: 1px solid #ffffff;
}

.sw_cta2_buttons .sw_button:hover {
    background: var(--sw-color-primary);
    color: var(--sw-color-white);
    border-color: var(--sw-color-primary);
}

.sw_cta2_buttons .sw_button:hover .sw_button_arrow {
    background: var(--sw-color-white);
}

.sw_cta2_buttons .sw_button:hover .sw_button_arrow svg {
    color: var(--sw-color-primary);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sw_cta2_container {
        margin: 0 32px;
        padding: 24px 24px 24px 32px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .sw_cta2_container {
        padding: 32px 24px;
        margin: 0 16px;
        height: auto;
        min-height: 304px;
    }
    
    .sw_cta2_content {
        margin-bottom: 0;
    }
    
    .sw_cta2_buttons {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .sw_cta2_container {
        padding: 32px 26px;
        border-radius: 16px;
        background-size: cover;
        width: 100%;
        margin: 0 auto;
    }
    
    .sw_cta2_subtitle:not([style*="font-size"]) {
        font-size: 18px;
        line-height: 24px;
    }
    
    .sw_cta2_title:not([style*="font-size"]) {
        font-size: 22px;
        line-height: 30px;
    }
    
    .sw_cta2_buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .sw_cta2_buttons .sw_button {
        width: 100%;
        max-width: 160px;
        font-size: 12px;
        line-height: 18px;
        padding: 0 3px 0 20px;
        min-height: 42px;
        justify-content: center;
    }
} 