* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ma Shan Zheng', cursive;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.heart {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 50px;
    height: 50px;
    background: #ff4b4b;
    animation: heartbeat 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 75, 75, 0.5);
    transform: translateX(-50%) rotate(45deg);
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    box-shadow: inherit;
}

.heart:before {
    top: 0;
    left: -50%;
}

.heart:after {
    top: -50%;
    left: 0;
}

.title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.message {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.message p {
    font-size: 1.5rem;
    color: #ff4b4b;
    margin: 1rem 0;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }
.delay-4 { animation-delay: 2s; }

@keyframes heartbeat {
    0% { transform: translateX(-50%) rotate(45deg) scale(1); }
    25% { transform: translateX(-50%) rotate(45deg) scale(1.1); }
    50% { transform: translateX(-50%) rotate(45deg) scale(1); }
    75% { transform: translateX(-50%) rotate(45deg) scale(1.1); }
    100% { transform: translateX(-50%) rotate(45deg) scale(1); }
}

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

.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .message p {
        font-size: 1.2rem;
    }
    
    .heart {
        width: 30px;
        height: 30px;
    }
    
    .heart:before,
    .heart:after {
        width: 30px;
        height: 30px;
    }
    
    .heart:before {
        left: -50%;
    }
    
    .heart:after {
        top: -50%;
    }
}

#aplayer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.aplayer {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.play-icon {
    color: #ff4b4b;
    font-size: 16px;
}

.play-text {
    color: #ff4b4b;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 16px;
}

.play-button.playing .play-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.auto-play-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-in;
}

.tip-content {
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.tip-content p {
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Ma Shan Zheng', cursive;
}

.music-icon {
    font-size: 40px;
    animation: bounce 1s infinite;
}

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

.auto-play-tip.hide {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}
