/* 基础样式 */
body {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    text-align: center;
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    width: 80%;
    max-width: 400px;
}

.image-wrapper {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mainImage {
    width: 180px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

h1 {
    font-size: 1.8rem;
    color: #5d4a66;
    margin: 20px 0;
    min-height: 3em; /* 防止文字跳动 */
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* 按钮通用 */
button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 200px;
    outline: none;
}

/* Yes 按钮 - 初始粉色 */
.btn-yes {
    background: #ff6b81;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

/* Yes 按钮 - 强力发光类 (JS动态添加) */
.shiny {
    animation: heartbeat 1.5s infinite, rainbowGlow 2s infinite;
    background: linear-gradient(90deg, #ff6b81, #ff92a4, #ff6b81);
    background-size: 200% 100%;
}

/* No 按钮 - 初始蓝色 */
.btn-no {
    background: #a4b0be;
    color: white;
}

/* 动画定义 */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rainbowGlow {
    0% { box-shadow: 0 0 10px #ff6b81; }
    33% { box-shadow: 0 0 30px #fffa65; }
    66% { box-shadow: 0 0 30px #32ff7e; }
    100% { box-shadow: 0 0 10px #ff6b81; }
}

/* 成功后的全屏 */
.yes-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffdae0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.yes-text {
    font-size: 2.5rem;
    color: #ff4757;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

/* 手机端适配调整 */
@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    button { width: 160px; }
}
