:root {
    --primary-color: #ffb6c1; /* 浅粉色 */
    --secondary-color: #ff69b4; /* 深粉色 */
    --text-color: #68495b;
    --bg-gradient-start: #fdfbfb;
    --bg-gradient-end: #ebedee;
    --btn-yes-bg: #ff6b81;
    --btn-yes-hover: #ff4757;
    --btn-no-bg: #a29bfe;
    --btn-no-hover: #6c5ce7;
}

body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-color: #f1d5da;
    text-align: center;
    font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', 'YouYuan', 'Microsoft YaHei', 'STKaiti', cursive, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease;
    z-index: 10;
}

#mainImage {
    width: 100%;
    max-width: 200px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 20px 0;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

button {
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(1px);
}

#yes {
    background-color: var(--btn-yes-bg);
    color: white;
}

#yes:hover {
    background-color: var(--btn-yes-hover);
}

#no {
    background-color: var(--btn-no-bg);
    color: white;
    position: relative;
}

#no:hover {
    background-color: var(--btn-no-hover);
}

.yes-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.yes-text {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.yes-image {
    width: 60%;
    max-width: 350px;
    margin-top: 20px;
    animation: popIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 漂浮爱心动画 */
.heart {
    position: absolute;
    color: #ff6b81;
    font-size: 20px;
    animation: fly 5s linear infinite;
    bottom: -20px;
    z-index: 1;
}

@keyframes fly {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    button { font-size: 1rem; padding: 10px 20px; }
    .yes-text { font-size: 2rem; }
}
