﻿/* 应用案例页面样式 */

.case-hero-section {
    margin-top: 80px;
    padding-top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

    .case-hero-section .badge.bg-primary-soft {
        background: rgba(255, 107, 53, 0.08);
        border-radius: 999px;
        padding: 0.35rem 0.9rem;
        font-weight: 500;
    }

/* 案例列表区域 */
.cases-section {
    background: #ffffff;
}

    .cases-section .section-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }

    .cases-section .section-subtitle {
        font-size: 1rem;
        color: var(--text-light);
        margin-bottom: 2.5rem;
    }

/* 案例卡片 */
/* 整卡以图片为背景，文字叠加在图片上方 */
.case-card {
    position: relative;
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    background: #000;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

    .case-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

.case-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

    .case-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 统一色彩风格：轻度灰度 + 降饱和，弱化原图杂色 */
        filter: grayscale(40%) saturate(80%) brightness(0.96);
        transition: transform 0.5s ease, filter 0.4s ease;
    }

    /* 统一色调的叠加层：品牌橙 + 深色渐变，进一步压一层色 */
    .case-image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(0, 0, 0, 0.45) 0%, rgba(255, 107, 53, 0.4) 50%, rgba(0, 0, 0, 0.55) 100% );
        mix-blend-mode: multiply;
        opacity: 0.9;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

.case-card:hover .case-image-wrapper img {
    transform: scale(1.05);
    /* 悬停时略微提升亮度和对比度，但仍保持风格统一 */
    filter: grayscale(30%) saturate(90%) brightness(1);
}

.case-card:hover .case-image-wrapper::after {
    opacity: 0.8;
}

.case-tag {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* 文字内容层：叠加在图片底部，高度控制在整体 30%~40% 左右 */
.case-card .card-body {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 1.25rem 1.3rem 1.1rem;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.25) 100% );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 30%;
    max-height: 60%;
}

.case-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.case-desc {
    font-size: 0.9rem;
    color: #f1f3f5;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.case-scenes-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.25rem;
}

.case-scenes {
    padding-left: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
}

    .case-scenes li {
        position: relative;
        padding-left: 0.8rem;
        font-size: 0.8rem;
        color: #f8f9fa;
        margin-bottom: 0;
        white-space: nowrap;
    }

        .case-scenes li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-size: 0.85rem;
        }

/* 底部引导区域 */
.case-contact-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(255, 140, 66, 0.06));
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

    .case-contact-box h3 {
        font-weight: 700;
        color: var(--text-dark);
    }

    .case-contact-box .btn {
        padding: 0.8rem 2rem;
        border-radius: 999px;
    }

/* 响应式调整 */
@media (max-width: 991px) {
    .case-hero-section {
        padding-top: 90px;
    }

    .cases-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .case-hero-section {
        padding-top: 80px;
        text-align: center;
    }

        .case-hero-section img {
            margin-top: 1.5rem;
        }

    .cases-section .section-title {
        font-size: 1.8rem;
    }

    .case-contact-box {
        padding: 2rem 1.2rem;
    }
}
