.status-label {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-label.claimed {
    background-color: #d4edda;
    color: #155724;
}

.status-label.not-claimed {
    background-color: #f8d7da;
    color: #721c24;
}

/* 保持原来的样式不变 */
.red-packet-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 30px;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.2);
}

.red-packet-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q40,5 60,20 T100,40" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/><path d="M10,80 Q30,60 50,80 T90,60" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.red-packet-header h2 {
    color: white;
    margin: 0 0 30px 0;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    font-weight: bold;
}

.red-packet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.red-packet-wrapper {
    position: relative;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 450px;
}

.red-packet {
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 450px;
    min-width: 200px;
    min-height: 280px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    object-fit: contain;
}

.packet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    border-radius: 20px;
    transition: all 0.3s ease;
}

.red-packet:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.open-animation {
    animation: openRedPacket 0.8s forwards;
}

@keyframes openRedPacket {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(0.9) rotate(10deg); opacity: 0.8; }
}

.open-btn {
    margin-top: 30px;
    padding: 20px 45px;
    background: linear-gradient(45deg, #ff6b6b, #ff4757, #ff6b6b);
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
    transition: all 0.4s ease;
    text-align: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    z-index: 15;
}

.open-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.open-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.8);
}

.open-btn:hover::before {
    left: 100%;
}

.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.result-content {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #ff6b6b);
    padding: 55px;
    border-radius: 35px;
    text-align: center;
    max-width: 90%;
    width: 420px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: slideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 5px solid #ffd700;
}

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

.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffd700;
    border-radius: 50%;
    animation: fireworkExplode 2s infinite;
}

.firework-2 {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.firework-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 1s;
}

@keyframes fireworkExplode {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(35); opacity: 0.8; }
    100% { transform: scale(70); opacity: 0; }
}

@keyframes slideIn {
    0% { transform: scale(0.7) rotate(5deg); opacity: 0; }
    50% { transform: scale(1.05) rotate(-2deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.congrats-text {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: bold;
    animation: bounceText 1.5s infinite alternate;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

@keyframes bounceText {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.prize-name {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    margin: 25px 0;
    padding: 22px;
    background: linear-gradient(45deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    border-radius: 18px;
    border: 4px solid #ffd700;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
    box-shadow: inset 0 0 25px rgba(255,215, 0, 0.4);
}

.celebration-text {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 22px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.close-btn {
    margin-top: 20px;
    padding: 16px 40px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.5);
}

.close-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.7);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    flex-direction: column;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255,255,255,0.3);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .red-packet-container {
        margin: 15px;
        padding: 25px;
        min-height: 550px;
    }
    
    .red-packet-header h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .red-packet-wrapper {
        height: 400px;
    }
    
    .red-packet {
        max-width: 300px;
        max-height: 400px;
        min-width: 180px;
        min-height: 240px;
    }
    
    .open-btn {
        padding: 18px 40px;
        font-size: 17px;
        min-width: 180px;
    }
    
    .result-content {
        padding: 45px 25px;
        width: 90%;
        max-width: 380px;
    }
    
    .prize-name {
        font-size: 1.8rem;
        padding: 20px;
    }
    
    .congrats-text {
        font-size: 1.3rem;
    }
    
    .celebration-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .red-packet-container {
        padding: 20px;
        min-height: 500px;
    }
    
    .red-packet-header h2 {
        font-size: 2rem;
    }
    
    .red-packet-wrapper {
        height: 350px;
    }
    
    .red-packet {
        max-width: 260px;
        max-height: 350px;
        min-width: 160px;
        min-height: 220px;
    }
    
    .open-btn {
        padding: 16px 35px;
        font-size: 16px;
        min-width: 160px;
    }
    
    .result-content {
        padding: 35px 20px;
        width: 95%;
    }
    
    .prize-name {
        font-size: 1.6rem;
        padding: 18px;
    }
    
    .congrats-text {
        font-size: 1.2rem;
    }
    
    .celebration-text {
        font-size: 1rem;
    }
    
    .close-btn {
        padding: 14px 35px;
        font-size: 15px;
    }
    
    .loading-text {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .red-packet {
        max-width: 320px;
        max-height: 420px;
        min-width: 220px;
        min-height: 280px;
    }
    
    .red-packet-container {
        min-height: 580px;
    }
    
    .red-packet-wrapper {
        height: 420px;
    }
}