/* Logo动画容器样式 */
.logo-animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    background: linear-gradient(to bottom, #000103 0%, #000510 50%, #000b24 100%);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 5; /* 降低z-index，确保滚动指示器可以显示 */
    overflow: hidden;
}

/* 星空背景效果 */
.logo-animation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 125px 125px, white, transparent),
        radial-gradient(1.5px 1.5px at 50px 175px, white, transparent),
        radial-gradient(2px 2px at 175px 175px, white, transparent),
        radial-gradient(2px 2px at 20px 225px, white, transparent),
        radial-gradient(1px 1px at 125px 300px, white, transparent),
        radial-gradient(1.5px 1.5px at 200px 325px, white, transparent),
        radial-gradient(1px 1px at 300px 350px, white, transparent),
        radial-gradient(1.5px 1.5px at 175px 450px, white, transparent);
    background-size: 500px 500px;
    background-repeat: repeat;
    opacity: 0.8;
    z-index: -1;
}

/* 闪烁星星 */
.logo-animation-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 75px 75px, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 150px 150px, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 300px 300px, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 400px 400px, rgba(255, 255, 255, 1), transparent),
        radial-gradient(2px 2px at 500px 100px, rgba(255, 255, 255, 1), transparent);
    background-size: 500px 500px;
    background-repeat: repeat;
    opacity: 0;
    z-index: -1;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 龙头和太阳图标容器 */
.logos-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
    position: relative;
    height: 300px;
}

/* 龙头容器 */
.dragon-container {
    position: relative;
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 1s ease;
}

/* 太阳容器 */
.sun-container {
    position: relative;
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 1s ease;
}

/* 图标中心位置调整 */
.move-to-center {
    transform: translateX(calc(50vw - 50% - 300px));
}

.sun-container.move-to-center {
    transform: translateX(calc(-50vw + 50% + 300px));
}

/* Logo图像 */
.logo-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 光线效果 */
.light-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(192, 192, 192, 0.8);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.8);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* 顺时针旋转动画 */
.rotate-clockwise {
    animation: rotateClockwise 2s linear forwards;
}

/* 逆时针旋转动画 */
.rotate-counterclockwise {
    animation: rotateCounterclockwise 2s linear forwards;
}

/* 公司名称样式 */
.company-title {
    margin-top: 40px;
    color: #fff;
    font-size: 3em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-weight: bold;
}

/* 旋转动画关键帧 */
@keyframes rotateClockwise {
    0% {
        transform: rotate(0deg) scale(0.3);
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes rotateCounterclockwise {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: rotate(-360deg) scale(1.2);
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .logos-container {
        padding: 0 5%;
    }
    
    .dragon-container, .sun-container {
        width: 200px;
        height: 200px;
    }
    
    .move-to-center {
        transform: translateX(calc(50vw - 50% - 100px));
    }
    
    .sun-container.move-to-center {
        transform: translateX(calc(-50vw + 50% + 100px));
    }
    
    .company-title {
        font-size: 2.5em;
    }
}

@media (max-width: 576px) {
    .logos-container {
        height: 150px;
    }
    
    .dragon-container, .sun-container {
        width: 120px;
        height: 120px;
    }
    
    .move-to-center {
        transform: translateX(calc(50vw - 50% - 70px));
    }
    
    .sun-container.move-to-center {
        transform: translateX(calc(-50vw + 50% + 70px));
    }
    
    .company-title {
        font-size: 2em;
        margin-top: 30px;
    }
}