/**
 * Customer Success Cases 模块样式
 */

/* ===== 网格布局（双卡片并排） ===== */
.customer-success-cases-grid {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

.customer-success-cases-grid .elementor-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.customer-success-cases-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.customer-success-cases-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.customer-success-cases-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #999;
    display: block;
}

.customer-success-cases-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    grid-auto-flow: row;
    box-sizing: border-box;
}

.customer-success-cases-wrapper.customer-success-cases-full-width {
    grid-template-columns: 1fr;
}

.customer-success-case-full-width {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 32 / 10; /* 宽度是单个卡片的2倍，所以比例是 32:10 */
}

.customer-success-case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    min-height: 500px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    display: block;
}

.customer-success-case-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.customer-success-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.customer-success-case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}

.customer-success-case-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 50px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    align-items: flex-start;
}

.customer-success-case-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: left;
    width: 100%;
}

.customer-success-case-description {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    margin: 0 0 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 0.95;
    flex-grow: 1;
    text-align: left;
    width: 100%;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF8C00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: none;
    cursor: pointer;
    text-align: left;
    align-self: flex-start;
}

.btn-view-more:hover {
    background-color: #FF7A00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

/* 悬停效果 */
.customer-success-case-item:hover .customer-success-case-image img {
    transform: scale(1.05);
}

.customer-success-case-item:hover .customer-success-case-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.75) 100%);
}

/* ===== 横幅布局（全宽） ===== */
.customer-success-cases-banner {
    padding: 0;
    background-color: #000;
    width: 100%;
    margin: 0;
}

.customer-success-case-banner-item {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    width: 100%;
}

.customer-success-case-banner-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.customer-success-case-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.customer-success-case-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.customer-success-case-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.customer-success-case-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
    padding: 60px 0;
    width: 100%;
}

.customer-success-case-banner-text {
    flex: 0 0 auto;
    max-width: 600px;
    color: #fff;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.customer-success-case-banner-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 25px 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.customer-success-case-banner-description {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin: 0 0 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    opacity: 0.95;
    flex-grow: 1;
}

.customer-success-case-banner-button {
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
}

.customer-success-case-banner-text .btn-view-more {
    margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .customer-success-cases-grid {
        padding: 60px 0;
    }
    
    .customer-success-cases-title {
        font-size: 32px;
    }
    
    .customer-success-cases-wrapper {
        gap: 25px;
    }
    
    .customer-success-case-item {
        min-height: 450px;
    }
    
    .customer-success-case-content {
        padding: 35px 40px;
    }
    
    .customer-success-case-title {
        font-size: 24px;
    }
    
    .customer-success-case-description {
        font-size: 15px;
    }
    
    .customer-success-case-banner-title {
        font-size: 32px;
    }
    
    .customer-success-case-banner-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .customer-success-cases-grid {
        padding: 40px 0;
    }
    
    .customer-success-cases-header {
        margin-bottom: 40px;
    }
    
    .customer-success-cases-title {
        font-size: 28px;
        padding-bottom: 12px;
    }
    
    .customer-success-cases-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .customer-success-case-item {
        min-height: 400px;
    }
    
    .customer-success-case-content {
        padding: 30px 35px;
    }
    
    .customer-success-case-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .customer-success-case-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn-view-more {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .customer-success-case-banner-content {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .customer-success-case-banner-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .customer-success-case-banner-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .customer-success-cases-grid {
        padding: 30px 0;
    }
    
    .customer-success-cases-title {
        font-size: 24px;
    }
    
    .customer-success-case-item {
        min-height: 350px;
    }
    
    .customer-success-case-content {
        padding: 25px 30px;
    }
    
    .customer-success-case-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .customer-success-case-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .btn-view-more {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .customer-success-case-banner-content {
        min-height: 350px;
        padding: 30px 0;
    }
    
    .customer-success-case-banner-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .customer-success-case-banner-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}
