/* 凯蒂猫主题样式 - 优雅简约版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #ffd1dc 0%, 
        #ffe4e1 25%, 
        #ffb6c1 50%, 
        #ff91a4 75%, 
        #ff69b4 100%);
    font-family: 'Comic Neue', 'Pacifico', 'Microsoft YaHei', cursive;
    overflow: hidden;
    position: relative;
}

/* 背景装饰元素 */
.background-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 32px;
    opacity: 0.3;
    animation: floatHeart 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
}

.heart-1 { top: 10%; left: 10%; animation-delay: 0s; }
.heart-2 { top: 20%; left: 80%; animation-delay: 2s; }
.heart-3 { top: 70%; left: 15%; animation-delay: 4s; }
.heart-4 { top: 80%; left: 85%; animation-delay: 6s; }
.heart-5 { top: 45%; left: 50%; animation-delay: 8s; }

.floating-star {
    position: absolute;
    font-size: 24px;
    opacity: 0.2;
    animation: floatStar 6s ease-in-out infinite;
}

.star-1 { top: 15%; left: 70%; animation-delay: 1s; }
.star-2 { top: 65%; left: 25%; animation-delay: 3s; }
.star-3 { top: 35%; left: 90%; animation-delay: 5s; }

@keyframes floatHeart {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(1.2); 
        opacity: 0.6;
    }
}

@keyframes floatStar {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-15px) scale(1.3); 
        opacity: 0.4;
    }
}

/* 主容器 */
.container {
    text-align: center;
    padding: 50px 40px;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 30px 60px rgba(255, 182, 193, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 1;
    animation: containerFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 凯蒂猫图片容器 */
.kitty-image-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    position: relative;
}

.kitty-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 0;
    filter: none;
    animation: kittyFloat 4s ease-in-out infinite;
    transition: all 0.5s ease;
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}

.kitty-image-secondary {
    display: none;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 8px 20px rgba(255, 105, 180, 0.3));
    border: 4px solid white;
    box-shadow: 0 0 0 3px #ff69b4;
}

@keyframes kittyFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-8px) scale(1.02); 
    }
}

.kitty-image:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 12px 30px rgba(255, 105, 180, 0.5)) brightness(1.1);
}

/* 主要内容 */
.main-content {
    margin-top: 10px;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.yunbao {
    font-size: 2.8em;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ff91a4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(255, 105, 180, 0.2);
    font-family: 'Pacifico', cursive;
    letter-spacing: 1px;
    line-height: 1;
    animation: yunbaoFloat 4s ease-in-out infinite;
    white-space: nowrap;
}

.question {
    font-size: 1.8em;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Comic Neue', cursive;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

@keyframes yunbaoFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-5px) scale(1.05); 
    }
}

.subtitle {
    font-size: 1.3em;
    color: #ff69b4;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.button {
    padding: 16px 35px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    min-width: 140px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s;
    z-index: -1;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.accept-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
    z-index: 20;
}

.accept-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.6);
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.reject-btn {
    background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
    color: white;
    box-shadow: 0 8px 25px rgba(168, 168, 168, 0.4);
    z-index: 15;
}

.reject-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(168, 168, 168, 0.6);
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.button-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.button:hover .button-icon {
    transform: scale(1.3) rotate(10deg);
}

.text-pink {
    color: #ff69b4 !important;
    animation: kittyPulse 0.6s ease-in-out;
}

@keyframes kittyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 底部装饰 */
.footer-decoration {
    margin-top: 35px;
}

.paw-prints {
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0.7;
}

.paw-prints span {
    font-size: 22px;
    animation: pawPrint 2.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.paw-prints span:nth-child(1) { animation-delay: 0s; }
.paw-prints span:nth-child(2) { animation-delay: 0.3s; }
.paw-prints span:nth-child(3) { animation-delay: 0.6s; }
.paw-prints span:nth-child(4) { animation-delay: 0.9s; }
.paw-prints span:nth-child(5) { animation-delay: 1.2s; }

@keyframes pawPrint {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.2) rotate(5deg); 
        opacity: 1;
    }
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer !important;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto !important;
    user-select: none;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s;
}

