body {
    margin: 0;
    padding: 0;
}
html {
  scroll-behavior: smooth;
}
.layout {
    width: 100%;
    /* opacity: 0; */
    /* animation: fadeIn 1s ease-in forwards; */
}

.jCenter {
    justify-content: center;
}

.layout .image-item {
    width: 100%;
    min-height: 100vh;
    /* transition: transform 0.3s ease, opacity 0.8s ease; */
    position: relative;
    /* will-change: transform, opacity; */
    /* opacity: 0; */
    /* 初始隐藏 */
    /* transform: translateY(50px); */
    /* 初始向下偏移 */
}

/* 页面加载淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* 视差滚动效果 */
.layout .image-item .item-content {
    max-width: 75vw;
    /*min-height: 100vh;*/
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-content: center;
}


/* 滚动渐显动画 */
.image-item.reveal {
    animation: reveal 1s ease-out forwards;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(2.6042vw);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 鼠标悬停缩放效果 */
.layout .image-item:hover {
    /* transform: scale(1.02); */
}

/* 修正背景样式，确保只作用于image-item本身 */
.layout .image-item:nth-child(1) {
    background-size: cover !important;
    background: url('../images/new/gycsBG.png') no-repeat center;
}

.layout .image-item:nth-child(2) {
    background: #fff;
    /* 确保背景为白色，避免影响内部section */
}


.screen.active {
    opacity: 1;
    visibility: visible;
}

.charity-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    padding: 8.3333vw 0 0;
    text-align: justify;
}


/* 标题区域 */
.charity-header {
    text-align: center;
    z-index: 2;
    position: relative;
}

.charity-header h1 {
    font-size: 1.9792vw;
    color: #007F6E;
    font-weight: normal;
    letter-spacing: 0.4167vw;
    margin-top: 0;
    margin-bottom: 0.625vw;
    font-family: FZZhengHeiS-DB-GB;
}

.underline {
    width: 3.125vw;
    height: 0.2083vw;
    background: #007F6E;
    margin: 0 auto;
}

.charity-introduce {
    margin-top: 2.3438vw;
    font-family: PingFang SC;
    font-size: 1.25vw;
    font-weight: 400;
    line-height: 2.6042vw;
    letter-spacing: 0.1042vw;
    color: #007F6E;
    text-indent: 2.6042vw;
}

.charity-introduce span{
    font-weight: 300;
    font-family: initial;
}

.charity-video {
    margin: 5.2083vw 0 15.625vw;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-name {
    position: absolute;
    top: 1.0417vw;
    left: 1.0417vw;
    color: #FFFFFF;
    font-size: 1.0417vw; 
    font-family: PingFang SC;
}

.charity-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-button {
    position: absolute;
    width: 4.1667vw;
    height: 4.1667vw;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 1.3021vw solid #fff;
    border-top: 0.78125vw solid transparent;
    border-bottom: 0.78125vw solid transparent;
    margin-left: 0.2604vw;
}





@media (max-width: 768px) {
    .layout .image-item {
        min-height: auto !important;
    }

    .layout .image-item:nth-child(1) {
        height: 300px !important;
        background-size: cover !important;
    }

    .layout .image-item .item-content {
        max-width: 100% !important;
        min-height: auto;
        padding: 10px;
    }

    .charity-header h1 {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .charity-section {
        padding: 30px 0;
        min-height: auto !important;
    }

    .underline {
        width: 40px;
        height: 2px;
    }

    .charity-introduce {
        font-size: 16px;
        line-height: 28px;
        text-indent: 2em;
        padding: 0 16px;
        margin-top: 20px;
    }

    .charity-video {
        margin: 40px 0;
        /* margin: 0 16px; */
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-icon {
        border-left: 15px solid #fff;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        margin-left: 3px;
    }
}