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

body {
    font-family: 'ZCOOL XiaoWei', 'Ma Shan Zheng', cursive, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-color: #fff0f5;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    opacity: 0.4;
    z-index: -2;
}

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

.container {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 1;
}

.hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.content {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 10px;
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.content-inner {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
}

.content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, #ffb6c1, #ffc0cb, #ffb6c1, #ff69b4);
    background-size: 200% 200%;
    animation: gradient-border 6s linear infinite;
    z-index: -1;
}

@keyframes gradient-border {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.title {
    color: #ff1493;
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
}

.bear-container {
    margin: 30px auto;
    position: relative;
    width: 150px;
    height: 150px;
}

.bear {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji {
    font-size: 5rem;
    position: relative;
    transition: all 0.3s ease;
}

.tear {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #4fc3f7, #03a9f4);
    border-radius: 50%;
    animation: falling-tear 2s infinite;
    opacity: 0;
}

.tear-left {
    left: 40px;
    top: 70px;
    animation-delay: 0.5s;
}

.tear-right {
    right: 40px;
    top: 70px;
    animation-delay: 1.2s;
}

@keyframes falling-tear {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(50px);
        opacity: 0;
    }
}

.message {
    font-size: 1.6rem;
    margin: 20px 0;
    color: #333;
    line-height: 1.5;
    position: relative;
    padding: 0 10px;
}

.message::after {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.5), transparent);
    margin: 20px auto 0;
}

.options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.btn {
    position: relative;
    padding: 15px 35px;
    font-size: 1.3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.forgive {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.forgive:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.btn-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shine 2s infinite;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.not-forgive {
    background: linear-gradient(135deg, #FF5722 0%, #F44336 100%);
}

.not-forgive:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

.result {
    margin-top: 30px;
    font-size: 1.3rem;
    color: #e91e63;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.heart {
    position: absolute;
    pointer-events: none;
    animation: float 4s ease-in-out infinite;
    font-size: 24px;
    color: #ff6b8b;
}

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

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

.floating-heart {
    position: absolute;
    font-size: 24px;
    animation: float-random 15s linear infinite;
    opacity: 0.6;
}

.floating-heart:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
}

.floating-heart:nth-child(2) {
    left: 30%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.floating-heart:nth-child(3) {
    left: 50%;
    animation-duration: 15s;
    animation-delay: 5s;
}

.floating-heart:nth-child(4) {
    left: 70%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.floating-heart:nth-child(5) {
    left: 85%;
    animation-duration: 16s;
    animation-delay: 3s;
}

@keyframes float-random {
    0% {
        top: 110%;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: -10%;
        transform: translateX(100px) rotate(360deg);
    }
}

/* 为不原谅按钮添加增大动画 */
@keyframes growButton {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.growing {
    animation: growButton 0.5s forwards;
}

@media (max-width: 600px) {
    .content-inner {
        padding: 30px 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .message {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1.2rem;
    }
}

/* 添加心形脉动效果 */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.heartbeat {
    animation: heartbeat 1s infinite;
    display: inline-block;
}

/* 添加闪烁效果 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 2s infinite;
}
