/* 成功案例 */
.success-cases {
    background: var(--color-section-success);
    padding: 80px 0;
    display: block;
}

.success-cases h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.case-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.case-btn {
    padding: 12px 36px;
    border-radius: 24px;
    border: none;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.24;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-secondary);
    background: none;
    position: relative;
    overflow: hidden;
}

.case-btn:hover {
    transform: translateY(-2px);
}

.case-btn.active {
    background: var(--color-primary);
    color: var(--color-background-primary);
}

.case-showcase {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 440px;
    margin: 0;
    background: var(--color-background-primary);
    border-radius: 16px;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    height: 100%;
    min-height: 100%;
    gap: 24px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.case-image {
    flex-shrink: 0;
    width: 480px;
    height: 100%;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.case-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin: 0;
}

.case-content p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin: 0;
}

.case-content-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-shrink: 0;
    min-height: 0;
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 24px;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    flex: 1;
    justify-content: flex-end;
}

.testimonial-logo {
    flex-shrink: 0;
}

.testimonial-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.testimonial-text {
    flex: 1;
}

.case-content .btn {
    align-self: flex-end;
    flex-shrink: 0;
}

.case-content .btn-text a.btn-text {
    padding: 8px 0;
}

.testimonial-text p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-secondary);
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
}

/* Media Queries */
@media (max-width: 1200px) {
    .case-showcase {
        max-width: 100%;
        margin: 0;
        height: 400px;
    }
    
    .case-image {
        width: 350px;
        height: 100%;
    }
    
    .case-content {
        padding: 40px;
        flex: 1;
    }
    
    .case-content-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial {
        width: 100%;
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.12);
        padding: 20px 0 0;
    }
}

@media (max-width: 1180px) {
    .case-showcase {
        height: 400px;
    }
    
    .case-image {
        width: 300px;
        height: 100%;
    }
    
    .case-content {
        padding: 32px;
    }
    
    .case-content-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .testimonial {
        width: 100%;
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.12);
        padding: 20px 0 0;
    }
    
    .btn {
        align-self: flex-start;
    }
}

@media (max-width: 1000px) {
    .case-showcase {
        flex-direction: column;
        height: auto;
        gap: 0;
    }
    
    .case-image {
        width: 100%;
        height: 300px;
        order: 1;
    }
    
    .case-content {
        order: 2;
        padding: 32px;
        gap: 20px;
    }
    
    .case-content h3 {
        font-size: 1.75rem;
    }
    
    .case-content p {
        font-size: 1rem;
    }
    
    .case-content-bottom {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonial {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.12);
        padding: 20px 0 0;
    }
    
    .btn {
        align-self: flex-start;
    }
}

@media (max-width: 992px) {
    .case-showcase {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        height: auto;
    }
    
    .case-image {
        width: 100%;
        height: 300px;
        order: 1;
    }
    
    .case-content {
        order: 2;
        padding: 24px;
        gap: 20px;
    }
    
    .case-content h3 {
        font-size: 1.875rem;
    }
    
    .case-content p {
        font-size: 1rem;
    }
    
    .case-content-bottom {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonial {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        border-left: none;
        border-top: 2px solid rgba(0, 0, 0, 0.12);
        padding: 20px 0 0;
    }
    
    .btn {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .success-cases {
        padding: 40px 24px;
    }
    
    .success-cases h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .case-buttons {
        margin-bottom: 2rem;
        gap: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .case-btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 24px;
        width: 100%;
    }
    
    .case-showcase {
        flex-direction: column;
        height: auto;
        max-width: 100%;
        gap: 24px;
        background: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    
    .case-image {
        width: 100%;
        height: 300px;
        order: 1;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .case-image img {
        border-radius: 16px;
    }
    
    .case-content {
        order: 2;
        padding: 0;
        gap: 20px;
        text-align: left;
    }
    
    .case-content h3 {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.4;
        color: var(--color-text-secondary);
        text-align: left;
    }
    
    .case-content p {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.4;
        color: var(--color-text-secondary);
        text-align: left;
    }
    
    .case-content-bottom {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonial {
        order: 1;
    }
    
    .btn {
        order: 2;
        align-self: flex-start;
    }
    
    .testimonial-text p {
        font-size: 1rem;
        display: block;
        line-clamp: unset;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
        overflow: visible;
        text-overflow: unset;
        max-height: none;
    }
}

@media (max-width: 375px) {
    .success-cases {
        padding: 40px 24px;
    }
    
    .success-cases h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .case-buttons {
        margin-bottom: 2rem;
        gap: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .case-btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 24px;
        width: 100%;
    }
    
    .case-showcase {
        flex-direction: column;
        height: auto;
        max-width: 100%;
        gap: 24px;
        background: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    
    .case-image {
        width: 100%;
        height: 300px;
        order: 1;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .case-image img {
        border-radius: 16px;
    }
    
    .case-content {
        order: 2;
        padding: 0;
        gap: 20px;
        text-align: left;
    }
    
    .case-content h3 {
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1.4;
        color: var(--color-text-secondary);
        text-align: left;
    }
    
    .case-content p {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.4;
        color: var(--color-text-secondary);
        text-align: left;
    }
    
    .case-content-bottom {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonial {
        order: 1;
    }
    
    .btn {
        order: 2;
        align-self: flex-start;
    }
    
    .testimonial-text p {
        font-size: 1rem;
        display: block;
        line-clamp: unset;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
        overflow: visible;
        text-overflow: unset;
        max-height: none;
    }
}
