/**
 * 页面横幅样式
 * 
 * @package ShengWang
 * @since 1.0.0
 */

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

.sw_page_banner_wrapper {
    position: relative;
    width: 100%;
    min-height: 660px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 126px 0 85px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw_page_banner_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

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

.sw_page_banner_content {
    flex: 0 0 560px;
    max-width: 560px;
    min-height: 192px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sw_page_banner_title {
    font-size: 48px;
    line-height: 56px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.sw_page_banner_description {
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 36px 0;
    opacity: 0.9;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ========================================
   按钮容器
======================================== */

.sw_page_banner_buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row;
}

/* ========================================
   右侧图片区域
======================================== */

.sw_page_banner_image {
    flex: 1;
    max-width: 598px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw_page_banner_image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ========================================
   响应式样式
======================================== */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .sw_page_banner_wrapper {
        padding: 80px 0;
    }
    
    .sw_page_banner_container {
        min-height: 500px;
        flex-direction: column;
        text-align: center;
        gap: 100px;
    }
    
    .sw_page_banner_content {
        flex: 0 0 200px;
        max-width: 500px;
    }
    
    .sw_page_banner_title {
        font-size: 42px;
        line-height: 50px;
        margin-bottom: 14px;
    }
    
    .sw_page_banner_description {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 32px;
    }

    .sw_page_banner_buttons {
        flex-direction: row;
        gap: 16px;
        align-items: center;
        justify-content: center;
    }
    
    .sw_page_banner_image {
        max-width: 450px;
    }
}

/* 移动设备 (max-width: 768px) */
@media (max-width: 768px) {
    .sw_page_banner_wrapper {
        padding: 80px 0;
    }
    
    .sw_page_banner_content {
        flex: none;
        max-width: 100%;
        min-height: auto;
        order: 1;
    }
    
    .sw_page_banner_title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 12px;
    }
    
    .sw_page_banner_description {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 28px;
    }
    
    .sw_page_banner_image {
        order: 2;
        max-width: 100%;
    }
    
    .sw_page_banner_image img {
        max-width: 90%;
        border-radius: 8px;
    }
}

/* 小屏移动设备 (max-width: 480px) */
@media (max-width: 480px) {
    .sw_page_banner_wrapper {
        padding: 60px 0;
    }
    
    .sw_page_banner_container {
        padding: 0 16px;
        gap: 32px;
    }
    
    .sw_page_banner_title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 10px;
    }
    
    .sw_page_banner_description {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 24px;
    }
}

/* ========================================
   辅助样式
======================================== */

/* 加载动画 */
/* Start of Selection */
.sw_page_banner_wrapper * {
    animation: sw_fadeInUp 1s ease-out;
}

@keyframes sw_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
    }
}
/* End of Selection */

/* 确保按钮文字不会换行 */
.sw_page_banner_button .sw_button_text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}