
.homeBox{
    color: white;
}
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 3s ease-in-out;
    z-index: 1;
}

.hero-image.foreground {
    z-index: 2;
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    display: -webkit-flex; /* Safari 兼容 */
    justify-content: center;
    -webkit-justify-content: center; /* Safari 兼容 */
    align-items: center;
    -webkit-align-items: center; /* Safari 兼容 */
    text-align: center;
    z-index: 3;
    color: white;
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.5s;
    font-size: 2rem;
}

.hero-content img {
    width: 70px;
    height: 70px;
    display: block;
    margin: 0 auto;
}

.hero-title {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    width: 100%;
    height: 100%;
}

/* 首次进入的动画 */
.initial-load .hero-image {
    transform: scale(1.2);
}

.initial-load .hero-content {
    opacity: 0;
}

/* 动画激活状态 */
.animate-in .hero-image {
    transform: scale(1);
}

.animate-in .hero-content {
    opacity: 1;
}

.hero-content.animate-drop-from-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; 
    opacity: 0;
    transform: translate(-50%, -50%);
}

/* 应用动画 */
.hero-content.animate-drop-from-nav {
    animation: dropToCenter 2s ease-out 0s forwards;
}

@keyframes dropToCenter {
    0% {
        top: 0;
        left: 50%;
        transform: translate(-50%, -100%) scale(0.8);
        opacity: 0;
        font-size: 1.2rem;
    }
    50% {
        opacity: 0.8; 
    }
    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        font-size: 2rem; 
        width: 100%; 
        height: auto; 
    }
}

