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

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    color: #880e4f;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
    max-width: 600px;
    width: 90%;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.couple-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 2rem;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

.name {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.heart-icon {
    font-size: 3rem;
    animation: pulse 1.5s infinite;
}

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

.timer-container {
    margin: 2rem 0;
}

#timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    display: flex;
    flex-direction: column;
    background: #ad1457;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 70px;
}

.time-box span:first-child {
    font-size: 1.5rem;
    font-weight: bold;
}

.time-box .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.message {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Floating Hearts Background */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    color: #f06292;
    font-size: 1.5rem;
    animation: float 5s linear infinite;
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}
