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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.screen.active {
    display: flex;
}

/* 问题界面样式 */
#question-screen {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.content {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 10;
}

.heart-decoration {
    font-size: 60px;
    animation: heartBeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.question {
    font-size: 32px;
    color: #d63384;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 40px;
}

.buttons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.btn {
    padding: 18px 40px;
    font-size: 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.angry-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease-out;
    pointer-events: auto;
    z-index: 200;
}

.angry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(238, 90, 90, 0.4);
}

.not-angry-btn {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    pointer-events: auto;
    z-index: 150;
}

.not-angry-btn:hover {
    box-shadow: 0 12px 35px rgba(64, 192, 87, 0.4);
}

.love-message {
    margin-top: 30px;
    font-size: 16px;
    color: #d63384;
    min-height: 24px;
    transition: opacity 0.3s;
}

/* 烟花界面样式 */
#fireworks-screen {
    background: #0a0a1a;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: blur(2px);
}

#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.celebration-text {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.celebration-text h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8), 0 0 40px rgba(255, 105, 180, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 105, 180, 0.8), 0 0 40px rgba(255, 105, 180, 0.4);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 182, 193, 1), 0 0 60px rgba(255, 182, 193, 0.6);
    }
}

.celebration-text p {
    font-size: 20px;
    color: #ffb6c1;
    margin-bottom: 10px;
}

/* 飘落的心形 */
.hearts-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.falling-heart {
    position: absolute;
    top: -50px;
    font-size: 24px;
    animation: fall linear forwards;
    opacity: 0.8;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* 响应式 */
@media (max-width: 480px) {
    .question {
        font-size: 26px;
    }

    .btn {
        padding: 15px 30px;
        font-size: 18px;
    }

    .celebration-text h1 {
        font-size: 22px;
        padding: 0 20px;
    }

    .celebration-text p {
        font-size: 16px;
    }
}