/* 共享的 Tailwind 配置和样式 */
body {
    background-image: url('../generated_image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Theme transition animation styles */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: linear-gradient(to bottom, #87CEEB 0%, #FFE4B5 50%, #FFA500 100%);
    transition: opacity 0.3s ease;
}

.theme-transition-overlay.active {
    opacity: 1;
}

.theme-transition-overlay.dark-mode {
    background: linear-gradient(to bottom, #191970 0%, #483D8B 50%, #2F4F4F 100%);
}

.sun-moon-container {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sun, .moon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun {
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.moon {
    background: radial-gradient(circle, #F5F5DC 0%, #E6E6FA 100%);
    box-shadow: 0 0 15px rgba(245, 245, 220, 0.4);
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.8);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

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

/* Dark mode transitions */
.theme-transition-overlay.dark-mode .sun {
    transform: translate(-50%, 150%) scale(0.8);
    opacity: 0;
}

.theme-transition-overlay.dark-mode .moon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.theme-transition-overlay.dark-mode .stars {
    opacity: 1;
}
