/* 苹果风格的日蚀动画样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.eclipse-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.sun {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ffeb3b, #ffc107);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px #ffeb3b, 0 0 100px rgba(255, 235, 59, 0.5);
}

.moon {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #2c3e50;
    border-radius: 50%;
    top: 0;
    left: -200px;
    transition: all 1s ease-in-out;
}

.eclipse-animation .moon {
    animation: eclipse 8s ease-in-out infinite;
}

.sun.pulse {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 50px #ffeb3b, 0 0 100px rgba(255, 235, 59, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 70px #ffeb3b, 0 0 140px rgba(255, 235, 59, 0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 50px #ffeb3b, 0 0 100px rgba(255, 235, 59, 0.5);
    }
}

@keyframes eclipse {
    0% {
        left: -200px;
        transform: scale(1);
    }
    25% {
        left: 0;
        transform: scale(1.1);
    }
    50% {
        left: 0;
        transform: scale(1);
    }
    75% {
        left: 0;
        transform: scale(1.1);
    }
    100% {
        left: 200px;
        transform: scale(1);
    }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

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

button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .eclipse-container {
        width: 250px;
        height: 250px;
    }
    
    .sun, .moon {
        width: 150px;
        height: 150px;
    }
}
