﻿.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* PC端弹窗内容层 */
.popup-content-pc {
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

    .popup-content-pc.active {
        display: flex;
    }

.popup-close {
    position: absolute;
    top: -40px;
    right: 0px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: #C9BC9C;
    font-size: 42px;
    line-height: 30px;
    text-align: center;
    transition: transform 0.2s ease;
}

/* 弹窗主容器 - 固定尺寸（根据图片比例 1591:618） */
.popup-wrapper {
    position: relative;
    height: 65vh;
    width: calc(65vh * 1591 / 618);
    max-width: 90vw;
}

.popup-image {
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0;
}

/* 第二屏内容样式 */
.popup-screen2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

    .popup-screen2.active {
        display: block;
    }

.popup-screen2-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* 横幅目标容器（马图飞入位置） */
#bg1_target {
    width: 100%;
    margin: 20px 0;
    margin-top: -40px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

    #bg1_target img {
        width: 100%;
        height: auto;
        display: block;
    }
