/* ============================================================
   atmosphere 组件 · 从 case_new.css 抽出，index/course 共用
   ============================================================ */

#atmosphere {
    background: #f7f7f5;
    padding: 0;
    overflow: hidden;
}

#atmosphere .container {
    display: grid;
    gap: 4px;
}

.atm-pledge {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.atm-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.atm-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.atm-pledge img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.atm-grid-item:hover img {
    transform: scale(1.04);
    opacity: .92;
}

.atm-pledge:hover img {
    transform: scale(1.04);
    opacity: .92;
}

.atm-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, transparent 65%);
    transition: opacity 0.4s ease;
}

.atm-grid-item:hover .atm-overlay {
    opacity: 1;
}

.atm-pledge:hover .atm-overlay {
    opacity: 1;
}

.atm-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.35s ease;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.atm-grid-item:hover .atm-cta {
    transform: translate(-50%, -50%);
    filter: blur(0);
    opacity: 1;
}

.atm-pledge:hover .atm-cta {
    transform: translate(-50%, -50%);
    filter: blur(0);
    opacity: 1;
}

.atm-corner-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    pointer-events: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(0,0,0,0.30);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.80);
    display: flex;
    align-items: center;
    justify-content: center;
}

.atm-pledge {
    grid-column: auto;
}

.atm-cta {
    font-size: var(--font-size-14);
    padding: 8px 18px;
}

#atmosphere .container {
    grid-template-columns: 1fr;
}

.atm-grid-item .atm-overlay {
    opacity: 1;
}

.atm-pledge .atm-overlay {
    opacity: 1;
}

.atm-grid-item .atm-cta {
    transform: translate(-50%, -50%);
    filter: blur(0);
    opacity: 1;
}

.atm-pledge .atm-cta {
    transform: translate(-50%, -50%);
    filter: blur(0);
    opacity: 1;
}

@media (min-width: 1025px) {
    #atmosphere {
        background: #f7f7f5;
        padding: 0;
        overflow: hidden;
    }

    #atmosphere .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .atm-pledge {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        grid-column: 1 / -1;
    }

    .atm-grid-item {
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .atm-grid-item img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    .atm-pledge img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    .atm-grid-item:hover img {
        transform: scale(1.04);
        opacity: .92;
    }

    .atm-pledge:hover img {
        transform: scale(1.04);
        opacity: .92;
    }

    .atm-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, transparent 65%);
        transition: opacity 0.4s ease;
    }

    .atm-grid-item:hover .atm-overlay {
        opacity: 1;
    }

    .atm-pledge:hover .atm-overlay {
        opacity: 1;
    }

    .atm-cta {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 2;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease, filter 0.35s ease;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        border: 1px solid rgba(255,255,255,0.28);
        border-radius: 50px;
        color: #fff;
        font-size: var(--font-size-14);
        font-weight: 500;
        padding: 9px 22px;
        white-space: nowrap;
    }

    .atm-grid-item:hover .atm-cta {
        transform: translate(-50%, -50%);
        filter: blur(0);
        opacity: 1;
    }

    .atm-pledge:hover .atm-cta {
        transform: translate(-50%, -50%);
        filter: blur(0);
        opacity: 1;
    }

    .atm-corner-icon {
        position: absolute;
        bottom: 10px;
        right: 10px;
        z-index: 2;
        pointer-events: none;
        width: 26px;
        height: 26px;
        border-radius: 6px;
        background: rgba(0,0,0,0.30);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        color: rgba(255,255,255,0.80);
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

