/* Case Studies Styling */
.case-item {
    display: flex;
    gap: 2.5rem;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.case-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.case-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.case-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.case-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin-bottom: 0.8rem;
}

.brand-tag {
    display: inline-block;
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.brand-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.case-desc {
    flex-grow: 1;

}

.desc-section {
    margin-bottom: 1.5rem;
}

.desc-section h5 {
    color: #333;
    line-height: 2;
    font-weight: 400;
}

.desc-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.section-content {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.case-stats {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.4rem;
    white-space: nowrap;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.4rem;
}

.case-image {
    padding-top: 0;
    width: 50%;
    flex-shrink: 0;
    align-self: center;
}

.case-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .case-item {
        gap: 2rem;
    }
    
    .case-image {
        width: 45%;
    }
}

@media (max-width: 991px) {
    .case-item {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .case-image {
        width: 100%;
        margin-top: 1.5rem;
        padding-top: 0;
    }
    
    .case-image video,
    .case-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .case-image-wrapper {
        padding-top: 0;
        height: auto;
    }
    
    .case-image-wrapper img {
        position: relative;
    }
    
    .case-content {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .case-title {
        font-size: 1.4rem;
    }
    
    .brand-tag {
        padding: 0.4rem 0.8rem;
    }
    
    .case-stats {
        display: none !important;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 0.75rem);
        margin-right: 0 !important;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-unit {
        font-size: 1rem;
    }
    
    .case-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .case-stats {
        display: none !important;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

.portfolio-slider .thumbnail {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-slider .thumbnail img {
    width: 100%;
    height: auto;
}

/* Case Slider Styles */
.case-slider {
    position: relative;
    padding: 20px 50px;
}

.case-button-prev,
.case-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.case-button-prev {
    left: 0;
}

.case-button-next {
    right: 0;
}

.case-button-prev:hover,
.case-button-next:hover {
    background: var(--secondary-color);
}

.case-button-prev.button-pressed,
.case-button-next.button-pressed {
    transform: translateY(-50%) scale(0.95);
}

.case-button-prev i,
.case-button-next i {
    font-size: 18px;
}

.swiper-slide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .case-slider {
        padding: 20px 30px;
    }
    
    .case-button-prev,
    .case-button-next {
        width: 30px;
        height: 30px;
    }
    
    .case-button-prev i,
    .case-button-next i {
        font-size: 14px;
    }
}