/* 毛玻璃风格个人主页 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, 
        #0c0c0c 0%,     /* 深黑 */
        #1a1a2e 20%,    /* 深蓝黑 */
        #16213e 40%,    /* 深蓝 */
        #0f3460 60%,    /* 深蓝紫 */
        #533483 80%,    /* 深紫 */
        #e94560 100%    /* 深红 */
    );
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* 宇宙背景层 */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 深空背景 */
.space {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(26, 26, 46, 0.8) 0%,    /* 深蓝黑 */
        rgba(15, 52, 96, 0.6) 30%,   /* 深蓝 */
        rgba(83, 52, 131, 0.4) 60%,  /* 深紫 */
        rgba(233, 69, 96, 0.2) 100%  /* 深红 */
    );
}

/* 星星 */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 不同大小的星星 */
.star-small {
    width: 2px;
    height: 2px;
    animation-duration: 2s;
}

.star-medium {
    width: 3px;
    height: 3px;
    animation-duration: 3s;
}

.star-large {
    width: 4px;
    height: 4px;
    animation-duration: 4s;
}

/* 行星 */
.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.planet1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle at 30% 30%, 
        #ff6b35 0%,
        #f7931e 50%,
        #e94560 100%
    );
    animation: rotate 20s linear infinite;
}

.planet2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 5%;
    background: radial-gradient(circle at 30% 30%, 
        #4facfe 0%,
        #00f2fe 50%,
        #533483 100%
    );
    animation: rotate 15s linear infinite reverse;
}

.planet3 {
    width: 30px;
    height: 30px;
    top: 40%;
    left: 80%;
    background: radial-gradient(circle at 30% 30%, 
        #667eea 0%,
        #764ba2 50%,
        #f093fb 100%
    );
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 星云效果 */
.nebula {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: nebulaFloat 30s ease-in-out infinite;
}

.nebula1 {
    width: 200px;
    height: 100px;
    top: 10%;
    left: 20%;
    background: radial-gradient(ellipse, 
        rgba(233, 69, 96, 0.4) 0%,
        rgba(83, 52, 131, 0.3) 50%,
        transparent 100%
    );
    animation-delay: 0s;
}

.nebula2 {
    width: 150px;
    height: 80px;
    top: 50%;
    right: 20%;
    background: radial-gradient(ellipse, 
        rgba(15, 52, 96, 0.4) 0%,
        rgba(26, 26, 46, 0.3) 50%,
        transparent 100%
    );
    animation-delay: -10s;
}

.nebula3 {
    width: 180px;
    height: 90px;
    bottom: 20%;
    left: 40%;
    background: radial-gradient(ellipse, 
        rgba(102, 126, 234, 0.3) 0%,
        rgba(118, 75, 162, 0.2) 50%,
        transparent 100%
    );
    animation-delay: -20s;
}

@keyframes nebulaFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% { 
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.4;
    }
    66% { 
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.2;
    }
}

/* 流星效果 */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    border-radius: 50%;
    animation: meteorShower 8s linear infinite;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%,
        transparent 100%
    );
    transform: rotate(45deg);
    transform-origin: left center;
}

.meteor1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.meteor2 {
    top: 30%;
    left: 20%;
    animation-delay: -3s;
}

.meteor3 {
    top: 50%;
    left: 30%;
    animation-delay: -6s;
}

@keyframes meteorShower {
    0% { 
        transform: translate(0, 0);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translate(300px, 300px);
        opacity: 0;
    }
}

/* 宇宙装饰元素 */
.space-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 星星悬停效果 */
.star:hover {
    animation-play-state: paused;
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}
