/* Space Page Styles */

/* 全屏英雄区 */
.space-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

/* 星空背景 */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    z-index: -1;
}

/* 星星效果 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 200px 160px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 240px 200px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 280px 240px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 320px 280px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 360px 320px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 360px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 440px 400px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 480px 440px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 520px 480px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 560px 520px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 600px 560px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 640px 600px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 680px 640px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 720px 680px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 760px 720px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 800px 760px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 840px 800px, white, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 800px 800px;
    animation: twinkle 10s infinite;
}

/* 星星闪烁动画 */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 漂浮元素容器 */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 漂浮元素 */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation: float 20s infinite ease-in-out;
}

/* 不同大小和位置的漂浮元素 */
.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 30%;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 25%;
    animation-delay: -15s;
}

.floating-element:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 30%;
    left: 70%;
    animation-delay: -7s;
}

/* 漂浮动画 */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(40px, 0) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translate(20px, 20px) rotate(270deg);
        opacity: 0.7;
    }
}

/* 空间信息文字 */
.space-message {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    z-index: 10;
    position: relative;
}

/* 时间选择 */
.time-selection {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
}

.time-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.time-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.time-btn.active {
    background-color: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .space-hero {
        padding: 2rem;
    }
    
    .space-message {
        font-size: 1.2rem;
    }
    
    .time-selection {
        gap: 0.75rem;
    }
    
    .time-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}