/* Call to Action 组件样式 */
.sw_cta_wrapper {
    width: 100%;
    height: auto;
}

.sw_cta_container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 32px;
    padding: 32px 32px 32px 48px;
    display: flex;
    align-items: center;
    gap: 73px;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 左侧内容区域 */
.sw_cta_content {
    flex: 1;
    max-width: calc(100% - 480px - 73px);
}

/* 小标题 */
.sw_cta_subtitle {
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
    opacity: 0.8;
    /* 字体大小和行高由Elementor控制器控制 */
}

/* 大标题 */
.sw_cta_title {
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    /* 字体大小和行高由Elementor控制器控制 */
}

/* 描述文字段落 */
.sw_cta_description {
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    opacity: 0.5;
    font-size: 14px;
    /* 字体大小和行高由Elementor控制器控制 */
}

/* 功能列表 */
.sw_cta_features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 0;
}

.sw_cta_feature_item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 0 auto;
    opacity: 0.5;
}

/* 当图标隐藏时的样式 - 使用类名控制 */
.sw_cta_features.no-icons .sw_cta_feature_item {
    gap: 0;
}

.sw_cta_feature_item:hover {
    opacity: 1;
}

.sw_cta_feature_icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw_cta_feature_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw_cta_feature_text {
    font-weight: 300;
    color: #ffffff;
    /* 字体大小和行高由Elementor控制器控制 */
}

/* 按钮区域 */
.sw_cta_buttons {
    margin-top: 48px;
    display: flex;
    gap: 16px;
}

/* 按钮样式 */
.sw_cta_buttons .sw_button {
    padding: 12px 8px 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 120px;
    min-height: 50px;
}

/* 主要按钮（outline样式） */
.sw_cta_buttons .sw_button:not(.sw-button-white) {
    background: transparent;
    color: #fff;
    border-color: #00a2ff;
}

/* 白色按钮样式 */
.sw_cta_buttons .sw_button.sw-button-white {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

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

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

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

/* 右侧图片区域 */
.sw_cta_image {
    flex-shrink: 0;
    width: 480px;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
}

.sw_cta_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .sw_cta_container {
        padding: 24px 32px;
        gap: 40px;
    }
    
    .sw_cta_image {
        width: 400px;
        height: 300px;
    }
    
    .sw_cta_content {
        max-width: calc(100% - 400px - 40px);
    }
}

@media (max-width: 1024px) {
    .sw_cta_buttons {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .sw_cta_container {
        flex-direction: column;
        padding: 24px;
        gap: 32px;
        text-align: center;
        /* 确保背景图片在移动端也能正确显示 */
        background-attachment: scroll;
    }
    
    .sw_cta_content {
        max-width: 100%;
        order: 1;
    }
    
    .sw_cta_image {
        width: 100%;
        max-width: 400px;
        height: 280px;
        order: 2;
    }
    
    .sw_cta_features {
        justify-content: center;
    }
    
    .sw_cta_buttons {
        justify-content: center;
        margin-top: 32px;
    }
    
    /* 响应式字体大小回退 - 如果Elementor控制器没有设置移动端大小 */
    .sw_cta_subtitle:not([style*="font-size"]) {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    .sw_cta_title:not([style*="font-size"]) {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    
    .sw_cta_description:not([style*="font-size"]) {
        font-size: 15px !important;
        line-height: 22px !important;
    }
    
    .sw_cta_feature_text:not([style*="font-size"]) {
        font-size: 13px !important;
        line-height: 20px !important;
    }
}

@media (max-width: 480px) {
    .sw_cta_container {
        padding: 20px;
        gap: 24px;
        /* 小屏幕上调整背景图片显示 */
        background-position: center center !important;
        min-height: auto;
    }
    
    .sw_cta_image {
        height: 240px;
    }
    
    .sw_cta_features {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .sw_cta_buttons {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }
    
    .sw_cta_buttons .sw_button {
        width: 100%;
        max-width: 160px;
        font-size: 12px;
        line-height: 18px;
        padding: 0 3px 0 20px;
        min-height: 42px;
    }
    
    /* 超小屏幕的字体大小回退 */
    .sw_cta_subtitle:not([style*="font-size"]) {
        font-size: 18px !important;
        line-height: 24px !important;
    }
    
    .sw_cta_title:not([style*="font-size"]) {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    
    .sw_cta_description:not([style*="font-size"]) {
        font-size: 14px !important;
        line-height: 20px !important;
    }
    
    .sw_cta_feature_text:not([style*="font-size"]) {
        font-size: 12px !important;
        line-height: 18px !important;
    }
    
    /* 功能图标在小屏幕上稍微小一点 */
    .sw_cta_feature_icon {
        width: 14px;
        height: 14px;
    }
} 