/* 应用案例页面样式 */

/* 案例页 Hero — 浅色玻璃态 + 网格装饰 */
.case-hero-section {
    position: relative;
    background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 45%, #fff 100%);
    color: var(--text-dark);
    padding: 140px 0 80px;
    overflow: hidden;
    text-align: center;
}

/* 背景层：光斑 + 网格 */
.case-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.case-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.case-bg-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.12);
    top: -150px;
    right: 5%;
}

.case-bg-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(167, 139, 250, 0.1);
    bottom: -120px;
    left: 0;
}

.case-bg-glow-3 {
    width: 300px;
    height: 300px;
    background: rgba(219, 190, 255, 0.12);
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

/* 网格底纹 */
.case-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}

/* 网格上的节点装饰 */
.case-grid-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
}

.case-grid-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.2);
    animation: caseDotPulse 3s ease-in-out infinite;
}

.case-grid-dot-1 { top: 25%; left: 18%; animation-delay: 0s; }
.case-grid-dot-2 { top: 60%; left: 12%; opacity: 0.2; animation-delay: 1s; }
.case-grid-dot-3 { top: 30%; right: 15%; animation-delay: 0.5s; }
.case-grid-dot-4 { top: 70%; right: 20%; opacity: 0.2; animation-delay: 1.5s; }
.case-grid-dot-5 { top: 45%; left: 30%; opacity: 0.15; animation-delay: 2s; }
.case-grid-dot-6 { top: 50%; right: 30%; opacity: 0.15; animation-delay: 0.8s; }

@keyframes caseDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(2.5); opacity: 0; }
}

/* 连接线装饰 */
.case-grid-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    pointer-events: none;
}

.case-grid-line-1 {
    width: 200px;
    top: 35%;
    left: 8%;
    transform: rotate(-15deg);
}

.case-grid-line-2 {
    width: 160px;
    top: 55%;
    right: 10%;
    transform: rotate(10deg);
}

/* 内容区域 */
.case-hero-center {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

/* 面包屑 */
.case-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.case-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.case-breadcrumb a:hover {
    color: var(--primary-color);
}

.case-breadcrumb span {
    margin: 0 0.4rem;
}

/* 标题 */
.case-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    animation: caseHeroFadeInUp 0.6s ease-out both;
}

/* 描述 */
.case-hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: caseHeroFadeInUp 0.6s ease-out 0.15s both;
}

/* 行业标签 */
.case-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    animation: caseHeroFadeInUp 0.6s ease-out 0.3s both;
}

.case-hero-tag {
    font-size: 0.8rem;
    color: rgba(124, 58, 237, 0.6);
    letter-spacing: 0.02em;
}

.case-hero-tag i {
    font-size: 0.72rem;
}

@keyframes caseHeroFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 案例列表区域 */
.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(124, 58, 237, 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(124, 58, 237, 0.06), rgba(167, 139, 250, 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) {
    .cases-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .case-hero-section {
        padding: 110px 0 60px;
    }

    .case-hero-title {
        font-size: 2.2rem;
    }

    .case-hero-desc {
        font-size: 0.95rem;
    }

    .case-hero-tag {
        font-size: 0.72rem;
    }

    .case-hero-grid {
        background-size: 36px 36px;
    }

    .case-grid-dot,
    .case-grid-line {
        display: none;
    }

    .cases-section .section-title {
        font-size: 1.8rem;
    }

    .case-contact-box {
        padding: 2rem 1.2rem;
    }
}
