/* 开场动画模块 - 基于121文件夹动画原理 */

/* 动画容器 */
.opening-animation {
    background: #000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo容器 */
.opening-animation .logo-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: opening-logo-fade-in 1.3s ease-out 1 0s forwards;
}

/* Logo图片样式 */
.opening-animation .logo-container img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
}

/* 遮罩层 - 上半部分 */
.opening-animation .mask-top {
    width: 100%;
    height: 44%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    animation: opening-mask-shrink 3s ease-out 1 0s forwards;
}

/* 遮罩层 - 下半部分 */
.opening-animation .mask-bottom {
    width: 100%;
    height: 44%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #000;
    animation: opening-mask-shrink 3s ease-out 1 0s forwards;
}

/* 移动端适配 */
@media only screen and (max-width: 750px) {
    .opening-animation .logo-container img {
        width: auto;
        height: 100%;
        position: relative;
        left: 50%;
        margin-left: -56%;
    }
}

/* PC端适配 */
@media only screen and (min-width: 751px) {
    .opening-animation .logo-container {
        background: url("../images/opening_logo.png") fixed no-repeat center #000;
        background-size: contain;
    }
    
    .opening-animation .logo-container img {
        display: none;
    }
}

/* Logo淡入动画 - 1.3秒 */
@keyframes opening-logo-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 遮罩收缩动画 - 3秒，从44%高度收缩到0 */
@keyframes opening-mask-shrink {
    0% {
        height: 44%;
    }
    100% {
        height: 0;
    }
}

/* 浏览器兼容性前缀 */
@-webkit-keyframes opening-logo-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes opening-mask-shrink {
    0% {
        height: 44%;
    }
    100% {
        height: 0;
    }
}

@-moz-keyframes opening-logo-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-moz-keyframes opening-mask-shrink {
    0% {
        height: 44%;
    }
    100% {
        height: 0;
    }
}

@-o-keyframes opening-logo-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-o-keyframes opening-mask-shrink {
    0% {
        height: 44%;
    }
    100% {
        height: 0;
    }
}

/* 隐藏状态 */
.opening-animation.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* 完全隐藏 */
.opening-animation.removed {
    display: none;
    z-index: -1;
} 