.button:hover::before {
    left: 100%;
}

.accept-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
}

.accept-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.6);
}

.reject-btn {
    background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
    color: white;
    box-shadow: 0 10px 30px rgba(168, 168, 168, 0.4);
}

.reject-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 168, 168, 0.6);
}

.button-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.button:hover .button-icon {
    transform: scale(1.2);
}

.text-pink {
    color: #ff69b4 !important;
    animation: kittyPulse 0.6s ease-in-out;
}

@keyframes kittyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 底部装饰 */
.footer-decoration {
    margin-top: 30px;
}

.paw-prints {
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0.6;
}

.paw-prints span {
    font-size: 20px;
    animation: pawPrint 2s ease-in-out infinite;
}

.paw-prints span:nth-child(1) { animation-delay: 0s; }
.paw-prints span:nth-child(2) { animation-delay: 0.5s; }
.paw-prints span:nth-child(3) { animation-delay: 1s; }

@keyframes pawPrint {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* 消息弹窗 */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(255, 105, 180, 0.6);
    text-align: center;
    z-index: 1000;
    animation: kittyPopIn 0.6s ease-out;
    display: none;
    border: 3px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(20px);
}

@keyframes kittyPopIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.message-content {
    max-width: 300px;
}

.message-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.message-box h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 700;
}

.message-box p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.close-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

/* 庆祝效果 */
.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #ff69b4;
    animation: confettiFall 3s linear forwards;
    z-index: 999;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 浪漫场景特殊样式 */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 回忆照片墙 */
.memory-wall {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.memory-photo {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 2em;
    animation: photoFloat 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-1 { animation-delay: 0s; }
.photo-2 { animation-delay: 0.5s; }
.photo-3 { animation-delay: 1s; }
.photo-4 { animation-delay: 1.5s; }

@keyframes photoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 烟花效果 */
.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ff69b4;
    border-radius: 50%;
    animation: explode 2s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* 永恒爱心动画 */
.eternal-hearts {
    font-size: 2em;
    animation: eternalLove 5s ease-in-out infinite;
    margin-top: 20px;
}

@keyframes eternalLove {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

.container {
    animation: containerGlow 3s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% { 
        box-shadow: 0 25px 50px rgba(255, 182, 193, 0.3);
    }
    50% { 
        box-shadow: 0 25px 80px rgba(255, 105, 180, 0.6);
    }
}

/* 浪漫眼睛动画 */
@keyframes romanticBlink {
    0%, 100% { 
        background: #ff69b4; 
        box-shadow: 0 0 10px #ff69b4;
    }
    50% { 
        background: #ff1493; 
        box-shadow: 0 0 20px #ff1493;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        padding: 8px;
        overflow-y: auto;
    }
    
    .container {
        padding: 25px 20px;
        margin: 5px;
        max-height: none;
        overflow-y: visible;
        min-height: auto;
        position: relative;
        z-index: 1;
        width: calc(100% - 10px);
    }
    
    .title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .yunbao {
        font-size: 2.5em;
    }
    
    .question {
        font-size: 1.6em;
    }
    
    .kitty-image-container {
        height: 200px;
        margin-bottom: 25px;
    }
    
    .kitty-image {
        width: 180px;
        height: 180px;
    }
    
    .subtitle {
        font-size: 1.2em;
        margin-bottom: 25px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .button {
        width: 100%;
        min-width: auto;
        padding: 15px 30px;
        font-size: 17px;
        position: relative;
        overflow: visible;
        z-index: 10;
    }
    
    .accept-btn {
        z-index: 20; /* 确保接受按钮在容器上一层 */
    }
    
    .reject-btn {
        z-index: 15;
    }
    
    .footer-decoration {
        margin-top: 25px;
        display: none;
    }
    
    .paw-prints {
        gap: 10px;
    }
    
    .paw-prints span {
        font-size: 20px;
    }
    
    .message-box {
        padding: 30px 20px;
        margin: 0 20px;
        width: calc(100% - 40px);
        max-height: 85vh;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .background-elements {
        display: none;
    }
}