* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ff3e78;
    font-family: "微软雅黑", sans-serif;
}

#heartCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#textContainer {
    position: relative;
    z-index: 999;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.text-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.fly-item {
    color: #ff0000;
    font-weight: bold;
    font-size: clamp(30px, 7vw, 60px);
    opacity: 0;
    animation: flyIn 1s ease-out forwards;
    max-width: clamp(200px, 40vw, 400px);
    max-height: clamp(300px, 60vw, 600px);
    width: auto;
    height: auto;
    object-fit: contain;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

/* ✅ 恢复四面八方飞入动画 */
@keyframes flyIn {
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}