body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #fce4ec;
    background-image: radial-gradient(#ffccd5 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* 响应式设计 - 平板和小屏幕设备 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        max-width: 400px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1.1rem;
    }
}

/* 响应式设计 - 手机屏幕 */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        max-width: 300px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .heart {
        font-size: 1.5rem;
        margin: 0 5px;
    }
}
.container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: fadeIn 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e91e63, #ff9800);
}
 h1 {
    color: #e91e63;
    margin: 0 0 30px 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(233, 30, 99, 0.1);
}
 p {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
}
.heart {
    color: #e91e63;
    font-size: 2rem;
    animation: beat 1.5s infinite;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s ease;
}
.message {
    margin: 30px 0;
    padding: 25px;
    background-color: #fff5f7;
    border-radius: 15px;
    border-left: 5px solid #e91e63;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.message::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: rgba(233, 30, 99, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}
.kiss {
    font-size: 1.8rem;
    margin: 0 8px;
    display: inline-block;
    animation: kiss 2s infinite;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes beat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}
@keyframes kiss {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg) scale(1.1); }
}
.footer {
    margin-top: 40px;
    font-size: 1.1rem;
    color: #777;
    font-style: italic;
    position: relative;
    padding-top: 15px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #ffccd5;
}