/* 全局重置 - 简约干净 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    font-family: "Microsoft YaHei", sans-serif;
    overflow: hidden;
}

/* 礼物盒子主界面 */
.gift-container {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
}

.gift-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.gift-box {
    text-align: center;
    padding: 60px 80px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

/* 标题样式 */
.title {
    font-size: 28px;
    color: #ff4a7f;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* 领取按钮 */
.receive-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(90deg, #ff6b9d, #ff4a7f);
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(255, 74, 127, 0.3);
}

.receive-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 74, 127, 0.4);
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 领取后显示的图片 */
.gift-image-show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    animation: fadeIn 1s ease;
}

.gift-image-show img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}