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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-image: url('backgrounds/background.png');
    /* 请将背景图片命名为background.png并放入backgrounds文件夹 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* 增加背景图片亮度 */
    filter: brightness(1.2);
    /* 优化背景图片加载 */
    background-color: #000;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    border-radius: 20px;
    /* 移除阴影效果，使用透明 */
    box-shadow: none;
    max-width: 800px;
    width: 90%;
}

.title {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: none;
    color: white;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: none;
    color: white;
}

.wishes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wishes p {
    font-size: 1.2rem;
    padding: 15px;
    background-color: transparent;
    border-radius: 10px;
    text-shadow: none;
    color: white;
    transition: all 0.3s ease;
}

.wishes p:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.fireworks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3;
}

/* 移除发光动画效果 */
/* @keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5);
    }
} */

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
}

.footer p {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.footer a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
    }
    
    .container {
        padding: 20px;
        width: 95%;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .wishes {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wishes p {
        font-size: 1rem;
        padding: 12px;
    }
    
    .footer {
        padding: 15px;
    }
    
    .footer p,
    .footer a {
        font-size: 0.9rem;
    }
}

/* 针对小屏幕手机的额外适配 */
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .wishes p {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .footer {
        padding: 10px;
    }
    
    .footer p,
    .footer a {
        font-size: 0.8rem;
    }
}
